ConstraintLayout, Inside and Out
summary
ConstraintLayout ships as an unbundled support library now at alpha 9 and aims to flatten nested view hierarchies by solving positioning and sizing as linear constraints. It uses the Cassowary solver (same approach as iOS Auto Layout), converts XML attrs into widgets, and even a single centered button generates about 16 equations. Key practical features: use 0dp match_constraint instead of match_parent, dimensionRatio (width/height), guidelines, chains for weight/packing, and ConstraintSet for animated scene transitions.
AI-written summary · about
chapters (8)
- 0:00Introduction to ConstraintLayout
- 3:24Why flatten view hierarchies
- 11:50Sizing views in ConstraintLayout
- 16:03Ratio constraints and chains
- 20:36ConstraintSet for animations
- 23:05How ConstraintLayout works internally
- 31:58Future nesting possibilities
- 33:42Resources and Q&A
related talks
37mAdvanced ConstraintLayout
51mDesigning User Interfaces with Android Studio and ConstraintLayout
29mDemystifying Constraint Layout
32mConstraintLayout all the things!
50mConstraintLayout, now and future
36mEverything You Need to Know About ConstraintLayout
46mConstraintLayout 2.0
37mConstraintLayout deep dive
