~/talk

Crafting Custom Android Views

Talkat Droidcon Paris 2013 · 2013-06-17..06-18· [android, frontend-architecture]
slides:none on file

Creates a reusable UnderlineTextView that extends TextView, adds a Paint and underline height, uses setPadding to avoid changing onMeasure, draws a bottom rect in onDraw, loads attrs from attrs.xml via TypedArray and recycles it, and demos in Android Studio with Gradle — the demo runs. Covers saving view state with BaseSavedState Parcelable pattern, touch handling with VelocityTracker and flinging via OverScroller plus postOnAnimation, and platform-consistent feedback like EdgeEffect and scaled ViewConfiguration constants.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:55Understanding Android views
  3. 8:18Why create custom views
  4. 12:43Demo: custom underline view
  5. 23:04Advanced rendering passes
  6. 28:31State saving and restoration
  7. 31:49Touch event handling
  8. 35:58Animations and velocity
  9. 41:25Consistency and edge effects
  10. 45:16Conclusion and Q&A
~/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.