Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explode as exit transition #41

Open
bitvale opened this issue May 28, 2016 · 4 comments
Open

Explode as exit transition #41

bitvale opened this issue May 28, 2016 · 4 comments

Comments

@bitvale
Copy link

bitvale commented May 28, 2016

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!

@lgvalle
Copy link
Owner

lgvalle commented May 30, 2016

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

@bitvale
Copy link
Author

bitvale commented May 30, 2016

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.

@lgvalle
Copy link
Owner

lgvalle commented May 30, 2016

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

@bitvale
Copy link
Author

bitvale commented May 30, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants