我正在处理3mb图像,问题是当我释放我的手指滚动时,图像,有点从缓存下载在我的情况下SD卡。我也使用PauseOnScrollListener,它并没有解决问题。即使我在滚动时没有查看图像,我也希望图像保持在网格上。通用图像加载器通过在不显示图像时不显示图像来处理它,并且当我暂停并看到特定图像时,那就是它再次显示的时间。通用图像加载程序不保留显示的图像
options = new DisplayImageOptions.Builder()
.showStubImage(icon)
//Because you reuse view for different
//images you can see a previous image in the view while new image is loading. .resetViewBeforeLoading(true
.showImageForEmptyUri(R.drawable.ic_empty)
.showImageOnFail(R.drawable.ic_error)
.cacheOnDisc(true)
.cacheInMemory(true)
.bitmapConfig(Bitmap.Config.RGB_565)
.build();
你想通过网页加载图片?我的意思是你是否试图将图像网址设置为图像视图? – TharakaNirmana