Image Handling with Picasso
Learn how to use one of the most popular Android libraries: Picasso. See why Picasso is so popular and how it can help load and add images to your app with a clear and easy to use syntax. By Aldo Olivares.
This is part of the Advanced Android Data & Networking learning path. View path.
Who is this for?
Intermediate Android developers who are interested in learning how to use Picasso properly by creating a fun app that displays a list of popular movies. This course expects you to be familiar with Android Studio and Kotlin programming. Experience with networking libraries such as Retrofit would be helpful but not required.
- Loading Images with Picasso
- Adding Placeholder Images
- Resizing Images
- Applying Transformations
- Debugging with Picasso
Configure the App
Learn about Picasso and configure your app to make http requests to the TMDB Api.
See how easy it is to set up Picasso with basic configurations suitable for most apps. Let's get started!
Images can take a while to load, especially if downloaded from the web. Learn how to display a placeholder image while the main image loads.
Sometimes you don't want giant images to be displayed on a small screen. Learn how to resize an image, and the advantages and disadvantages of doing so.
In the previous episode you resized images downloaded by Picasso from a web service. Now, learn how to resize your placeholders.
Learn how to configure the detail screen of your app to display the images loaded in the previous episodes.
Applying filters is a common feature of gallery and social media apps like Facebook or Instagram. Learn how to apply common filters such as blur or gray scale.
In the previous episode you learned to apply previously designed filters. Now, create your own filter to change the alpha value of an image.
Debugging is an important part of the development process. Learn how to display a small ribbon on top of your images that tells you if an image has been stored locally or downloaded from the web.
Manage the Memory
It's important to know how your images were downloaded and where they were stored. Here, learn how to specify network and memory policies.