com.nostra13.universalimageloader.core
Class DisplayImageOptions
java.lang.Object
com.nostra13.universalimageloader.core.DisplayImageOptions
public final class DisplayImageOptions
- extends Object
Contains options for image display. Defines:
- whether stub image will be displayed in
image aware view
during image loading
- whether stub image will be displayed in
image aware view
if empty URI is passed
- whether stub image will be displayed in
image aware view
if image loading fails
- whether
image aware view
should be reset
before image loading start
- whether loaded image will be cached in memory
- whether loaded image will be cached on disk
- image scale type
- decoding options (including bitmap decoding configuration)
- delay before loading of image
- whether consider EXIF parameters of image
- auxiliary object which will be passed to
ImageDownloader
- pre-processor for image Bitmap (before caching in memory)
- post-processor for image Bitmap (after caching in memory, before displaying)
- how decoded
Bitmap
will be displayed
You can create instance:
- with
DisplayImageOptions.Builder
:
i.e. :
new DisplayImageOptions
.Builder()
.cacheInMemory()
.
showImageOnLoading()
.build()
- or by static method:
createSimple()
- Since:
- 1.0.0
- Author:
- Sergey Tarasevich (nostra13[at]gmail[dot]com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shouldShowImageOnLoading
public boolean shouldShowImageOnLoading()
shouldShowImageForEmptyUri
public boolean shouldShowImageForEmptyUri()
shouldShowImageOnFail
public boolean shouldShowImageOnFail()
shouldPreProcess
public boolean shouldPreProcess()
shouldPostProcess
public boolean shouldPostProcess()
shouldDelayBeforeLoading
public boolean shouldDelayBeforeLoading()
getImageOnLoading
public android.graphics.drawable.Drawable getImageOnLoading(android.content.res.Resources res)
getImageForEmptyUri
public android.graphics.drawable.Drawable getImageForEmptyUri(android.content.res.Resources res)
getImageOnFail
public android.graphics.drawable.Drawable getImageOnFail(android.content.res.Resources res)
isResetViewBeforeLoading
public boolean isResetViewBeforeLoading()
isCacheInMemory
public boolean isCacheInMemory()
isCacheOnDisk
public boolean isCacheOnDisk()
getImageScaleType
public ImageScaleType getImageScaleType()
getDecodingOptions
public android.graphics.BitmapFactory.Options getDecodingOptions()
getDelayBeforeLoading
public int getDelayBeforeLoading()
isConsiderExifParams
public boolean isConsiderExifParams()
getExtraForDownloader
public Object getExtraForDownloader()
getPreProcessor
public BitmapProcessor getPreProcessor()
getPostProcessor
public BitmapProcessor getPostProcessor()
getDisplayer
public BitmapDisplayer getDisplayer()
getHandler
public android.os.Handler getHandler()
createSimple
public 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.
Copyright © 2011-2014. All Rights Reserved.