~/talk

Do the Loco-MotionLayout: Building animations with MotionLayout

Talkat droidcon London 2019 · 2019-10-24..10-25· [android, web-animation]
links:none on file
slides:none on file

Shows how MotionLayout (ConstraintLayout subclass) drives a multi‑stage book-detail animation built from XML motion scenes, using a motion scene file, swipe and click handlers (swipe for drag, click uses toggle, 1s duration), keyframes to time fades (title/text at frame 70% and 10%), and key position with percentX=1 to fix diagonal paths. Uses custom attributes for MaterialCardView radius, a transition listener to recolor a drawable, ConstraintLayout 2.0 beta and Android Studio 4.0 motion editor (glitchy). Pixel 3 runs at 60fps, HTC One M7 ~30fps.

AI-written summary · about

  1. 0:00Introduction to MotionLayout
  2. 1:43What is MotionLayout
  3. 3:09Setting up MotionLayout
  4. 9:10Adding synopsis card
  5. 12:06Text fade-in with key frames
  6. 15:36Creating second scene
  7. 18:02Custom attributes for corners
  8. 21:18Book cover shadow fix
  9. 23:02Sliding in detail text
  10. 24:48Transition listener for colors
  11. 25:53Staggered button animations
  12. 28:27Fixing button paths with key position
  13. 32:01Adding scrollable list
  14. 33:08Combining scenes
  15. 35:34Live demo with Motion Editor
  16. 41:21Considerations and performance
  17. 43:31Tips and next steps
  18. 44:56Q&A 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.