~/talk

In‑Depth: ViewGroup Layout Internal Implementation

TalkinJapaneseat DroidKaigi 2018 · 2018-02-08..02-09· [android]
links:none on file
slides:none on file

Explains Android view measurement and layout internals: ViewGroup dispatches measure→layout top-down. FrameLayout re-measures children with EXACT specs if the parent shrinks. LinearLayout performs two measurement passes to implement weight, skipping the first pass for children with 0dp+weight. ConstraintLayout builds a parallel widget tree and resolves constraints with a LinearSystem solver (Simplex / solver library) and a fast Optimizer path, sometimes invoking the solver and widget layout up to three times to converge.

AI-written summary · about

  1. 0:00Introduction
  2. 2:59ViewGroup layout flow
  3. 4:43Measure vs onMeasure
  4. 6:56MeasureSpec explained
  5. 8:22Layout vs onLayout
  6. 10:14FrameLayout internals
  7. 12:59LinearLayout internals and weights
  8. 15:38ConstraintLayout math basis
  9. 17:11Linear programming basics
  10. 19:02Cassowary algorithm
  11. 21:14ConstraintLayout internals
  12. 23:23ConstraintLayout onMeasure
  13. 27:43ConstraintLayout onLayout
  14. 28:27ConstraintLayout Optimizer
  15. 29:32Summary & 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.