Summary
This chapter focused on architectural patterns for Android. You started with the MVVM architectural pattern. You learned about its three components: the Model, the View, and the ViewModel. You also used data binding to link the View with the ViewModel.
Next, you learned about how the Repository pattern can be used to cache data. Then, you learned about WorkManager and how you can schedule tasks such as retrieving data from the network and saving that data to the database to update your local data.
In the next chapter, you will learn how to improve the look and design of your apps with animations. You will add animations and transitions to your apps with CoordinatorLayout
and MotionLayout
.