paint-brush
Loading and Caching Images with Just One Annotation in Androidby@crypticminds
151 reads

Loading and Caching Images with Just One Annotation in Android

by Anurag4mApril 20th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Using the ColdStorage library, we can download and store images in our app cache. We download the image once and store it in our cache and reuse it whenever required. The @LoadImage annotation will take care of binding the view to the variable, displaying the place holder image, downloading the image and once the download is complete replacing the downloaded image with the downloaded one. By default there is no animation enabled but you can set the enableLoadingAnimation to true to rotate the placeholder image and animation.

Company Mentioned

Mention Thumbnail
featured image - Loading and Caching Images with Just One Annotation in Android
Anurag HackerNoon profile picture
Anurag

Anurag

@crypticminds

L O A D I N G
. . . comments & more!

About Author

Anurag HackerNoon profile picture
Anurag@crypticminds

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite