Is there some sort of default animation that feels...
# compose-android
a
Is there some sort of default animation that feels native to Android while using the nav lib on android? I see that it defaults to a fade which looks generic
t
I'm using this one here from @Stylianos Gakis and for me is the most non intrusive animation that looks the best
👋 1
a
I have my own version of that for the demo app of Unstyled (looks like the vid), but was wondering if there is any defaults I can use
👍🏽 1
t
With the new Expressive would be great if they introduced some nice new animation 😅
a
i agree but that's a different topic
c
Crossfade is the unopinionated default for Android, meant to be customized.
If you want something that feels more like what you see in Android system apps, I think the older Material motion transitions would work well.
a
@Chris Sinco [G] how can I use that without coding it myself?
i
A Material3 Motion/transition subsystem (e.g., implementations of the Material motion specs) have been on the backlog of the Compose Roadmap for a while now: https://developer.android.com/jetpack/androidx/compose-roadmap#core-libraries Without that, you would have to write them yourself
c
I'm not sure Alex needs a whole subsystem. I interpreted it as more tasteful transitions via customizing animationSpec that matches Material specs
i
That roadmap item is for the Material team to provide exactly that - pre built transitions that match the specs. That is what doesn't exist yet
That is what doesn't exist yet
Yes and it's been several years now so not sure it's ever really coming. There is the recent expressive theming just launched, but I believe that assumes you are using Material 3 Expressive components