Created
March 27, 2019 11:21
-
-
Save Frederikos/051a2fcab2284b5e46dd9ab4ef036394 to your computer and use it in GitHub Desktop.
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({"bind:imageUrl"}) | |
public static void loadImage(ImageView imageView, String imageUrl) { | |
Glide.with(imageView.getContext()) | |
.load(imageUrl) | |
.diskCacheStrategy(DiskCacheStrategy.SOURCE) | |
.placeholder(R.color.lighter_gray) | |
.into(imageView); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment