Loading docs/html/guide/topics/ui/actionbar.jd +8 −8 Original line number Diff line number Diff line Loading @@ -1421,7 +1421,7 @@ href="#ActionView">action views</a>. (Added in API level 14.)</dd> </style> <!-- style for the action bar tab text --> <style name="CustomTabTextStyle"> <style name="CustomTabTextStyle" parent="@android:style/TextAppearance.Holo"> <item name="android:textColor">#2456c2</item> </style> </resources> Loading @@ -1437,8 +1437,7 @@ action bar styles you want to change without re-implementing the styles you want manifest file like this:</p> <pre> <application android:theme="@style/CustomActivityTheme" ... /> <application android:theme="@style/CustomActivityTheme" ... /> </pre> <p>For more information about using style and theme resources in your application, read <a Loading @@ -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> Loading @@ -1465,14 +1464,15 @@ styles:</p> <resources> <!-- the theme applied to the application or activity --> <style name="CustomActivityTheme" parent="@android:style/Theme.Holo"> <item name="android:actionBarTabTextStyle">@style/customTabTextStyle</item> <item name="android:actionBarStyle">@style/MyActionBar</item> <!-- other activity and action bar styles here --> </style> <!-- style for the action bar, simply to change the background --> <style parent="@android:style/Widget.Holo.ActionBar"> <!-- style for the action bar backgrounds --> <style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar"> <item name="android:background">@drawable/ab_background</item> <item name="android:backgroundSplit">@drawable/ab_background</item> <item name="android:backgroundStacked">@drawable/ab_background</item> <item name="android:backgroundSplit">@drawable/ab_split_background</item> </style> </resources> </pre> Loading Loading
docs/html/guide/topics/ui/actionbar.jd +8 −8 Original line number Diff line number Diff line Loading @@ -1421,7 +1421,7 @@ href="#ActionView">action views</a>. (Added in API level 14.)</dd> </style> <!-- style for the action bar tab text --> <style name="CustomTabTextStyle"> <style name="CustomTabTextStyle" parent="@android:style/TextAppearance.Holo"> <item name="android:textColor">#2456c2</item> </style> </resources> Loading @@ -1437,8 +1437,7 @@ action bar styles you want to change without re-implementing the styles you want manifest file like this:</p> <pre> <application android:theme="@style/CustomActivityTheme" ... /> <application android:theme="@style/CustomActivityTheme" ... /> </pre> <p>For more information about using style and theme resources in your application, read <a Loading @@ -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> Loading @@ -1465,14 +1464,15 @@ styles:</p> <resources> <!-- the theme applied to the application or activity --> <style name="CustomActivityTheme" parent="@android:style/Theme.Holo"> <item name="android:actionBarTabTextStyle">@style/customTabTextStyle</item> <item name="android:actionBarStyle">@style/MyActionBar</item> <!-- other activity and action bar styles here --> </style> <!-- style for the action bar, simply to change the background --> <style parent="@android:style/Widget.Holo.ActionBar"> <!-- style for the action bar backgrounds --> <style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar"> <item name="android:background">@drawable/ab_background</item> <item name="android:backgroundSplit">@drawable/ab_background</item> <item name="android:backgroundStacked">@drawable/ab_background</item> <item name="android:backgroundSplit">@drawable/ab_split_background</item> </style> </resources> </pre> Loading