Simple Android Architecture : MVVM concept and reduce boilerplate code on Activity/Fragment/ViewModel

김정현
Mar 16, 2020

--

Table of Contents

  • Inflate layout and binding ViewModel
  • To get Activity’s ViewModel or other Fragment’s ViewModel
  • How to create and bind Fragment, ViewModel, layout fast
  • To observe LiveData omitting viewLifeCycleOwner
  • Explanation of MVVM concept
  • Don’t implement frequently used UI functions repeatedly on Activity/Fragment, and just command on ViewModel
  • How to remember the usage?

migrated to https://dss99911.github.io/android/2023/12/24/reduce-boiler-plate-code.html

--

--