I have loaded and displayed some image from internet using UIL.
DisplayImageOptions options = new DisplayImageOptions.Builder()
.displayer(new CircleBitmapDisplayer(0xFF70C7BE, 2))
.showImageOnLoading(R.drawable.avatar)
.showImageOnFail(R.drawable.avatar)
.showImageForEmptyUri(R.drawable.avatar)
.cacheOnDisk(true)
.cacheInMemory(false)
.imageScaleType(ImageScaleType.EXACTLY)
.bitmapConfig(Bitmap.Config.RGB_565)
.build();
//show image
ImageLoader.getInstance().displayImage(imgURL, imgAvatar, options);
As you can see from the code, I used a CircleBitmapDisplayer as the displayer, and set showImageOnFail with an image.
The problem I am facing is that the displayer only applied when image load successfully, but not applied when image load failed.
So how can I also apply the displayer to image set in showImageOnFail when image load failed?