Universal ImageLoader Android 图片缓存库

程序名称:Universal ImageLoader

授权协议: Apache

操作系统: Android

开发语言: Java

Universal ImageLoader 介绍

Universal ImageLoader是最早开源的 Android 图片缓存库, 强大的缓存机制。

功能特点:

  • 支持多线程加载图片(同步或者异步加载)

  • 具有很高的定制性

  • 每一张图片都有很多备用资源(原始图片、内存缓存、Bitmap等 )

  • 图片能缓存在外设的SD卡内

  • 可以监听到图片加载状态相关信息

图片加载流程图:

使用示例:

ImageLoader imageLoader = ImageLoader.getInstance(); // Get singleton instance


// Load image, decode it to Bitmap and display Bitmap in ImageView (or any other view 
//  which implements ImageAware interface)
imageLoader.displayImage(imageUri, imageView);


// Load image, decode it to Bitmap and return Bitmap to callback
imageLoader.loadImage(imageUri, new SimpleImageLoadingListener() {
    @Override
    public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
        // Do whatever you want with Bitmap
    }
});


// Load image, decode it to Bitmap and return Bitmap synchronously
Bitmap bmp = imageLoader.loadImageSync(imageUri);

Universal ImageLoader 官网

https://github.com/nostra13/Android-Universal-Image-Loader

相关编程语言

BBGestureBack Full screen return gesture(全屏手...
Framework7 或者叫 F7 是全功能的绑定 iOS 7 应用的...
iOS 调试库,支持 iOS8+,无需添加任何代码,方便 i...
DarkModeKit是在Apple官方的深色模式发布之前设计和...
SimpleNote iOS 版客户端。SimpleNote 是一款在多平...
Kivy iOS,此工具旨在为 iOS 编译必要的库以运行应用...