Designing With Constraints
summary
Covers concrete Android tips for ConstraintLayout: use match_constraint instead of match_parent, center with 0dp constraints and bias, enforce aspect ratios, align text with baseline, and group views with chains, guideline and barrier helpers to handle translated strings. Describes ConstraintLayout 1.0/1.1 features and shows MotionLayout (ConstraintLayout 2.0) animating between two constraint sets via a motion scene XML to build collapsible headers and state transitions; sample code and alpha2 are available and the approach works declaratively.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 0:30Overview
- 0:55What are constraints
- 8:15Login form example
- 9:10Font metrics
- 9:50Constraint layout
- 12:20Constraint chain
- 13:45Vertical guide line
- 14:53Left to justified
- 15:53Password constraint
- 16:14Password overflow
- 16:30Barrier
- 17:23Barriers
- 17:34Motion Layout
- 20:44MotionLayout
- 21:28Animation
- 23:55Motion Layout File
- 24:33Motion Scenes File
- 25:51Adding Constraints
related talks
38mDesigning With Constraints
37mConstraintLayout deep dive
50mConstraintLayout, now and future
51mDesigning User Interfaces with Android Studio and ConstraintLayout
43mAdvanced ConstraintLayout
48mConquering Common Conundrums with ConstraintLayout
37mAdvanced ConstraintLayout
38mConquering Common Conundrums with ConstraintLayout
