1--权限(联网,读写sd卡)
2--依赖 compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
3--重写MApp类extendsApplication, 切记要在清单文件调用;切记要在清单文件调用;切记要在清单文件调用;
*onCreate中
ImageLoaderConfiguration configuration = new ImageLoaderConfiguration.Builder(this).build();
//获取ImageLoader的实例初始化配置参数;
ImageLoader.getInstance().init(configuration);
4 调用
instance = ImageLoader.getInstance();
instance.displayImage(urlBitmap,iv);
参考资料
http://blog.csdn.net/vipzjyno1/article/details/23206387
http://blog.csdn.net/hudashi/article/details/52026798
https://github.com/nostra13/Android-Universal-Image-Loader
2--依赖 compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
3--重写MApp类extendsApplication, 切记要在清单文件调用;切记要在清单文件调用;切记要在清单文件调用;
*onCreate中
ImageLoaderConfiguration configuration = new ImageLoaderConfiguration.Builder(this).build();
//获取ImageLoader的实例初始化配置参数;
ImageLoader.getInstance().init(configuration);
4 调用
instance = ImageLoader.getInstance();
instance.displayImage(urlBitmap,iv);
参考资料
http://blog.csdn.net/vipzjyno1/article/details/23206387
http://blog.csdn.net/hudashi/article/details/52026798
https://github.com/nostra13/Android-Universal-Image-Loader