~/talk

Please, Draw Me a View

TalkinFrenchat Android Makers 2019 · on Wednesday, 2019-04-24· [android, web-animation]
slides:none on file

Shows how to build a custom Android View by extending View, capturing size in onSizeChanged, and drawing with Canvas and Paint using drawRect, drawCircle, drawArc, and drawPath. Demonstrates using translate/rotate and save/restore to compose and animate, using Path and arcs for complex shapes, StaticLayout for multi-line text, ValueAnimator for property animation, gesture detection, and OutlineProvider for elevation. Gives a concrete, working example: a custom view with four animated arcs and small balls that swap positions.

AI-written summary · about

  1. 0:00Welcome
  2. 1:10Custom views with Canvas
  3. 3:59Canvas and Paint basics
  4. 6:04Drawing rectangles and circles
  5. 8:33Canvas transformations
  6. 10:19View examples
  7. 14:17Drawing text with StaticLayout
  8. 17:48Complex shapes with Path
  9. 20:45Drawing arcs and circles
  10. 22:53Elevation and shadows
  11. 23:54Bézier curves and gestures
  12. 24:39Animating views with ValueAnimator
  13. 28:09Complete clock example
  14. 31:42Gesture handling
  15. 33:46View measurement
  16. 35:54PorterDuff and effects
  17. 37:40Material Design integration
  18. 39:05Conclusion
~/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.