1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2014 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18 <resources> 19 20 <!-- 21 Theme in the "Platform.AppCompat" family are designed to be aliases for the default 22 theme on a given platform version and should set up the default theme ready for adding our 23 unbundled Action Bar. 24 --> 25 <eat-comment/> 26 <style name="Platform.AppCompat" parent="android:Theme.Material"> 27 <item name="android:windowNoTitle">true</item> 28 <item name="android:windowActionBar">false</item> 29 </style> 30 31 <style name="Platform.AppCompat.Light" parent="android:Theme.Material.Light"> 32 <item name="android:windowNoTitle">true</item> 33 <item name="android:windowActionBar">false</item> 34 </style> 35 36 <style name="Platform.AppCompat.Dialog" parent="android:Theme.Material.Dialog"> 37 <item name="android:windowNoTitle">true</item> 38 <item name="android:windowActionBar">false</item> 39 </style> 40 41 <style name="Platform.AppCompat.Light.Dialog" parent="android:Theme.Material.Light.Dialog"> 42 <item name="android:windowNoTitle">true</item> 43 <item name="android:windowActionBar">false</item> 44 </style> 45 46 <style name="Base.Theme.AppCompat" parent="Base.V21.Theme.AppCompat" /> 47 48 <style name="Base.Theme.AppCompat.Light" parent="Base.V21.Theme.AppCompat.Light" /> 49 50 <style name="Base.V21.Theme.AppCompat" parent="Base.V7.Theme.AppCompat"> 51 <!-- Action Bar styling attributes --> 52 <item name="actionBarSize">?android:attr/actionBarSize</item> 53 <item name="actionBarDivider">?android:attr/actionBarDivider</item> 54 <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item> 55 <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> 56 <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> 57 <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> 58 <item name="actionModeBackground">?android:attr/actionModeBackground</item> 59 <item name="actionModeCloseDrawable">?android:attr/actionModeCloseDrawable</item> 60 <item name="actionModeShareDrawable">?android:attr/actionModeShareDrawable</item> 61 <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> 62 <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> 63 64 <!-- For PopupMenu --> 65 <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> 66 <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> 67 <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> 68 69 <!-- General view attributes --> 70 <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> 71 <item name="selectableItemBackgroundBorderless">?android:attr/selectableItemBackgroundBorderless</item> 72 <item name="dividerHorizontal">?android:attr/dividerHorizontal</item> 73 <item name="dividerVertical">?android:attr/dividerVertical</item> 74 <item name="editTextBackground">?android:attr/editTextBackground</item> 75 <item name="editTextColor">?android:attr/editTextColor</item> 76 <item name="listChoiceBackgroundIndicator">?android:attr/listChoiceBackgroundIndicator</item> 77 78 <!-- Copy our color theme attributes to the framework --> 79 <item name="android:colorPrimary">?attr/colorPrimary</item> 80 <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> 81 <item name="android:colorAccent">?attr/colorAccent</item> 82 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 83 <item name="android:colorControlActivated">?attr/colorControlActivated</item> 84 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 85 </style> 86 87 <style name="Base.V21.Theme.AppCompat.Light" parent="Base.V7.Theme.AppCompat.Light"> 88 <!-- Action Bar styling attributes --> 89 <item name="actionBarSize">?android:attr/actionBarSize</item> 90 <item name="actionBarDivider">?android:attr/actionBarDivider</item> 91 <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item> 92 <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> 93 <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> 94 <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> 95 <item name="actionModeBackground">?android:attr/actionModeBackground</item> 96 <item name="actionModeCloseDrawable">?android:attr/actionModeCloseDrawable</item> 97 <item name="actionModeShareDrawable">?android:attr/actionModeShareDrawable</item> 98 <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> 99 <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> 100 101 <!-- For PopupMenu --> 102 <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> 103 <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> 104 <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> 105 106 <!-- General view attributes --> 107 <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> 108 <item name="selectableItemBackgroundBorderless">?android:attr/selectableItemBackgroundBorderless</item> 109 <item name="dividerHorizontal">?android:attr/dividerHorizontal</item> 110 <item name="dividerVertical">?android:attr/dividerVertical</item> 111 <item name="editTextBackground">?android:attr/editTextBackground</item> 112 <item name="editTextColor">?android:attr/editTextColor</item> 113 <item name="listChoiceBackgroundIndicator">?android:attr/listChoiceBackgroundIndicator</item> 114 115 <!-- Copy our color theme attributes to the framework --> 116 <item name="android:colorPrimary">?attr/colorPrimary</item> 117 <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> 118 <item name="android:colorAccent">?attr/colorAccent</item> 119 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 120 <item name="android:colorControlActivated">?attr/colorControlActivated</item> 121 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 122 </style> 123 124 <style name="Base.V21.Theme.AppCompat.Dialog" parent="Base.V11.Theme.AppCompat.Dialog"> 125 <!-- Action Bar styling attributes --> 126 <item name="actionBarSize">?android:attr/actionBarSize</item> 127 <item name="actionBarDivider">?android:attr/actionBarDivider</item> 128 <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item> 129 <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> 130 <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> 131 <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> 132 <item name="actionModeBackground">?android:attr/actionModeBackground</item> 133 <item name="actionModeCloseDrawable">?android:attr/actionModeCloseDrawable</item> 134 <item name="actionModeShareDrawable">?android:attr/actionModeShareDrawable</item> 135 <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> 136 <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> 137 138 <!-- For PopupMenu --> 139 <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> 140 <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> 141 <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> 142 143 <!-- General view attributes --> 144 <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> 145 <item name="selectableItemBackgroundBorderless">?android:attr/selectableItemBackgroundBorderless</item> 146 <item name="dividerHorizontal">?android:attr/dividerHorizontal</item> 147 <item name="dividerVertical">?android:attr/dividerVertical</item> 148 <item name="editTextBackground">?android:attr/editTextBackground</item> 149 <item name="editTextColor">?android:attr/editTextColor</item> 150 <item name="listChoiceBackgroundIndicator">?android:attr/listChoiceBackgroundIndicator</item> 151 152 <!-- Copy our color theme attributes to the framework --> 153 <item name="android:colorPrimary">?attr/colorPrimary</item> 154 <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> 155 <item name="android:colorAccent">?attr/colorAccent</item> 156 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 157 <item name="android:colorControlActivated">?attr/colorControlActivated</item> 158 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 159 </style> 160 161 <style name="Base.V21.Theme.AppCompat.Light.Dialog" parent="Base.V11.Theme.AppCompat.Light.Dialog"> 162 <!-- Action Bar styling attributes --> 163 <item name="actionBarSize">?android:attr/actionBarSize</item> 164 <item name="actionBarDivider">?android:attr/actionBarDivider</item> 165 <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item> 166 <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> 167 <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> 168 <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> 169 <item name="actionModeBackground">?android:attr/actionModeBackground</item> 170 <item name="actionModeCloseDrawable">?android:attr/actionModeCloseDrawable</item> 171 <item name="actionModeShareDrawable">?android:attr/actionModeShareDrawable</item> 172 <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> 173 <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> 174 175 <!-- For PopupMenu --> 176 <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> 177 <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> 178 <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> 179 180 <!-- General view attributes --> 181 <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> 182 <item name="selectableItemBackgroundBorderless">?android:attr/selectableItemBackgroundBorderless</item> 183 <item name="dividerHorizontal">?android:attr/dividerHorizontal</item> 184 <item name="dividerVertical">?android:attr/dividerVertical</item> 185 <item name="editTextBackground">?android:attr/editTextBackground</item> 186 <item name="editTextColor">?android:attr/editTextColor</item> 187 <item name="listChoiceBackgroundIndicator">?android:attr/listChoiceBackgroundIndicator</item> 188 189 <!-- Copy our color theme attributes to the framework --> 190 <item name="android:colorPrimary">?attr/colorPrimary</item> 191 <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> 192 <item name="android:colorAccent">?attr/colorAccent</item> 193 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 194 <item name="android:colorControlActivated">?attr/colorControlActivated</item> 195 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 196 </style> 197 198 <style name="Base.Theme.AppCompat.Dialog" parent="Base.V21.Theme.AppCompat.Dialog" /> 199 200 <style name="Base.Theme.AppCompat.Light.Dialog" parent="Base.V21.Theme.AppCompat.Light.Dialog" /> 201 202 <style name="Base.ThemeOverlay.AppCompat" parent="android:ThemeOverlay.Material"> 203 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 204 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 205 </style> 206 207 <style name="Base.ThemeOverlay.AppCompat.Dark" parent="android:ThemeOverlay.Material.Dark"> 208 <item name="colorControlHighlight">@color/ripple_material_dark</item> 209 210 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 211 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 212 213 <!-- Used by MediaRouter --> 214 <item name="isLightTheme">false</item> 215 </style> 216 217 <style name="Base.ThemeOverlay.AppCompat.Light" parent="android:ThemeOverlay.Material.Light"> 218 <item name="colorControlHighlight">@color/ripple_material_light</item> 219 220 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 221 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 222 223 <!-- Used by MediaRouter --> 224 <item name="isLightTheme">true</item> 225 </style> 226 227 <style name="Base.ThemeOverlay.AppCompat.ActionBar" parent="android:ThemeOverlay.Material.ActionBar"> 228 <item name="colorControlNormal">?android:attr/textColorPrimary</item> 229 230 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 231 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 232 </style> 233 234 <style name="Base.ThemeOverlay.AppCompat.Dark.ActionBar" parent="android:ThemeOverlay.Material.Dark.ActionBar"> 235 <item name="colorControlNormal">?android:attr/textColorPrimary</item> 236 <item name="colorControlHighlight">@color/ripple_material_dark</item> 237 238 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 239 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 240 241 <!-- Used by MediaRouter --> 242 <item name="isLightTheme">false</item> 243 </style> 244 245 </resources> 246