Instead of having the business logic in the views (fragments) use data bindings instead. This means putting all OnClickListeners in the ViewModel and any other logic (ex: saving).
Support for data binding has been added. Lots of OnClick functions have been moved to ViewModels. From here on out, add any new functions to their respective ViewModel.
Instead of having the business logic in the views (fragments) use data bindings instead. This means putting all OnClickListeners in the ViewModel and any other logic (ex: saving).