I played with Lollipop Activity Transition.
I have a button in Activity A that, when pressed, calls Activity B. In Activity B, I override onBackPressed () and call finishAfterTransition ()
Activity B has only two relative layout blocks with background color. I put the general transition of the element from Button to one of the blocks, and it works fine. Even the return transition works.
But the problem that I encountered is that I cannot cancel the transition with the return of the common element and implement the normal transition.
The goal was to move two blocks off the screen, top to top and bottom to bottom. This does not work if sharing is enabled.
I tried to set the transition to exit and set it to null for the sharedElementReturn transition to action B. Does not work.
I tried to set the transition to re-entry in Activity A with a slide shift, but at the same time, the general transition of the element will be canceled by a reverse click.
If I turn off the transition of the common element, the desired effect will be completed upon returning from Activity B to A.
Any ideas?
android android-transitions shared-element-transition
Manu joseph
source share