Android : Disable 1.5 cupcake animation transitions

瘦欲@ 提交于 2019-12-24 05:44:27

问题


Long story short, how can I disable the screen transitions between activities? We implemented our own tab handler if you will, and now it is doing a transition between tabs, which looks pretty tacky. Thanks!

Chris.


回答1:


The Spare Parts app you find in the emulator, on self-built images and (i suppose) in the source tree let's you turn on/off those transitions(globally!). You may want to take a look at its source to get a clue how this works.




回答2:


See android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION




回答3:


You should not be starting a whole new Activity for each tab. You should be embedding each Activity inside a android.app.ActivityGroup and use a android.app.LocalActivityManager.



来源:https://stackoverflow.com/questions/881195/android-disable-1-5-cupcake-animation-transitions

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