动作条上的主要分区选项卡 [英] Tabs on Main Section of ActionBar

查看:127
本文介绍了动作条上的主要分区选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何归档这样的布局选项卡中的Andr​​oid?的标签导航就是其中的一部分 主要动作条并没有下文。 PS:即时通讯使用的ActionBar福尔摩斯

How can i archive a Tab layout like this in Android ? The Tab Navigation is part of that Main ActionBar and is not below. PS: Im using ActionBar Sherlock

目前只是做的:

actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

但我想这样一看:

感谢您的帮助, Kitesurfer

Thanks for help, Kitesurfer

推荐答案

标签会显示在操作栏,但只有当操作栏有空间。当你在横向模式的选项卡将转变为行动吧,因为在横向模式下操作栏中有更多的空间。

Tab will be displayed in actions bar but only if action bar has space. When you are in landscape mode your tabs will move to action bar because in landscape mode action bar has more room.

这篇关于动作条上的主要分区选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆