RecyclerView有一个app:items=""
属性,这个属性如何与 MVVM 和 MVVM 一起使用,而android.arch.lifecycle.ViewModel
不是扩展 BaseObservable 的 ViewModel?items
可以是 LiveData、List 或 ObservableArrayList,应该与哪个集合一起使用?
问问题
511 次
RecyclerView有一个app:items=""
属性,这个属性如何与 MVVM 和 MVVM 一起使用,而android.arch.lifecycle.ViewModel
不是扩展 BaseObservable 的 ViewModel?items
可以是 LiveData、List 或 ObservableArrayList,应该与哪个集合一起使用?