~/talk

Collapsing Toolbar with Parallax Effect and Curved Animation with Jetpack Compose

TalkinFrenchat Android Makers by droidcon 2023 · 2023-04-27..04-28· [android, web-animation]
links:none on file
slides:none on file

Shows how to build a collapsing toolbar with a parallax header and a curved-title motion using only Jetpack Compose (no third-party libraries). Models header alpha as an affine function and triggers collapse when scroll > headerHeight - toolbarHeight (275dp vs 56dp), animates title X/Y via lerp and creates a quadratic Bézier by double lerp, uses graphicLayer and animatedVisibility, and demonstrates near-zero recompositions in Layout Inspector (only the toolbar recomposes).

AI-written summary · about

  1. 0:00Compose animation intro
  2. 1:09Project goals
  3. 2:36Box and composables
  4. 4:26Parallax effect
  5. 6:10Fade animation affine
  6. 8:18Toolbar reveal threshold
  7. 9:59Linear interpolation intro
  8. 13:11Title translation linear
  9. 15:19Quadratic Bézier curves
  10. 18:48Quadratic Bézier impl
  11. 19:11Animation demo
  12. 19:52Performance Layout Inspector
  13. 21:57Optimizing recompositions
  14. 23:43Performance best practices
  15. 24:26Advanced examples
  16. 25:30Conclusion
~/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.