有没有办法让 Honeycomb 操作栏不一直延伸到屏幕上?
我有一个使用片段的两个面板布局。左侧面板宽 50dp,右侧面板填充屏幕的其余部分。我不希望操作栏延伸到左侧片段,而只是延伸到右侧片段。我在文档中没有找到任何内容表明这是可能的,但我想知道是否有其他人成功地做到了这一点。
I have a two panel layout using fragments. The left panel is 50dp wide and the right panel fills the rest of the screen. I don't want the actionbar to extend over the left fragment, just the right fragment. I haven't found anything in the documentation to indicate that this is possible, but I was wondering if anyone else has successfully managed to do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK,这是不可能的。您可以设置操作栏的样式,也可以使整个操作栏消失,但不能只有半个操作栏。
最接近的方法是让整个栏消失,然后实现您自己的操作栏,但是很难完全匹配 Android UI 外观和功能,因此我真的不建议走这条路。
AFAIK, this is not possible. You can style the action bar, and you can make the whole bar go away, but you cannot have half a bar.
The closest you could get would be to make the whole bar go away, then implement your own action bar, but it will be tough to match the Android UI look and functionality exactly, and so I don't really recommend going down this route.