Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 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 | <!-- |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 21 | Theme in the "Platform.AppCompat" family are designed to be aliases for the default |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 22 | theme on a given platform version and should set up the default theme ready for adding our |
| 23 | unbundled Action Bar. |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 24 | --> |
| 25 | <eat-comment/> |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 26 | <style name="Platform.AppCompat" parent="android:Theme.Material"> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 27 | <item name="android:windowNoTitle">true</item> |
| 28 | <item name="android:windowActionBar">false</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 29 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 30 | <!-- |
| 31 | A native Action Mode could be displayed (for text selection, etc) so we need to ensure |
| 32 | that it is positioned correctly, so we request windowActionModeOverlay so that it |
| 33 | displays over the compat Action Bar. |
| 34 | --> |
| 35 | <item name="android:windowActionModeOverlay">true</item> |
| 36 | </style> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 37 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 38 | <style name="Platform.AppCompat.Light" parent="android:Theme.Material.Light"> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 39 | <item name="android:windowNoTitle">true</item> |
| 40 | <item name="android:windowActionBar">false</item> |
| 41 | |
| 42 | <!-- |
| 43 | A native Action Mode could be displayed (for text selection, etc) so we need to ensure |
| 44 | that it is positioned correctly, so we request windowActionModeOverlay so that it |
| 45 | displays over the compat Action Bar. |
| 46 | --> |
| 47 | <item name="android:windowActionModeOverlay">true</item> |
| 48 | </style> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 49 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 50 | <style name="Platform.AppCompat.DialogWhenLarge" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 51 | parent="android:Theme.Material.DialogWhenLarge" /> |
| 52 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 53 | <style name="Platform.AppCompat.Light.DialogWhenLarge" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 54 | parent="android:Theme.Material.Light.DialogWhenLarge" /> |
| 55 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 56 | <style name="Platform.AppCompat.Dialog" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 57 | parent="android:Theme.Material.Dialog" /> |
| 58 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 59 | <style name="Platform.AppCompat.Light.Dialog" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 60 | parent="android:Theme.Material.Light.Dialog" /> |
| 61 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 62 | <style name="Base.Theme.AppCompat" parent="Base.V21.Theme.AppCompat" /> |
| 63 | |
| 64 | <style name="Base.Theme.AppCompat.Light" parent="Base.V21.Theme.AppCompat.Light" /> |
| 65 | |
| 66 | <style name="Base.V21.Theme.AppCompat" parent="Base.V7.Theme.AppCompat"> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 67 | <!-- Action Bar styling attributes --> |
| 68 | <item name="actionBarSize">?android:attr/actionBarSize</item> |
| 69 | <item name="actionBarDivider">?android:attr/actionBarDivider</item> |
| 70 | <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item> |
| 71 | <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> |
| 72 | <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> |
| 73 | <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> |
| 74 | <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> |
| 75 | <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 76 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 77 | <!-- For PopupMenu --> |
| 78 | <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> |
| 79 | <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> |
| 80 | <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> |
| 81 | |
| 82 | <!-- General view attributes --> |
| 83 | <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> |
| 84 | <item name="dividerHorizontal">?android:attr/dividerHorizontal</item> |
| 85 | <item name="dividerVertical">?android:attr/dividerVertical</item> |
| 86 | |
| 87 | <!-- Copy our color theme attributes to the framework --> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 88 | <item name="android:colorPrimary">?attr/colorPrimary</item> |
| 89 | <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> |
| 90 | <item name="android:colorAccent">?attr/colorAccent</item> |
| 91 | <item name="android:colorControlNormal">?attr/colorControlNormal</item> |
| 92 | <item name="android:colorControlActivated">?attr/colorControlActivated</item> |
| 93 | <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> |
| 94 | <!-- TODO: <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>--> |
| 95 | </style> |
| 96 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 97 | <style name="Base.V21.Theme.AppCompat.Light" parent="Base.V7.Theme.AppCompat.Light"> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 98 | <!-- Action Bar styling attributes --> |
| 99 | <item name="actionBarSize">?android:attr/actionBarSize</item> |
| 100 | <item name="actionBarDivider">?android:attr/actionBarDivider</item> |
| 101 | <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item> |
| 102 | <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> |
| 103 | <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> |
| 104 | <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> |
| 105 | <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> |
| 106 | <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 107 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 108 | <!-- For PopupMenu --> |
| 109 | <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> |
| 110 | <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> |
| 111 | <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> |
| 112 | |
| 113 | <!-- General view attributes --> |
| 114 | <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> |
| 115 | |
| 116 | <!-- Copy our color theme attributes to the framework --> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 117 | <item name="android:colorPrimary">?attr/colorPrimary</item> |
| 118 | <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> |
| 119 | <item name="android:colorAccent">?attr/colorAccent</item> |
| 120 | <item name="android:colorControlNormal">?attr/colorControlNormal</item> |
| 121 | <item name="android:colorControlActivated">?attr/colorControlActivated</item> |
| 122 | <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> |
| 123 | <!-- TODO: <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>--> |
| 124 | </style> |
| 125 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 126 | <style name="Base.Theme.AppCompat.DialogWhenLarge" parent="Platform.AppCompat.DialogWhenLarge"> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 127 | <item name="windowActionBar">true</item> |
| 128 | |
| 129 | <item name="android:colorPrimary">?attr/colorPrimary</item> |
| 130 | <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> |
| 131 | <item name="android:colorAccent">?attr/colorAccent</item> |
| 132 | <item name="android:colorControlNormal">?attr/colorControlNormal</item> |
| 133 | <item name="android:colorControlActivated">?attr/colorControlActivated</item> |
| 134 | <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> |
| 135 | <!-- TODO: <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>--> |
| 136 | </style> |
| 137 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 138 | <style name="Base.Theme.AppCompat.Light.DialogWhenLarge" parent="Platform.AppCompat.Light.DialogWhenLarge"> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 139 | <item name="windowActionBar">true</item> |
| 140 | |
| 141 | <item name="android:colorPrimary">?attr/colorPrimary</item> |
| 142 | <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> |
| 143 | <item name="android:colorAccent">?attr/colorAccent</item> |
| 144 | <item name="android:colorControlNormal">?attr/colorControlNormal</item> |
| 145 | <item name="android:colorControlActivated">?attr/colorControlActivated</item> |
| 146 | <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> |
| 147 | <!-- TODO: <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>--> |
| 148 | </style> |
| 149 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 150 | <style name="Base.Theme.AppCompat.Dialog" parent="Platform.AppCompat.Dialog"> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 151 | <item name="android:colorPrimary">?attr/colorPrimary</item> |
| 152 | <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> |
| 153 | <item name="android:colorAccent">?attr/colorAccent</item> |
| 154 | <item name="android:colorControlNormal">?attr/colorControlNormal</item> |
| 155 | <item name="android:colorControlActivated">?attr/colorControlActivated</item> |
| 156 | <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> |
| 157 | <!-- TODO: <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>--> |
| 158 | </style> |
| 159 | |
Sailesh Nepal | 1646fd2 | 2014-07-30 06:50:53 -0700 | [diff] [blame^] | 160 | <style name="Base.Theme.AppCompat.Light.Dialog" parent="Platform.AppCompat.Light.Dialog"> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 161 | <item name="android:colorPrimary">?attr/colorPrimary</item> |
| 162 | <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> |
| 163 | <item name="android:colorAccent">?attr/colorAccent</item> |
| 164 | <item name="android:colorControlNormal">?attr/colorControlNormal</item> |
| 165 | <item name="android:colorControlActivated">?attr/colorControlActivated</item> |
| 166 | <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> |
| 167 | <item name="android:colorButtonNormal">?attr/colorButtonNormal</item> |
| 168 | </style> |
| 169 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 170 | </resources> |