-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Display Options
nostra13 edited this page Jan 20, 2013
·
4 revisions
Display Options (DisplayImageOptions
) are local for every display task (ImageLoader.displayImage(...)
).
Display Options can be applied to every display task (ImageLoader.displayImage(...)
call).
Note: If Display Options wasn't passed to ImageLoader.displayImage(...)
method then default Display Options from configuration (ImageLoaderConfiguration.defaultDisplayImageOptions(...)
) will be used.
// DON'T COPY THIS CODE TO YOUR PROJECT! This is just example of ALL options using.
DisplayImageOptions options = new DisplayImageOptions.Builder()
.showStubImage(R.drawable.stub_image)
.showImageForEmptyUri(R.drawable.image_for_empty_url)
.resetViewBeforeLoading()
.cacheInMemory()
.cacheOnDisc()
.imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2) // default
.bitmapConfig(Bitmap.Config.ARGB_8888) // default
.delayBeforeLoading(1000)
.displayer(new SimpleBitmapDisplayer()) // default
.build();