我用ImageLoader.displayImage来加载网络上的图片,但当我在后台开很多应用后再回到我的应用时,某些页面的图片不显示,如下左边是正确的,右边是错误的。除此之外还有别的页面也会有这样的情况,这几个页面的消失情况的共同点就是图片都是大的,但是图片路径、图片控件都在,只有重启app才能正确显示,不知道为什么会消失,我的手机是红米note3会出现这种情况,但好像有的手机又不会出现这种情况。这是因为手机内部系统的原因吗?
认证0级讲师
Later I found out that it was because the width and height of the picture changed to 0
I have never used imageLoader, but these wheels will have cache. I guess the large image cache is recycled.
How big is the big picture? Generally, large pictures that are particularly long will not be displayed on some mobile phones because they exceed the measured length
ImageLoader is no longer maintained, it is recommended to use Glide
Later I found out that it was because the width and height of the picture changed to 0
I have never used imageLoader, but these wheels will have cache. I guess the large image cache is recycled.
How big is the big picture? Generally, large pictures that are particularly long will not be displayed on some mobile phones because they exceed the measured length
ImageLoader is no longer maintained, it is recommended to use Glide