An open API service indexing awesome lists of open source software.

https://github.com/hehonghui/simple_imageloader

A Simple ImageLoader for Android 【不建议使用到项目中,仅作示例】
https://github.com/hehonghui/simple_imageloader

Last synced: 12 months ago
JSON representation

A Simple ImageLoader for Android 【不建议使用到项目中,仅作示例】

Awesome Lists containing this project

README

          


# SimpleImageLoader Framework
A Simple ImageLoader for Android, articles for this framework How to make a ImageLoader Framework.

## Useage
1. init The SimpleImageLoader with ImageLoaderConfig
```java
private void initImageLoader() {
ImageLoaderConfig config = new ImageLoaderConfig()
.setLoadingPlaceholder(R.drawable.loading)
.setNotFoundPlaceholder(R.drawable.not_found)
.setCache(new DoubleCache(this))
.setThreadCount(4)
.setLoadPolicy(new ReversePolicy());
// 初始化
SimpleImageLoader.getInstance().init(config);
}
```
2. call the displayImage to load bitmap.
```java
SimpleImageLoader.getInstance().displayImage(myImageView, "http://www.xxx/myimage.jpg");
```