~/talk

Advanced Layout Animations in Compose

Talkat droidcon Berlin 2024 · 2024-07-03..07-05· [android]
name:Doris Liu
links:none on file
slides:none on file

Explains how Compose implements layout animations by adding a new lookahead pass that measures target bounds so animations chase stable layouts instead of current animated sizes, with a follow up approach pass that interpolates from current to target bounds. Shows APIs used: shared transition layout, modifier.sharedElement and modifier.sharedBounds, resize modes scaleToBounds versus remeasureToBounds, skipToLookaheadSize to avoid text reflow, overlay behavior and how predictive back on Android 15+ integrates with seekable transitions.

AI-written summary · about

  1. 0:00Welcome
  2. 1:07Basic layout animations
  3. 2:12How layout animations work
  4. 4:20Look ahead for stable layouts
  5. 6:26Higher-level shared element APIs
  6. 8:53Tagging and matching shared elements
  7. 10:39Shared bounds vs shared elements
  8. 13:06Resize modes for shared elements
  9. 14:32Shared element overlay
  10. 17:23Skip intermediate sizes
  11. 18:26Clipping issues in transitions
  12. 21:35Modifier ordering
  13. 23:01Shared elements with predictive back
  14. 24:04Shared element transitions under the hood
  15. 36:32Summary and next steps
~/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.