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 30 <item name="android:buttonBarStyle">?attr/buttonBarStyle</item> 31 <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item> 32 </style> 33 34 <style name="Platform.AppCompat.Light" parent="android:Theme.Material.Light"> 35 <item name="android:windowNoTitle">true</item> 36 <item name="android:windowActionBar">false</item> 37 38 <item name="android:buttonBarStyle">?attr/buttonBarStyle</item> 39 <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item> 40 </style> 41 42 <style name="Base.Theme.AppCompat" parent="Base.V21.Theme.AppCompat" /> 43 <style name="Base.Theme.AppCompat.Light" parent="Base.V21.Theme.AppCompat.Light" /> 44 45 <style name="Base.V21.Theme.AppCompat" parent="Base.V7.Theme.AppCompat"> 46 <!-- Action Bar styling attributes --> 47 <item name="actionBarSize">?android:attr/actionBarSize</item> 48 <item name="actionBarDivider">?android:attr/actionBarDivider</item> 49 <item name="actionBarItemBackground">@drawable/abc_action_bar_item_background_material</item> 50 <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> 51 <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> 52 <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> 53 <item name="actionModeBackground">?android:attr/actionModeBackground</item> 54 <item name="actionModeCloseDrawable">?android:attr/actionModeCloseDrawable</item> 55 <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> 56 <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> 57 58 <!-- For PopupMenu --> 59 <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> 60 <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> 61 <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> 62 63 <!-- General view attributes --> 64 <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> 65 <item name="selectableItemBackgroundBorderless">?android:attr/selectableItemBackgroundBorderless</item> 66 <item name="borderlessButtonStyle">?android:borderlessButtonStyle</item> 67 <item name="dividerHorizontal">?android:attr/dividerHorizontal</item> 68 <item name="dividerVertical">?android:attr/dividerVertical</item> 69 <item name="editTextBackground">?android:attr/editTextBackground</item> 70 <item name="editTextColor">?android:attr/editTextColor</item> 71 <item name="listChoiceBackgroundIndicator">?android:attr/listChoiceBackgroundIndicator</item> 72 73 <!-- Copy the platform default styles for the AppCompat widgets --> 74 <item name="autoCompleteTextViewStyle">?android:attr/autoCompleteTextViewStyle</item> 75 <item name="buttonStyle">?android:attr/buttonStyle</item> 76 <item name="buttonStyleSmall">?android:attr/buttonStyleSmall</item> 77 <item name="checkboxStyle">?android:attr/checkboxStyle</item> 78 <item name="checkedTextViewStyle">?android:attr/checkedTextViewStyle</item> 79 <item name="editTextStyle">?android:attr/editTextStyle</item> 80 <item name="radioButtonStyle">?android:attr/radioButtonStyle</item> 81 <item name="ratingBarStyle">?android:attr/ratingBarStyle</item> 82 <item name="spinnerStyle">?android:attr/spinnerStyle</item> 83 84 <!-- Copy our color theme attributes to the framework --> 85 <item name="android:colorPrimary">?attr/colorPrimary</item> 86 <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> 87 <item name="android:colorAccent">?attr/colorAccent</item> 88 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 89 <item name="android:colorControlActivated">?attr/colorControlActivated</item> 90 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 91 <item name="android:colorButtonNormal">?attr/colorButtonNormal</item> 92 </style> 93 94 <style name="Base.V21.Theme.AppCompat.Light" parent="Base.V7.Theme.AppCompat.Light"> 95 <!-- Action Bar styling attributes --> 96 <item name="actionBarSize">?android:attr/actionBarSize</item> 97 <item name="actionBarDivider">?android:attr/actionBarDivider</item> 98 <item name="actionBarItemBackground">@drawable/abc_action_bar_item_background_material</item> 99 <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> 100 <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> 101 <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> 102 <item name="actionModeBackground">?android:attr/actionModeBackground</item> 103 <item name="actionModeCloseDrawable">?android:attr/actionModeCloseDrawable</item> 104 <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> 105 <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> 106 107 <!-- For PopupMenu --> 108 <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> 109 <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> 110 <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> 111 112 <!-- General view attributes --> 113 <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> 114 <item name="selectableItemBackgroundBorderless">?android:attr/selectableItemBackgroundBorderless</item> 115 <item name="borderlessButtonStyle">?android:borderlessButtonStyle</item> 116 <item name="dividerHorizontal">?android:attr/dividerHorizontal</item> 117 <item name="dividerVertical">?android:attr/dividerVertical</item> 118 <item name="editTextBackground">?android:attr/editTextBackground</item> 119 <item name="editTextColor">?android:attr/editTextColor</item> 120 <item name="listChoiceBackgroundIndicator">?android:attr/listChoiceBackgroundIndicator</item> 121 122 <!-- Copy the platform default styles for the AppCompat widgets --> 123 <item name="autoCompleteTextViewStyle">?android:attr/autoCompleteTextViewStyle</item> 124 <item name="buttonStyle">?android:attr/buttonStyle</item> 125 <item name="buttonStyleSmall">?android:attr/buttonStyleSmall</item> 126 <item name="checkboxStyle">?android:attr/checkboxStyle</item> 127 <item name="checkedTextViewStyle">?android:attr/checkedTextViewStyle</item> 128 <item name="editTextStyle">?android:attr/editTextStyle</item> 129 <item name="radioButtonStyle">?android:attr/radioButtonStyle</item> 130 <item name="ratingBarStyle">?android:attr/ratingBarStyle</item> 131 <item name="spinnerStyle">?android:attr/spinnerStyle</item> 132 133 <!-- Copy our color theme attributes to the framework --> 134 <item name="android:colorPrimary">?attr/colorPrimary</item> 135 <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> 136 <item name="android:colorAccent">?attr/colorAccent</item> 137 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 138 <item name="android:colorControlActivated">?attr/colorControlActivated</item> 139 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 140 <item name="android:colorButtonNormal">?attr/colorButtonNormal</item> 141 </style> 142 143 <style name="Base.V21.Theme.AppCompat.Dialog" parent="Base.V11.Theme.AppCompat.Dialog"> 144 <item name="android:windowElevation">@dimen/abc_floating_window_z</item> 145 </style> 146 147 <style name="Base.V21.Theme.AppCompat.Light.Dialog" parent="Base.V11.Theme.AppCompat.Light.Dialog"> 148 <item name="android:windowElevation">@dimen/abc_floating_window_z</item> 149 </style> 150 151 <style name="Base.Theme.AppCompat.Dialog" parent="Base.V21.Theme.AppCompat.Dialog" /> 152 <style name="Base.Theme.AppCompat.Light.Dialog" parent="Base.V21.Theme.AppCompat.Light.Dialog" /> 153 154 <style name="Platform.ThemeOverlay.AppCompat" parent=""> 155 <!-- Copy our color theme attributes to the framework --> 156 <item name="android:colorPrimary">?attr/colorPrimary</item> 157 <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> 158 <item name="android:colorAccent">?attr/colorAccent</item> 159 <item name="android:colorControlNormal">?attr/colorControlNormal</item> 160 <item name="android:colorControlActivated">?attr/colorControlActivated</item> 161 <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> 162 <item name="android:colorButtonNormal">?attr/colorButtonNormal</item> 163 </style> 164 165 <style name="Platform.ThemeOverlay.AppCompat.Dark" /> 166 167 <style name="Platform.ThemeOverlay.AppCompat.Light" /> 168 169</resources> 170