viewmodelprovider example
Example 1: viewmodelprovider example
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
Example 2: viewmodelprovider example
implementation "android.arch.lifecycle:extensions:1.0.0"annotationProcessor "android.arch.lifecycle:compiler:1.0.0"