Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 839d5d57 authored by Scott Main's avatar Scott Main Committed by Android Git Automerger
Browse files

am 6b3f98b4: Merge "docs: fix action bar style example" into ics-mr1

* commit '6b3f98b4':
  docs: fix action bar style example
parents e588299b 6b3f98b4
Loading
Loading
Loading
Loading
+8 −8
Original line number Original line Diff line number Diff line
@@ -1427,7 +1427,7 @@ href="#ActionView">action views</a>. (Added in API level 14.)</dd>
    &lt;/style>
    &lt;/style>


    &lt;!-- style for the action bar tab text -->
    &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;item name="android:textColor">#2456c2&lt;/item>
    &lt;/style>
    &lt;/style>
&lt;/resources>
&lt;/resources>
@@ -1443,8 +1443,7 @@ action bar styles you want to change without re-implementing the styles you want
manifest file like this:</p>
manifest file like this:</p>


<pre>
<pre>
&lt;application android:theme="&#64;style/CustomActivityTheme"
&lt;application android:theme="&#64;style/CustomActivityTheme" ... />
             ... />
</pre>
</pre>


<p>For more information about using style and theme resources in your application, read <a
<p>For more information about using style and theme resources in your application, read <a
@@ -1463,7 +1462,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
parent action bar style such as {@link android.R.style#Widget_Holo_ActionBar
Widget.Holo.ActionBar}.</p>
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>
styles:</p>


<pre>
<pre>
@@ -1471,14 +1470,15 @@ styles:</p>
&lt;resources>
&lt;resources>
    &lt;!-- the theme applied to the application or activity -->
    &lt;!-- the theme applied to the application or activity -->
    &lt;style name="CustomActivityTheme" parent="@android:style/Theme.Holo">
    &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;!-- other activity and action bar styles here -->
    &lt;/style>
    &lt;/style>


    &lt;!-- style for the action bar, simply to change the background -->
    &lt;!-- style for the action bar backgrounds -->
    &lt;style parent="@android:style/Widget.Holo.ActionBar">
    &lt;style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
        &lt;item name="android:background">@drawable/ab_background&lt;/item>
        &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;/style>
&lt;/resources>
&lt;/resources>
</pre>
</pre>