ImageLoader

Introduction: 优雅地实现 Android 主流图片加载框架封装,可无侵入切换框架
More: Author   ReportBugs   
Tags:

BlogLink

Step 1. Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven {        
            url 'https://jitpack.io'
        }
    }
}

Step 2. Add the dependency

dependencies {
    implementation 'com.github.mhlistener:ImageLoader:<lastest.version>'
}

Step 3. Usage

//you can set custom loader in your application usually.
ImageLoader.getInstance().setGlobalImageLoader(new PicassoLoader());

//how to use
ImageLoader.getInstance()
    .load(url)
    .angle(80)
    .resize(400, 600)
    .centerCrop()
    .config(Bitmap.Config.RGB_565)
    .placeholder(R.mipmap.test)
    .error(R.mipmap.test)
    .skipLocalCache(true)
    .into(imageView);

Support Me
Apps
About Me
Google+: Trinea trinea
GitHub: Trinea