Action bar tab divider color

In the figure below , the android development guide you see a light blue edge under the tabs. I tried to create this small edge with a different color, but I was not successful.

In the meantime, I will be able to create an action bar and tab style. But the only thing I can not succeed in is to change this little blue edge. I don’t even know how he was called in the guide. Since the divider is a small strip between all the taps:

[CYLINDERS | BIKES | ANDROIDS | PASTRIES]

Can someone help me? What style should I use to change this color?

The following line did not work:

<item name="android:actionBarDivider">@drawable/divider</item>

enter image description here

+5
source share
2 answers

pagerslidingtabstrip , ,

<item name="android:actionBarTabBarStyle">@style/customTabBar</item> 

devider

<style name="customTabBar" parent="@style/Widget.AppCompat.ActionBar.TabBar">
<item name="android:showDividers">middle</item>
<!-- give your divider here -->
<item name="android:divider">@drawable/tabindicator</item>
<item name="android:dividerPadding">0dp</item>

@drawble/tabindicator - drawble

+2

All Articles