力堆叠标签 [英] Force stacked tabs

查看:118
本文介绍了力堆叠标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法强迫堆叠标签?我想分开的选项卡的操作栏(在第二行),即使在横向模式。

Is there any way to force stacked tabs? I want tabs separate of action bar (in a second row), even when landscape mode.

我试图迫使它,但我不能。例如,在机器人,Twitter的应用程序时改变到lanscape模式,继续显示(在一个单独的行,这是已知的层叠片标签)两行

I am trying to force it but I can´t. For example, Twitter app in Android, when change to lanscape mode, continue showing two rows (tabs in a separate rows, which are known as stacked tabs).

谢谢!

推荐答案

您不仅可以不能强迫堆叠标签,你甚至不能强制的标签的 - 机器人能够而且将会取代他们与下拉列表导航在一些屏幕尺寸和方向。

Not only can you not force stacked tabs, you can't even force tabs -- Android can and will replace them with a drop-down list for navigation in some screen sizes and orientations.

您唯一的解决方案就是使用摆脱动作条上的标签,如 ViewPager PagerTabStrip

Your only solution is to move away from action bar tabs, such as by using ViewPager and PagerTabStrip.

这篇关于力堆叠标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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