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.
// See the sample project how to use ImageLoader correctly.
DisplayImageOptions options = new DisplayImageOptions.Builder()
        .showImageOnLoading(R.drawable.ic_stub) // resource or drawable
        .showImageForEmptyUri(R.drawable.ic_empty) // resource or drawable
        .showImageOnFail(R.drawable.ic_error) // resource or drawable
        .resetViewBeforeLoading(false)  // default
        .delayBeforeLoading(1000)//下载前的延时时间
        .cacheInMemory(false) // default设置下载图片是否缓存到内存
        .cacheOnDisk(false) // default设置下载图片是否缓存到sd卡
        .preProcessor(...)
        .postProcessor(...)
        .extraForDownloader(...)
        .considerExifParams(false) // default
        .imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2) // default编码方式显示
        .bitmapConfig(Bitmap.Config.ARGB_8888) // default解码方式
        .decodingOptions(...)
        .displayer(new SimpleBitmapDisplayer()) // default还可以设置圆角显
new RoundedBitmapDisplayer(20)
        .handler(new Handler()) // default
        .build();