强制堆叠标签 [英] Force stacked tabs
问题描述
有没有办法强制堆叠标签?我希望标签与操作栏分开(在第二行中),即使在横向模式下也是如此.
Is there any way to force stacked tabs? I want tabs separate of action bar (in a second row), even when landscape mode.
我试图强迫它,但我不能.例如,Android 中的 Twitter 应用,当更改为横向模式时,会继续显示两行(单独的行中的选项卡,称为堆叠选项卡).
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).
谢谢!
推荐答案
你不仅不能强制堆叠标签,你甚至不能强制 标签 -- Android 可以并且将会用一个某些屏幕尺寸和方向的导航下拉列表.
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屋!