Android demo demonstrates how to use custom views and do basic drawing with two different demos:
- Shape Demo - Displays custom control for selecting a shape
- Painting Demo - Custom drawing with a simple canvas the user can paint on.
Dig into the source code for more or checkout the related guides for Basic Painting or Custom Views!
Shape Demo
- Use case #1: Draw some shapes
- Displays shape onto a view
- Use case #4: Custom input view
- Shape Selector includes drawing, touch, xml attributes, measure
Painting Demo
- Use case #3: Simple painting with paths
- Simple painting on a view