~/talk

Pro RecyclerView

Talkat 360|AnDev 2016 · 2016-07-28..07-29· [android]
slides:none on file

Explains RecyclerView internals: a layout manager, item animator and adapter coordinate to position and animate items; stable IDs plus SortedList and upcoming DiffUtil calculate precise moves so updates animate instead of jumping; ItemTouchHelper and SnapHelper sit outside RecyclerView and reuse public APIs; common pitfalls include requestLayout from ImageView/TextView causing full relayout, asynchronous binding (use executePendingBindings), image aspect-ratio sizing to avoid jumps, and always update adapter on the main thread to avoid crashes.

AI-written summary · about

  1. 0:00Start
  2. 7:09Components
  3. 8:48estLayout
  4. 13:46ageView.java
  5. 14:27Good API
  6. 19:57Internals
  7. 22:33Callback
  8. 23:45ndViewHolder
  9. 24:54r Lifecycle
  10. 26:54Update Cycle
  11. 27:23scrollToPosition
  12. 32:02emViewType
  13. 32:19ateViewHolder
  14. 32:48Click Listener
  15. 36:01pter vs Layout
  16. 41:43RecyclerView
~/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.