nicolausYes
nicolausYes

Reputation: 653

ActionbarSherlock fixed tabs with ViewPager?

I'm using ActionbarSherlock Tabs navigation with ViewPager. I want three fixed tabs on the whole width of a screen.

But tabs don't take the whole width:

enter image description here

The code is standart. It's a little bit too long to paste it here, so it is on pastebin. ActionbarSherlock 4.2.

How to scretch tabs on the whole width?

Upvotes: 0

Views: 749

Answers (2)

Shadow
Shadow

Reputation: 6899

If Actionbarsherlock tabs been used, it will support in all versions.

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1007286

I want three fixed tabs on the whole width of a screen.

You will need to find an implementation of tabs for ViewPager (e.g., PagerTabStrip from the Android Support package, or a tab implementation from ViewPagerIndicator) and modify it to look the way you want.

Upvotes: 1

Related Questions