14. Architecture Patterns
Overview
This chapter will introduce you to architectural patterns you can use for your Android projects. It covers using the MVVM (Model-View-ViewModel) pattern, adding ViewModels, and using data binding. You will also learn about using the Repository pattern for caching data and WorkManager for scheduling data retrieval and storage.
By the end of the chapter, you will be able to structure your Android project using MVVM and data binding. You will also be able to use the Repository pattern with Room library to cache data and WorkManager to fetch and save data at a scheduled interval.