Java 将垂直视图上的标题栏默认值替换为选项卡标题
我一直在检查这个。但它确实解决了我的问题,我想用标题选项卡替换默认标题和图标Java 将垂直视图上的标题栏默认值替换为选项卡标题,java,android,android-actionbar,Java,Android,Android Actionbar,我一直在检查这个。但它确实解决了我的问题,我想用标题选项卡替换默认标题和图标 // Set up the action bar. final ActionBar actionBar = getActionBar(); // Specify that the Home/Up button should not be enabled, since there is no hierarchical // parent.
// Set up the action bar.
final ActionBar actionBar = getActionBar();
// Specify that the Home/Up button should not be enabled, since there is no hierarchical
// parent.
actionBar.setHomeButtonEnabled(false);
// Specify that we will be displaying tabs in the action bar.
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
我一直在尝试上面链接中的一些代码,但我没有得到我想要的。
水平视图还可以,但对于垂直视图,选项卡似乎正在创建另一个标题栏层。这与水平视图不同。在这方面指导我。多谢各位
我还没有解决这个问题,但我想我无法在垂直视图中放置操作栏中的选项卡,但如果它在水平视图中,则直接转到操作栏部分。我的基础也来自于具有此场景的其他应用程序