~/talk

Measure. Layout. Draw. Repeat: Custom Views and ViewGroups

Talkat Oredev 2017 · 2017-11-08..11-10· [android]
slides:none on file

Argues that custom Views and ViewGroups let Android UIs get unique looks, better performance, and reusable components by showing concrete code: builds a working tally counter (Canvas, Paint, text measurement, calls invalidate to redraw) and a composite list-item view group that measures and lays out children (uses measure specs and measureChildWithMargins), explains onFinishInflate timing, warns that RelativeLayout may measure twice so nesting costs explode, and fixes a hidden button by implementing onMeasure correctly.

AI-written summary · about

  1. 0:00Introduction
  2. 5:29Flat Custom Views
  3. 11:51Count Counter
  4. 12:18Constructors
  5. 17:51Tally Counter
  6. 20:06Draw Tips
  7. 21:36Measure
  8. 29:14ViewGroups
  9. 31:44Practice
  10. 32:06Custom ViewGroup
  11. 33:08Layout Parameters
  12. 36:05ViewGroup Methods
  13. 38:04Measure Layout
~/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.