Jul 20, 2017 · 1 min read
You cannot extend both BaseObservable and ViewModel in the same class. You can use ObservableFields inside of the ViewModel. If you look at the ProductFragment and ProductViewModel of the architecture components BasicSample, you can see one example of the usage of LiveData and ObserverableField within a ViewModel. The team is looking at ways to make this simpler.
Another option for the time being is to copy and paste BaseObservable code into a ViewModel subclass and extend from it.