is an image loading library for Android. Photon is easy,fast and light library
- Image downloading
- In Memory Caching
- Disk Caching
val imageLoader = Photon.getInstance(this)
imageLoader.displayImage(URL1,image1 , R.drawable.place_holder)
val cacheSize =4194304 //4MiB
val imageLoader = Photon.getInstance(this , cacheSize)
imageLoader.clearcache()
- to cancel certain image loading taskimageLoader.cancel(url)
-to cancel all tasks
imageLoader.cancelAll()
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.mrabelwahed:photon:1.0.3'
}
- fork the repository
- create branch and add feature or fix bug
- create pull request