Skip to content

Instantly share code, notes, and snippets.

@mustafayigitt
Created June 6, 2020 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafayigitt/8bcc1eb16d4164939097896f828f6974 to your computer and use it in GitHub Desktop.
Save mustafayigitt/8bcc1eb16d4164939097896f828f6974 to your computer and use it in GitHub Desktop.
Binding Adapters for Imageview with Glide
@BindingAdapter("loadImage")
fun loadImage(imageView: ImageView, imageUrl: String) {
Glide.with(imageView.context)
.load(imageUrl)
.into(imageView)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment