PagerSlidingTabStrip
PagerSlidingTabStrip copied to clipboard
how to change selected tab background color
Hi, I tried with
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@color/colorPrimaryDark"/>
<item android:state_selected="true" android:drawable="@color/colorPrimary"/>
<item android:state_activated="true" android:drawable="@color/colorPrimary"/>
<item android:state_checked="true" android:drawable="@color/colorPrimary"/>
<item android:state_focused="true" android:drawable="@color/colorPrimary"/>
<item android:drawable="@android:color/transparent"/>
</selector>
<com.astuetz.PagerSlidingTabStrip
android:id="@+id/tabs"
app:pstsShouldExpand="true"
app:pstsTextAllCaps="true"
android:layout_width="match_parent"
app:pstsTabBackground="@drawable/cusotom_bg"
android:background="@android:color/holo_blue_light"
android:layout_height="48dp" />
It's showing only focused color. Did anyone get pressed_state color with this component ?
same mentioned in #140 also.