I'm using Glide library to load GIF files into my app. Here is what I implemented:
Glide.with(context)
.load(stringImage)
.asGif()
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.into(postImage);
But for some reason the GIF files are loading with very slow frame. I tried to Google but I wasn't able to figure it out.
Adding crossfade on local image drawable worked for me.
Glide.with(context).load(stringImage).asGif()
.crossFade().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(postImage);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With