翻转动画以活动为更改 [英] Flip-Animation for Activity-Change

查看:127
本文介绍了翻转动画以活动为更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要两个活动,如iPhone之间翻转。

i want to flip between two activities like the iPhone.

我试图用overridePendingTransition(INT enterAnim,诠释exitAnim)的方法,但没有成功。

I tried to use the overridePendingTransition(int enterAnim, int exitAnim) Method, but was not successful.

有一个人实现这样的动画?

Has someone implemented an animation like this?

fesp

推荐答案

当你必须改变活动,首先启动所需的布局动画的当前活动的最外层视图(可能的ViewGroup)。当动画完成后,启动新的活动。另外,记得要关掉默认的活动过渡动画。

When you have to change Activities, first start the desired layout animation on the outmost view (possibly a viewgroup) of the current Activity. When the animation finished, start the new Activity. Also, remember to switch off the default Activity transition animation.

这篇关于翻转动画以活动为更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆