MotionLayout & ConstraintLayout 2.0
summary
ConstraintLayout 2.0 adds MotionLayout, a working subclass that lets layouts animate via declarative XML instead of custom code, with an Android Studio motion editor and GitHub examples; current release is alpha2 and alpha3 changes are planned but compatible. Key features: constraint sets swapped for start/end states, keyframes (position, attribute, cycle) and color/custom-property animation, and onSwipe touch-driven gestures that account for velocity/acceleration. Helpers like guidelines, barriers and virtual layouts reduce view hierarchy churn and make complex coordinated transitions reproducible without re-inflating views.
AI-written summary · about








