1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2012 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <resources> 18 19 <!-- Themes in the "Theme.Base" family vary based on the current platform 20 version to provide the correct basis on each device. You probably don't 21 want to use them directly in your apps. 22 23 Themes in the "Theme.AppCompat" family are meant to be extended or used 24 directly by apps. --> 25 <eat-comment/> 26 27 <style name="Theme.Base" parent="android:Theme"> 28 </style> 29 30 <style name="Theme.Base.Light" parent="android:Theme.Light"> 31 </style> 32 33 <!-- Base platform-dependent theme providing an action bar in a dark-themed activity. --> 34 <style name="Theme.Base.AppCompat" parent="Theme.Base"> 35 <item name="windowActionBar">true</item> 36 <!-- Remove system title bars; we will add the action bar ourselves. --> 37 <item name="android:windowNoTitle">true</item> 38 39 <item name="buttonBarStyle">@android:style/ButtonBar</item> 40 <item name="buttonBarButtonStyle">@android:style/Widget.Button</item> 41 <item name="selectableItemBackground">@drawable/abc_item_background_holo_dark</item> 42 <item name="homeAsUpIndicator">@drawable/abc_ic_ab_back_holo_dark</item> 43 44 <item name="dividerVertical">@drawable/abc_list_divider_holo_dark</item> 45 <item name="dividerHorizontal">@drawable/abc_list_divider_holo_dark</item> 46 47 <item name="listPreferredItemHeight">?android:attr/listPreferredItemHeight</item> 48 <item name="listPreferredItemHeightSmall">48dp</item> 49 <item name="listPreferredItemHeightLarge">80dp</item> 50 <item name="listPreferredItemPaddingLeft">8dip</item> 51 <item name="listPreferredItemPaddingRight">8dip</item> 52 53 <item name="textAppearanceListItem">?android:attr/textAppearanceMedium</item> 54 <item name="textAppearanceListItemSmall">?android:attr/textAppearanceMedium</item> 55 56 <item name="actionBarTabStyle">@style/Widget.AppCompat.ActionBar.TabView</item> 57 <item name="actionBarTabBarStyle">@style/Widget.AppCompat.ActionBar.TabBar</item> 58 <item name="actionBarTabTextStyle">@style/Widget.AppCompat.ActionBar.TabText</item> 59 <item name="actionButtonStyle">@style/Widget.AppCompat.ActionButton</item> 60 <item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow</item> 61 <item name="actionBarStyle">@style/Widget.AppCompat.ActionBar</item> 62 <item name="actionBarSplitStyle">?attr/actionBarStyle</item> 63 <item name="actionBarWidgetTheme">@null</item> 64 <item name="actionBarSize">@dimen/abc_action_bar_default_height</item> 65 <item name="actionBarDivider">?attr/dividerVertical</item> 66 <item name="actionBarItemBackground">?attr/selectableItemBackground</item> 67 <item name="actionMenuTextAppearance"> 68 @style/TextAppearance.AppCompat.Widget.ActionBar.Menu 69 </item> 70 <item name="actionMenuTextColor">?android:attr/textColorPrimaryDisableOnly</item> 71 72 <!-- Dropdown Spinner Attributes --> 73 <item name="actionDropDownStyle">@style/Widget.AppCompat.Spinner.DropDown.ActionBar</item> 74 75 <!-- Action Mode --> 76 <item name="actionModeStyle">@style/Widget.AppCompat.ActionMode</item> 77 <item name="actionModeBackground">@drawable/abc_cab_background_top_holo_dark</item> 78 <item name="actionModeSplitBackground">@drawable/abc_cab_background_bottom_holo_dark</item> 79 <item name="actionModeCloseDrawable">@drawable/abc_ic_cab_done_holo_dark</item> 80 <item name="actionModeCloseButtonStyle">@style/Widget.AppCompat.ActionButton.CloseMode 81 </item> 82 83 <!-- Panel attributes --> 84 <item name="panelMenuListWidth">@dimen/abc_panel_menu_list_width</item> 85 <item name="panelMenuListTheme">@style/Theme.AppCompat.CompactMenu</item> 86 <item name="android:panelBackground">@drawable/abc_menu_hardkey_panel_holo_dark</item> 87 <item name="listChoiceBackgroundIndicator">@drawable/abc_list_selector_holo_dark</item> 88 89 </style> 90 91 <!-- Base platform-dependent theme providing an action bar in a light-themed activity. --> 92 <style name="Theme.Base.AppCompat.Light" parent="Theme.Base.Light"> 93 <item name="windowActionBar">true</item> 94 <!-- Remove system title bars; we will add the action bar ourselves. --> 95 <item name="android:windowNoTitle">true</item> 96 97 <item name="buttonBarStyle">@android:style/ButtonBar</item> 98 <item name="buttonBarButtonStyle">@android:style/Widget.Button</item> 99 <item name="selectableItemBackground">@drawable/abc_item_background_holo_light</item> 100 <item name="homeAsUpIndicator">@drawable/abc_ic_ab_back_holo_light</item> 101 102 <item name="dividerVertical">@drawable/abc_list_divider_holo_light</item> 103 <item name="dividerHorizontal">@drawable/abc_list_divider_holo_light</item> 104 105 <item name="listPreferredItemHeight">?android:attr/listPreferredItemHeight</item> 106 <item name="listPreferredItemHeightSmall">48dp</item> 107 <item name="listPreferredItemHeightLarge">80dp</item> 108 <item name="listPreferredItemPaddingLeft">8dip</item> 109 <item name="listPreferredItemPaddingRight">8dip</item> 110 111 <item name="textAppearanceListItem">?android:attr/textAppearanceMedium</item> 112 <item name="textAppearanceListItemSmall">?android:attr/textAppearanceMedium</item> 113 114 <!-- Action Bar Styles --> 115 <item name="actionBarTabStyle">@style/Widget.AppCompat.Light.ActionBar.TabView</item> 116 <item name="actionBarTabBarStyle">@style/Widget.AppCompat.Light.ActionBar.TabBar</item> 117 <item name="actionBarTabTextStyle">@style/Widget.AppCompat.Light.ActionBar.TabText</item> 118 <item name="actionButtonStyle">@style/Widget.AppCompat.Light.ActionButton</item> 119 <item name="actionOverflowButtonStyle"> 120 @style/Widget.AppCompat.Light.ActionButton.Overflow 121 </item> 122 <item name="actionBarStyle">@style/Widget.AppCompat.Light.ActionBar</item> 123 <item name="actionBarSplitStyle">?attr/actionBarStyle</item> 124 <item name="actionBarWidgetTheme">@null</item> 125 <item name="actionBarSize">@dimen/abc_action_bar_default_height</item> 126 <item name="actionBarDivider">?attr/dividerVertical</item> 127 <item name="actionBarItemBackground">?attr/selectableItemBackground</item> 128 <item name="actionMenuTextAppearance"> 129 @style/TextAppearance.AppCompat.Widget.ActionBar.Menu 130 </item> 131 <item name="actionMenuTextColor">?android:attr/textColorPrimaryDisableOnly</item> 132 133 <!-- Action Mode --> 134 <item name="actionModeStyle">@style/Widget.AppCompat.ActionMode</item> 135 <item name="actionModeBackground">@drawable/abc_cab_background_top_holo_light</item> 136 <item name="actionModeSplitBackground">@drawable/abc_cab_background_bottom_holo_light</item> 137 <item name="actionModeCloseDrawable">@drawable/abc_ic_cab_done_holo_light</item> 138 <item name="actionModeCloseButtonStyle">@style/Widget.AppCompat.Light.ActionButton.CloseMode 139 </item> 140 141 <!-- Dropdown Spinner Attributes --> 142 <item name="actionDropDownStyle"> 143 @style/Widget.AppCompat.Light.Spinner.DropDown.ActionBar 144 </item> 145 146 <!-- Panel attributes --> 147 <item name="panelMenuListWidth">@dimen/abc_panel_menu_list_width</item> 148 <item name="panelMenuListTheme">@style/Theme.AppCompat.CompactMenu</item> 149 <item name="android:panelBackground">@drawable/abc_menu_hardkey_panel_holo_light</item> 150 <item name="listChoiceBackgroundIndicator">@drawable/abc_list_selector_holo_light</item> 151 152 </style> 153 154 <!-- Base platform-dependent theme providing a dark action bar in a light-themed activity. --> 155 <style name="Theme.Base.AppCompat.Light.DarkActionBar" parent="Theme.Base.AppCompat.Light"> 156 <item name="homeAsUpIndicator">@drawable/abc_ic_ab_back_holo_dark</item> 157 158 <item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow</item> 159 <item name="actionBarStyle">@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse</item> 160 <item name="actionBarWidgetTheme">@style/Theme.AppCompat</item> 161 <item name="actionBarDivider">@drawable/abc_list_divider_holo_dark</item> 162 <item name="actionBarItemBackground">@drawable/abc_item_background_holo_dark</item> 163 <item name="actionBarTabStyle">@style/Widget.AppCompat.Light.ActionBar.TabView.Inverse 164 </item> 165 <item name="actionBarTabBarStyle">@style/Widget.AppCompat.Light.ActionBar.TabBar.Inverse 166 </item> 167 <item name="actionBarTabTextStyle">@style/Widget.AppCompat.Light.ActionBar.TabText.Inverse 168 </item> 169 <item name="actionMenuTextColor">?android:attr/textColorPrimaryInverseDisableOnly</item> 170 171 <!-- Action Mode --> 172 <item name="actionModeStyle">@style/Widget.AppCompat.Light.ActionMode.Inverse</item> 173 <item name="actionModeBackground">@drawable/abc_cab_background_top_holo_dark</item> 174 <item name="actionModeSplitBackground">@drawable/abc_cab_background_bottom_holo_dark</item> 175 <item name="actionModeCloseDrawable">@drawable/abc_ic_cab_done_holo_dark</item> 176 <item name="actionModeCloseButtonStyle">@style/Widget.AppCompat.ActionButton.CloseMode 177 </item> 178 179 <!-- Dropdown Spinner Attributes --> 180 <item name="actionDropDownStyle">@style/Widget.AppCompat.Spinner.DropDown.ActionBar</item> 181 182 <!-- Panel attributes --> 183 <item name="android:panelBackground">@drawable/abc_menu_hardkey_panel_holo_dark</item> 184 <item name="listChoiceBackgroundIndicator">@drawable/abc_list_selector_holo_dark</item> 185 186 </style> 187 188 <!-- Menu/item attributes --> 189 <style name="Theme.AppCompat.Base.CompactMenu" parent=""> 190 <item name="android:itemTextAppearance"> 191 @style/TextAppearance.Widget.AppCompat.ExpandedMenu.Item</item> 192 <item name="android:listViewStyle">@style/Widget.AppCompat.ListView.Menu</item> 193 </style> 194 195 <style name="Theme.AppCompat.Base.CompactMenu.Dialog" parent=""> 196 <item name="android:itemTextAppearance"> 197 @style/TextAppearance.AppCompat.Base.CompactMenu.Dialog</item> 198 <item name="android:listViewStyle">@android:style/Widget.ListView.Menu</item> 199 </style> 200 201 </resources> 202