Skip to content

Implemented all known software architecture decision for android MVVM routes. Saved in different branches with design decisions

Notifications You must be signed in to change notification settings

Ana2k/MVVM-optimised-all-setups-repo

Repository files navigation

MVVM setup template

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 6MVVM SixthSetup

  • DiffCallBacks–recyclerView MVVM
  • Almost done app.
  • Some comments functions etc removed/added

Branch sequence 7MVVM 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.

About

Implemented all known software architecture decision for android MVVM routes. Saved in different branches with design decisions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages