public class GlideBitmapDrawable extends GlideDrawable
GlideDrawable
for displaying a single image.Drawable.Callback, Drawable.ConstantState
LOOP_FOREVER, LOOP_INTRINSIC
Constructor and Description |
---|
GlideBitmapDrawable(Resources res,
Bitmap bitmap) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Canvas canvas) |
Bitmap |
getBitmap() |
Drawable.ConstantState |
getConstantState() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getOpacity() |
boolean |
isAnimated()
Returns
true if this drawable is animated. |
boolean |
isRunning() |
Drawable |
mutate() |
protected void |
onBoundsChange(Rect bounds) |
void |
setAlpha(int alpha) |
void |
setColorFilter(ColorFilter colorFilter) |
void |
setLoopCount(int loopCount)
Sets the number of times the animation should loop.
|
void |
start() |
void |
stop() |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getCurrent, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isAutoMirrored, isStateful, isVisible, jumpToCurrentState, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setLevel, setState, setVisible, unscheduleSelf
public int getIntrinsicWidth()
getIntrinsicWidth
in class Drawable
public int getIntrinsicHeight()
getIntrinsicHeight
in class Drawable
public boolean isAnimated()
GlideDrawable
true
if this drawable is animated.isAnimated
in class GlideDrawable
public void setLoopCount(int loopCount)
GlideDrawable
()
} returns true
. A loop count of <=0 indicates loop forever.setLoopCount
in class GlideDrawable
public void start()
public void stop()
public boolean isRunning()
protected void onBoundsChange(Rect bounds)
onBoundsChange
in class Drawable
public Drawable.ConstantState getConstantState()
getConstantState
in class Drawable
public void setColorFilter(ColorFilter colorFilter)
setColorFilter
in class Drawable
public int getOpacity()
getOpacity
in class Drawable
public Bitmap getBitmap()