public class RecyclingBitmapDrawable
extends android.graphics.drawable.BitmapDrawable
recycle() will be called on this drawable's bitmap.
Most of the code is taken from the Android best practice of displaying Bitmaps Displaying Bitmaps Efficiently.| Constructor and Description |
|---|
RecyclingBitmapDrawable(android.content.res.Resources res,
android.graphics.Bitmap bitmap) |
| Modifier and Type | Method and Description |
|---|---|
void |
setIsCached(boolean isCached)
Notify the drawable that the cache state has changed.
|
void |
setIsDisplayed(boolean isDisplayed)
Notify the drawable that the displayed state has changed.
|
draw, getAlpha, getBitmap, getChangingConfigurations, getConstantState, getGravity, getIntrinsicHeight, getIntrinsicWidth, getOpacity, getPaint, getTileModeX, getTileModeY, hasAntiAlias, hasMipMap, inflate, isAutoMirrored, mutate, onBoundsChange, setAlpha, setAntiAlias, setAutoMirrored, setColorFilter, setDither, setFilterBitmap, setGravity, setMipMap, 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 RecyclingBitmapDrawable(android.content.res.Resources res,
android.graphics.Bitmap bitmap)
public void setIsDisplayed(boolean isDisplayed)
public void setIsCached(boolean isCached)