Photon
Fast and light image loading library based on kotlin
Install / Use
/learn @mrabelwahed/PhotonREADME
Photon
is an image loading library for Android. Photon is easy,fast and light library
<h2>features</h2> <ul> <li>Image downloading</li> <li>In Memory Caching</li> <li>Disk Caching</li> </ul> <h3>Sample App</h3> <div style="display:inline;width:5px;"> <img src ="https://github.com/mrabelwahed/photon/blob/master/art/device-2019-04-06-203503.png" width="39%"style="display:inline;"> <img src ="https://github.com/mrabelwahed/photon/blob/master/art/device-2019-04-06-203423.png" width="39%" style="display:inline;"> </div> <h3>How to use Photon </h3> val imageLoader = Photon.getInstance(this)
imageLoader.displayImage(URL1,image1 , R.drawable.place_holder)
<h3>manage cache </h3>
<h4> setup maximum cache </h4>
val cacheSize =4194304 //4MiB
val imageLoader = Photon.getInstance(this , cacheSize)
<h4> clear cache </h4>imageLoader.clearcache()
<h4>cancel Loading </h4> - to cancel certain image loading taskimageLoader.cancel(url)
-to cancel all tasks
imageLoader.cancelAll()
<h3>how to add Photon to your Android Project </h3>
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'
}
<h3>How to contribute </h3>
<ul>
<li> fork the repository </li>
<li>create branch and add feature or fix bug</li>
<li> create pull request </li>
</ul>Related Skills
node-connect
341.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
