Android: How to make the flip animation for android activity, as like iphone flip horizontal from left to right?

Shreyash Mahajan picture Shreyash Mahajan · Dec 14, 2011 · Viewed 29.3k times · Source

In My application i want to flip the view.. I have seen such animation in iPhone. And Same thing i want in to my android application.

I want to flip the whole activity view. is it possible ? I have seen some example for the flip in android. But in that all example the view is in the same activity. Is it possible to set such view for the different activity. or to do such effect while going from one activity to another ?

Please see the snap for the Flip effect in iPhone:

enter image description here

If Yes then please give reference to any demo example or code. Thanks.

Answer

Raymond Lagonda picture Raymond Lagonda · Dec 14, 2011

Firstly define your own animation and either store it in XML under res->anim or java class. I don't have any working example other than API Demos that comes with the SDK download in Eclipse, if you're looking for a flipping animation try to look at 3D Transition class.

After that have your activity to load that animation, preferably load it in onCreate. Please refer to this question