https://kotlinlang.org logo
Title
c

Corey

01/20/2023, 1:20 PM
Is it possible to use Shared Element Transition between Fragments using ComposeView?
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