
Learn the foundations of Android MVVM architecture, explore basics and advanced concepts, implement each component in practical apps, and master contexts in ViewModel, transformations, and unified data flows.
Explore the mvvm architecture, its benefits over other patterns like mvp, and how viewmodel and livedata address the state problem while improving testability with a simple example app.
Understand the Udemy review system and its impact on course visibility, and learn how feedback helps improve the Android MVVM architecture course.
Examine the mvvm architecture—model, view, and viewmodel—and learn how the observer pattern and livedata connect data to the user interface while addressing state management.
Explore state persistence problem caused by Android lifecycle changes and how mvvm separates the view from the model, using a viewmodel to preserve data across configuration changes and improve testability.
In the Android mvvm course, the view model connects the view and the model, solving life cycle and asynchronous call problems with a live data layer using the observer pattern.
Explore live data, an observable class, and its pairing with the view model to form the MVVM middle layer that keeps the UI in sync with data and handles lifecycle.
Build a simple mvvm app that cycles through cities, displaying each city's image, name, and population, with the UI updating automatically via a ViewModel and LiveData.
Open Android Studio, create an app, and build a city interface with image and text views while defining a city data class and a city data provider, prepping for MVVM.
Refactor the app into a mvvm structure with model, view, and viewmodel packages; connect a city viewmodel using live data to cycle through cities with a 2-second delay.
Update the user interface with mvvm by binding the activity layout to the view model and observing live data for city image, name, and population.
Discover two ways to obtain a view model in Android MVVM: using the convenience function with a library import, and retrieving via the view model provider, with lifecycle awareness.
Explore how to retrieve a context reference in ViewModel, share data between fragments with LiveData, and apply transformations and mediator LiveData, while managing ViewModel state and avoiding memory leaks.
Learn how to access the application context from a ViewModel without referencing activity context, preventing memory leaks and ensuring testability, by extending AndroidViewModel and passing the application.
Share data between fragments with a view model, addressing activity and fragment lifecycles. Build a shared counter using LiveData to synchronize state across two fragments.
Update live data on main thread with value; use post value on background threads. Apply map and switch map transformations, and mediator live data with add sources to combine sources.
Implement live data and mediator live data to display a list of orders via a recycler view, with a search bar and a simulated data generator using coroutines.
Master saving state in view models using the saved state handle, preserving live data across process recreation and preventing view state loss in Android mvvm architectures.
Explore patterns and anti-patterns in mvvm, stressing that the view observes the view model via live data, avoids business logic in the view, and maintains separation of data and state.
One of the most common questions I get asked while teaching Android Development is "What is MVVM and how do I use it?"
This is a fundamental concept in Android Architectures, and this course addresses that question.
Here we will start from scratch, and discuss what is MVVM and why use it. We will see the components that need to go into this architecture and we will see how they fit together to provide an easy way to implement a healthy application. That is, an application that is scalable, maintainable, easy to understand and easy to test.
We will look at MVVM, ViewModels, LiveData, contexts, Transformations, Mediators and a lot more.
We will implement all these concepts in practice in several Android applications, to give you a clear understanding of how to use them.
Finally, we will also discuss best practices, patterns and anti patterns. There are a lot of gotchas around MVVM and in this course we will learn how to avoid them.
This course is a complete discussion around the topic of MVVM and Android Architectures. It is the architecture supported and recommended by Google.
There is no need to search through incomplete online tutorials or youtube videos. This course is all you need to get a deep understanding of the architecture, as well as practical knowledge of how to use it.
So sign up today and let's start learning to build MVVM in our apps.