@
32 @
Totato5749 @
may123 @
wanttofly 来填坑了,长图问题正式解决了,使用的是
https://github.com/davemorrissey/subsampling-scale-image-view 如果需要三级缓存,就这么写
ImageLoader.getInstance().loadImage(url, mOptions, new SimpleImageLoadingListener() {
@
Override public void onLoadingComplete(String imageUri, View view, Bitmap bitmap) {
File file = DiskCacheUtils.findInCache(url, ImageLoader.getInstance().getDiskCache());
if (imageUri.endsWith(".gif")) {
subsamplingScaleImageView.setVisibility(View.VISIBLE);
try {
GifDrawable gifDrawable = new GifDrawable(file);
subsamplingScaleImageView.setImageDrawable(gifDrawable);
} catch (IOException e) {
e.printStackTrace();
}
}
}
});
这个功能已经使用在我的第三方新浪微博客户端上,
https://github.com/wenmingvs/WeiBo ,目前情况良好,即使在低端设备上也能正常显示