AndroidMvvm

Additional

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

Commercial

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 b) MacOS /Applications/Android Studio.app/Contents/plugins/android/lib/templates/other/
    C:\Program Files\Android\Android Studio\plugins\android\lib\templates\other\


  2. Restart Android Studio if it was launched before
  3. Create AndroidMvvm Fragment + ViewModel from MenuFile > 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