我刚刚开始从Universal Image Loader移动到Glide。但是,在recyclerview中滚动再次滚动时,我会收到大量警告消息。在Recyclerview中使用Glide的警告
W/Bitmap: Called reconfigure on a bitmap that is in use! This may cause graphical corruption!
如果我换出Glide作为另一个图像加载库,警告消失。代码在bindViewHolder与图像有关的:
Glide.with(viewHolder.imageView.getContext())
.load(DisplayImageUtil.getImageUrl(item.getImageUrl(), 600))
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(viewHolder.imageView);
测试在Nexus 5.
Android M上发生这种情况吗? https://github.com/bumptech/glide/issues/743 – TWiStErRob