Material-Animations icon indicating copy to clipboard operation
Material-Animations copied to clipboard

Explode as exit transition

Open bitvale opened this issue 8 years ago • 4 comments

Hi! In example You show explode transition as enter transition, but reverse transition is slide. How I can set explode transition as return or exit? When I call setExitTransition(explodeTransition) or setReturnTransition(explodeTransition) it not take any effect. I want explode as exit or return transition (up part slide up and down screen part slide down), reverse as enter.

Thank You!

bitvale avatar May 28 '16 07:05 bitvale

What you may be missing is finishAfterTransition() Instead of finishing your Activity with the regular finish method, use the above to give the exit transition enough time to be displayed

lgvalle avatar May 30 '16 10:05 lgvalle

It does not help. I want reverse explode (up part slide up and down screen part slide down) but it slides. But if I set fade it's work.

bitvale avatar May 30 '16 10:05 bitvale

If you don't set anything the framework should automatically reverse entry transition when activity exits

lgvalle avatar May 30 '16 10:05 lgvalle

Entry transition is explode, but why reverse is slide? In Your TransitionActivity2 enter transition is explode, exit and return transitions not defined and reverse is slide down. I setup explode for exit and return transition in TransitionActivity2 but it slide down. Please try by yourself.

bitvale avatar May 30 '16 10:05 bitvale