This repo contains how we can implement MVVM in Android.
The Simple demo fetches a list of users from the below webwservice using Retrofit, parses it and shows it in the UI with the help of ViewModel following a MVVM pattern.
Concept included
- Activity
- RecyclerView
- ViewModel
- Retrofit
- ViewModelScope
- Coroutines
- DataBinding
- Unit testing.
Checkout the written tutorial here. https://www.coderzheaven.com/2021/06/06/mvvm-in-android-viewmodels-viewmodelscope-retrofit-all-with-a-simple-example/