https://kotlinlang.org logo
#android
Title
# android
c

chanjungskim

01/15/2023, 6:40 PM
I'd like to use https://rive.app/ this one with Composable functions. But I don't want to use old way like AndroidView.
c

Chrimaeon

01/15/2023, 6:53 PM
you can wrap the android view into a
AndroidView
Composable. https://developer.android.com/jetpack/compose/interop/interop-apis#views-in-compose
other than that you have to wait until the library supports Composables.
or you use a very popular animation framework that already supports composables. https://github.com/airbnb/lottie
c

chanjungskim

01/15/2023, 7:00 PM
I am using Lottie compose but it uses a lot of memory. And it causes OutOfMemory issue. So, I want to make rive compose. Is that difficult?
I guess the hardest thing is to retain the state of the animation if the composable is re-rendered.
c

chanjungskim

01/15/2023, 7:38 PM
I see, Thank you. I think I should try with AndroidView first and then, look into the fundamental. 🙂
177 Views