PagerTabStrip - 在屏幕上显示所有选项卡像一个正常的动作条​​选项卡实现? [英] PagerTabStrip - show all tabs on screen like a normal actionbar tab implementation?

查看:267
本文介绍了PagerTabStrip - 在屏幕上显示所有选项卡像一个正常的动作条​​选项卡实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是与ViewPager PagerTabStrip:

I'm using PagerTabStrip with ViewPager:

<android.support.v4.view.ViewPager>
    <android.support.v4.view.PagerTabStrip />
</android.support.v4.view.ViewPager>

这似乎PagerTabStrip的风格比你的动作条使用,在该选项卡中的位置是不固定的标签控件不同。有没有办法强制将定位/造型?

It seems the style of PagerTabStrip is different than the tab widget you use with the actionbar, in that the tab positions are not fixed. Is there a way to force that positioning/styling?

我的寻呼机只能有两个标签,它看起来真的傻不具备这两个标签,可见一次。

My pager only has two tabs, and it looks really silly to not have both tabs visible at once.

感谢

推荐答案

不幸的是,在 PagerTabStrip 标签不起作用的选项卡中的动作条道路做的。 您可以使用动作条或创建自定义条。

Unfortunately, tabs in PagerTabStrip don't work the way tabs in ActionBar do. You can either use the ActionBar or create a custom strip.

这篇关于PagerTabStrip - 在屏幕上显示所有选项卡像一个正常的动作条​​选项卡实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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