~/talk

Writing performant layouts

Talkat droidcon APAC 2020 · 2020-12-14..12-15· [web-performance]
links:none on file
slides:none on file

Explains how Android rendering hits a 60fps budget of 16ms per frame and shows a case where traversal takes ~19ms, causing jank, then uses Layout Inspector, Lint, Systrace and Android Profiler to find costly nested parents. Replaces included headers with the merge tag, swaps heavy includes for ViewStub where appropriate, measures with the FrameMetrics API, and reports about a ~40% render cost reduction by flattening layouts and preferring ConstraintLayout over Relative/Grid/weighted Linear layouts.

AI-written summary · about

  1. 0:00Introduction to performant layouts
  2. 2:15Diagnosing layout issues
  3. 5:10Optimizing nested layouts
  4. 8:47Replacing include tags with merge
  5. 11:36Constraint vs relative layouts
  6. 14:25Lazy loading views with ViewStub
  7. 17:40Recap and best practices
  8. 19:50Drawbacks of over-optimization
  9. 20:36Q&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.