What's new in ConstraintLayout
summary
ConstraintLayout 2 adds concrete features: MotionLayout animates between full constraint sets with keyframes, key attributes and key cycles; the team ships 2.0 beta1 and a MotionScene XML model plus a Motion Editor for Android Studio. Virtual helpers like Flow virtual layout handle wrapping/chaining without extra view groups. Runtime APIs such as ConstraintSet let code swap states; examples include draggable RecyclerView item expansion and multi-state swipe carousels that run smoothly.
AI-written summary · about
chapters (33)
- 0:00Why ConstraintLayout
- 0:43Helper Objects
- 1:46ConstraintSet
- 2:48ConstructLayer
- 3:05Virtual layouts
- 3:38Atomization
- 3:54Motion Layout
- 4:05Gradle dependency
- 4:42Architecture
- 5:12Helpers
- 5:23Constraint Helpers
- 6:17Circular Reveal
- 6:40Virtual Layout
- 7:12Flow
- 8:00Chains
- 10:10ConstraintSet API
- 10:44More
- 11:21Motion Scene
- 11:32How it works
- 11:53Coordinate systems
- 12:32Behaviors
- 13:05Motion
- 14:32Key Position
- 15:12Key Cycles
- 16:14Programmatic Control
- 18:08Touch Handling
- 18:43Motion Editor
- 20:59How to use Motion
- 22:32Custom Components
- 25:04Motion Components
- 27:11RecyclerView Motion Components
- 30:12MultiState Carousel
- 31:59Examples








