In this chapter, we will take a look at how to show images downloaded from a URL. We will discuss how to do this using the Android native SDK as well as the commonly used third-party libraries. We will consider key concepts and features such as download, compression, cache systems, and storage in memory or disk.
We will also discuss what a nine patch is and how to create it, and we will speak about the different size and density folder for drawables by introducing vector drawables.
The final section will be focused on memory management. Identifying memory leaks in our app is a critical task, which usually happens while working with images. We will take a look at the common mistakes that can lead to these leaks as well as general tips on how to prevent them.
Displaying images from the network
The traditional way
Volley ImageDownloader
Picasso
Images
Vector drawables
Animated vector drawables
Nine patch
Memory management
Detecting and locating leaks
Preventing...