protected abstract static class MediaStoreHelper.LoaderDrawable
extends android.graphics.drawable.Drawable
implements java.lang.Runnable
| Constructor and Description |
|---|
LoaderDrawable(android.content.ContentResolver cr,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract android.graphics.Bitmap |
checkBitmapCache(int hashCode,
long id) |
protected abstract MediaStoreHelper.ImageLoader |
createThumbnailLoader() |
void |
draw(android.graphics.Canvas canvas) |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getOpacity() |
protected void |
onBoundsChange(android.graphics.Rect bounds) |
void |
run()
callback to set bitmap on UI thread after asyncronus loading
request call this callback in ThumbnailLoader#run at the end of asyncronus loading
|
void |
setAlpha(int alpha) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
void |
startLoad(int media_type,
int hashCode,
long id)
start loading image asynchronusly
|
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic LoaderDrawable(android.content.ContentResolver cr,
int width,
int height)
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange in class android.graphics.drawable.Drawablepublic void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic void setAlpha(int alpha)
setAlpha in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter in class android.graphics.drawable.Drawablepublic int getIntrinsicWidth()
getIntrinsicWidth in class android.graphics.drawable.Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic void run()
run in interface java.lang.Runnableprotected abstract MediaStoreHelper.ImageLoader createThumbnailLoader()
protected abstract android.graphics.Bitmap checkBitmapCache(int hashCode,
long id)
public void startLoad(int media_type,
int hashCode,
long id)
id -