|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.graphics.drawable.Drawable
com.bumptech.glide.load.resource.drawable.GlideDrawable
com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable
public class GlideBitmapDrawable
A static GlideDrawable
for displaying a single image.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class android.graphics.drawable.Drawable |
---|
android.graphics.drawable.Drawable.Callback, android.graphics.drawable.Drawable.ConstantState |
Field Summary |
---|
Fields inherited from class com.bumptech.glide.load.resource.drawable.GlideDrawable |
---|
LOOP_FOREVER, LOOP_INTRINSIC |
Constructor Summary | |
---|---|
GlideBitmapDrawable(android.content.res.Resources res,
android.graphics.Bitmap bitmap)
|
Method Summary | |
---|---|
void |
draw(android.graphics.Canvas canvas)
|
android.graphics.Bitmap |
getBitmap()
|
android.graphics.drawable.Drawable.ConstantState |
getConstantState()
|
int |
getIntrinsicHeight()
|
int |
getIntrinsicWidth()
|
int |
getOpacity()
|
boolean |
isAnimated()
Returns true if this drawable is animated. |
boolean |
isRunning()
|
android.graphics.drawable.Drawable |
mutate()
|
protected void |
onBoundsChange(android.graphics.Rect bounds)
|
void |
setAlpha(int alpha)
|
void |
setColorFilter(android.graphics.ColorFilter colorFilter)
|
void |
setLoopCount(int loopCount)
Sets the number of times the animation should loop. |
void |
start()
|
void |
stop()
|
Methods inherited from class android.graphics.drawable.Drawable |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlideBitmapDrawable(android.content.res.Resources res, android.graphics.Bitmap bitmap)
Method Detail |
---|
public int getIntrinsicWidth()
getIntrinsicWidth
in class android.graphics.drawable.Drawable
public int getIntrinsicHeight()
getIntrinsicHeight
in class android.graphics.drawable.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(android.graphics.Rect bounds)
onBoundsChange
in class android.graphics.drawable.Drawable
public android.graphics.drawable.Drawable.ConstantState getConstantState()
getConstantState
in class android.graphics.drawable.Drawable
public void draw(android.graphics.Canvas canvas)
draw
in class android.graphics.drawable.Drawable
public void setAlpha(int alpha)
setAlpha
in class android.graphics.drawable.Drawable
public void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter
in class android.graphics.drawable.Drawable
public int getOpacity()
getOpacity
in class android.graphics.drawable.Drawable
public android.graphics.drawable.Drawable mutate()
mutate
in class android.graphics.drawable.Drawable
public android.graphics.Bitmap getBitmap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |