Picasso

Picasso is a powerful image downloading and caching library for Android.
It saves you time of writing code from scratch to cache, thread, and handle your images.
This is done with only one simple line of code:
Picasso.with(context).load(“http://i.imgur.com/DvpvklR.png”).into(imageView);
Resources, assets, files, content providers are all supported as image sources.

Picasso downloads the image in another thread and it manages for you:
  • the placeholder in the meantime the image is still downloading
  • resizing
  • cropping/centering/scaling
  • caching ( you don’t have to download the image every time)
  • it even does “image fade in”, which is popular/normal now
Options to add the Picasso library (Choose one):
  1. Download and import the JAR file from: http://repo1.maven.org/maven2/com/squareup/picasso/picasso/2.5.2/picasso-2.5.2.jar
  2. Add the maven dependency: http://mvnrepository.com/artifact/com.squareup.picasso/picasso
  3. Add the gradle dependency: compile ‘com.squareup.picasso:picasso:2.5.2’
Read more: http://square.github.io/picasso/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s