~/talk

Migrating to Paging Library

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [android]
slides:none on file

Step‑by‑step migration from RecyclerView.Adapter to Android Paging Library with Room and LiveData, replacing LiveData<List> with LiveData<PageList> and switching ListAdapter to PageListAdapter; example config uses page size = 30 and default initial load = 3×page size. Covers DataSource types (positional, item‑keyed, page‑keyed), how placeholders return null and require null handling, and using BoundaryCallback to fetch from network into Room when database is out of data. Results: lower memory use, background diffing, clearer UI/data separation and easier unit testing.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 7:39Paging library overview
  3. 16:12Understanding data sources
  4. 27:13Database and network integration
  5. 33:14Best practices and summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.