https://kotlinlang.org logo
s

Shakil Karim

02/04/2021, 6:53 PM
Is there any example of Animation between Screens which is Composable? Also i’m not using Compose Navigation. @Doris Liu
n

Nikola Drljaca

02/04/2021, 11:20 PM
Well if you are using good ol' fragments you can make it work with the existing transition framework. If you are using compose navigation, I suggest looking at
AnimatedVisibility
, you can make use of the enter transitions. Its a janky solution probably, but it might fit your needs for now.
d

Doris Liu

02/05/2021, 1:07 AM
Crossfade
and
AnimatedVisibility
would be my recommendation. Here's an example of
Crossfade
: https://github.com/android/compose-samples/blob/main/Jetsnack/app/src/main/java/com/example/jetsnack/ui/home/Home.kt#L93