~/talk

Writing performant layouts

Talkat droidcon EMEA 2020 · 2020-10-08..10-09· [web-performance, android]
name:none on file
slides:none on file

Shows how nested layouts cause double measurement (two passes) and jank, and how tools find the culprits: Layout Inspector, Lint, Systrace/Frame Metrics API and Android Profiler (look for red frames >16ms, example 20ms). Replacing nested includes with the merge tag and using ViewStub to delay inflation cuts cost; prefer ConstraintLayout for complex screens (measured ~40% faster vs nested Relative/Linear) and FrameLayout for overlays. Notes tradeoffs: merge breaks data binding and ConstraintLayout can be harder to maintain.

AI-written summary · about

  1. 0:00Introduction to layout performance
  2. 2:25How Android renders frames
  3. 4:15Diagnosing layout issues with tools
  4. 6:01Why layouts cause jank
  5. 8:56Optimizing nested layouts with merge tag
  6. 10:20Choosing efficient parent layouts
  7. 11:47ConstraintLayout vs RelativeLayout
  8. 13:32Delaying view inflation with ViewStub
  9. 16:05Quick recap of optimizations
  10. 17:08Drawbacks of optimizations
  11. 18:37Q&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.