Created
April 5, 2018 10:27
-
-
Save Nonda95/dcc4144131589765ebb8cea44a42faed to your computer and use it in GitHub Desktop.
ImageView loading extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun ImageView.load(url: String) { | |
Glide.with(this) | |
.load(url) | |
.apply(RequestOptions.placeholderOf(R.drawable.placeholder)) | |
.into(this) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment