javaandroidandroid-adapternotifydatasetchangedmutablelivedata

Do I have to notify my ListAdapter when using MutableLiveData?


I'm new at Android ViewModel and I want to figure out whether I have to notify adapter when using MutableLiveData.


Solution

  • No, you don't. The data updates on the RecyclerView whenever the MutableLiveData's value changes