~/talk

Make It Fit, how Android measures and draws views

Talkat Droidcon Paris 2013 · 2013-06-17..06-18· [android, web-performance]
speakerdeck:pflammertsma
slides:none on file

Shows how to implement reusable Android components: a font-aware TextView with attribute-based Typeface loading, caching via a HashMap, and a pie-chart View that animates by posting a Runnable and calling invalidate (or using the Choreographer). Covers exact code points: override onMeasure and call setMeasuredDimension, read attrs with obtainStyledAttributes and call TypedArray.recycle(), override onSizeChanged/onDraw, reuse Paints to avoid allocations, and detach to stop the animation. Demo compiles and renders in the IDE.

AI-written summary · about

  1. 0:00Start
  2. 0:51Custom components?
  3. 18:58Simple Animated View
  4. 23:16Simple TextView
~/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.