Inject view model declared in viewModel() anywhere? No, because ViewModel is tied to Activity or Fragment. Solution: use the instance of FragmentActivity or ...
確定! 回上一頁