~/talk

RecyclerView’s Powerful Companions

Talkat 360|AnDev 2017 · 2017-07-13..07-14· [frontend-architecture]
links:none on file
slides:none on file

Three concrete APIs: DiffUtil computes precise insert remove move/change operations (detectMoves is true by default, can be expensive for huge lists and must run without mutating the backing data), SnapHelper provides paging-like snapping (LinearSnapHelper snaps to center, requires match_parent sizing for correct behavior), and ItemTouchHelper implements drag, swipe, startDrag/startSwipe, thresholds and drop hooks while requiring the adapter to be updated; using DiffUtil across lists reduces boilerplate and works reliably.

AI-written summary · about

  1. 0:00Intro
  2. 3:40Structural Changes
  3. 5:30Diffutil API
  4. 6:04Items
  5. 7:29Content Graph
  6. 8:11Calculate Diff
  7. 9:00Dispatch Diff
  8. 9:59Order of Operations
  9. 11:05UI Thread
  10. 12:49Snap Helper
  11. 13:46Linear Snap Helper
  12. 14:16Pagers Snap Helper
  13. 15:16Item Touch Listener
  14. 16:06Item Touch Helper
  15. 16:25Make Movement Flags
  16. 16:59Update Adapter
  17. 17:26Longpressing
  18. 18:14CanDrag
  19. 18:51Swipe
  20. 19:15Start Swipe
  21. 19:43Attach State
  22. 20:15Velocity
  23. 20:46ItemTouchHelper
  24. 22:29Outro
~/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.