svenjacobs
01/20/2020, 7:12 AMlouiscad
01/22/2020, 4:32 PMThat's a super vague question :)
Main thread work from image loading probably depends drastically on the image size, device ram/memory pressure, animations being run, etcPerson B (library author):
Glide uses ato perform the crossfade whereas Coil uses a customTransitionDrawable
(https://github.com/coil-kt/coil/blob/master/coil-base/src/main/java/coil/drawable/CrossfadeDrawable.kt) since it allows listening to animation completion (and a few other reasons).CrossfadeDrawable
Thecalls ofonDraw
andTransitionDrawable
are very similar.CrossfadeDrawable
svenjacobs
01/23/2020, 7:37 AM