AndroidMvvm

Additional

Language
Kotlin
Version
v1.1 (Mar 12, 2019)
Created
Dec 19, 2018
Updated
Aug 15, 2019 (Retired)
Owner
Alexander Shniperson (AlexanderShniperson)
Contributors
Alexander Shniperson (AlexanderShniperson)
Alexander Shniperson (AlexShniperson-INO)
2
Activity
Badge
Generate
Download
Source code
APK file

Promotion

AndroidMvvm

Library describes experience how to implement and use MVVM pattern provided by Google.
Project include example of usage.

Library integration

This library is available in JitPack.io repository.

  1. make sure to add the below inside root build.gradle file
allprojects {
    repositories {
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}
  1. add library dependency to the app's build.gradle file.
dependencies {
   implementation 'com.github.AlexanderShniperson:AndroidMvvm:1.1'
}

How to use

  1. Copy Template files from AndroidMvvmFragment into
    a) Windows C:\Program Files\Android\Android Studio\plugins\android\lib\templates\other\
    b) MacOS /Applications/Android Studio.app/Contents/plugins/android/lib/templates/other/
  2. Restart Android Studio if it was launched before
  3. Create AndroidMvvm Fragment + ViewModel from Menu
    File > Fragment > AndroidMvvm Fragment + ViewModel
  4. Fill Template name field and click Finish
  5. You are done, do any implementations at your ViewModel as described at Sample project