~/talk

Writing Custom Views for Android

Talkat Google I/O 2013 · 2013-05-15..05-17· [android]
links:none on file
slides:none on file

Covers concrete practices for custom Android views: use onAttachedToWindow and onDetachedFromWindow to allocate and release resources, prefer the animation framework over manual timers for pulsing effects, and avoid deep view hierarchies because requestLayout bubbles up and is expensive. Explains measure/layout with MeasureSpec modes (EXACTLY, AT_MOST, UNSPECIFIED), how to implement custom LayoutParams, when to override onDraw versus dispatchDraw, touch negotiation via onInterceptTouchEvent and getScaledTouchSlop, and how to save view state correctly.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42Why write custom views
  3. 3:48Life overview
  4. 22:50Drawing
  5. 26:59Instance State
  6. 29:21Touch Events
  7. 36:33Animations
~/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.