ViewModel 的创建很关键, 关系到它的生命周期. ... viewModel = ViewModelProvider(this).get(MainViewModel::class.java) ... 分类: Android.
確定! 回上一頁