https://kotlinlang.org logo
#compose
Title
# compose
a

agrosner

04/19/2022, 5:31 PM
im sure this has been asked before, but at my company with a rather large app, migration will take time to Compose. We currently have a few screens that make use of shared element transitions. is there any support for shared element transitions between traditional UI and Compose?
k

kenkyee

04/19/2022, 5:42 PM
I think you'd have to wrap the compose items in ComposeViews and stick to traditional android view transitions for now... Even things like LazyColumn transitions don't have full support yet...
a

agrosner

04/19/2022, 5:44 PM
hi Ken! oy that wouldnt be fun / performant
👋 1
k

kenkyee

04/19/2022, 5:45 PM
But at least your transitions will look natural/normal.... 🙂
a

agrosner

04/19/2022, 9:26 PM
Maybe 🤔I guess in a way
a

agrosner

04/19/2022, 10:05 PM
Yeah I. See for navigation. But I have. Yet to find anything related to shared element transitions
You know from browse to pdp? The image/content from the product card scale up animation
k

kenkyee

04/19/2022, 10:19 PM
Ahh...you mean shared element transitions. A year ago, it wasn't available: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1615499479468000 Might be worth resurrecting that thread? But AFAIK, it's still not available...and even LazyColumn doesn't support RV's animations yet... 😞
a

agrosner

04/19/2022, 11:08 PM
Ah yeah..hmm. I don’t see anything in accompanist navigation to suggest but I'll poke around
c

Chris Sinco [G]

04/20/2022, 3:26 AM
Shared element transitions are still WIP for Compose. Getting closer to something we can release to alpha
🎉 2
No definitive timelines but we are actively working on it and it's one of the top animation priorities
🙏 1
👍 1
a

agrosner

04/20/2022, 10:59 AM
And I'm guessing, when those are available, there can't be any interop between compose and traditional view shared element transitions?
c

Chris Sinco [G]

04/20/2022, 8:27 PM
Direct interop is unlikely given View-based shared element transitions are dependent on Fragments and Activities, while the Compose ones will likely operate between Composable functions.
👍 2
a

agrosner

04/20/2022, 8:48 PM
Ok thank you for your insight
7 Views