Bug when the indicator line, underline and dividers are drawn
Closed this issue · 2 comments
jcdom commented
I think there is an error when the indicator line, underline and dividers are drawn.
The order in which draw is wrong.
Current order:
- Indicator line
- Underline
- Dividers
The problems are:
- The dividers are drew above the underline.
- The underline is drew above the indicator line, and indicator is not visible.
I consider correct this order:
- Dividers
- Underline
- Indicator line
Pager configuration in activity_main.xml:
<com.astuetz.PagerSlidingTabStrip
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:pstsUnderlineColor="#FF0000"
app:pstsUnderlineHeight="6dp"
app:pstsIndicatorHeight="6dp"
app:pstsDividerWidth="6dp"
app:pstsDividerColor="#0000FF"
app:pstsTabPaddingLeftRight="10dp" />
jpardogo commented
Yeah that make sense