public class GlideBitmapDrawable extends GlideDrawable
GlideDrawable for displaying a single image.Drawable.Callback, Drawable.ConstantStateLOOP_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, unscheduleSelfpublic int getIntrinsicWidth()
getIntrinsicWidth in class Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight in class Drawablepublic boolean isAnimated()
GlideDrawabletrue if this drawable is animated.isAnimated in class GlideDrawablepublic void setLoopCount(int loopCount)
GlideDrawable()} returns true. A loop count of <=0 indicates loop forever.setLoopCount in class GlideDrawablepublic void start()
public void stop()
public boolean isRunning()
protected void onBoundsChange(Rect bounds)
onBoundsChange in class Drawablepublic Drawable.ConstantState getConstantState()
getConstantState in class Drawablepublic void setColorFilter(ColorFilter colorFilter)
setColorFilter in class Drawablepublic int getOpacity()
getOpacity in class Drawablepublic Bitmap getBitmap()