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     <!-- Themes in the "Theme.AppCompat" family will contain an action bar by default.
     20          If Holo themes are available on the current platform version they will be used.
     21          A limited Holo-styled action bar will be provided on platform versions older
     22          than 3.0. (API 11)
     23 
     24          These theme declarations contain any version-independent specification. Items
     25          that need to vary based on platform version should be defined in the corresponding
     26          "Theme.Base" theme. -->
     27 
     28     <!-- Platform-independent theme providing an action bar in a dark-themed activity. -->
     29     <style name="Theme.AppCompat" parent="Theme.Base.AppCompat">
     30         <item name="isLightTheme">false</item>
     31 
     32         <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
     33         <item name="spinnerDropDownItemStyle">
     34             @style/Widget.AppCompat.DropDownItem.Spinner
     35         </item>
     36         <item name="dropdownListPreferredItemHeight">?attr/listPreferredItemHeightSmall</item>
     37         <item name="searchResultListItemHeight">58dip</item>
     38 
     39         <!-- Popup Menu styles -->
     40         <item name="popupMenuStyle">@style/Widget.AppCompat.PopupMenu</item>
     41         <item name="textAppearanceLargePopupMenu">
     42             @style/TextAppearance.AppCompat.Widget.PopupMenu.Large
     43         </item>
     44         <item name="textAppearanceSmallPopupMenu">
     45             @style/TextAppearance.AppCompat.Widget.PopupMenu.Small
     46         </item>
     47 
     48         <item name="listPopupWindowStyle">@style/Widget.AppCompat.PopupMenu</item>
     49         <item name="dropDownListViewStyle">@style/Widget.AppCompat.ListView.DropDown</item>
     50 
     51         <!-- SearchView attributes -->
     52         <item name="searchDropdownBackground">@drawable/abc_search_dropdown_dark</item>
     53         <item name="searchViewTextField">@drawable/abc_textfield_searchview_holo_dark</item>
     54         <item name="searchViewTextFieldRight">@drawable/abc_textfield_searchview_right_holo_dark
     55         </item>
     56         <item name="searchViewCloseIcon">@drawable/abc_ic_clear</item>
     57         <item name="searchViewSearchIcon">@drawable/abc_ic_search</item>
     58         <item name="searchViewGoIcon">@drawable/abc_ic_go</item>
     59         <item name="searchViewVoiceIcon">@drawable/abc_ic_voice_search</item>
     60         <item name="searchViewEditQuery">@drawable/abc_ic_commit_search_api_holo_dark</item>
     61         <item name="searchViewEditQueryBackground">?attr/selectableItemBackground</item>
     62         <item name="searchViewAutoCompleteTextView">
     63             @style/Widget.AppCompat.AutoCompleteTextView</item>
     64         <item name="textColorSearchUrl">@color/abc_search_url_text_holo</item>
     65         <item name="textAppearanceSearchResultTitle">
     66             @style/TextAppearance.AppCompat.SearchResult.Title
     67         </item>
     68         <item name="textAppearanceSearchResultSubtitle">
     69             @style/TextAppearance.AppCompat.SearchResult.Subtitle
     70         </item>
     71 
     72         <item name="actionModeShareDrawable">@drawable/abc_ic_menu_share_holo_dark</item>
     73 
     74         <!-- ShareActionProvider attributes -->
     75         <item name="activityChooserViewStyle">@style/Widget.AppCompat.ActivityChooserView</item>
     76 
     77     </style>
     78 
     79     <!-- Platform-independent theme providing an action bar in a light-themed activity. -->
     80     <style name="Theme.AppCompat.Light" parent="Theme.Base.AppCompat.Light">
     81         <item name="isLightTheme">true</item>
     82 
     83         <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
     84         <item name="spinnerDropDownItemStyle">
     85             @style/Widget.AppCompat.Light.DropDownItem.Spinner
     86         </item>
     87         <item name="dropdownListPreferredItemHeight">?attr/listPreferredItemHeightSmall</item>
     88         <item name="searchResultListItemHeight">58dip</item>
     89 
     90         <!-- Popup Menu styles -->
     91         <item name="popupMenuStyle">@style/Widget.AppCompat.Light.PopupMenu</item>
     92         <item name="textAppearanceLargePopupMenu">
     93             @style/TextAppearance.AppCompat.Light.Widget.PopupMenu.Large
     94         </item>
     95         <item name="textAppearanceSmallPopupMenu">
     96             @style/TextAppearance.AppCompat.Light.Widget.PopupMenu.Small
     97         </item>
     98 
     99         <item name="listPopupWindowStyle">@style/Widget.AppCompat.Light.PopupMenu</item>
    100         <item name="dropDownListViewStyle">@style/Widget.AppCompat.Light.ListView.DropDown</item>
    101 
    102         <!-- SearchView attributes -->
    103         <item name="searchDropdownBackground">@drawable/abc_search_dropdown_light</item>
    104         <item name="searchViewTextField">@drawable/abc_textfield_searchview_holo_light</item>
    105         <item name="searchViewTextFieldRight">@drawable/abc_textfield_searchview_right_holo_light
    106         </item>
    107         <item name="searchViewCloseIcon">@drawable/abc_ic_clear_holo_light</item>
    108         <item name="searchViewSearchIcon">@drawable/abc_ic_search_api_holo_light</item>
    109         <item name="searchViewGoIcon">@drawable/abc_ic_go_search_api_holo_light</item>
    110         <item name="searchViewVoiceIcon">@drawable/abc_ic_voice_search_api_holo_light</item>
    111         <item name="searchViewEditQuery">@drawable/abc_ic_commit_search_api_holo_light</item>
    112         <item name="searchViewEditQueryBackground">?attr/selectableItemBackground</item>
    113         <item name="searchViewAutoCompleteTextView">
    114             @style/Widget.AppCompat.Light.AutoCompleteTextView</item>
    115         <item name="textColorSearchUrl">@color/abc_search_url_text_holo</item>
    116         <item name="textAppearanceSearchResultTitle">
    117             @style/TextAppearance.AppCompat.Light.SearchResult.Title
    118         </item>
    119         <item name="textAppearanceSearchResultSubtitle">
    120             @style/TextAppearance.AppCompat.Light.SearchResult.Subtitle
    121         </item>
    122 
    123         <item name="actionModeShareDrawable">@drawable/abc_ic_menu_share_holo_light</item>
    124 
    125         <!-- ShareActionProvider attributes -->
    126         <item name="activityChooserViewStyle">@style/Widget.AppCompat.Light.ActivityChooserView
    127         </item>
    128 
    129     </style>
    130 
    131     <!-- Platform-independent theme providing an action bar in a dark-themed activity. -->
    132     <style name="Theme.AppCompat.Light.DarkActionBar"
    133            parent="Theme.Base.AppCompat.Light.DarkActionBar">
    134         <item name="isLightTheme">true</item>
    135 
    136         <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
    137         <item name="spinnerDropDownItemStyle">
    138             @style/Widget.AppCompat.Light.DropDownItem.Spinner
    139         </item>
    140         <item name="dropdownListPreferredItemHeight">?attr/listPreferredItemHeightSmall</item>
    141         <item name="searchResultListItemHeight">58dip</item>
    142 
    143         <!-- Popup Menu styles -->
    144         <item name="popupMenuStyle">@style/Widget.AppCompat.Light.PopupMenu</item>
    145         <item name="textAppearanceLargePopupMenu">
    146             @style/TextAppearance.AppCompat.Light.Widget.PopupMenu.Large
    147         </item>
    148         <item name="textAppearanceSmallPopupMenu">
    149             @style/TextAppearance.AppCompat.Light.Widget.PopupMenu.Small
    150         </item>
    151 
    152         <item name="listPopupWindowStyle">@style/Widget.AppCompat.PopupMenu</item>
    153         <item name="dropDownListViewStyle">@style/Widget.AppCompat.ListView.DropDown</item>
    154 
    155         <!-- SearchView attributes -->
    156         <item name="searchDropdownBackground">@drawable/abc_search_dropdown_dark</item>
    157         <item name="searchViewTextField">@drawable/abc_textfield_searchview_holo_dark</item>
    158         <item name="searchViewTextFieldRight">@drawable/abc_textfield_searchview_right_holo_dark
    159         </item>
    160         <item name="searchViewCloseIcon">@drawable/abc_ic_clear</item>
    161         <item name="searchViewSearchIcon">@drawable/abc_ic_search</item>
    162         <item name="searchViewGoIcon">@drawable/abc_ic_go</item>
    163         <item name="searchViewVoiceIcon">@drawable/abc_ic_voice_search</item>
    164         <item name="searchViewEditQuery">@drawable/abc_ic_commit_search_api_holo_dark</item>
    165         <item name="searchViewEditQueryBackground">?attr/selectableItemBackground</item>
    166         <item name="searchViewAutoCompleteTextView">
    167             @style/Widget.AppCompat.AutoCompleteTextView</item>
    168         <item name="textColorSearchUrl">@color/abc_search_url_text_holo</item>
    169         <item name="textAppearanceSearchResultTitle">
    170             @style/TextAppearance.AppCompat.SearchResult.Title
    171         </item>
    172         <item name="textAppearanceSearchResultSubtitle">
    173             @style/TextAppearance.AppCompat.SearchResult.Subtitle
    174         </item>
    175 
    176         <item name="actionModeShareDrawable">@drawable/abc_ic_menu_share_holo_dark</item>
    177 
    178         <!-- ShareActionProvider attributes -->
    179         <item name="activityChooserViewStyle">@style/Widget.AppCompat.ActivityChooserView
    180         </item>
    181 
    182     </style>
    183 
    184 
    185     <!-- Menu/item attributes -->
    186     <style name="Theme.AppCompat.CompactMenu" parent="Theme.AppCompat.Base.CompactMenu">
    187     </style>
    188 
    189     <style name="Theme.AppCompat.CompactMenu.Dialog"
    190            parent="Theme.AppCompat.Base.CompactMenu.Dialog">
    191     </style>
    192 
    193 </resources>
    194