Closed GSala closed 4 years ago
Only third option. Check GithubSample in android-architecture-component repo for an example. Please also check: https://academy.realm.io/posts/mvc-vs-mvp-vs-mvvm-vs-mvi-mobilization-moskala/ to get to know better a role of ViewModel in Android app's architecture.
When trying to encapsulate some behavior in a View instead of an Activity or a Fragment, I do not have access to the ViewModelProvider. What would be the mot appropriate way of having the same architecture when using Views?
I can see at least 4 options.