AnimatedVectorDrawable

Class of android.graphics.drawable · AnimatedVectorDrawable.java · Android's reference

public class AnimatedVectorDrawable extends Drawable implements Animatable2

AnimatedVectorDrawable ← Drawable

A vector drawable with animators. It draws its vector as the animations start it (their first frame is not applied), and its animation has no frames: a start tells the callbacks that the animation started, and a stop that it ended.

Constructors

public AnimatedVectorDrawable() empty body source

Methods

public void inflate(android.content.res.Resources r, org.xmlpull.v1.XmlPullParser parser, android.util.AttributeSet attrs, android.content.res.Resources.Theme theme) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException source

an animated vector's android:drawable: the vector it animates (its targets are not played)

public void draw(Canvas canvas) source
protected void onBoundsChange(android.graphics.Rect bounds) source
protected boolean onStateChange(int[] state) source
public boolean isStateful() source
public int getIntrinsicWidth() source
public int getIntrinsicHeight() source
public void setAlpha(int alpha) source
public int getAlpha() source
public void setColorFilter(ColorFilter colorFilter) source
public ColorFilter getColorFilter() source
public void setTintList(android.content.res.ColorStateList tint) source
public void setTintMode(android.graphics.PorterDuff.Mode mode) source
public int getOpacity() source
public void start() source
public void stop() source
public void reset() source
public void reverse() empty body source
public boolean canReverse() source
public boolean isRunning() source
public void registerAnimationCallback(AnimationCallback callback) source
public boolean unregisterAnimationCallback(AnimationCallback callback) source
public void clearAnimationCallbacks() source

Made 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.