嵌套的 PreferenceScreen,调用时替换整个屏幕
我将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,情况并非如此。请记住,嵌套的
PreferenceScreens
已被弃用,您不会想在 Android 3.0+ 上使用它们。AFAIK,你无法控制这一点。
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+.AFAIK, you cannot control this.