Implementing the Paging Library
summary
Explains how the Android Paging Library composes PagedList with ListAdapter/DiffUtil and a DataSourceFactory to load snapshots lazily, using LiveData (or Rx/Flow) and Room as a single source of truth. Describes three DataSource types (positional, item-key, page-key), config knobs like page size, prefetch distance and placeholders, and the BoundaryCallback that triggers network fetches to populate the DB. Includes a working GitHub search sample app that demonstrates end‑to‑end paging.
AI-written summary · about
chapters (10)
- 0:00Introduction to Paging Library
- 4:55History of List Implementations
- 12:37Introduction to Jetpack
- 13:59Paging Library Components
- 16:48Live Data Integration
- 18:54Configuring Page Lists
- 24:11Room Integration
- 25:36Data Source Types
- 33:14Boundary Callbacks
- 34:41Further Resources
related talks
34mMigrating to Paging Library
35mMigrating to Paging library
33mAndroid Jetpack: Manage infinite lists with RecyclerView and Paging
41mEfficient Lazy Loading for RecyclerView with Room
34mInside Android KTX
36mJetpack Paging Library 3 in Real Life
20mArchitecture Components
27mModern Paging at Scale: StoreX + Compose
