Skip to content

Instantly share code, notes, and snippets.

@DiegoBravoF
Last active April 22, 2016 07:04
Show Gist options
  • Save DiegoBravoF/d8b2a377e9063c00a7973653d3f54345 to your computer and use it in GitHub Desktop.
Save DiegoBravoF/d8b2a377e9063c00a7973653d3f54345 to your computer and use it in GitHub Desktop.
fun ImageView.load(url: String) {
Picasso.with(context).load(url).into(this)
}
fun snack(view: View, message: String, duration: Int = Snackbar.LENGTH_LONG) {
Snackbar.make(view, message, duration).show()
}
imgView.load(url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment