Gif on Coil works fine, we use it, but it's not vector unlike lotti or android AnimatedVectorDrawable, and also obviously not so smooth as an actual animation
s
sindrenm
06/02/2025, 4:59 AM
Right. But there are cases where one cannot use AVDs or Lottie, such as when being served a file from somewhere else.
g
gildor
06/02/2025, 4:59 AM
Sure, but it's kinda unfortunate situation which doesn't work well on Android.
If you do not control SVG, there is no way to display it without webview reliably, one can try to use path and generate animation from it (so Vector Drawable but on runtime), but it's very limited approach, will work with simple cases only, exactly what AnimatedVectorDrawable is doing
👍 1
e
efemoney
06/02/2025, 6:48 AM
You can use lottie when being served from somewhere else 🙂. It has both a json format & a zip format that can be downloaded & loaded