public abstract class GlideDrawable extends Drawable implements Animatable
BitmapDrawable
or
that contain an animation.Drawable.Callback, Drawable.ConstantState
Modifier and Type | Field and Description |
---|---|
static int |
LOOP_FOREVER
A constant indicating that an animated drawable should loop continuously.
|
static int |
LOOP_INTRINSIC
A constant indicating that an animated drawable should loop for its default number of times.
|
Constructor and Description |
---|
GlideDrawable() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isAnimated()
Returns
true if this drawable is animated. |
abstract void |
setLoopCount(int loopCount)
Sets the number of times the animation should loop.
|
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, draw, getAlpha, getBounds, getCallback, getChangingConfigurations, getConstantState, getCurrent, getIntrinsicHeight, getIntrinsicWidth, getLevel, getMinimumHeight, getMinimumWidth, getOpacity, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isAutoMirrored, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAlpha, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setColorFilter, setDither, setFilterBitmap, setLevel, setState, setVisible, unscheduleSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRunning, start, stop
public static final int LOOP_FOREVER
public static final int LOOP_INTRINSIC
public abstract boolean isAnimated()
true
if this drawable is animated.public abstract void setLoopCount(int loopCount)
()
} returns true
. A loop count of <=0 indicates loop forever.