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

前端 未结 4 697
孤街浪徒
孤街浪徒 2021-01-31 22:29

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

4条回答
  •  灰色年华
    2021-01-31 23:11

    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

提交回复
热议问题