~/talk

Animating content changes with Jetpack Compose

Talkat droidcon San Francisco 2023 · 2023-06-08..06-09· [android, web-animation]
slides:none on file

Crossfade and animateContentSize handle simple content swaps and expand/contract transitions; crossfade gives a one-line fade, animateContentSize animates size but reserves a maximum height so parents must allow space. Use AnimatedVisibility for list-to-detail show/hide, AnimatedContent with a contentTransform (slideIntoContainer, sizeTransform) for drawers/cards, and BottomSheetScaffold or ModalBottomSheet for draggable sheets. Dialogs require a build delay (about 300 ms) and a coroutine-delayed onDismiss so enter and exit animations actually run.

AI-written summary · about

  1. 0:00Introduction to animations
  2. 1:55Four types of content animations
  3. 2:37Content to content transitions
  4. 4:24List to detail animations
  5. 6:08Navigation drawer animations
  6. 7:55Bottom sheet animations
  7. 9:39Slide animations for corner content
  8. 11:26Dialogue animations explained
  9. 15:22Summary and best practices
~/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.