|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nostra13.universalimageloader.core.DisplayImageOptions.Builder
public static class DisplayImageOptions.Builder
Builder for DisplayImageOptions
Constructor Summary | |
---|---|
DisplayImageOptions.Builder()
|
Method Summary | |
---|---|
DisplayImageOptions.Builder |
bitmapConfig(android.graphics.Bitmap.Config bitmapConfig)
Sets bitmap config for image decoding. |
DisplayImageOptions |
build()
Builds configured DisplayImageOptions object |
DisplayImageOptions.Builder |
cacheInMemory()
Loaded image will be cached in memory |
DisplayImageOptions.Builder |
cacheOnDisc()
Loaded image will be cached on disc |
DisplayImageOptions.Builder |
cloneFrom(DisplayImageOptions options)
Sets all options equal to incoming options |
DisplayImageOptions.Builder |
delayBeforeLoading(int delayInMillis)
Sets delay time before starting loading task. |
DisplayImageOptions.Builder |
displayer(BitmapDisplayer displayer)
Sets custom displayer for image loading task. |
DisplayImageOptions.Builder |
imageScaleType(ImageScaleType imageScaleType)
Sets decoding type for image loading task. |
DisplayImageOptions.Builder |
resetViewBeforeLoading()
ImageView will be reset (set null) before image loading start |
DisplayImageOptions.Builder |
showImageForEmptyUri(int imageRes)
Image will be displayed in ImageView if empty URI (null or empty string)
will be passed to ImageLoader.displayImage(...) |
DisplayImageOptions.Builder |
showStubImage(int stubImageRes)
Stub image will be displayed in ImageView during image loading |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisplayImageOptions.Builder()
Method Detail |
---|
public DisplayImageOptions.Builder showStubImage(int stubImageRes)
ImageView
during image loading
stubImageRes
- Stub image resourcepublic DisplayImageOptions.Builder showImageForEmptyUri(int imageRes)
ImageView
if empty URI (null or empty string)
will be passed to ImageLoader.displayImage(...) method.
imageRes
- Image resourcepublic DisplayImageOptions.Builder resetViewBeforeLoading()
ImageView
will be reset (set null) before image loading start
public DisplayImageOptions.Builder cacheInMemory()
public DisplayImageOptions.Builder cacheOnDisc()
public DisplayImageOptions.Builder imageScaleType(ImageScaleType imageScaleType)
decoding type
for image loading task. Default value -
ImageScaleType.POWER_OF_2
public DisplayImageOptions.Builder bitmapConfig(android.graphics.Bitmap.Config bitmapConfig)
bitmap config
for image decoding. Default value - Bitmap.Config#ARGB_8888
public DisplayImageOptions.Builder delayBeforeLoading(int delayInMillis)
public DisplayImageOptions.Builder displayer(BitmapDisplayer displayer)
displayer
for image loading task. Default value -
DefaultConfigurationFactory.createBitmapDisplayer()
public DisplayImageOptions.Builder cloneFrom(DisplayImageOptions options)
public DisplayImageOptions build()
DisplayImageOptions
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |