Skip to content Skip to sidebar Skip to footer
Showing posts with the label Mvvm

How Do I Store A Data From A Fragment So It Can Be Reuse In A Mvvm Architecture?

I have know that an Activity/Fragment has to create a ViewModel, and the ViewModel can be created f… Read more How Do I Store A Data From A Fragment So It Can Be Reuse In A Mvvm Architecture?

How To Use Android Navigation Without Binding To Ui In Viewmodel (mvvm)?

I am using android navigation that was presented at Google I/O 2018 and it seems like I can use it … Read more How To Use Android Navigation Without Binding To Ui In Viewmodel (mvvm)?

Google/Facebook Sign In In MVVM

I'm using MVVM structure with Data Binding in my project. Things get weird when it comes to GG/… Read more Google/Facebook Sign In In MVVM

Observing MediatorLiveData Issue

I have the following LiveData variables in my ViewModel (simplified example): I'm trying to us… Read more Observing MediatorLiveData Issue

Android Refreshing Adapter Work After Rotation Again Device

This code works fine when i add some data into 'List model' and restore saved data on rotat… Read more Android Refreshing Adapter Work After Rotation Again Device

What Is The Recommended Way To Launch A DialogFragment From A ViewModel?

I have a list objects in a Recyclerview. When long-pressing an item I want to show a dialog with da… Read more What Is The Recommended Way To Launch A DialogFragment From A ViewModel?

Android Refreshing Adapter Work After Rotation Again Device

This code works fine when i add some data into 'List model' and restore saved data on rotat… Read more Android Refreshing Adapter Work After Rotation Again Device