Is there any API introduced in Beta 08 for Screen ...
# compose
s
Is there any API introduced in Beta 08 for Screen Transitions Animations ?
j
This issue may be of use to you. There is a way to do somewhat “hacky” screen transitions as mentioned in the issue. The issue also mentions that built in support for screen transitions is expected to drop in the 1.0.0 release in July. https://issuetracker.google.com/issues/172112072#comment4
👍 1
d
We have just landed the foundational animation piece for screen transition and other type of content change: (i.e.
AnimatedContent
). There's still some work that needs to be done in navigation to support the newly introduced functionalities.
c
Doris I think you mentioned that screen transitions will likely be post-1.0 right?
d
Screen transition in navigation will be post 1.0.
AnimatedContent
is the animation piece that's necessary for nav transition.
AnimatedContent
on its own can animate a screen in and out, but there is still some integration work remaining for navigation.
😕 1
K 1
There's actually a demo on screen transition using AnimatedContent: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]androidx/compose/animation/demos/ScreenTransitionDemo.kt;l=86 The resulting look of that demo is:
👍🏽 1
👍 2
💯 1
s
I'm wondering is it possible to add AnimatedContent to @Adam Powell Router class? 🤔
a
should be, that's what the
decoration
parameter is intended to provide wire-up for
👍 1
s
@Adam Powell Great, Thanks I will try that.
d
It should be pretty straightforward to use
AnimatedContent
in the
RouterDecoration
that Adam created. I would be surprised if it doesn't work. 😛