public static class DisplayImageOptions.Builder extends Object
DisplayImageOptions
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DisplayImageOptions.Builder |
bitmapConfig(android.graphics.Bitmap.Config bitmapConfig)
Sets
bitmap config for image decoding. |
DisplayImageOptions |
build()
Builds configured
DisplayImageOptions object |
DisplayImageOptions.Builder |
cacheInMemory()
已过时。
Use
cacheInMemory(true) instead |
DisplayImageOptions.Builder |
cacheInMemory(boolean cacheInMemory)
Sets whether loaded image will be cached in memory
|
DisplayImageOptions.Builder |
cacheOnDisc()
已过时。
Use
cacheOnDisk(true) instead |
DisplayImageOptions.Builder |
cacheOnDisc(boolean cacheOnDisk)
已过时。
Use
cacheOnDisk(boolean) instead |
DisplayImageOptions.Builder |
cacheOnDisk(boolean cacheOnDisk)
Sets whether loaded image will be cached on disk
|
DisplayImageOptions.Builder |
cloneFrom(DisplayImageOptions options)
Sets all options equal to incoming options
|
DisplayImageOptions.Builder |
considerExifParams(boolean considerExifParams)
Sets whether ImageLoader will consider EXIF parameters of JPEG image (rotate, flip)
|
DisplayImageOptions.Builder |
decodingOptions(android.graphics.BitmapFactory.Options decodingOptions)
Sets options for image decoding.
|
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 |
extraForDownloader(Object extra)
Sets auxiliary object which will be passed to
ImageDownloader.getStream(String, Object) |
DisplayImageOptions.Builder |
handler(android.os.Handler handler)
Sets custom handler for displaying images and firing listener events.
|
DisplayImageOptions.Builder |
imageScaleType(ImageScaleType imageScaleType)
Sets scale type for decoding image.
|
DisplayImageOptions.Builder |
postProcessor(BitmapProcessor postProcessor)
Sets bitmap processor which will be process bitmaps before they will be displayed in
image aware view but
after they'll have been saved in memory cache. |
DisplayImageOptions.Builder |
preProcessor(BitmapProcessor preProcessor)
Sets bitmap processor which will be process bitmaps before they will be cached in memory.
|
DisplayImageOptions.Builder |
resetViewBeforeLoading()
已过时。
Use
resetViewBeforeLoading(true) instead |
DisplayImageOptions.Builder |
resetViewBeforeLoading(boolean resetViewBeforeLoading)
Sets whether
image aware view will be reset (set null) before image loading start |
DisplayImageOptions.Builder |
showImageForEmptyUri(android.graphics.drawable.Drawable drawable)
Incoming drawable will be displayed in
image aware view if empty URI (null or empty
string) will be passed to ImageLoader.displayImage(...) |
DisplayImageOptions.Builder |
showImageForEmptyUri(int imageRes)
Incoming image will be displayed in
image aware view if empty URI (null or empty
string) will be passed to ImageLoader.displayImage(...) |
DisplayImageOptions.Builder |
showImageOnFail(android.graphics.drawable.Drawable drawable)
Incoming drawable will be displayed in
image aware view if some error occurs during
requested image loading/decoding. |
DisplayImageOptions.Builder |
showImageOnFail(int imageRes)
Incoming image will be displayed in
image aware view if some error occurs during
requested image loading/decoding. |
DisplayImageOptions.Builder |
showImageOnLoading(android.graphics.drawable.Drawable drawable)
Incoming drawable will be displayed in
image aware view during image loading. |
DisplayImageOptions.Builder |
showImageOnLoading(int imageRes)
Incoming image will be displayed in
image aware view during image loading |
DisplayImageOptions.Builder |
showStubImage(int imageRes)
已过时。
Use
showImageOnLoading(int) instead |
@Deprecated public DisplayImageOptions.Builder showStubImage(int imageRes)
showImageOnLoading(int)
insteadimage aware view
during image loadingimageRes
- Stub image resourcepublic DisplayImageOptions.Builder showImageOnLoading(int imageRes)
image aware view
during image loadingimageRes
- Image resourcepublic DisplayImageOptions.Builder showImageOnLoading(android.graphics.drawable.Drawable drawable)
image aware view
during image loading.
This option will be ignored if showImageOnLoading(int)
is set.public DisplayImageOptions.Builder showImageForEmptyUri(int imageRes)
image aware view
if empty URI (null or empty
string) will be passed to ImageLoader.displayImage(...) method.imageRes
- Image resourcepublic DisplayImageOptions.Builder showImageForEmptyUri(android.graphics.drawable.Drawable drawable)
image aware view
if empty URI (null or empty
string) will be passed to ImageLoader.displayImage(...) method.
This option will be ignored if showImageForEmptyUri(int)
is set.public DisplayImageOptions.Builder showImageOnFail(int imageRes)
image aware view
if some error occurs during
requested image loading/decoding.imageRes
- Image resourcepublic DisplayImageOptions.Builder showImageOnFail(android.graphics.drawable.Drawable drawable)
image aware view
if some error occurs during
requested image loading/decoding.
This option will be ignored if showImageOnFail(int)
is set.public DisplayImageOptions.Builder resetViewBeforeLoading()
resetViewBeforeLoading(true)
insteadimage aware view
will be reset (set null) before image loading startpublic DisplayImageOptions.Builder resetViewBeforeLoading(boolean resetViewBeforeLoading)
image aware view
will be reset (set null) before image loading start@Deprecated public DisplayImageOptions.Builder cacheInMemory()
cacheInMemory(true)
insteadpublic DisplayImageOptions.Builder cacheInMemory(boolean cacheInMemory)
@Deprecated public DisplayImageOptions.Builder cacheOnDisc()
cacheOnDisk(true)
instead@Deprecated public DisplayImageOptions.Builder cacheOnDisc(boolean cacheOnDisk)
cacheOnDisk(boolean)
insteadpublic DisplayImageOptions.Builder cacheOnDisk(boolean cacheOnDisk)
public DisplayImageOptions.Builder imageScaleType(ImageScaleType imageScaleType)
ImageScaleType.IN_SAMPLE_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 decodingOptions(android.graphics.BitmapFactory.Options decodingOptions)
BitmapFactory.Options.inSampleSize
of incoming options will NOT be considered. Library
calculate the most appropriate sample size itself according yo imageScaleType(ImageScaleType)
options.bitmapConfig()
option.public DisplayImageOptions.Builder delayBeforeLoading(int delayInMillis)
public DisplayImageOptions.Builder extraForDownloader(Object extra)
ImageDownloader.getStream(String, Object)
public DisplayImageOptions.Builder considerExifParams(boolean considerExifParams)
public DisplayImageOptions.Builder preProcessor(BitmapProcessor preProcessor)
public DisplayImageOptions.Builder postProcessor(BitmapProcessor postProcessor)
image aware view
but
after they'll have been saved in memory cache.public DisplayImageOptions.Builder displayer(BitmapDisplayer displayer)
displayer
for image loading task. Default value -
DefaultConfigurationFactory.createBitmapDisplayer()
public DisplayImageOptions.Builder handler(android.os.Handler handler)
public DisplayImageOptions.Builder cloneFrom(DisplayImageOptions options)
public DisplayImageOptions build()
DisplayImageOptions
object