Open Shusshu opened 11 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" />
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" />
Any resolution on this? pstsShouldExpand does not center the end tabs.
Would it be possible to add Gravity to the component so if we have fewer tabs we can decide to center them