@@ -1427,7 +1427,7 @@ href="#ActionView">action views</a>. (Added in API level 14.)</dd>
14271427 </style>
14281428
14291429 <!-- style for the action bar tab text -->
1430- <style name="CustomTabTextStyle">
1430+ <style name="CustomTabTextStyle" parent="@android:style/TextAppearance.Holo" >
14311431 <item name="android:textColor">#2456c2</item>
14321432 </style>
14331433</resources>
@@ -1443,8 +1443,7 @@ action bar styles you want to change without re-implementing the styles you want
14431443manifest file like this:</p>
14441444
14451445<pre>
1446- <application android:theme="@style/CustomActivityTheme"
1447- ... />
1446+ <application android:theme="@style/CustomActivityTheme" ... />
14481447</pre>
14491448
14501449<p>For more information about using style and theme resources in your application, read <a
@@ -1463,22 +1462,23 @@ android:backgroundStacked}. If you override these action bar styles, be sure tha
14631462parent action bar style such as {@link android.R.style#Widget_Holo_ActionBar
14641463Widget.Holo.ActionBar}.</p>
14651464
1466- <p>For example, if you want to change the action bar's background, you could use the following
1465+ <p>For example, if you want to change the action bar's background, you can use the following
14671466styles:</p>
14681467
14691468<pre>
14701469<?xml version="1.0" encoding="utf-8"?>
14711470<resources>
14721471 <!-- the theme applied to the application or activity -->
14731472 <style name="CustomActivityTheme" parent="@android:style/Theme.Holo">
1474- <item name="android:actionBarTabTextStyle ">@style/customTabTextStyle </item>
1473+ <item name="android:actionBarStyle ">@style/MyActionBar </item>
14751474 <!-- other activity and action bar styles here -->
14761475 </style>
14771476
1478- <!-- style for the action bar, simply to change the background -->
1479- <style parent="@android:style/Widget.Holo.ActionBar">
1477+ <!-- style for the action bar backgrounds -->
1478+ <style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
14801479 <item name="android:background">@drawable/ab_background</item>
1481- <item name="android:backgroundSplit">@drawable/ab_background</item>
1480+ <item name="android:backgroundStacked">@drawable/ab_background</item>
1481+ <item name="android:backgroundSplit">@drawable/ab_split_background</item>
14821482 </style>
14831483</resources>
14841484</pre>
0 commit comments