I'm coding an app with container transform and following a guide from Material motion and having a problem.
I have activities A, B, C.
In activity A, there is a SharedElement transition to activity B.
In activity B, there is a SharedElement transition to activity C.
The transition from C back to B works fine but when from B back to A it seems lost the shared element and doesn't make the exit transition.
If I don't go to C then it has the exit transition (from B to A), but if I go to C and back to B and back to A, the exit transition from B to A doesn't work.
Has anyone had similar problems? If so, how did you fix it?
Edit: This issue was asked here: Shared Element Transition not working in android 10(Q) while returning to calledActivity
It happened on Android 10 and 11.
I haven't test on many older Android version but did a test on Android 8 (API 26) and it worked fine.
question from:
https://stackoverflow.com/questions/65880716/shared-element-transition-through-many-activities 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…