Android 图片缓存库 Universal ImageLoader

码农软件 · 软件分类 · 手机开发包 · 2019-05-04 22:58:40

软件介绍

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

Screenshot

功能特点:

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

  • 具有很高的定制性

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

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

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

图片加载流程图:

Task Flow

使用示例:

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);

本文地址:https://codercto.com/soft/d/5040.html

Algorithm Design

Algorithm Design

Jon Kleinberg、Éva Tardos / Addison-Wesley / 2005-3-26 / USD 144.20

Algorithm Design introduces algorithms by looking at the real-world problems that motivate them. The book teaches students a range of design and analysis techniques for problems that arise in compu......一起来看看 《Algorithm Design》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

SHA 加密
SHA 加密

SHA 加密工具