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.
|
applyTheme, canApplyTheme, draw, getAlpha, getBitmap, getChangingConfigurations, getColorFilter, getConstantState, getGravity, getIntrinsicHeight, getIntrinsicWidth, getOpacity, getOutline, getPaint, getTileModeX, getTileModeY, hasAntiAlias, hasMipMap, inflate, isAutoMirrored, isStateful, mutate, onBoundsChange, onStateChange, setAlpha, setAntiAlias, setAutoMirrored, setColorFilter, setDither, setFilterBitmap, setGravity, setMipMap, setTargetDensity, setTargetDensity, setTargetDensity, setTileModeX, setTileModeXY, setTileModeY, setTintList, setTintModeclearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getCurrent, getDirtyBounds, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isVisible, jumpToCurrentState, onLevelChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setHotspot, setHotspotBounds, setLevel, setState, setTint, setVisible, unscheduleSelfpublic RecyclingBitmapDrawable(android.content.res.Resources res,
android.graphics.Bitmap bitmap)
public void setIsDisplayed(boolean isDisplayed)
public void setIsCached(boolean isCached)