An open API service indexing awesome lists of open source software.

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.

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

![1](https://github.com/VaibhavMojidra/Android-Java---Demo-Data-Binding-With-Objects-ViewModel/blob/master/screenshots/1.png)
![2](https://github.com/VaibhavMojidra/Android-Java---Demo-Data-Binding-With-Objects-ViewModel/blob/master/screenshots/2.png)
![3](https://github.com/VaibhavMojidra/Android-Java---Demo-Data-Binding-With-Objects-ViewModel/blob/master/screenshots/3.png)