6

I'm using PagerTabStrip with ViewPager:

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

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.

Thanks

user3203425
  • 2,919
  • 4
  • 29
  • 48
  • I have a sample with 10 tabs and several tabs are visible at once. You might consider posting the actual layout file plus uploading a screenshot somewhere, to better explain your symptoms. – CommonsWare Sep 29 '14 at 17:15

1 Answers1

2

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

Fox
  • 2,513
  • 2
  • 20
  • 24