I use UIL with this configuration to load an image from FILE files:
BitmapDisplayer displayer = new FadeInBitmapDisplayer(500) { @Override public Bitmap display(Bitmap bitmap, ImageView imageView, LoadedFrom loadedFrom) { if (loadedFrom != LoadedFrom.MEMORY_CACHE) { return super.display(bitmap, imageView, loadedFrom); } else { imageView.setImageBitmap(bitmap); return bitmap; } } }; DisplayImageOptions options = new DisplayImageOptions.Builder() .cacheInMemory(true).resetViewBeforeLoading(true) .showImageForEmptyUri(R.drawable.thumbnail_no_image) .showImageOnFail(R.drawable.thumbnail_no_image) .displayer(displayer).build(); ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder( context).defaultDisplayImageOptions(options) .memoryCacheSize(2 * 1024 * 1024).build(); sLoader.init(config);
I need to implement selection in a GridView , so after I look at any selected item, I call notifyDataSetChanged to make my Overlay selection visible. And after this call, all images will restart nd, this causes the GridView flash. How can i avoid this?
android universal-image-loader adapter gridview
Lingviston
source share