Anyone tried <https://github.com/coil-kt/coil> yet...
# singapore
k
Anyone tried https://github.com/coil-kt/coil yet? Currently using glide but considering coil.
p
Interesting. No, haven’t use it yet. But do let us know once you have tried it!
g
This library looks very promising, but nit really mature yet
k
Yea that's y I am hesitating for now. Btw how do you guys/gals handle displaying animation? Like an animated image e.g. gif? Currently I am using https://github.com/koral--/android-gif-drawable
g
depends on what kind animation
k
A moving image. Not icon size.
g
Still not sure what is “moving image”
k
I saw the potential in coil as the gifdecoder can use the native Android p gif decoders.
Like an image gallery but with gifs
g
coil just uses AnimationDrawable
I mean you can just copy this code, it’s just a couple classes
Personally I wouldn’t use native GIF decoder just for animation, especially if you don’t have other native libraries
k
Reason being?
g
also, why not just use Glide with gif support if you already use it?
Because it’s native
so you bundle multiple .so files, if you have any crash it’s extremely hard to debug it and I personally don’t think that it would provide any visible advantages comparing to standard system Movie class
k
I use the gifimageview from koral because it renders gif in the background thread. Using glide I sometimes get jank.
Best case of course is animated vectordrawable.
g
It really depends what kind animation it is
if it’s possible to implement with vectordrawable I would never use GIF
k
Yea I agree gif is very very unoptimised for mobile. But well my designer's animated images are sometimes too complex to be converted to avd
g
Maybe you should use lottie instead of gifs if your designers use After Effects.
k
Lottie also janks on lower powered devices