~/talk

Thinking outside the Box: Custom Compose layouts

Talkat droidcon London 2022 · 2022-10-27..10-28· [android, component-design]
links:none on file
slides:none on file

Implements a custom header and a time-graph layout using the layout composable, defines alignment lines on first/last labels and computes bar positions as start/end fractions between those lines, and measures children with exact constraints; demonstrates when to use SubcomposeLayout (dynamic child composition) versus slot-based measurables and warns about its performance cost; builds a lazy layout (lazy time graph) that treats each line as fixed height so scroll offset maps to first-visible index, composes only visible items, and works with an int-consuming scrollableState; uses experimental 1.3 APIs.

AI-written summary · about

  1. 0:00Introduction to custom layouts
  2. 3:57Custom layout theory and basics
  3. 6:49Header layout implementation
  4. 8:16Time graph custom layout
  5. 14:18Subcompose layout explained
  6. 18:54Lazy layout fundamentals
  7. 23:52Lazy time graph state
  8. 29:27Final lazy layout implementation
  9. 30:49Summary 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.