Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/207.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 将垂直视图上的标题栏默认值替换为选项卡标题_Java_Android_Android Actionbar - Fatal编程技术网

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);
我一直在尝试上面链接中的一些代码,但我没有得到我想要的。 水平视图还可以,但对于垂直视图,选项卡似乎正在创建另一个标题栏层。这与水平视图不同。在这方面指导我。多谢各位


我还没有解决这个问题,但我想我无法在垂直视图中放置操作栏中的选项卡,但如果它在水平视图中,则直接转到操作栏部分。我的基础也来自于具有此场景的其他应用程序