Amardeepvijay
Amardeepvijay

Reputation: 1628

PagerSlidingTabStrip: ViewPager tabs resize

How to show the tabs in the ViewPager to the one screen? I am using android.support.v4.view.ViewPager.

When i used this

these tabs are shown in one scrren.

String[] tabs = {"A","B","C","D"};

when i used this

<b> String[] tabs = {"My School", "My Home","Search & Find", "Books & Books"};</b>

these tabs are shown with swaping,not in one screen.

How can i put these tabs in one screen. plz help me

Upvotes: 1

Views: 936

Answers (1)

Include this to your PagerSlidingTabStrip

app:pstsShouldExpand="true"

This maybe work. Sorry for my english, I am from Venezuela! :-)

Upvotes: 3

Related Questions