public class RecyclingBitmapDrawable
extends android.graphics.drawable.BitmapDrawable
recycle() will be called on this drawable's bitmap.| 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, isFilterBitmap, 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, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isVisible, jumpToCurrentState, onLayoutDirectionChanged, onLevelChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setVisible, unscheduleSelfpublic RecyclingBitmapDrawable(android.content.res.Resources res,
android.graphics.Bitmap bitmap)
public void setIsDisplayed(boolean isDisplayed)
isDisplayed - - Whether the drawable is being displayed or notpublic void setIsCached(boolean isCached)
isCached - - Whether the drawable is being cached or not