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    <!--
20        Theme in the "Platform.AppCompat" family are designed to be aliases for the default
21        theme on a given platform version and should set up the default theme ready for adding our
22        unbundled Action Bar.
23    -->
24    <eat-comment/>
25    <style name="Platform.AppCompat" parent="android:Theme.Holo">
26        <item name="android:windowNoTitle">true</item>
27        <item name="android:windowActionBar">false</item>
28
29        <item name="android:buttonBarStyle">?attr/buttonBarStyle</item>
30        <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item>
31        <item name="android:borderlessButtonStyle">?attr/borderlessButtonStyle</item>
32
33        <!-- Window colors -->
34        <item name="android:colorForeground">@color/foreground_material_dark</item>
35        <item name="android:colorForegroundInverse">@color/foreground_material_light</item>
36        <item name="android:colorBackground">@color/background_material_dark</item>
37        <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_dark</item>
38        <item name="android:disabledAlpha">@dimen/abc_disabled_alpha_material_dark</item>
39        <item name="android:backgroundDimAmount">0.6</item>
40        <item name="android:windowBackground">@color/background_material_dark</item>
41
42        <!-- Text colors -->
43        <item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item>
44        <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item>
45        <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_dark</item>
46        <item name="android:textColorSecondary">@color/abc_secondary_text_material_dark</item>
47        <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_light</item>
48        <item name="android:textColorTertiary">@color/abc_secondary_text_material_dark</item>
49        <item name="android:textColorTertiaryInverse">@color/abc_secondary_text_material_light</item>
50        <item name="android:textColorHint">@color/abc_hint_foreground_material_dark</item>
51        <item name="android:textColorHintInverse">@color/abc_hint_foreground_material_light</item>
52        <item name="android:textColorHighlight">@color/highlighted_text_material_dark</item>
53        <item name="android:textColorHighlightInverse">@color/highlighted_text_material_light</item>
54        <item name="android:textColorLink">?attr/colorAccent</item>
55        <item name="android:textColorLinkInverse">?attr/colorAccent</item>
56        <item name="android:textColorAlertDialogListItem">@color/abc_primary_text_material_dark</item>
57
58        <!-- Text styles -->
59        <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
60        <item name="android:textAppearanceInverse">@style/TextAppearance.AppCompat.Inverse</item>
61        <item name="android:textAppearanceLarge">@style/TextAppearance.AppCompat.Large</item>
62        <item name="android:textAppearanceLargeInverse">@style/TextAppearance.AppCompat.Large.Inverse</item>
63        <item name="android:textAppearanceMedium">@style/TextAppearance.AppCompat.Medium</item>
64        <item name="android:textAppearanceMediumInverse">@style/TextAppearance.AppCompat.Medium.Inverse</item>
65        <item name="android:textAppearanceSmall">@style/TextAppearance.AppCompat.Small</item>
66        <item name="android:textAppearanceSmallInverse">@style/TextAppearance.AppCompat.Small.Inverse</item>
67
68        <item name="android:listChoiceIndicatorSingle">@drawable/abc_btn_radio_material</item>
69        <item name="android:listChoiceIndicatorMultiple">@drawable/abc_btn_check_material</item>
70
71        <item name="android:listPreferredItemPaddingLeft">@dimen/abc_list_item_padding_horizontal_material</item>
72        <item name="android:listPreferredItemPaddingRight">@dimen/abc_list_item_padding_horizontal_material</item>
73
74        <item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
75        <item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
76        <item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
77        <item name="android:actionModeSelectAllDrawable">?actionModeSelectAllDrawable</item>
78
79        <item name="android:textSelectHandle">@drawable/abc_text_select_handle_middle_mtrl_dark</item>
80        <item name="android:textSelectHandleLeft">@drawable/abc_text_select_handle_left_mtrl_dark</item>
81        <item name="android:textSelectHandleRight">@drawable/abc_text_select_handle_right_mtrl_dark</item>
82    </style>
83
84    <style name="Platform.AppCompat.Light" parent="android:Theme.Holo.Light">
85        <item name="android:windowNoTitle">true</item>
86        <item name="android:windowActionBar">false</item>
87
88        <item name="android:buttonBarStyle">?attr/buttonBarStyle</item>
89        <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item>
90        <item name="android:borderlessButtonStyle">?attr/borderlessButtonStyle</item>
91
92        <!-- Window colors -->
93        <item name="android:colorForeground">@color/foreground_material_light</item>
94        <item name="android:colorForegroundInverse">@color/foreground_material_dark</item>
95        <item name="android:colorBackground">@color/background_material_light</item>
96        <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_light</item>
97        <item name="android:disabledAlpha">@dimen/abc_disabled_alpha_material_light</item>
98        <item name="android:backgroundDimAmount">0.6</item>
99        <item name="android:windowBackground">@color/background_material_light</item>
100
101        <!-- Text colors -->
102        <item name="android:textColorPrimary">@color/abc_primary_text_material_light</item>
103        <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_dark</item>
104        <item name="android:textColorSecondary">@color/abc_secondary_text_material_light</item>
105        <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_dark</item>
106        <item name="android:textColorTertiary">@color/abc_secondary_text_material_light</item>
107        <item name="android:textColorTertiaryInverse">@color/abc_secondary_text_material_dark</item>
108        <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_light</item>
109        <item name="android:textColorPrimaryInverseDisableOnly">@color/abc_primary_text_disable_only_material_dark</item>
110        <item name="android:textColorHint">@color/abc_hint_foreground_material_light</item>
111        <item name="android:textColorHintInverse">@color/abc_hint_foreground_material_dark</item>
112        <item name="android:textColorHighlight">@color/highlighted_text_material_light</item>
113        <item name="android:textColorHighlightInverse">@color/highlighted_text_material_dark</item>
114        <item name="android:textColorLink">?attr/colorAccent</item>
115        <item name="android:textColorLinkInverse">?attr/colorAccent</item>
116        <item name="android:textColorAlertDialogListItem">@color/abc_primary_text_material_light</item>
117
118        <!-- Text styles -->
119        <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
120        <item name="android:textAppearanceInverse">@style/TextAppearance.AppCompat.Inverse</item>
121        <item name="android:textAppearanceLarge">@style/TextAppearance.AppCompat.Large</item>
122        <item name="android:textAppearanceLargeInverse">@style/TextAppearance.AppCompat.Large.Inverse</item>
123        <item name="android:textAppearanceMedium">@style/TextAppearance.AppCompat.Medium</item>
124        <item name="android:textAppearanceMediumInverse">@style/TextAppearance.AppCompat.Medium.Inverse</item>
125        <item name="android:textAppearanceSmall">@style/TextAppearance.AppCompat.Small</item>
126        <item name="android:textAppearanceSmallInverse">@style/TextAppearance.AppCompat.Small.Inverse</item>
127
128        <item name="android:listChoiceIndicatorSingle">@drawable/abc_btn_radio_material</item>
129        <item name="android:listChoiceIndicatorMultiple">@drawable/abc_btn_check_material</item>
130
131        <item name="android:listPreferredItemPaddingLeft">@dimen/abc_list_item_padding_horizontal_material</item>
132        <item name="android:listPreferredItemPaddingRight">@dimen/abc_list_item_padding_horizontal_material</item>
133
134        <item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
135        <item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
136        <item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
137        <item name="android:actionModeSelectAllDrawable">?actionModeSelectAllDrawable</item>
138
139        <item name="android:textSelectHandle">@drawable/abc_text_select_handle_middle_mtrl_light</item>
140        <item name="android:textSelectHandleLeft">@drawable/abc_text_select_handle_left_mtrl_light</item>
141        <item name="android:textSelectHandleRight">@drawable/abc_text_select_handle_right_mtrl_light</item>
142    </style>
143
144    <!-- Themes in the "Base.Theme" family vary based on the current platform
145         version to provide the correct basis on each device. You probably don't
146         want to use them directly in your apps.
147
148         Themes in the "Theme.AppCompat" family are meant to be extended or used
149         directly by apps. -->
150    <eat-comment/>
151
152    <!-- Base platform-dependent theme providing an action bar in a dark-themed activity. -->
153    <style name="Base.V7.Theme.AppCompat" parent="Platform.AppCompat">
154        <item name="viewInflaterClass">androidx.appcompat.app.AppCompatViewInflater</item>
155        <item name="windowNoTitle">false</item>
156        <item name="windowActionBar">true</item>
157        <item name="windowActionBarOverlay">false</item>
158        <item name="windowActionModeOverlay">false</item>
159        <item name="actionBarPopupTheme">@null</item>
160
161        <item name="colorBackgroundFloating">@color/background_floating_material_dark</item>
162
163        <!-- Used by MediaRouter -->
164        <item name="isLightTheme">false</item>
165
166        <item name="selectableItemBackground">@drawable/abc_item_background_holo_dark</item>
167        <item name="selectableItemBackgroundBorderless">?attr/selectableItemBackground</item>
168        <item name="borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
169        <item name="homeAsUpIndicator">@drawable/abc_ic_ab_back_material</item>
170
171        <item name="dividerVertical">@drawable/abc_list_divider_mtrl_alpha</item>
172        <item name="dividerHorizontal">@drawable/abc_list_divider_mtrl_alpha</item>
173
174        <!-- Action Bar Styles -->
175        <item name="actionBarTabStyle">@style/Widget.AppCompat.ActionBar.TabView</item>
176        <item name="actionBarTabBarStyle">@style/Widget.AppCompat.ActionBar.TabBar</item>
177        <item name="actionBarTabTextStyle">@style/Widget.AppCompat.ActionBar.TabText</item>
178        <item name="actionButtonStyle">@style/Widget.AppCompat.ActionButton</item>
179        <item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow</item>
180        <item name="actionOverflowMenuStyle">@style/Widget.AppCompat.PopupMenu.Overflow</item>
181        <item name="actionBarStyle">@style/Widget.AppCompat.ActionBar.Solid</item>
182        <item name="actionBarSplitStyle">?attr/actionBarStyle</item>
183        <item name="actionBarWidgetTheme">@null</item>
184        <item name="actionBarTheme">@style/ThemeOverlay.AppCompat.ActionBar</item>
185        <item name="actionBarSize">@dimen/abc_action_bar_default_height_material</item>
186        <item name="actionBarDivider">?attr/dividerVertical</item>
187        <item name="actionBarItemBackground">?attr/selectableItemBackgroundBorderless</item>
188        <item name="actionMenuTextAppearance">@style/TextAppearance.AppCompat.Widget.ActionBar.Menu</item>
189        <item name="actionMenuTextColor">?android:attr/textColorPrimaryDisableOnly</item>
190
191        <!-- Dropdown Spinner Attributes -->
192        <item name="actionDropDownStyle">@style/Widget.AppCompat.Spinner.DropDown.ActionBar</item>
193
194        <!-- Action Mode -->
195        <item name="actionModeStyle">@style/Widget.AppCompat.ActionMode</item>
196        <item name="actionModeBackground">@drawable/abc_cab_background_top_material</item>
197        <item name="actionModeSplitBackground">?attr/colorPrimaryDark</item>
198        <item name="actionModeCloseDrawable">@drawable/abc_ic_ab_back_material</item>
199        <item name="actionModeCloseButtonStyle">@style/Widget.AppCompat.ActionButton.CloseMode</item>
200
201        <item name="actionModeCutDrawable">@drawable/abc_ic_menu_cut_mtrl_alpha</item>
202        <item name="actionModeCopyDrawable">@drawable/abc_ic_menu_copy_mtrl_am_alpha</item>
203        <item name="actionModePasteDrawable">@drawable/abc_ic_menu_paste_mtrl_am_alpha</item>
204        <item name="actionModeSelectAllDrawable">@drawable/abc_ic_menu_selectall_mtrl_alpha</item>
205        <item name="actionModeShareDrawable">@drawable/abc_ic_menu_share_mtrl_alpha</item>
206
207        <!-- Panel attributes -->
208        <item name="panelMenuListWidth">@dimen/abc_panel_menu_list_width</item>
209        <item name="panelMenuListTheme">@style/Theme.AppCompat.CompactMenu</item>
210        <item name="panelBackground">@drawable/abc_menu_hardkey_panel_mtrl_mult</item>
211        <item name="android:panelBackground">@android:color/transparent</item>
212        <item name="listChoiceBackgroundIndicator">@drawable/abc_list_selector_holo_dark</item>
213
214        <!-- List attributes -->
215        <item name="textAppearanceListItem">@style/TextAppearance.AppCompat.Subhead</item>
216        <item name="textAppearanceListItemSmall">@style/TextAppearance.AppCompat.Subhead</item>
217        <item name="textAppearanceListItemSecondary">@style/TextAppearance.AppCompat.Body1</item>
218        <item name="listPreferredItemHeight">64dp</item>
219        <item name="listPreferredItemHeightSmall">48dp</item>
220        <item name="listPreferredItemHeightLarge">80dp</item>
221        <item name="listPreferredItemPaddingLeft">@dimen/abc_list_item_padding_horizontal_material</item>
222        <item name="listPreferredItemPaddingRight">@dimen/abc_list_item_padding_horizontal_material</item>
223
224        <!-- Spinner styles -->
225        <item name="spinnerStyle">@style/Widget.AppCompat.Spinner</item>
226        <item name="android:spinnerItemStyle">@style/Widget.AppCompat.TextView.SpinnerItem</item>
227        <item name="android:dropDownListViewStyle">@style/Widget.AppCompat.ListView.DropDown</item>
228
229        <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
230        <item name="spinnerDropDownItemStyle">@style/Widget.AppCompat.DropDownItem.Spinner</item>
231        <item name="dropdownListPreferredItemHeight">?attr/listPreferredItemHeightSmall</item>
232
233        <!-- Popup Menu styles -->
234        <item name="popupMenuStyle">@style/Widget.AppCompat.PopupMenu</item>
235        <item name="textAppearanceLargePopupMenu">@style/TextAppearance.AppCompat.Widget.PopupMenu.Large</item>
236        <item name="textAppearanceSmallPopupMenu">@style/TextAppearance.AppCompat.Widget.PopupMenu.Small</item>
237        <item name="textAppearancePopupMenuHeader">@style/TextAppearance.AppCompat.Widget.PopupMenu.Header</item>
238        <item name="listPopupWindowStyle">@style/Widget.AppCompat.ListPopupWindow</item>
239        <item name="dropDownListViewStyle">?android:attr/dropDownListViewStyle</item>
240        <item name="listMenuViewStyle">@style/Widget.AppCompat.ListMenuView</item>
241
242        <!-- SearchView attributes -->
243        <item name="searchViewStyle">@style/Widget.AppCompat.SearchView</item>
244        <item name="android:dropDownItemStyle">@style/Widget.AppCompat.DropDownItem.Spinner</item>
245        <item name="textColorSearchUrl">@color/abc_search_url_text</item>
246        <item name="textAppearanceSearchResultTitle">@style/TextAppearance.AppCompat.SearchResult.Title</item>
247        <item name="textAppearanceSearchResultSubtitle">@style/TextAppearance.AppCompat.SearchResult.Subtitle</item>
248
249        <!-- ShareActionProvider attributes -->
250        <item name="activityChooserViewStyle">@style/Widget.AppCompat.ActivityChooserView</item>
251
252        <!-- Toolbar styles -->
253        <item name="toolbarStyle">@style/Widget.AppCompat.Toolbar</item>
254        <item name="toolbarNavigationButtonStyle">@style/Widget.AppCompat.Toolbar.Button.Navigation</item>
255
256        <item name="editTextStyle">@style/Widget.AppCompat.EditText</item>
257        <item name="editTextBackground">@drawable/abc_edit_text_material</item>
258        <item name="editTextColor">?android:attr/textColorPrimary</item>
259        <item name="autoCompleteTextViewStyle">@style/Widget.AppCompat.AutoCompleteTextView</item>
260
261        <!-- Color palette -->
262        <item name="colorPrimaryDark">@color/primary_dark_material_dark</item>
263        <item name="colorPrimary">@color/primary_material_dark</item>
264        <item name="colorAccent">@color/accent_material_dark</item>
265
266        <item name="colorControlNormal">?android:attr/textColorSecondary</item>
267        <item name="colorControlActivated">?attr/colorAccent</item>
268        <item name="colorControlHighlight">@color/ripple_material_dark</item>
269        <item name="colorButtonNormal">@color/button_material_dark</item>
270        <item name="colorSwitchThumbNormal">@color/switch_thumb_material_dark</item>
271        <item name="controlBackground">?attr/selectableItemBackgroundBorderless</item>
272
273        <item name="drawerArrowStyle">@style/Widget.AppCompat.DrawerArrowToggle</item>
274
275        <item name="checkboxStyle">@style/Widget.AppCompat.CompoundButton.CheckBox</item>
276        <item name="radioButtonStyle">@style/Widget.AppCompat.CompoundButton.RadioButton</item>
277        <item name="switchStyle">@style/Widget.AppCompat.CompoundButton.Switch</item>
278
279        <item name="ratingBarStyle">@style/Widget.AppCompat.RatingBar</item>
280        <item name="ratingBarStyleIndicator">@style/Widget.AppCompat.RatingBar.Indicator</item>
281        <item name="ratingBarStyleSmall">@style/Widget.AppCompat.RatingBar.Small</item>
282        <item name="seekBarStyle">@style/Widget.AppCompat.SeekBar</item>
283
284        <!-- Button styles -->
285        <item name="buttonStyle">@style/Widget.AppCompat.Button</item>
286        <item name="buttonStyleSmall">@style/Widget.AppCompat.Button.Small</item>
287        <item name="android:textAppearanceButton">@style/TextAppearance.AppCompat.Widget.Button</item>
288
289        <item name="imageButtonStyle">@style/Widget.AppCompat.ImageButton</item>
290
291        <item name="buttonBarStyle">@style/Widget.AppCompat.ButtonBar</item>
292        <item name="buttonBarButtonStyle">@style/Widget.AppCompat.Button.ButtonBar.AlertDialog</item>
293        <item name="buttonBarPositiveButtonStyle">?attr/buttonBarButtonStyle</item>
294        <item name="buttonBarNegativeButtonStyle">?attr/buttonBarButtonStyle</item>
295        <item name="buttonBarNeutralButtonStyle">?attr/buttonBarButtonStyle</item>
296
297        <!-- Dialog attributes -->
298        <item name="dialogTheme">@style/ThemeOverlay.AppCompat.Dialog</item>
299        <item name="dialogPreferredPadding">@dimen/abc_dialog_padding_material</item>
300        <item name="dialogCornerRadius">@dimen/abc_dialog_corner_radius_material</item>
301
302        <item name="alertDialogTheme">@style/ThemeOverlay.AppCompat.Dialog.Alert</item>
303        <item name="alertDialogStyle">@style/AlertDialog.AppCompat</item>
304        <item name="alertDialogCenterButtons">false</item>
305        <item name="textColorAlertDialogListItem">@color/abc_primary_text_material_dark</item>
306        <item name="listDividerAlertDialog">@null</item>
307
308        <!-- Define these here; ContextThemeWrappers around themes that define them should
309             always clear these values. -->
310        <item name="windowFixedWidthMajor">@null</item>
311        <item name="windowFixedWidthMinor">@null</item>
312        <item name="windowFixedHeightMajor">@null</item>
313        <item name="windowFixedHeightMinor">@null</item>
314
315        <!-- Tooltip attributes -->
316        <item name="tooltipFrameBackground">@drawable/tooltip_frame_light</item>
317        <item name="tooltipForegroundColor">@color/foreground_material_light</item>
318
319        <item name="colorError">@color/error_color_material_dark</item>
320    </style>
321
322    <!-- Base platform-dependent theme providing an action bar in a light-themed activity. -->
323    <style name="Base.V7.Theme.AppCompat.Light" parent="Platform.AppCompat.Light">
324        <item name="viewInflaterClass">androidx.appcompat.app.AppCompatViewInflater</item>
325
326        <item name="windowNoTitle">false</item>
327        <item name="windowActionBar">true</item>
328        <item name="windowActionBarOverlay">false</item>
329        <item name="windowActionModeOverlay">false</item>
330        <item name="actionBarPopupTheme">@null</item>
331
332        <item name="colorBackgroundFloating">@color/background_floating_material_light</item>
333
334        <!-- Used by MediaRouter -->
335        <item name="isLightTheme">true</item>
336
337        <item name="selectableItemBackground">@drawable/abc_item_background_holo_light</item>
338        <item name="selectableItemBackgroundBorderless">?attr/selectableItemBackground</item>
339        <item name="borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
340        <item name="homeAsUpIndicator">@drawable/abc_ic_ab_back_material</item>
341
342        <item name="dividerVertical">@drawable/abc_list_divider_mtrl_alpha</item>
343        <item name="dividerHorizontal">@drawable/abc_list_divider_mtrl_alpha</item>
344
345        <!-- Action Bar Styles -->
346        <item name="actionBarTabStyle">@style/Widget.AppCompat.Light.ActionBar.TabView</item>
347        <item name="actionBarTabBarStyle">@style/Widget.AppCompat.Light.ActionBar.TabBar</item>
348        <item name="actionBarTabTextStyle">@style/Widget.AppCompat.Light.ActionBar.TabText</item>
349        <item name="actionButtonStyle">@style/Widget.AppCompat.Light.ActionButton</item>
350        <item name="actionOverflowButtonStyle">@style/Widget.AppCompat.Light.ActionButton.Overflow</item>
351        <item name="actionOverflowMenuStyle">@style/Widget.AppCompat.Light.PopupMenu.Overflow</item>
352        <item name="actionBarStyle">@style/Widget.AppCompat.Light.ActionBar.Solid</item>
353        <item name="actionBarSplitStyle">?attr/actionBarStyle</item>
354        <item name="actionBarWidgetTheme">@null</item>
355        <item name="actionBarTheme">@style/ThemeOverlay.AppCompat.ActionBar</item>
356        <item name="actionBarSize">@dimen/abc_action_bar_default_height_material</item>
357        <item name="actionBarDivider">?attr/dividerVertical</item>
358        <item name="actionBarItemBackground">?attr/selectableItemBackgroundBorderless</item>
359        <item name="actionMenuTextAppearance">@style/TextAppearance.AppCompat.Widget.ActionBar.Menu</item>
360        <item name="actionMenuTextColor">?android:attr/textColorPrimaryDisableOnly</item>
361
362        <!-- Action Mode -->
363        <item name="actionModeStyle">@style/Widget.AppCompat.ActionMode</item>
364        <item name="actionModeBackground">@drawable/abc_cab_background_top_material</item>
365        <item name="actionModeSplitBackground">?attr/colorPrimaryDark</item>
366        <item name="actionModeCloseDrawable">@drawable/abc_ic_ab_back_material</item>
367        <item name="actionModeCloseButtonStyle">@style/Widget.AppCompat.ActionButton.CloseMode</item>
368
369        <item name="actionModeCutDrawable">@drawable/abc_ic_menu_cut_mtrl_alpha</item>
370        <item name="actionModeCopyDrawable">@drawable/abc_ic_menu_copy_mtrl_am_alpha</item>
371        <item name="actionModePasteDrawable">@drawable/abc_ic_menu_paste_mtrl_am_alpha</item>
372        <item name="actionModeSelectAllDrawable">@drawable/abc_ic_menu_selectall_mtrl_alpha</item>
373        <item name="actionModeShareDrawable">@drawable/abc_ic_menu_share_mtrl_alpha</item>
374
375        <!-- Dropdown Spinner Attributes -->
376        <item name="actionDropDownStyle">@style/Widget.AppCompat.Light.Spinner.DropDown.ActionBar</item>
377
378        <!-- Panel attributes -->
379        <item name="panelMenuListWidth">@dimen/abc_panel_menu_list_width</item>
380        <item name="panelMenuListTheme">@style/Theme.AppCompat.CompactMenu</item>
381        <item name="panelBackground">@drawable/abc_menu_hardkey_panel_mtrl_mult</item>
382        <item name="android:panelBackground">@android:color/transparent</item>
383        <item name="listChoiceBackgroundIndicator">@drawable/abc_list_selector_holo_light</item>
384
385        <!-- List attributes -->
386        <item name="textAppearanceListItem">@style/TextAppearance.AppCompat.Subhead</item>
387        <item name="textAppearanceListItemSmall">@style/TextAppearance.AppCompat.Subhead</item>
388        <item name="textAppearanceListItemSecondary">@style/TextAppearance.AppCompat.Body1</item>
389        <item name="listPreferredItemHeight">64dp</item>
390        <item name="listPreferredItemHeightSmall">48dp</item>
391        <item name="listPreferredItemHeightLarge">80dp</item>
392        <item name="listPreferredItemPaddingLeft">@dimen/abc_list_item_padding_horizontal_material</item>
393        <item name="listPreferredItemPaddingRight">@dimen/abc_list_item_padding_horizontal_material</item>
394
395        <!-- Spinner styles -->
396        <item name="spinnerStyle">@style/Widget.AppCompat.Spinner</item>
397        <item name="android:spinnerItemStyle">@style/Widget.AppCompat.TextView.SpinnerItem</item>
398        <item name="android:dropDownListViewStyle">@style/Widget.AppCompat.ListView.DropDown</item>
399
400        <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
401        <item name="spinnerDropDownItemStyle">@style/Widget.AppCompat.DropDownItem.Spinner</item>
402        <item name="dropdownListPreferredItemHeight">?attr/listPreferredItemHeightSmall</item>
403
404        <!-- Popup Menu styles -->
405        <item name="popupMenuStyle">@style/Widget.AppCompat.Light.PopupMenu</item>
406        <item name="textAppearanceLargePopupMenu">@style/TextAppearance.AppCompat.Light.Widget.PopupMenu.Large</item>
407        <item name="textAppearanceSmallPopupMenu">@style/TextAppearance.AppCompat.Light.Widget.PopupMenu.Small</item>
408        <item name="textAppearancePopupMenuHeader">@style/TextAppearance.AppCompat.Widget.PopupMenu.Header</item>
409        <item name="listPopupWindowStyle">@style/Widget.AppCompat.ListPopupWindow</item>
410        <item name="dropDownListViewStyle">?android:attr/dropDownListViewStyle</item>
411        <item name="listMenuViewStyle">@style/Widget.AppCompat.ListMenuView</item>
412
413        <!-- SearchView attributes -->
414        <item name="searchViewStyle">@style/Widget.AppCompat.Light.SearchView</item>
415        <item name="android:dropDownItemStyle">@style/Widget.AppCompat.DropDownItem.Spinner</item>
416        <item name="textColorSearchUrl">@color/abc_search_url_text</item>
417        <item name="textAppearanceSearchResultTitle">@style/TextAppearance.AppCompat.SearchResult.Title</item>
418        <item name="textAppearanceSearchResultSubtitle">@style/TextAppearance.AppCompat.SearchResult.Subtitle</item>
419
420        <!-- ShareActionProvider attributes -->
421        <item name="activityChooserViewStyle">@style/Widget.AppCompat.ActivityChooserView</item>
422
423        <!-- Toolbar styles -->
424        <item name="toolbarStyle">@style/Widget.AppCompat.Toolbar</item>
425        <item name="toolbarNavigationButtonStyle">@style/Widget.AppCompat.Toolbar.Button.Navigation</item>
426
427        <item name="editTextStyle">@style/Widget.AppCompat.EditText</item>
428        <item name="editTextBackground">@drawable/abc_edit_text_material</item>
429        <item name="editTextColor">?android:attr/textColorPrimary</item>
430        <item name="autoCompleteTextViewStyle">@style/Widget.AppCompat.AutoCompleteTextView</item>
431
432        <!-- Color palette -->
433        <item name="colorPrimaryDark">@color/primary_dark_material_light</item>
434        <item name="colorPrimary">@color/primary_material_light</item>
435        <item name="colorAccent">@color/accent_material_light</item>
436
437        <item name="colorControlNormal">?android:attr/textColorSecondary</item>
438        <item name="colorControlActivated">?attr/colorAccent</item>
439        <item name="colorControlHighlight">@color/ripple_material_light</item>
440        <item name="colorButtonNormal">@color/button_material_light</item>
441        <item name="colorSwitchThumbNormal">@color/switch_thumb_material_light</item>
442        <item name="controlBackground">?attr/selectableItemBackgroundBorderless</item>
443
444        <item name="drawerArrowStyle">@style/Widget.AppCompat.DrawerArrowToggle</item>
445
446        <item name="checkboxStyle">@style/Widget.AppCompat.CompoundButton.CheckBox</item>
447        <item name="radioButtonStyle">@style/Widget.AppCompat.CompoundButton.RadioButton</item>
448        <item name="switchStyle">@style/Widget.AppCompat.CompoundButton.Switch</item>
449
450        <item name="ratingBarStyle">@style/Widget.AppCompat.RatingBar</item>
451        <item name="ratingBarStyleIndicator">@style/Widget.AppCompat.RatingBar.Indicator</item>
452        <item name="ratingBarStyleSmall">@style/Widget.AppCompat.RatingBar.Small</item>
453        <item name="seekBarStyle">@style/Widget.AppCompat.SeekBar</item>
454
455        <!-- Button styles -->
456        <item name="buttonStyle">@style/Widget.AppCompat.Button</item>
457        <item name="buttonStyleSmall">@style/Widget.AppCompat.Button.Small</item>
458        <item name="android:textAppearanceButton">@style/TextAppearance.AppCompat.Widget.Button</item>
459
460        <item name="imageButtonStyle">@style/Widget.AppCompat.ImageButton</item>
461
462        <item name="buttonBarStyle">@style/Widget.AppCompat.ButtonBar</item>
463        <item name="buttonBarButtonStyle">@style/Widget.AppCompat.Button.ButtonBar.AlertDialog</item>
464        <item name="buttonBarPositiveButtonStyle">?attr/buttonBarButtonStyle</item>
465        <item name="buttonBarNegativeButtonStyle">?attr/buttonBarButtonStyle</item>
466        <item name="buttonBarNeutralButtonStyle">?attr/buttonBarButtonStyle</item>
467
468        <!-- Dialog attributes -->
469        <item name="dialogTheme">@style/ThemeOverlay.AppCompat.Dialog</item>
470        <item name="dialogPreferredPadding">@dimen/abc_dialog_padding_material</item>
471        <item name="dialogCornerRadius">@dimen/abc_dialog_corner_radius_material</item>
472
473        <item name="alertDialogTheme">@style/ThemeOverlay.AppCompat.Dialog.Alert</item>
474        <item name="alertDialogStyle">@style/AlertDialog.AppCompat.Light</item>
475        <item name="alertDialogCenterButtons">false</item>
476        <item name="textColorAlertDialogListItem">@color/abc_primary_text_material_light</item>
477        <item name="listDividerAlertDialog">@null</item>
478
479        <!-- Define these here; ContextThemeWrappers around themes that define them should
480             always clear these values. -->
481        <item name="windowFixedWidthMajor">@null</item>
482        <item name="windowFixedWidthMinor">@null</item>
483        <item name="windowFixedHeightMajor">@null</item>
484        <item name="windowFixedHeightMinor">@null</item>
485
486        <!-- Tooltip attributes -->
487        <item name="tooltipFrameBackground">@drawable/tooltip_frame_dark</item>
488        <item name="tooltipForegroundColor">@color/foreground_material_dark</item>
489
490        <item name="colorError">@color/error_color_material_light</item>
491    </style>
492
493    <style name="Base.Theme.AppCompat" parent="Base.V7.Theme.AppCompat">
494    </style>
495
496    <style name="Base.Theme.AppCompat.Light" parent="Base.V7.Theme.AppCompat.Light">
497    </style>
498
499    <style name="Base.Theme.AppCompat.Light.DarkActionBar" parent="Base.Theme.AppCompat.Light">
500        <item name="actionBarPopupTheme">@style/ThemeOverlay.AppCompat.Light</item>
501        <item name="actionBarWidgetTheme">@null</item>
502        <item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
503
504        <!-- Panel attributes -->
505        <item name="listChoiceBackgroundIndicator">@drawable/abc_list_selector_holo_dark</item>
506
507        <item name="colorPrimaryDark">@color/primary_dark_material_dark</item>
508        <item name="colorPrimary">@color/primary_material_dark</item>
509    </style>
510
511    <!-- Menu/item attributes -->
512    <style name="Base.Theme.AppCompat.CompactMenu" parent="">
513        <item name="android:itemTextAppearance">?android:attr/textAppearanceMedium</item>
514        <item name="android:listViewStyle">@style/Widget.AppCompat.ListView.Menu</item>
515        <item name="android:windowAnimationStyle">@style/Animation.AppCompat.DropDownUp</item>
516    </style>
517
518    <style name="Base.V7.Theme.AppCompat.Dialog" parent="Base.Theme.AppCompat">
519        <item name="android:colorBackground">?attr/colorBackgroundFloating</item>
520        <item name="android:colorBackgroundCacheHint">@null</item>
521
522        <item name="android:windowFrame">@null</item>
523        <item name="android:windowTitleStyle">@style/RtlOverlay.DialogWindowTitle.AppCompat</item>
524        <item name="android:windowTitleBackgroundStyle">@style/Base.DialogWindowTitleBackground.AppCompat</item>
525        <item name="android:windowBackground">@drawable/abc_dialog_material_background</item>
526        <item name="android:windowIsFloating">true</item>
527        <item name="android:backgroundDimEnabled">true</item>
528        <item name="android:windowContentOverlay">@null</item>
529        <item name="android:windowAnimationStyle">@style/Animation.AppCompat.Dialog</item>
530        <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
531
532        <item name="windowActionBar">false</item>
533        <item name="windowActionModeOverlay">true</item>
534
535        <item name="listPreferredItemPaddingLeft">24dip</item>
536        <item name="listPreferredItemPaddingRight">24dip</item>
537
538        <item name="android:listDivider">@null</item>
539
540        <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
541        <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
542        <item name="android:windowCloseOnTouchOutside">true</item>
543    </style>
544
545    <style name="Base.V7.Theme.AppCompat.Light.Dialog" parent="Base.Theme.AppCompat.Light">
546        <item name="android:colorBackground">?attr/colorBackgroundFloating</item>
547        <item name="android:colorBackgroundCacheHint">@null</item>
548
549        <item name="android:windowFrame">@null</item>
550        <item name="android:windowTitleStyle">@style/RtlOverlay.DialogWindowTitle.AppCompat</item>
551        <item name="android:windowTitleBackgroundStyle">@style/Base.DialogWindowTitleBackground.AppCompat</item>
552        <item name="android:windowBackground">@drawable/abc_dialog_material_background</item>
553        <item name="android:windowIsFloating">true</item>
554        <item name="android:backgroundDimEnabled">true</item>
555        <item name="android:windowContentOverlay">@null</item>
556        <item name="android:windowAnimationStyle">@style/Animation.AppCompat.Dialog</item>
557        <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
558
559        <item name="windowActionBar">false</item>
560        <item name="windowActionModeOverlay">true</item>
561
562        <item name="listPreferredItemPaddingLeft">24dip</item>
563        <item name="listPreferredItemPaddingRight">24dip</item>
564
565        <item name="android:listDivider">@null</item>
566
567        <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
568        <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
569        <item name="android:windowCloseOnTouchOutside">true</item>
570    </style>
571
572    <style name="Base.Theme.AppCompat.Dialog" parent="Base.V7.Theme.AppCompat.Dialog" />
573    <style name="Base.Theme.AppCompat.Light.Dialog" parent="Base.V7.Theme.AppCompat.Light.Dialog" />
574
575    <style name="Base.Theme.AppCompat.Dialog.Alert">
576        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
577        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
578    </style>
579
580    <style name="Base.Theme.AppCompat.Light.Dialog.Alert">
581        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
582        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
583    </style>
584
585    <style name="Base.Theme.AppCompat.Dialog.MinWidth">
586        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
587        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
588    </style>
589
590    <style name="Base.Theme.AppCompat.Light.Dialog.MinWidth">
591        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
592        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
593    </style>
594
595    <style name="Base.Theme.AppCompat.Dialog.FixedSize">
596        <item name="windowFixedWidthMajor">@dimen/abc_dialog_fixed_width_major</item>
597        <item name="windowFixedWidthMinor">@dimen/abc_dialog_fixed_width_minor</item>
598        <item name="windowFixedHeightMajor">@dimen/abc_dialog_fixed_height_major</item>
599        <item name="windowFixedHeightMinor">@dimen/abc_dialog_fixed_height_minor</item>
600    </style>
601
602    <style name="Base.Theme.AppCompat.Light.Dialog.FixedSize">
603        <item name="windowFixedWidthMajor">@dimen/abc_dialog_fixed_width_major</item>
604        <item name="windowFixedWidthMinor">@dimen/abc_dialog_fixed_width_minor</item>
605        <item name="windowFixedHeightMajor">@dimen/abc_dialog_fixed_height_major</item>
606        <item name="windowFixedHeightMinor">@dimen/abc_dialog_fixed_height_minor</item>
607    </style>
608
609    <!-- We're not large, so redirect to Theme.AppCompat -->
610    <style name="Base.Theme.AppCompat.DialogWhenLarge" parent="Theme.AppCompat" />
611
612    <style name="Base.Theme.AppCompat.Light.DialogWhenLarge" parent="Theme.AppCompat.Light" />
613
614    <!-- Overlay themes -->
615    <style name="Platform.ThemeOverlay.AppCompat" parent="" />
616
617    <style name="Base.ThemeOverlay.AppCompat" parent="Platform.ThemeOverlay.AppCompat" />
618
619    <style name="Platform.ThemeOverlay.AppCompat.Dark">
620        <!-- Action Bar styles -->
621        <item name="actionBarItemBackground">@drawable/abc_item_background_holo_dark</item>
622        <item name="actionDropDownStyle">@style/Widget.AppCompat.Spinner.DropDown.ActionBar</item>
623        <item name="selectableItemBackground">@drawable/abc_item_background_holo_dark</item>
624
625        <!-- SearchView styles -->
626        <item name="android:autoCompleteTextViewStyle">@style/Widget.AppCompat.AutoCompleteTextView</item>
627        <item name="android:dropDownItemStyle">@style/Widget.AppCompat.DropDownItem.Spinner</item>
628    </style>
629
630    <style name="Platform.ThemeOverlay.AppCompat.Light">
631        <item name="actionBarItemBackground">@drawable/abc_item_background_holo_light</item>
632        <item name="actionDropDownStyle">@style/Widget.AppCompat.Light.Spinner.DropDown.ActionBar</item>
633        <item name="selectableItemBackground">@drawable/abc_item_background_holo_light</item>
634
635        <!-- SearchView attributes -->
636        <item name="android:autoCompleteTextViewStyle">@style/Widget.AppCompat.Light.AutoCompleteTextView</item>
637        <item name="android:dropDownItemStyle">@style/Widget.AppCompat.DropDownItem.Spinner</item>
638    </style>
639
640    <style name="Base.ThemeOverlay.AppCompat.Light" parent="Platform.ThemeOverlay.AppCompat.Light">
641        <item name="android:windowBackground">@color/background_material_light</item>
642        <item name="android:colorForeground">@color/foreground_material_light</item>
643        <item name="android:colorForegroundInverse">@color/foreground_material_dark</item>
644        <item name="android:colorBackground">@color/background_material_light</item>
645        <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_light</item>
646        <item name="colorBackgroundFloating">@color/background_floating_material_light</item>
647
648        <item name="android:textColorPrimary">@color/abc_primary_text_material_light</item>
649        <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_dark</item>
650        <item name="android:textColorSecondary">@color/abc_secondary_text_material_light</item>
651        <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_dark</item>
652        <item name="android:textColorTertiary">@color/abc_secondary_text_material_light</item>
653        <item name="android:textColorTertiaryInverse">@color/abc_secondary_text_material_dark</item>
654        <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_light</item>
655        <item name="android:textColorPrimaryInverseDisableOnly">@color/abc_primary_text_disable_only_material_dark</item>
656        <item name="android:textColorHint">@color/abc_hint_foreground_material_light</item>
657        <item name="android:textColorHintInverse">@color/abc_hint_foreground_material_dark</item>
658        <item name="android:textColorHighlight">@color/highlighted_text_material_light</item>
659
660        <item name="colorControlNormal">?android:attr/textColorSecondary</item>
661        <item name="colorControlHighlight">@color/ripple_material_light</item>
662        <item name="colorButtonNormal">@color/button_material_light</item>
663        <item name="colorSwitchThumbNormal">@color/switch_thumb_material_light</item>
664
665        <!-- Used by MediaRouter -->
666        <item name="isLightTheme">true</item>
667    </style>
668
669    <style name="Base.ThemeOverlay.AppCompat.Dark" parent="Platform.ThemeOverlay.AppCompat.Dark">
670        <item name="android:windowBackground">@color/background_material_dark</item>
671        <item name="android:colorForeground">@color/foreground_material_dark</item>
672        <item name="android:colorForegroundInverse">@color/foreground_material_light</item>
673        <item name="android:colorBackground">@color/background_material_dark</item>
674        <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_dark</item>
675        <item name="colorBackgroundFloating">@color/background_floating_material_dark</item>
676
677        <item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item>
678        <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item>
679        <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_dark</item>
680        <item name="android:textColorSecondary">@color/abc_secondary_text_material_dark</item>
681        <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_light</item>
682        <item name="android:textColorTertiary">@color/abc_secondary_text_material_dark</item>
683        <item name="android:textColorTertiaryInverse">@color/abc_secondary_text_material_light</item>
684        <item name="android:textColorHint">@color/abc_hint_foreground_material_dark</item>
685        <item name="android:textColorHintInverse">@color/abc_hint_foreground_material_light</item>
686        <item name="android:textColorHighlight">@color/highlighted_text_material_dark</item>
687
688        <item name="colorControlNormal">?android:attr/textColorSecondary</item>
689        <item name="colorControlHighlight">@color/ripple_material_dark</item>
690        <item name="colorButtonNormal">@color/button_material_dark</item>
691        <item name="colorSwitchThumbNormal">@color/switch_thumb_material_dark</item>
692
693        <!-- Used by MediaRouter -->
694        <item name="isLightTheme">false</item>
695    </style>
696
697    <style name="Base.ThemeOverlay.AppCompat.ActionBar">
698        <item name="colorControlNormal">?android:attr/textColorPrimary</item>
699        <item name="searchViewStyle">@style/Widget.AppCompat.SearchView.ActionBar</item>
700    </style>
701
702    <style name="Base.ThemeOverlay.AppCompat.Dark.ActionBar">
703        <item name="colorControlNormal">?android:attr/textColorPrimary</item>
704        <item name="searchViewStyle">@style/Widget.AppCompat.SearchView.ActionBar</item>
705    </style>
706
707    <!-- Theme overlay that overrides window properties to display as a dialog. -->
708    <style name="Base.ThemeOverlay.AppCompat.Dialog" parent="Base.V7.ThemeOverlay.AppCompat.Dialog" />
709
710    <style name="Base.ThemeOverlay.AppCompat.Dialog.Alert">
711        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
712        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
713    </style>
714
715    <!-- Theme overlay that overrides window properties to display as a dialog. -->
716    <style name="Base.V7.ThemeOverlay.AppCompat.Dialog" parent="Base.ThemeOverlay.AppCompat">
717        <item name="android:colorBackgroundCacheHint">@null</item>
718        <item name="android:colorBackground">?attr/colorBackgroundFloating</item>
719
720        <item name="android:windowFrame">@null</item>
721        <item name="android:windowTitleStyle">@style/RtlOverlay.DialogWindowTitle.AppCompat</item>
722        <item name="android:windowTitleBackgroundStyle">@style/Base.DialogWindowTitleBackground.AppCompat</item>
723        <item name="android:windowBackground">@drawable/abc_dialog_material_background</item>
724        <item name="android:windowIsFloating">true</item>
725        <item name="android:backgroundDimEnabled">true</item>
726        <item name="android:windowContentOverlay">@null</item>
727        <item name="android:windowAnimationStyle">@style/Animation.AppCompat.Dialog</item>
728        <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
729
730        <item name="windowActionBar">false</item>
731        <item name="windowActionModeOverlay">true</item>
732
733        <item name="listPreferredItemPaddingLeft">24dip</item>
734        <item name="listPreferredItemPaddingRight">24dip</item>
735
736        <item name="android:listDivider">@null</item>
737
738        <item name="windowFixedWidthMajor">@null</item>
739        <item name="windowFixedWidthMinor">@null</item>
740        <item name="windowFixedHeightMajor">@null</item>
741        <item name="windowFixedHeightMinor">@null</item>
742
743        <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
744        <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
745        <item name="android:windowCloseOnTouchOutside">true</item>
746    </style>
747
748</resources>
749