Image Loading
Explore how to load images from the Internet in Android apps using the Glide library. Learn to handle caching, permissions, and improve user experience with circular avatars and fade animations. This lesson helps you build a dynamic, responsive travel blog details screen by efficiently managing image loading.
We'll cover the following...
We'll cover the following...
Dependencies #
Loading an image from the Internet may sound like a trivial task, but it is not. There are a lot of cases which we would have to handle, some of them:
- storing and retrieving the image from the RAM cache
- storing and retrieving the image from the disk cache
- scaling and resizing the image
- displaying loading and error states
- handling out of memory scenarios
- handling concurrent image loading
- etc.
To avoid handling all the scenarios described above, there are several popular image loader libraries developed and distributed as open source. The most popular are:
...