https://kotlinlang.org logo
#compose-wear
Title
# compose-wear
y

yschimke

04/30/2022, 8:24 AM
Anyone using Lottie for animations on Wear? Any issues?
j

John Nichol

04/30/2022, 10:10 AM
The tiles dev team spent a lot of time thinking about Lottie @Jamie Garside [G] might have some input
a

Austin Nelson

04/30/2022, 2:12 PM
I use Lottie animations in my Wear app and haven’t had any issues! I have a loading indicator and a success animation.
j

Jamie Garside [G]

05/03/2022, 8:31 AM
Ah, sadly while we have been thinking about Lottie, we haven't really battle-tested it and found all the issues yet 🙂
y

yschimke

05/03/2022, 8:40 AM
Would it definitely be lottie vs animated vector drawable? It seems like a good thing it's unbundled, but additional dependency.
j

Jamie Garside [G]

05/03/2022, 9:04 AM
How do you mean?
y

yschimke

05/03/2022, 9:47 AM
IIUC You can downconvert the After Effects to AVD, and then they work without the lottie library. Just bog standard Android. But you lose some features. I'm basically hoping that overall the standardise on one approach to animated resources/buttons etc on Wear. Hopefully Lottie?
``AnimatedImageVector.animatedVectorResource`` vs
LottieAnimation
j

Jamie Garside [G]

05/03/2022, 9:58 AM
Yeah, BodyMovin can export AVD (...I think), but you do lose some significant features
I think gradients don't work properly or something like that (it's been a while 😄 )
y

yschimke

05/03/2022, 11:42 AM
OK, I'm going to stick to lottie then.
29 Views