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
ImageView
during image loading
- whether stub image will be displayed in
ImageView
if empty URI is passed
- whether stub image will be displayed in
ImageView
if image loading fails
- whether
ImageView
should be reset before image loading start
- whether loaded image will be cached in memory
- whether loaded image will be cached on disc
- image scale type
- decoding options (including bitmap decoding configuration)
- delay before loading 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()
.
showStubImage()
.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 |
shouldShowStubImage
public boolean shouldShowStubImage()
shouldShowImageForEmptyUri
public boolean shouldShowImageForEmptyUri()
shouldShowImageOnFail
public boolean shouldShowImageOnFail()
shouldPreProcess
public boolean shouldPreProcess()
shouldPostProcess
public boolean shouldPostProcess()
shouldDelayBeforeLoading
public boolean shouldDelayBeforeLoading()
getStubImage
public int getStubImage()
getImageForEmptyUri
public int getImageForEmptyUri()
getImageOnFail
public int getImageOnFail()
isResetViewBeforeLoading
public boolean isResetViewBeforeLoading()
isCacheInMemory
public boolean isCacheInMemory()
isCacheOnDisc
public boolean isCacheOnDisc()
getImageScaleType
public ImageScaleType getImageScaleType()
getDecodingOptions
public android.graphics.BitmapFactory.Options getDecodingOptions()
getDelayBeforeLoading
public int getDelayBeforeLoading()
getExtraForDownloader
public Object getExtraForDownloader()
getPreProcessor
public BitmapProcessor getPreProcessor()
getPostProcessor
public BitmapProcessor getPostProcessor()
getDisplayer
public BitmapDisplayer getDisplayer()
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 disc
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-2013. All Rights Reserved.