2011-03-14 78 views
0

我想将我的自定义动画添加到活动。 (其他则默认从右到左滑动)Android - 替换默认的活动动画

任何建议?

+0

有你看了这个帖子[http://stackoverflow.com/questions/2651360/how-to-provide-animation-when-calling-another-活性功能于机器人(http://stackoverflow.com/questions/2651360/how-to-provide-animation-when-calling-another-activity-in-android) – ingsaurabh 2011-03-14 12:07:51

回答

1

您的活动添加以下代码:

super.onCreate(savedInstanceState); 
overridePendingTransition(R.anim.pull_in_from_left, R.anim.hold); 
setContentView(R.layout.main);