image - Android Glide download before display -


i'm using glide , want know if it's possible download images without display them fill cache display them later ? tried images not downloaded :

for (string url: urls) {     glide.with(getbasecontext()).load(url);     log.v("download", "processing"); } 

can me ?

i solved problem can use download images :

glide    .with( context )    .load( "http://futurestud.io/icon.png" )    .downloadonly(2000, 2000); 

and , display images in cache, should use same url , add diskcachestrategy parameter :

glide.with(context)     .load( "http://futurestud.io/icon.png" )     .diskcachestrategy(diskcachestrategy.all)     .into(imageview); 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -