Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
157 views
in Technique[技术] by (71.8m points)

java - Shared Element Transition through many activities

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...