优雅地实现Android主流图片加载框架封装,可无侵入切换框架
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
ScreenShot
app
gradle/wrapper
imageloaderlib
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat Initial commit Dec 9, 2017
settings.gradle

README.md

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