~/talk

Creating a Custom Compose Layout, Step-by-Step

Talkat droidcon New York 2024 · 2024-09-19..09-20· [component-design, android]
slides:none on file

Builds a timeline-style schedule using Compose’s low-level layout(measurePolicy) API and a custom scope, measures children with fixed-width constraints derived from start/end times, and uses intrinsics for height to make every item the same tall. Replaces onGloballyPositioned hacks (which break Paparazzi and cause extra frames) with a stable viewport window that shifts instead of scrolling, exposes a modifier.node timeRange, and achieves skipped recompositions during zoom and pan so scrolling looks smooth and stays performant.

AI-written summary · about

  1. 0:00Custom Compose layouts intro
  2. 7:37Compose layout phases
  3. 14:00Fitness class schedule layout
  4. 21:56Custom schedule layout
  5. 29:23Intrinsics for consistent heights
  6. 33:14Overlapping sessions in multi-track
  7. 37:08Viewport-based scrolling
  8. 40:38Custom scopes and modifiers
~/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.