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.

Introduction

In the previous chapter, you learned about using RxJava and coroutines for doing background operations and data manipulation. ...

Get How to Build Android Apps with Kotlin now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.