Loading and Caching Images with Just One Annotation in Androidby@crypticminds

Loading and Caching Images with Just One Annotation in Android

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@crypticminds

Anurag

Receive Stories from @crypticminds

react to story with heart

RELATED STORIES

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