~/talk

ConstraintLayout, Inside and Out

Talkat droidcon NYC 2016 · 2016-09-29..09-30· [android, web-performance]
slides:none on file

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

  1. 0:00Introduction to ConstraintLayout
  2. 3:24Why flatten view hierarchies
  3. 11:50Sizing views in ConstraintLayout
  4. 16:03Ratio constraints and chains
  5. 20:36ConstraintSet for animations
  6. 23:05How ConstraintLayout works internally
  7. 31:58Future nesting possibilities
  8. 33:42Resources and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.