ImageLoader

by JohnsonZZZ

JohnsonZZZ /ImageLoader

优雅地实现Android主流图片加载框架封装,可无侵入切换框架

127 Stars 18 Forks Last release: over 2 years ago (1.0.5) 28 Commits 6 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

ImageLoader

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:'
}
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);

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.