Transitioning between activities without moving actionbar

不问归期 提交于 2019-12-08 08:38:43

问题


Does anyone know how to transition between activities without animating the actionbar like in the Gmail app?


回答1:


It is not a transition between Activities, but between Fragments.

http://developer.android.com/guide/components/fragments.html

Fragments were introduced in 3.0, but there is a backport library in the android SDK. You can use them from and above API level 4.




回答2:


Try with this:

Intent myIntent = new Intent(context, MyActivity.class);
myIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
context.startActivity(myIntent);


来源:https://stackoverflow.com/questions/11904758/transitioning-between-activities-without-moving-actionbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!