EDIT: I added a part for ActionBar (sorry I'm only for Dialogs)
You can follow this, this will allow you to change, in addition, other attributes that are only a header:
Just call the custom theme in the manifest file:
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/AppTheme" >
Then create these 2 styles in styles.xml . The first defines the theme, the second one of the styles applied to the theme:
<style name="AppTheme" parent="@android:style/Theme.Holo.Light"> <item name="android:actionBarStyle">@style/ActionBarStyle</item> </style> <style name="ActionBarStyle" parent="android:style/Widget.Holo.Light.ActionBar"> <item name="android:colorBackground">#FFFFFF</item> <item name="android:background">#FFFFFF</item> <item name="android:textColor">@android:color/black</item> <item name="android:textStyle">bold</item> <item name="android:textSize">16sp</item> </style>
NOTE. In this example, I am customizing the Holo Light theme, as you can see: android:style/Widget.Holo.Light.ActionBar .
Yoann hercouet
source share