By passing getActivity instead of “this” to the ViewModelProviders.of method, we can scope the lifecycle of this ViewModel to the activity ...
確定! 回上一頁