Android:禁用 1.5 纸杯蛋糕动画过渡

发布于 2024-07-21 03:40:56 字数 97 浏览 4 评论 0原文

长话短说,如何禁用活动之间的屏幕转换? 如果您愿意的话,我们实现了自己的选项卡处理程序,现在它正在选项卡之间进行转换,这看起来很俗气。 谢谢!

克里斯。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

嗼ふ静 2024-07-28 03:40:56

请参阅android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION

See android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION

忆沫 2024-07-28 03:40:56

您在模拟器、自建映像和(我想)源树中找到的 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.

小情绪 2024-07-28 03:40:56

您不应该为每个选项卡启动一个全新的活动。 您应该将每个 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文