The architecture components are one of the components of Android Jetpack. This is a guideline for application architecture. This component is built on some libraries to do common tasks in an easier way. With the help of this component, a developer can develop their project, which can be robust, maintainable, and testable.
Today we will create an Android offline application where we will use Android components.
Here is the diagram of this architecture:
The following is a brief description of all the components:
- UI Controller: UI components like activities and fragments are under this component.
- ViewModel: This fetches data with the help of model and provides it to the UI.
- LiveData: This class holds the observable data. This is lifecycle-aware, unlike the regular observable.
- Repository: This manages multiple data sources.
- Room Database: This is a top...