~/talk

Loving Lean Layouts

Talkat DroidKaigi 2016 · 2016-02-18..02-19· [android]
links:none on file
slides:none on file

Layouts that are simple and shallow cut memory and CPU: replacing a LinearLayout + ImageView + TextView with a single TextView using compound drawables drops three views to one and reduces depth. Tools shown include Hierarchy Viewer (visual tree + millisecond timings), systrace, dumpsys gfxinfo and Marshmallow frame stats. Pitfalls: RelativeLayout doubles measure passes (and multiplies when nested), nested weights and list-item replication amplify cost. Custom ViewGroups or drawing on canvas remove extra passes but cost development time.

AI-written summary · about

  1. 0:00Introduction
  2. 2:02Agenda
  3. 2:43What is Lean
  4. 3:48Performance
  5. 5:30Maintainability
  6. 7:31View Hierarchy
  7. 8:47Performance Problems
  8. 13:48Hierarchy Viewer
  9. 19:20Fixing Problems
  10. 23:50Simplify and Reduce
  11. 32:22Custom View Groups
  12. 35:43Good Practices
~/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.