Android:禁用 1.5 纸杯蛋糕动画过渡
长话短说,如何禁用活动之间的屏幕转换? 如果您愿意的话,我们实现了自己的选项卡处理程序,现在它正在选项卡之间进行转换,这看起来很俗气。 谢谢!
克里斯。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请参阅
android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION
See
android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION
您在模拟器、自建映像和(我想)源树中找到的 Spare Parts 应用程序可让您打开/关闭这些转换(全局!)。 您可能想查看其源代码以了解其工作原理。
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.
您不应该为每个选项卡启动一个全新的活动。 您应该将每个 Activity 嵌入到 android.app.ActivityGroup 中并使用 android.app.LocalActivityManager。
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.