summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2012-02-01 11:52:02 -0800
committerScott Main <smain@google.com>2012-02-01 11:53:03 -0800
commitb6802e7b584f276e33c86bc7275c77edb137599c (patch)
treebdcd435ed3e2ec2741b0ebbd4b14a08ea54a9c13 /docs
parentccc11c4d3c8357a402b84c546e7b2f889729358c (diff)
downloadframeworks_base-b6802e7b584f276e33c86bc7275c77edb137599c.zip
frameworks_base-b6802e7b584f276e33c86bc7275c77edb137599c.tar.gz
frameworks_base-b6802e7b584f276e33c86bc7275c77edb137599c.tar.bz2
docs: fix action bar style example
Change-Id: I9e02c3b3ade17c832b97836c03cf023fe6ea9340
Diffstat (limited to 'docs')
-rw-r--r--docs/html/guide/topics/ui/actionbar.jd16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/html/guide/topics/ui/actionbar.jd b/docs/html/guide/topics/ui/actionbar.jd
index b83bde7..6217812 100644
--- a/docs/html/guide/topics/ui/actionbar.jd
+++ b/docs/html/guide/topics/ui/actionbar.jd
@@ -1421,7 +1421,7 @@ href="#ActionView">action views</a>. (Added in API level 14.)</dd>
&lt;/style>
&lt;!-- style for the action bar tab text -->
- &lt;style name="CustomTabTextStyle">
+ &lt;style name="CustomTabTextStyle" parent="@android:style/TextAppearance.Holo">
&lt;item name="android:textColor">#2456c2&lt;/item>
&lt;/style>
&lt;/resources>
@@ -1437,8 +1437,7 @@ action bar styles you want to change without re-implementing the styles you want
manifest file like this:</p>
<pre>
-&lt;application android:theme="&#64;style/CustomActivityTheme"
- ... />
+&lt;application android:theme="&#64;style/CustomActivityTheme" ... />
</pre>
<p>For more information about using style and theme resources in your application, read <a
@@ -1457,7 +1456,7 @@ android:backgroundStacked}. If you override these action bar styles, be sure tha
parent action bar style such as {@link android.R.style#Widget_Holo_ActionBar
Widget.Holo.ActionBar}.</p>
-<p>For example, if you want to change the action bar's background, you could use the following
+<p>For example, if you want to change the action bar's background, you can use the following
styles:</p>
<pre>
@@ -1465,14 +1464,15 @@ styles:</p>
&lt;resources>
&lt;!-- the theme applied to the application or activity -->
&lt;style name="CustomActivityTheme" parent="@android:style/Theme.Holo">
-   &lt;item name="android:actionBarTabTextStyle">@style/customTabTextStyle&lt;/item>
+ &lt;item name="android:actionBarStyle">@style/MyActionBar&lt;/item>
&lt;!-- other activity and action bar styles here -->
&lt;/style>
- &lt;!-- style for the action bar, simply to change the background -->
- &lt;style parent="@android:style/Widget.Holo.ActionBar">
+ &lt;!-- style for the action bar backgrounds -->
+ &lt;style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
&lt;item name="android:background">@drawable/ab_background&lt;/item>
- &lt;item name="android:backgroundSplit">@drawable/ab_background&lt;/item>
+ &lt;item name="android:backgroundStacked">@drawable/ab_background&lt;/item>
+ &lt;item name="android:backgroundSplit">@drawable/ab_split_background&lt;/item>
&lt;/style>
&lt;/resources>
</pre>