~/talk

Lazy and amazy – Lazy layouts in Compose

Talkat droidcon Berlin 2022 · 2022-07-06..07-08· [web-performance]
links:none on file
slides:none on file

Jetpack Compose provides lazyColumn/lazyRow/lazyGrid that render items on demand, with lazyListState (firstVisibleItem + offset), rememberCoroutineScope + animateScrollToItem/scrollToItem for programmatic scrolling, and contentPadding/arrangement for layout. Grids support fixed, adaptive and custom gridCells plus item spans; lazyLayout lets you build custom managers. Item reordering animations land in Compose 1.1 and grids in 1.2—use contentType to improve reuse. Avoid zero-height items and nesting same-direction scrollers. Experimental nested scrolling interrupt links Views (CoordinatorLayout/RecyclerView) and Compose via a remembered connection and nestedScroll modifier.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Overview of lazy layouts
  3. 7:26Scrolling and state management
  4. 14:31Custom lazy layouts
  5. 15:37Item animations in lazy lists
  6. 17:45Lazy layout performance tips
  7. 25:09Performance optimizations
  8. 30:33Nested scrolling interrupt
  9. 37:38Summary and resources
~/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.