I'm using library PagerSlidingTabStrip for dynamic number of headers in a ViewPager. It's a great library, easy to use, but I need customize it a little bit more.
My PagerSlidingTabStrip header is at the bottom of the screen, so, I need the 'full width underline' and 'selected item line indicator' in the top of the PagerSlidingTabStrip component.
After some tests, I have finally the 'full width underline' in the correct position, using auxiliar LinearLayout like this:
<LinearLayout
android:id="@+id/tabs_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="2dp"
android:orientation="vertical"
android:background="@color/lfp_yellow"/>
<com.astuetz.PagerSlidingTabStrip
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="48dip"
app:pstsDividerColor="@android:color/transparent"
app:pstsIndicatorColor="@color/light_yellow"
app:pstsIndicatorHeight="4px"
app:pstsShouldExpand="true"/>
</LinearLayout>
But I have not form to place 'selected item line indicator' at the top. I tried to change selected item background with a drawable with a line at top, but is not working :(
Any ideas?
Thanks a lot.