自定义系统结合酒吧/导航栏为Android平板电脑(下) [英] Customize system combined bar /navigation bar for Android tablet (bottom)
问题描述
我想覆盖在平板电脑上(添加更多按钮,会带我到几个活动/片段)到系统导航栏(本的 Android的UI - 概述这是一个组合栏(适用于平板电脑) 有没有办法做到这一点?
我无法找到一个导航类的android.app包,喜欢动作条。
如果将按钮添加到组合/导航栏是不可能的,我觉得有几个选择,但我想探索这首: - 使用顶部的操作栏,而不是 - 增加一个底栏导航栏上面的(不是真的没事,因为这将是对组合杆的顶部),像他们表现出在这里: 操作栏
非常感谢,
克里斯蒂安
有没有办法做到这一点?
没有。您可以添加到系统栏的唯一的事情是通知
,这是不是意味着这种导航。
如果将按钮添加到组合/导航栏是不可能的,我觉得有几个选择,但我想探索这个第一: - 使用顶部的操作栏,而不是 - 添加导航栏上方的底栏(不是真的没事,因为这将是对组合杆的顶部),像他们表现出在这里:操作栏
如果你指的是名为布局考虑拆分操作栏一节,这被称为裂操作栏,并能在一个启用<活性GT;
通过安卓uiOptions =splitActionBarWhenNarrow
。然而,这只会采取 - 小
/ -Normal
屏幕纵向效果。你的按钮会自动被放置在操作栏在其他情况下,屏幕的顶部。
I would like to override (add more buttons that would take me to several activities/fragments) to the system Navigation Bar on a tablet (according to this android ui-overview it is a "Combined bar" (for tablets) Is there a way to do this?
I couldn't find a Navigation class in the android.app package, like ActionBar.
If adding buttons to the combined/navigation bar is not possible, I think there are several options, but I'd like to explore this first: - use the action bar on top instead - add a bottom bar above the navigation bar (not really fine, since it would be on top of the combined bar), like they are showing here: Action Bar
Thanks a lot,
Cristian
Is there a way to do this?
No. The only thing you can add to the system bar are Notifications
, which are not meant for this sort of navigation.
If adding buttons to the combined/navigation bar is not possible, I think there are several options, but I'd like to explore this first: - use the action bar on top instead - add a bottom bar above the navigation bar (not really fine, since it would be on top of the combined bar), like they are showing here: Action Bar
If you are referring to the section titled "Layout Considerations for Split Action Bars", that is referred to as a "split action bar", and can be enabled on an <activity>
via android:uiOptions="splitActionBarWhenNarrow"
. However, that will only take effect for -small
/-normal
screens in portrait orientation. Your buttons will automatically be placed in the action bar at the top of the screen in other circumstances.
这篇关于自定义系统结合酒吧/导航栏为Android平板电脑(下)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!