An activity template that implements the mvvm pattern. Create an activity with a viewModel and a communication interface between activivty and view model.
To use this template your DataBinding needs to be enabled in gradle, and minSdkVersion
must be >= 9.
** Add template **
- clone this repository.
- copy the folder MVVMActivityTemplate in {ANDROID_STUDIO_LOCATION}/plugins/android/lib/templates/activities/
- copy the folder MVVMFragmentTemplate in {ANDROID_STUDIO_LOCATION}/plugins/android/lib/templates/other/
in AndroidStudio, File > New > Activity > MVVM Template Activity in AndroidStudio, File > New > Fragment > MVVM Template Fragment