Android Action bar won't obey background color -


i've updated project target api 22, , action bar style appears have broken. despite setting background white, , color blue, end black action bar white text.

here's application theme.

<style name="apptheme" parent="appbasetheme">     <!-- customizations not specific particular api-level can go here. -->     <item name="android:actionbarstyle">@style/myactionbar</item>     <item name="android:homeasupindicator">@drawable/up_button</item>     <item name="android:actionmenutextappearance">@style/h4.other</item>     <item name="android:actionmenutextcolor">@color/h4_other</item>     <item name="android:windowcontentoverlay">@drawable/header_shadow</item>     <item name="android:buttonstyle">@style/buttonstyle.nocaps</item> </style> 

here's action bar style.

<style name="myactionbar" parent="@android:style/widget.holo.light.actionbar">     <item name="android:title">""</item>     <item name="android:background">@color/white</item>     <item name="android:height">@dimen/action_bar_height</item>     <item name="android:titletextstyle">@style/h5.blue</item> </style> 

when supporting android 3.0 , higher only, can define action bar's background this:

res/values/themes.xml

<resources> <!-- theme applied application or activity --> <style name="customactionbartheme"        parent="@android:style/theme.holo.light.darkactionbar">     <item name="android:actionbarstyle">@style/myactionbar</item> </style>  <!-- actionbar styles --> <style name="myactionbar"        parent="@android:style/widget.holo.light.actionbar.solid.inverse">     <item name="android:background">@color/white</item> </style> </resources> 

then apply theme entire app or individual activities:

<application android:theme="@style/customactionbartheme" ... /> 

read android documentation


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -