Demonstartions of using Paging Library with MVVM architecture.
This project hosts each sample app in separate repository branches.
Sample | Description |
---|---|
paging | The base for the rest of the branches. Paging Library + Architecture Components + Retrofit + RxJava |
paging-dagger | Paging Library + Architecture Components + Retrofit + RxJava + Dagger Android |
paging-offline | Paging Library + Architecture Components + Retrofit + RxJava + Dagger Android + Offline-first |
paging-dagger-hilt | Paging Library + Architecture Components + Retrofit + RxJava + Dagger Hilt + Offline-first |
There are 2 types of architecture used in the samples.
Online app architecture fetches data from API and directly binds it to the UI. Used in paging and paging-dagger samples
Offline-first app architecture fetches data from API and inserts that data into database, then those data are binded to the UI. Used in paging-offline and paging-dagger-hilt samples