Loading and Caching Images with Just One Annotation in Android

Written by crypticminds | Published 2020/04/20
Tech Story Tags: android | annotations | android-app-development | cache-management | caching-in-kotlin | kotlin | android-mobile-app | java

TLDR 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.via the TL;DR App

no story

Published by HackerNoon on 2020/04/20