Last active
April 22, 2019 10:46
-
-
Save Philio/a7a9dc06d9135917975660702dbb70b7 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("android:src") | |
public static void loadImage(ImageView view, String url) { | |
Picasso.get().load(url).fit().into(view); | |
} |
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("android:src") | |
fun loadImage(view: ImageView, url: String) { | |
Picasso.get().load(url).fit().into(view) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment