astuetz / PagerSlidingTabStrip

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

Gravity #22

Open Shusshu opened 11 years ago

Shusshu commented 11 years ago

Would it be possible to add Gravity to the component so if we have fewer tabs we can decide to center them

r4m commented 10 years ago

A nice-to-have to center the tabs (expanding them covering the whole tab bar) is to set the shouldExpand attribute to true:

<com.astuetz.viewpager.extensions.PagerSlidingTabStrip
        android:id="@+id/tabs"
        android:layout_width="match_parent"
        android:layout_height="48dip"
        app:shouldExpand="true" />
emptyway commented 10 years ago

the code actually should look like this

<com.astuetz.PagerSlidingTabStrip
        android:id="@+id/tabs"
        android:layout_width="match_parent"
        android:layout_height="48dip"
        app:pstsShouldExpand="true" />
kfieldi5 commented 9 years ago

Any resolution on this? pstsShouldExpand does not center the end tabs.