2011-05-04 58 views
1

我需要知道交易风格是否可能在Android中,例如,如果我启动主要活动,我需要去或切换到第二个活动,我需要一些动画,如弹出,弹出左..等,为下一个活动视图。是否可能?android活动交易风格?

回答

1

使用Intend去另一个活动。

Intent intent = new Intent(SourceActivity.this, TagetActivity.class); 
      startActivity(intent); 

进一步了解有关打算:

http://www.castlerockresearch.in/dev/2010/08/understanding-intents-and-intent-filters-in-android/

对流行起来的动画看到此链接:

http://android-codes-examples.blogspot.com/2011/04/animated-customized-popup-transparent.html

+0

Thanks.But我不需要弹出式动画,我需要用动画开始正常的活动。 – Karthi 2011-05-04 09:32:06

+0

'Intent i = new Intent(FromActivity.this,ToActivity.class); FromActivity.this.startActivity(i); overridePendingTransition(R.anim.fadein,R.anim.fadeout);'fadein和fadeout是在资源文件夹的动画中创建的动画。 – Androider 2011-05-04 11:16:04