嵌套的 PreferenceScreen,调用时替换整个屏幕

发布于 2025-01-02 04:01:33 字数 193 浏览 1 评论 0原文

我将 PreferenceActivity 包装在 TabActivity 中。事情看起来不错。但是当我向我的 PreferenceActivity 引入“第二级 PreferenceScreen”并且当有人单击它时,它会替换整个屏幕。当第二个屏幕打开时,有什么地方可以保留上面的选项卡吗?并且,当人们单击第二级首选项屏幕时,如何制作打开/退出动画?我想让旧屏幕向左滑动。

I wrapped my PreferenceActivity within a TabActivity. Thing looks good. but when I introduced "2nd level PreferenceScreen" to my PreferenceActivity and when someone clicked on it, it replaces the whole screen. is there anywhere I can retain my tab above when the 2nd screen opens up? and, how can I make open/exit animation when people clicking into the 2nd level preference screen? I would like to have the old screen sliding to the left.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

枉心 2025-01-09 04:01:33

当第二个屏幕打开时,我可以在哪里保留上面的选项卡吗?

据我所知,情况并非如此。请记住,嵌套的 PreferenceScreens 已被弃用,您不会想在 Android 3.0+ 上使用它们。

并且,当人们点击第二级首选项屏幕时,如何制作打开/退出动画?

AFAIK,你无法控制这一点。

is there anywhere I can retain my tab above when the 2nd screen opens up?

Not that I am aware of. Bear in mind that nested PreferenceScreens are deprecated, and you will not want to use them on Android 3.0+.

and, how can I make open/exit animation when people clicking into the 2nd level preference screen?

AFAIK, you cannot control this.

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