public class CacheableBitmapDrawable
extends android.graphics.drawable.BitmapDrawable
| Modifier and Type | Field and Description |
|---|---|
static int |
SOURCE_INBITMAP |
static int |
SOURCE_NEW |
static int |
SOURCE_UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas canvas) |
int |
getSource() |
String |
getUrl() |
boolean |
isBeingDisplayed() |
boolean |
isBitmapMutable() |
boolean |
isBitmapValid()
Returns true when this wrapper has a bitmap and the bitmap has not been recycled.
|
boolean |
isReferencedByCache() |
void |
setBeingUsed(boolean beingUsed)
Used to signal to the Drawable whether it is being used or not.
|
getBitmap, getChangingConfigurations, getConstantState, getGravity, getIntrinsicHeight, getIntrinsicWidth, getOpacity, getPaint, getTileModeX, getTileModeY, inflate, mutate, onBoundsChange, setAlpha, setAntiAlias, setColorFilter, setDither, setFilterBitmap, setGravity, setTargetDensity, setTargetDensity, setTargetDensity, setTileModeX, setTileModeXY, setTileModeYclearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getCurrent, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, invalidateSelf, isStateful, isVisible, jumpToCurrentState, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setLevel, setState, setVisible, unscheduleSelfpublic static final int SOURCE_UNKNOWN
public static final int SOURCE_NEW
public static final int SOURCE_INBITMAP
public void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.BitmapDrawablepublic String getUrl()
public int getSource()
SOURCE_NEW, SOURCE_INBITMAP or SOURCE_UNKNOWN
depending on how this Bitmap was created.public boolean isBitmapValid()
public boolean isBitmapMutable()
public boolean isBeingDisplayed()
CacheableImageView.public boolean isReferencedByCache()
public void setBeingUsed(boolean beingUsed)
beingUsed - - true if being used, false if not.Copyright © 2013. All Rights Reserved.