Custom Views - The Definitive Guide
summary
Covers how to build custom Android Views, explaining when and why to create them and which Android APIs to use (View, Canvas, Drawable, onMeasure/onLayout/onDraw). Describes practical techniques for custom drawing, handling touch events, performance optimizations and reuse through attributes and custom components.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:52What is a Custom View
- 8:05Custom View lifecycle
- 12:52Building Custom View from scratch
- 17:36Saving Custom View state
- 21:41Layout updates
- 24:51Documentation and resources
related talks
40mWriting Custom Views for Android
42mMeasure. Layout. Draw. Repeat: Custom Views and ViewGroups
40mPlease, Draw Me a View
49mCustom Drawing with Canvas
51mMeasure, Layout, Draw, Repeat: Custom Views and ViewGroups
32mA Skeptics Guide to Programmatic Views on Android
51mCrafting Custom Android Views
26mAndroid Platform Views Past, Present, Future
