Faker
A kotlin extension to load images asynchronously on android.
Features
- Load random images asynchronously into any
ImageView
- Load a random image that fits perfectly the size of that
imageView
- Load any image by passing a simple url into it
- Perfect for image placeholders to jump start a project
Install
Just add the following dependency in your app's build.gradle
or use drone:
drone add faker app-module
Examples
Here are some examples to provide you a head start with using this library.
.loadRandomImage()
.loadFromUrl(url: String)
.loadFromUrl(url: String, placeholder: Int, error: Int)
.loadFromUrl(url: String, placeholder: Drawable, error: Drawable)