Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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()?

like image 908
Chris.Zou Avatar asked Sep 25 '13 11:09

Chris.Zou


1 Answers

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.

like image 146
MinceMan Avatar answered Oct 26 '22 16:10

MinceMan