Let's sprinkle some #PerfMatters on our ViewGroups (fr)
summary
Claims that replacing generic layouts and TextViews with a purpose-built flat ViewGroup and direct text drawing using Android text layouts yields real, measurable gains. Uses systrace and Hierarchy Viewer to find expensive layout passes, then implements a custom onMeasure/onLayout and draws text with StaticLayout on the canvas to avoid per-child layout and heavy view inflation. Targets the 16ms frame budget for 60fps, shows far fewer missed frames on devices like the Moto G, and verifies improvements with frame stats.
AI-written summary · about
chapters (6)
- 0:00Start
- 17:50RelativeLayout
- 22:46A simple example
- 34:13Another potential bottleneck : TextView
- 37:41Did you say boring?
- 41:56Advantages
related talks
30mLet’s Sprinkle some #PerfMatters on your ViewGroups
35mMake It Fit, how Android measures and draws views
39mView performance deep dive
48mEfficient Android Layouts
53mGraphics Something Android Something Performance
35mLoving Lean Layout
45mFinding and Fixing Performance Problems
37mUI profiling in examples. Where is my bottleneck?
