This is a companion discussion topic for the original entry at https://www.raywenderlich.com/8984-mvvm-on-android/lessons/6
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/8984-mvvm-on-android/lessons/6
I would like to know if there is a reason for the parameters like name
intelligence
strength
are not privates for the viewmodel .
The ViewModel is responsible for maintaining observable state for the View. The View binds to this state using Data Binding or can instead observe it using LiveData.
1 Like
Thanks for the reply!