Advanced ConstraintLayout
summary
ConstraintLayout 1.0 is a flat, expressive layout with deep Android Studio integration and 1.1 adds barriers and groups, placeholder support, percent dimensions and ConstraintSet-based animation. The team ships a custom Cassowary-derived solver optimized to about 80 KB per 1000 constraints, plus an optimizer that skips the solver when possible. Beware match_constraint (0dp) causes a second measurement pass for wrapped content; chains, chains-with-bias, and barriers enable surprising layout behaviors that the solver resolves.
AI-written summary · about
chapters (25)
- 0:00Intro
- 0:13What is it
- 1:47The Tetris Model
- 4:23Flat Layouts
- 6:28Simplex
- 7:07Cassowary
- 9:22ConstraintLayout solver
- 10:21Constraints Model
- 12:06Constraint Layout
- 15:28Optimizer - wrap content
- 16:19Optimizer - Direct resolution
- 17:20Optimizer - Chains
- 21:22Gone Behavior
- 22:13Gone Margins
- 22:50Example
- 24:23Barriers
- 26:38Groups
- 28:10Placeholder
- 29:45Dimension Constraints
- 32:00default=wrap
- 34:31Percent Dimension
- 38:14ConstraintLayout : choreographer
- 39:45Custom Transitions
- 40:04What's next
- 42:29Documentation








