Skip to content Skip to sidebar Skip to footer

Android: Title Bar Color Don't Change

I wanna change my Apps Titlebar color and tried it in this way: Part of the manifest file:
 <application
    android:icon="@drawable/icon"
    android:label="@string/app_name"  
    android:theme="@style/AppTheme" >

Then create these 2 styles in your styles.xml. The first one defines the theme, the second one, one of the styles to apply on the theme:

<stylename="AppTheme"parent="@android:style/Theme.Holo.Light"><itemname="android:actionBarStyle">@style/ActionBarStyle</item></style><stylename="ActionBarStyle"parent="android:style/Widget.Holo.Light.ActionBar"><itemname="android:colorBackground">#FFFFFF</item><itemname="android:background">#FFFFFF</item><itemname="android:textColor">@android:color/black</item><itemname="android:textStyle">bold</item><itemname="android:textSize">16sp</item></style>

NOTE: In this example, I customize the theme Holo Light as you can see with this: android:style/Widget.Holo.Light.ActionBar.

Solution 2:

Add This style.xml File in your project according to your requirment...

<itemname="android:actionBarStyle">@style/myActionBar</item></style><stylename="myActionBar"parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"><itemname="android:titleTextStyle">@style/myActionBar.titleTextStyle</item></style><stylename="myActionBar.titleTextStyle"parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse"><itemname="android:textColor">@color/darkgrey</item></style><stylename="myActionBar"parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"><itemname="android:background">#e6ebc3</item></style>

Post a Comment for "Android: Title Bar Color Don't Change"