~/talk

Android Jetpack: Manage infinite lists with RecyclerView and Paging

Talkat Google I/O 2018 · 2018-05-08..05-10· [android, frontend-architecture]
links:none on file
slides:none on file

Introduces the Paging Library that turns a LiveData list into a lazy-loading PagedList backed by Room or network (Retrofit), shows adapters like PagedListAdapter, and demonstrates a complete DB+network flow using a boundary callback that inserts network pages into Room. Examples include avoiding creating 10,000 objects for an 8–10 item view, configuring page size = 30, placeholders vs no placeholders, and three DataSource types (Positional, ItemKeyed, PageKeyed); Paging 1.0 is released and works with Rx.

AI-written summary · about

  1. 0:00Start
  2. 1:41Updates - the truth
  3. 2:25Convenience
  4. 2:35Multiple Layers
  5. 2:45Performance
  6. 2:55Lifecycle Aware
  7. 3:13Lists without paging
  8. 5:01Let's move to Paging
  9. 5:19Paged List
  10. 8:11Configuration
  11. 15:12Under the hood
  12. 15:45Data Sources
  13. 16:08PositionalDataSource
  14. 19:03Item KeyedDataSource
  15. 21:31PagedKeyedDataSource
  16. 25:12Data switching
  17. 26:04Data layering
  18. 26:53Database + Network
  19. 27:51NETWORK PAGE SIZE .execute()
  20. 29:05Paging Library
  21. 30:31Cursor's built-in paging
~/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.