Instead of viewmodel..observe and setting the value to view we can directly use in XML @{vm.obj}
-
Notifications
You must be signed in to change notification settings - Fork 0
LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. Instead of viewmodel..observe and setting the value to view we can directly use in XML @{vm.obj}
VaibhavMojidra/Android-Java---Demo-Data-Binding-With-LiveData
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. Instead of viewmodel..observe and setting the value to view we can directly use in XML @{vm.obj}
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published