im sure this has been asked before, but at my comp...
# compose
a
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
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
hi Ken! oy that wouldnt be fun / performant
👋 1
k
But at least your transitions will look natural/normal.... 🙂
a
Maybe 🤔I guess in a way
a
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
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
Ah yeah..hmm. I don’t see anything in accompanist navigation to suggest but I'll poke around
c
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
And I'm guessing, when those are available, there can't be any interop between compose and traditional view shared element transitions?
c
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
Ok thank you for your insight