android-custom-drawing-canvas
Installation
SKILL.md
Android Custom Drawing & Canvas ✏️🎨
Advanced strategies for high-performance, pixel-level custom UI components, data visualization, and creative graphics in Jetpack Compose.
⚡ When to Use
- Custom Charts: Drawing pie, bar, or line charts with precise control.
- Complex UI Elements: Building circular progress bars or custom sliders.
- Graphic Effects: Applying shaders (AGSL), gradients, or masks.
- Dynamic Graphics: Hand-drawn signatures or interactive shapes.
- Particle Systems: Drawing lightweight, dynamic visual effects.
🏗️ Drawing with Canvas
- Rule: Use
Modifier.drawBehind { ... }orCanvas(modifier = ...) { ... }. - Coordinate System: (0,0) is TOP-LEFT.
- Draw Scope: Access built-in methods like
drawRect,drawCircle,drawPath.