Google recommends all Android developers use ViewModel so in this video we'll upgrade our Login Activity to use a ViewModel along with LiveData to communicate with the Activity. MVVM architecture is usually the ideal approach to Android app development. In this video we add the necessary Gradle dependencies then create LoginViewModel in a new package. After that we move our logic from our Activity into the ViewModel because this is a best practice.
Connect with me on LinkedIn! https://linkedin.com/in/danielmalone
1 Comments