Member-only story
Coil Kotlin Default Image Loader for Android
Introduction Guide to Coil, an Android Image Loading Library
Introduction
A well-developed language has a number of supporting libraries that make the life of a developer comfortable. For example, in Android in the section of image loading into ImageViews, we have a huge set of libraries. But the popular libraries that are mostly used for image loading are Glide, Picasso, Universal Image Loader, etc. As Kotlin language is emerging it has introduced it’s own image loading library named COIL. The COIL is an acronym for Coroutine Image Loader, it is an image loading library backed by Kotlin Coroutines. However, we need not have knowledge of Coroutines to use this library. In this article let’s explore its features and basic usage.
Strengths
As every library has it’s own strengths, Coil has its own set of features to differentiate from others. It is fast, modern, and lightweight library that uses all the latest things available in the market. It’s impressive because of the following strengths
- Fast: Coil performs a number of optimizations including memory and disk caching, downsampling the image in memory, re-using Bitmaps, automatically pausing/cancelling requests, and more.