Android的:如何使动画翻转为Android的活动,像iphone水平翻转从左至右?水平、动画、Android、左至右

2023-09-04 09:42:08 作者:稚于最初

在我的应用程序,我想翻转视图.. 我已经在iPhone见过这样的动画。而同样的事情,我想在我的Andr​​oid应用程序。

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.

我要翻转了整个活动的看法。可能吗 ? 我见过一些例子在Android的翻盖。但在所有例子的视图是在相同的活性。是否有可能设置这样的说法对于不同的活动。或者做这样的效果,而从一个活动到另一个?

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 ?

请参阅该单元在iPhone的翻页效果:

Please see the snap for the Flip effect in iPhone:

如果是的话,请给提及任何演示的例子或code。 谢谢你。

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

推荐答案

首先定义自己的动画,要么将其存储在XML下水库>动画或Java类。我没有随附SDK下载在Eclipse中的任何工作的例子比API演示等,如果你正在寻找一个翻转动画尝试看看3D Transition类。

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.

在有你的活动来加载动画,preferably加载它的onCreate。请参阅本问题

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