universalimageloader analyze

来源:互联网 发布:矩阵各元素之和叫什么 编辑:程序博客网 时间:2024/05/16 08:37

As source code description, Sergey Tarasevich, the author(nostra13@gmail.com), designed the universalimageloader. Now, I intended to analyzed the source code and reconstructed imageloader to implement requirement.

com.nostra13.universalimageloader:

core:


cache:


utils:

DiskCacheUtils.java

// find cache file by imageUri from diskcache.

File findInCache(String imageUri, DiskCache diskCache)

// delete cache file by imageUri from diskcache.

boolean removeFromCache(String imageUri, DiskCache diskCache)

MemoryCacheUtils.java

// Generate a key by stitching imageUri, _, width,x and height in order.

String generateKey(String imageUri, ImageSize targetSize)

// create a comparator object to compare the size of two string datas.

Comparator<String> createFuzzyKeyComparator()

// get list of cache files by started with imcoming imageuri.

List<Bitmap> findCachedBitmapsForImageUri(String imageUri, MemoryCache memoryCache)

StorageUtils.java


IoUtils.java


ImageSizeUtils.java


L.java


0 0
原创粉丝点击