public final class DisplayImageOptions extends Object
image aware view
during image loadingimage aware view
if empty URI is passedimage aware view
if image loading failsimage aware view
should be reset
before image loading startImageDownloader
Bitmap
will be displayedDisplayImageOptions.Builder
:new DisplayImageOptions
.Builder().cacheInMemory()
.
showImageOnLoading()
.build()
createSimple()
限定符和类型 | 类和说明 |
---|---|
static class |
DisplayImageOptions.Builder
Builder for
DisplayImageOptions |
限定符和类型 | 方法和说明 |
---|---|
static DisplayImageOptions |
createSimple()
Creates options appropriate for single displaying:
View will not be reset before loading
Loaded image will not be cached in memory
Loaded image will not be cached on disk
ImageScaleType.IN_SAMPLE_POWER_OF_2 decoding type will be used
Bitmap.Config#ARGB_8888 bitmap config will be used for image decoding
SimpleBitmapDisplayer will be used for image displaying
These option are appropriate for simple single-use image (from drawables or from Internet) displaying. |
android.graphics.BitmapFactory.Options |
getDecodingOptions() |
int |
getDelayBeforeLoading() |
BitmapDisplayer |
getDisplayer() |
Object |
getExtraForDownloader() |
android.os.Handler |
getHandler() |
android.graphics.drawable.Drawable |
getImageForEmptyUri(android.content.res.Resources res) |
android.graphics.drawable.Drawable |
getImageOnFail(android.content.res.Resources res) |
android.graphics.drawable.Drawable |
getImageOnLoading(android.content.res.Resources res) |
ImageScaleType |
getImageScaleType() |
BitmapProcessor |
getPostProcessor() |
BitmapProcessor |
getPreProcessor() |
boolean |
isCacheInMemory() |
boolean |
isCacheOnDisk() |
boolean |
isConsiderExifParams() |
boolean |
isResetViewBeforeLoading() |
boolean |
shouldDelayBeforeLoading() |
boolean |
shouldPostProcess() |
boolean |
shouldPreProcess() |
boolean |
shouldShowImageForEmptyUri() |
boolean |
shouldShowImageOnFail() |
boolean |
shouldShowImageOnLoading() |
public boolean shouldShowImageOnLoading()
public boolean shouldShowImageForEmptyUri()
public boolean shouldShowImageOnFail()
public boolean shouldPreProcess()
public boolean shouldPostProcess()
public boolean shouldDelayBeforeLoading()
public android.graphics.drawable.Drawable getImageOnLoading(android.content.res.Resources res)
public android.graphics.drawable.Drawable getImageForEmptyUri(android.content.res.Resources res)
public android.graphics.drawable.Drawable getImageOnFail(android.content.res.Resources res)
public boolean isResetViewBeforeLoading()
public boolean isCacheInMemory()
public boolean isCacheOnDisk()
public ImageScaleType getImageScaleType()
public android.graphics.BitmapFactory.Options getDecodingOptions()
public int getDelayBeforeLoading()
public boolean isConsiderExifParams()
public Object getExtraForDownloader()
public BitmapProcessor getPreProcessor()
public BitmapProcessor getPostProcessor()
public BitmapDisplayer getDisplayer()
public android.os.Handler getHandler()
public static DisplayImageOptions createSimple()
ImageScaleType.IN_SAMPLE_POWER_OF_2
decoding type will be usedBitmap.Config#ARGB_8888
bitmap config will be used for image decodingSimpleBitmapDisplayer
will be used for image displaying