astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

making tabs fit to screen #74

Open psaggi92 opened 10 years ago

psaggi92 commented 10 years ago

On taking only three tabs the tabstrip doesn't fill the full width. Tab size should be allowed to change

mbarany commented 10 years ago

Have you tried app:pstsShouldExpand="true"?

psaggi92 commented 10 years ago

It works. Sorry I didn't know that. :)

kimkevin commented 10 years ago

I can not use it in PagerSlidingTabStrip of my xml file. What can i do for it?

psaggi92 commented 10 years ago

Itz mentioned above.. At to write in xml

kimkevin commented 10 years ago

I did but the letters "app" are changed to RED.... so I can not use it.

mbarany commented 10 years ago

Add app as a namespace on the root of the xml file. For example:

<LinearLayout
    xmlns:app="http://schemas.android.com/apk/res-auto" />
theblang commented 9 years ago

@mbarany Thanks, this worked perfectly! @astuetz This should be closed.

abbasalim commented 9 years ago

@mbarany very thanks, its worked for me too.perfectly!

enginebai commented 9 years ago

It worked after adding app:pstsShouldExpand="true" to PagerSlidingTabStrip and xmlns:app="http://schemas.android.com/apk/res-auto" to the root element of layout xml file.