Hello, did someone already try to run the new Nav3...
# compose-android
g
Hello, did someone already try to run the new Nav3 with the new Shared Element Transitions API? Does it work together at this alpha stage? 🤔
i
You can wrap any layout, including a
NavDisplay
, in a
SharedTransitionLayout
and it works great. One of the Nav3 recipes shows how you could use shared elements for the whole screen, ensuring it smoothly transitions from a two pane scene to single pane, but the same thing would work for shared bottom bar, titles, etc.: https://github.com/android/nav3-recipes/blob/main/app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fexample%2Fnav3recipes%2Fscenes%2Ftwopane%2FTwoPaneActivity.kt
👑 3