Created
June 6, 2020 23:50
-
-
Save mustafayigitt/8bcc1eb16d4164939097896f828f6974 to your computer and use it in GitHub Desktop.
Binding Adapters for Imageview with Glide
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
@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