android - Setting background color to ActionBar tabs removes divider -


i use android actionbar , tabs , want change tabs background color. tried apply following in style:

widget.appcompat.actionbar widget.appcompat.actionbar.tabbar widget.appcompat.actionbar.tabview widget.appcompat.actionbar.solid 

it works in cases, dividers (little bars between each tab) removed @ well. how can avoid this?

you define style , apply app or activity:

file styles.xml:

<style name="myhololighttheme" parent="@style/theme.appcompat.light">     <item name="actionbarstyle">@style/actionbarstyle</item>     .... <style name="actionbarstyle" parent="...">     <item name="background">@color/actionbarbackgroundcolor</item>     ... 

file color.xml:

<color name="actionbarbackgroundcolor">#00ff00</color> 

apply app in androidmanifest.xml:

<application     ...     android:theme="@style/myhololighttheme"     ...