Permalink
Browse files

Add custom theme to action bar

  • Loading branch information...
1 parent 48a55e7 commit cb19cc940969ba96252a3dda01d00b442b9984d5 @codestream committed Feb 15, 2014
Showing with 15 additions and 1 deletion.
  1. +1 −1 Scrumboard/src/main/AndroidManifest.xml
  2. +14 −0 Scrumboard/src/main/res/values/themes.xml
View
2 Scrumboard/src/main/AndroidManifest.xml
@@ -12,7 +12,7 @@
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
- android:theme="@style/AppTheme" >
+ android:theme="@style/CustomActionBarTheme" >
<activity
android:name="com.scrumboard.MainActivity"
android:label="@string/app_name" >
View
14 Scrumboard/src/main/res/values/themes.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- the theme applied to the application or activity -->
+ <style name="CustomActionBarTheme"
+ parent="android:Theme.Holo.Light.DarkActionBar">
+ <item name="android:actionBarStyle">@style/CustomActionBar</item>
+ </style>
+
+ <!-- ActionBar styles -->
+ <style name="CustomActionBar"
+ parent="android:Widget.Holo.Light.ActionBar.Solid.Inverse">
+ <item name="android:background">#246f8b</item>
+ </style>
+</resources>

0 comments on commit cb19cc9

Please sign in to comment.