~/talk

Loving Lean Layout

Talkat droidcon Berlin 2016 · 2016-06-15..06-17· [android, web-performance]
slides:none on file

Layouts cost by view count and hierarchy depth, which multiplies measure/layout work and causes jank; RelativeLayout forces an extra measure/layout pass (and nesting multiplies that), lists repeat item cost, and nested weights explode computation. Use Hierarchy Viewer and Android Studio’s Layout Inspector for structure, Systrace or dump gfxinfo for frame timing and FrameMetricsListener on N for per-frame stats, run lint to catch useless parents and deep nesting, replace ImageView+TextView with compound drawables or multiple TextViews with spannables, try ConstraintLayout (alpha) or custom ViewGroups when necessary.

AI-written summary · about

  1. 0:00Introduction to lean layouts
  2. 1:39Why performance matters
  3. 5:32Understanding view rendering
  4. 9:38Finding layout problems
  5. 11:47Using Hierarchy Viewer
  6. 12:57Layout inspector tools
  7. 14:15Advanced performance tools
  8. 16:12Fixing layout issues
  9. 20:15Optimizing with attributes
  10. 22:58Spannables and flattening
  11. 24:52Choosing the right layout
  12. 26:04Constraint layout
  13. 26:53Going custom
  14. 29:14Good practices for layouts
  15. 31:53Q&A session
~/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.