~/talk

ConstraintLayout 2.0 and MotionLayout Workshop

Talkat droidcon SF 2019 · 2019-11-18..11-19· [android, web-animation]
github:jafu888
slides:none on file

Live demo converts a ConstraintLayout to MotionLayout and uses the Motion Editor in Android Studio 4.0 Canary 4 with Constraint Layout 2.0 beta 3. The example builds a UI that auto-runs a fly‑in: views translate -500dp/+500dp, alpha from 0.0, and ImageFilterView crossfade 0→1; transitions attach to clicks and code, and keyCycle nodes add a sine rotation. Everything runs in the emulator and the generated motion scene XML matches the editor.

AI-written summary · about

  1. 0:00Workshop introduction
  2. 1:57Prerequisites and setup
  3. 4:02Starting the project
  4. 5:06Converting to MotionLayout
  5. 9:01Creating fly-in animation
  6. 16:02Adding multiple states
  7. 23:23Programmatic transitions
  8. 28:20Building login flow
  9. 32:11Dynamic state transitions
  10. 36:00Key cycles and effects
  11. 37:02Final demo 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.