How to get a reverse animation of ActivityOptions.makeScaleUpAnimation when finishing child activity on android?
Asked Answered
B

1

7

After JellyBean, Android SDK includes an ActivityOptions.makeScaleUpAnimation() API for starting an activity using scale-up animation from a view. I want to know how i can get a reverse animation that scales down the activity window to the original view when finishing the activity? And another question is that can i define the animation duration when using ActivityOptions.makeScaleUpAnimation()?

Bouncy answered 25/9, 2013 at 11:28 Comment(0)
G
1

Unforunatly that is currently not possible. Check this video from the android dev blog http://www.youtube.com/watch?v=Ho8vk61lVIU.

I'm not sure about the duration, you might have to subclass ActivityOptions.

Galeiform answered 14/11, 2013 at 18:6 Comment(2)
But i notice that Google Keep does exactly that when the user select a note to see its content from the main list. I wonder how they did that.Bouncy
I'm guessing that their animating a fragment or a view to handle it. It's probably not a new activity.Galeiform

© 2022 - 2024 — McMap. All rights reserved.