Skip to content

Instantly share code, notes, and snippets.

@Nonda95
Created April 5, 2018 10:27
Show Gist options
  • Save Nonda95/dcc4144131589765ebb8cea44a42faed to your computer and use it in GitHub Desktop.
Save Nonda95/dcc4144131589765ebb8cea44a42faed to your computer and use it in GitHub Desktop.
ImageView loading extension
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