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