ActionBar中的选项卡

时间:2014-06-29 06:44:20

标签: android android-actionbar android-viewpager

我在问题中的意思如下:

ActionBar Tabs](https://s2.postimg.org/qy6gdl761/Untitled.png

'Android新拨号应用':

enter image description here 如何将这些标签添加到我的ActionBar中?我如何设计它们? 请不要建议使用库

1 个答案:

答案 0 :(得分:1)

尝试使用PagerTitleStrip由android提供,如评论中所示,但要解决问题,请尝试:
将其添加到清单文件

android:value="splitActionBarWhenNarrow" />

并使用setDisplayShowHomeEnabled(false);setDisplayShowTitleEnabled(false);

停用操作栏图标和标题

here是一个让你从Android开发者开始的链接: