当前分类:android-viewmodel

即使设置了lifecycleOwner,Android Fragment ViewModel数据绑定(bind)也不会更新UI

android - 使用 Factory 创建共享 ViewModel

android - Dispatcher.IO 和 Dispatcher.Main 哪个更适合用于 API 调用?

android-jetpack-compose - 为什么有些人仍然在 jetpack compose 中使用 viewmodel?

android - 由 : java. lang.RuntimeException : Cannot create an instance of class com. app.MyViewModel 引起

android - nav_graph 中两个 fragment 之间的共享 View 模型

android - 单个 ViewModel 中的多个 LiveData 对象

android-studio - 如何在 RecyclerView 上使用 LiveData?

java - 如何测试注入(inject)了 Koin 的 viewModel?

android - viewModelScope 默认为 MainThread 的原因是什么?

android - 何时在 Android 中使用多个 ViewModel 与共享 ViewModel?

android - 如何在一组特定 fragment 之间共享 ViewModel 范围,而不使用 NavGraphs 或将其范围限定到 Activity ?

android - 在 Kotlin 中打开新 fragment 时如何对当前 fragment 应用更改?

android - viewModelScope 未解析的引用

android - 由 : java. lang.NoSuchMethodException : <init> [class android. app.Application] - viewmodel 引起

android - ViewModel vs Activity 成员变量?

android - 重置/清除 View 模型或实时数据

android-viewmodel - SavedStateHandle 不持久化数据

android - 在 jetpack compose 中使用 viewmodel 的最佳实践

android - Lateinit 属性 viewModel 尚未初始化

热门标签: