Draw me a rainbow: Advanced VectorDrawable rendering
summary
VectorDrawables support theme colors and tinting (e.g. ColorControlNormal or colorPrimary), work back to API14 with AndroidX, and accept stateful paint via ColorStateLists so a single asset can change on press or selection. Gradients include linear, radial and sweep gradients with per-stop control, tile modes (clamp/repeat/mirror), and can be transformed (scaleY) to fake shadows; AAPT extracts inline gradients to resources; one illustration shrinks to roughly one fifth the PNG size and stays sharp.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:38Overview
- 0:55Theme colors
- 1:26Color primary
- 1:44Close state lists
- 2:10Gradients
- 2:49Who uses gradients
- 3:51Tile mode
- 4:11Gradient mode








