fresco icon indicating copy to clipboard operation
fresco copied to clipboard

No image fade-in when loading from cache

Open frappes opened this issue 11 years ago • 4 comments

When loading images in a RecyclerView they fade in nicely on initial load while scrolling down. When scrolling up and images are ostensibly being loaded from a cache, they do not fade in.

frappes avatar Apr 14 '15 22:04 frappes

This is deliberate. An image in cache is usually one that has been on-screen recently. It's jarring to have it fade back in.

tyronen avatar Apr 15 '15 00:04 tyronen

When you say "they do not fade in", do you mean they appear immediately without a fade effect, or is there a period when the image is not loaded and then it just pops in?

plamenko avatar Apr 17 '15 01:04 plamenko

@plamenko Problem was in my code - thanks for following up though!

frappes avatar Apr 17 '15 23:04 frappes

I know this was closed, but I'm hoping to tweak the behavior a little - if the failureImage is in cache, it doesn't fade when it goes from attempting to load to the failure image. Since this (by definition) happens after the load has failed, it is more jarring. So my request is that when loading a non-"Actual" image, that it would fade to the alternate image, even if it is in cache.

kanetik avatar Jul 13 '15 21:07 kanetik