Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 406 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 406 Bytes

ArchitectureComponentViewModel

Android Architecture Components ViewModel is very useful when you want to provide and manage data for your UI (e.g. Activity or Fragment)

Add dependencies

// Architecture components
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'android.arch.lifecycle:runtime:1.1.1'
annotationProcessor 'android.arch.lifecycle:compiler:1.1.1'