DESCRIPTION: This is a simple template app for MVVM understanding and setup. Thier are a variety of need when it comes to this architectural pattern. So i segregated the codes into step by step format to the most optimised.
Branch sequence 1
: MVVM FirstSetup
- MVVM--ViewHolder---Adapter--Recycler
- NO View---Model or View-Model Factory yet
- OnClickListener and binding.
- Along with buttons for insert remove and edit(thier functions implemented)
- Simple logs to check click listeners.
- Dummy Data
Branch sequence 3
: MVVM SecondSetup
- Fixed ViewHolder
- Pre ViewModel setup
Branch sequence 3
: MVVM ThirdSetup
- ViewModel Factory and ViewModel implemented.
- Some bugs wrt onclickListeners
Branch sequence 4
: MVVM FourthSetup
- Click listener bugs dealing
- Adapter bugs dealing
- init implemented to deal with adapter bugs
Branch sequence 5
: MVVM FifthSetup
- BindingUtils implemented
- recyclerView onClick implemented.
- optimised viewmodel–viewmodel optimise fix
Branch sequence 6
MVVM SixthSetup
- DiffCallBacks–recyclerView MVVM
- Almost done app.
- Some comments functions etc removed/added
Branch sequence 7
MVVM 7 FinalTemplate
- Final template.
PS. Move to any branch to find out the overall approach or the variants of what was being done. Say no diffutils, no viewmodel, simple onclicks ans bindingadapters. Acc to branch names.