public class AnimationDrawable extends DrawableContainer implements Runnable, Animatable
DrawableContainer.DrawableContainerStateDrawable.Callback, Drawable.ConstantState| Constructor and Description |
|---|
AnimationDrawable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFrame(Drawable frame,
int duration) |
int |
getDuration(int i) |
Drawable |
getFrame(int index) |
int |
getNumberOfFrames() |
void |
inflate(Resources r,
org.xmlpull.v1.XmlPullParser parser,
AttributeSet attrs) |
boolean |
isOneShot() |
boolean |
isRunning() |
Drawable |
mutate() |
void |
run() |
void |
setOneShot(boolean oneShot) |
boolean |
setVisible(boolean visible,
boolean restart) |
void |
start() |
void |
stop() |
void |
unscheduleSelf(Runnable what) |
draw, getChangingConfigurations, getConstantState, getCurrent, getIntrinsicHeight, getIntrinsicWidth, getMinimumHeight, getMinimumWidth, getOpacity, getPadding, invalidateDrawable, isStateful, jumpToCurrentState, onBoundsChange, onLevelChange, onStateChange, scheduleDrawable, selectDrawable, setAlpha, setColorFilter, setConstantState, setDither, setEnterFadeDuration, setExitFadeDuration, unscheduleDrawableclearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getLevel, getState, getTransparentRegion, invalidateSelf, isVisible, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setFilterBitmap, setLevel, setStatepublic boolean setVisible(boolean visible,
boolean restart)
setVisible in class DrawableContainerpublic void start()
start in interface Animatablepublic void stop()
stop in interface Animatablepublic boolean isRunning()
isRunning in interface Animatablepublic void unscheduleSelf(Runnable what)
unscheduleSelf in class Drawablepublic int getNumberOfFrames()
public Drawable getFrame(int index)
public int getDuration(int i)
public boolean isOneShot()
public void setOneShot(boolean oneShot)
public void addFrame(Drawable frame, int duration)
public void inflate(Resources r, org.xmlpull.v1.XmlPullParser parser, AttributeSet attrs) throws org.xmlpull.v1.XmlPullParserException, IOException
inflate in class Drawableorg.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic Drawable mutate()
mutate in class DrawableContainerCopyright © 2008-2013. All Rights Reserved.