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

Corey

01/20/2023, 1:20 PM
Is it possible to use Shared Element Transition between Fragments using ComposeView?
👀 1
j

Jakub Syty

01/20/2023, 2:05 PM
I don't believe there is. There are ways to do that in "compose-only world" (https://github.com/skydoves/Orbital), but ComposeView adds another boundary. Maybe if you try to share whole ComposeView it might work
c

Corey

01/20/2023, 2:28 PM
Yeah... thanks! @Jakub Syty Unfortunately I'm not willing to go full Compose right now due to all edge-cases it brings hence I'm using Fragments + ComposeView. However thinking on what you've said, it may be possible to share the elements between Fragments if we wrap the Composable into an
AndroidView
. A bit hacky but may work, I'll take a look. Thanks!
j

Jakub Syty

01/20/2023, 2:31 PM
Totally agree, we are too sticking with Fragments + ComposeView for now. But we are constantly looking at Apyx, seems very promising
k

Kapil Yadav

03/26/2024, 5:49 AM
Any update over this ? @Corey @Jakub Syty
j

Jakub Syty

03/26/2024, 7:56 AM
Googlers seems to be working on that: https://android-review.googlesource.com/c/platform/frameworks/support/+/2833541 but it's still not officially supported
5 Views