https://github.com/vaibhavmojidra/android-java---demo-data-binding-with-objects-viewmodel
Instead of using onclick listener for binding.buttton and calling the change() of ViewModel we can directly bind it in <data> tage where we create viewmodal obj and call the change() in button onClick attribute.
https://github.com/vaibhavmojidra/android-java---demo-data-binding-with-objects-viewmodel
android androidarchitecturecomponets livedata mojidra vaibhav vaibhav-mojidra vaibhavmojidra viewmodel
Last synced: 3 months ago
JSON representation
Instead of using onclick listener for binding.buttton and calling the change() of ViewModel we can directly bind it in <data> tage where we create viewmodal obj and call the change() in button onClick attribute.
- Host: GitHub
- URL: https://github.com/vaibhavmojidra/android-java---demo-data-binding-with-objects-viewmodel
- Owner: VaibhavMojidra
- Created: 2021-06-03T11:45:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-03T11:48:38.000Z (over 4 years ago)
- Last Synced: 2025-04-12T06:48:14.258Z (9 months ago)
- Topics: android, androidarchitecturecomponets, livedata, mojidra, vaibhav, vaibhav-mojidra, vaibhavmojidra, viewmodel
- Language: Java
- Homepage: https://vaibhavmojidra.github.io/site/
- Size: 525 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android-Java---Demo-Data-Binding-With-Objects-ViewModel
Instead of using onclick listener for binding.buttton and calling the change() of ViewModel we can directly bind it in tage where we create viewmodal obj and call the change() in button onClick attribute


