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://www.codercto.com/soft/d/5040.html

Beginning Google Maps API 3

Beginning Google Maps API 3

Gabriel Svennerberg / Apress / 2010-07-27 / $39.99

This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps v3 on web pages in both desktop and mobile ......一起来看看 《Beginning Google Maps API 3》 这本书的介绍吧!

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

各进制数互转换器

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具