Class of android.graphics.drawable · VectorDrawable.java · Android's reference
public class VectorDrawable extends Drawable
VectorDrawable ← Drawable
A drawable of vector paths, from a <vector> resource: groups (each a transform of its children), paths filled and stroked with colors, color state lists or gradients, and clip paths, in a viewport scaled to the bounds. The tint colors the whole drawable, as Android's does with its tint mode (src_in by default).
public VectorDrawable() sourcepublic void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Resources.Theme theme) throws XmlPullParserException, IOException sourcepublic void setTintList(ColorStateList tint) sourcepublic void setTintMode(PorterDuff.Mode tintMode) sourcepublic boolean isStateful() sourceprotected boolean onStateChange(int[] state) sourcepublic void draw(Canvas canvas) sourcepublic void setAlpha(int alpha) sourcepublic int getAlpha() sourcepublic void setColorFilter(ColorFilter colorFilter) sourcepublic ColorFilter getColorFilter() sourcepublic int getOpacity() sourcepublic int getIntrinsicWidth() sourcepublic int getIntrinsicHeight() sourcepublic boolean isAutoMirrored() sourcepublic void setAutoMirrored(boolean mirrored) sourcepublic Drawable mutate() sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.