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.
3 个解决方案
#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.
您不应该为每个选项卡启动一个全新的Activity。您应该将每个Activity嵌入到android.app.ActivityGroup中并使用android.app.LocalActivityManager。
#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.
您不应该为每个选项卡启动一个全新的Activity。您应该将每个Activity嵌入到android.app.ActivityGroup中并使用android.app.LocalActivityManager。