~/talk

Digging Deeper with Subcomposition + Custom Compose Layouts

Talkat droidcon New York 2025 · 2025-06-25..06-26· [android]
slides:none on file

Custom layouts using the layout composable and measurePolicy let code measure children as measurables and produce placeables so the measure and placement phases can be skipped when possible, cutting hundreds of recompositions seen with naive Row-based implementations. Using subcomposeLayout lets the bottom bar be composed and measured first, then the main content be composed with that measurement in the same frame, avoiding the cyclical phase dependency from onGloballyPositioned and nested delays; boxWithConstraints is a simpler subcomposition-backed option.

AI-written summary · about

  1. 0:00Custom layouts & subcomposition
  2. 4:17Why use custom layouts
  3. 7:54Performance benefits
  4. 11:45Non-performance reasons
  5. 15:37Avoiding cyclical dependencies
  6. 21:49Tooling & productivity impact
  7. 25:00Subcomposition demo
  8. 31:45How subcompose layout works
  9. 37:00When to use subcomposition
  10. 39:48Summary
~/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.