Skip to content

hehonghui/simple_imageloader

Repository files navigation

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

Useage

  1. init The SimpleImageLoader with ImageLoaderConfig
 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);
    }
  1. call the displayImage to load bitmap.
SimpleImageLoader.getInstance().displayImage(myImageView, "http://www.xxx/myimage.jpg");

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages