Created
December 20, 2018 08:07
-
-
Save tfcporciuncula/25efe82f0047ee25cb09b8f80e754674 to your computer and use it in GitHub Desktop.
Picasso load extension
This file contains hidden or 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
fun ImageView.load(resource: Int) { | |
Picasso.with(context) | |
.load(resource) | |
.into(this) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment