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     <!-- Like in themes_base.xml, the namespace "Base.AppCompat.*" is used to
     20          define base styles for the platform version. The "*.AppCompat"
     21          variants are for direct use or use as parent styles by the app. -->
     22     <eat-comment/>
     23 
     24     <style name="Base.Widget.AppCompat.ActionBar" parent="">
     25         <item name="displayOptions">showTitle</item>
     26         <item name="divider">?attr/dividerVertical</item>
     27         <item name="height">?attr/actionBarSize</item>
     28 
     29         <item name="titleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionBar.Title</item>
     30         <item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle</item>
     31 
     32         <item name="background">@null</item>
     33         <item name="backgroundStacked">@null</item>
     34         <item name="backgroundSplit">@null</item>
     35 
     36         <item name="actionButtonStyle">@style/Widget.AppCompat.ActionButton</item>
     37         <item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow</item>
     38 
     39         <item name="android:gravity">center_vertical</item>
     40         <item name="elevation">8dp</item>
     41         <item name="popupTheme">?attr/actionBarPopupTheme</item>
     42     </style>
     43 
     44     <style name="Base.Widget.AppCompat.Light.ActionBar" parent="Base.Widget.AppCompat.ActionBar">
     45         <item name="actionButtonStyle">@style/Widget.AppCompat.Light.ActionButton</item>
     46         <item name="actionOverflowButtonStyle">@style/Widget.AppCompat.Light.ActionButton.Overflow</item>
     47     </style>
     48 
     49     <style name="Base.Widget.AppCompat.ActionBar.Solid">
     50         <item name="background">?attr/colorPrimary</item>
     51         <item name="backgroundStacked">?attr/colorPrimary</item>
     52         <item name="backgroundSplit">?attr/colorPrimary</item>
     53     </style>
     54 
     55     <style name="Base.Widget.AppCompat.Light.ActionBar.Solid">
     56         <item name="background">?attr/colorPrimary</item>
     57         <item name="backgroundStacked">?attr/colorPrimary</item>
     58         <item name="backgroundSplit">?attr/colorPrimary</item>
     59     </style>
     60 
     61     <style name="Base.Widget.AppCompat.ActionButton" parent="">
     62         <item name="android:background">?attr/actionBarItemBackground</item>
     63         <item name="android:paddingLeft">12dip</item>
     64         <item name="android:paddingRight">12dip</item>
     65         <item name="android:minWidth">@dimen/abc_action_button_min_width_material</item>
     66         <item name="android:minHeight">@dimen/abc_action_button_min_height_material</item>
     67         <item name="android:scaleType">center</item>
     68         <item name="android:gravity">center</item>
     69         <item name="android:maxLines">2</item>
     70         <item name="textAllCaps">@bool/abc_config_actionMenuItemAllCaps</item>
     71     </style>
     72 
     73     <style name="Base.Widget.AppCompat.ActionButton.CloseMode">
     74         <item name="android:background">?attr/selectableItemBackgroundBorderless</item>
     75     </style>
     76 
     77     <style name="Base.Widget.AppCompat.ActionButton.Overflow">
     78         <item name="android:src">@drawable/abc_ic_menu_moreoverflow_mtrl_alpha</item>
     79         <item name="android:background">?attr/actionBarItemBackground</item>
     80         <item name="android:contentDescription">@string/abc_action_menu_overflow_description</item>
     81         <item name="android:minWidth">@dimen/abc_action_button_min_width_overflow_material</item>
     82         <item name="android:minHeight">@dimen/abc_action_button_min_height_material</item>
     83     </style>
     84 
     85     <style name="Base.Widget.AppCompat.ActionBar.TabBar" parent="">
     86         <item name="divider">?attr/actionBarDivider</item>
     87         <item name="showDividers">middle</item>
     88         <item name="dividerPadding">8dip</item>
     89     </style>
     90 
     91     <style name="Base.Widget.AppCompat.Light.ActionBar.TabBar"
     92            parent="Base.Widget.AppCompat.ActionBar.TabBar">
     93     </style>
     94 
     95     <style name="Base.Widget.AppCompat.ActionBar.TabView" parent="">
     96         <item name="android:background">@drawable/abc_tab_indicator_material</item>
     97         <item name="android:gravity">center_horizontal</item>
     98         <item name="android:paddingLeft">16dip</item>
     99         <item name="android:paddingRight">16dip</item>
    100         <item name="android:layout_width">0dip</item>
    101         <item name="android:layout_weight">1</item>
    102         <item name="android:minWidth">80dip</item>
    103     </style>
    104 
    105     <style name="Base.Widget.AppCompat.Light.ActionBar.TabView" parent="Base.Widget.AppCompat.ActionBar.TabView">
    106         <item name="android:background">@drawable/abc_tab_indicator_material</item>
    107     </style>
    108 
    109     <style name="Base.Widget.AppCompat.ActionBar.TabText" parent="">
    110         <item name="android:textAppearance">@style/TextAppearance.AppCompat.Medium</item>
    111         <item name="android:textColor">?android:attr/textColorPrimary</item>
    112         <item name="android:textSize">12sp</item>
    113         <item name="android:textStyle">bold</item>
    114         <item name="android:ellipsize">marquee</item>
    115         <item name="android:maxLines">2</item>
    116         <item name="android:maxWidth">180dp</item>
    117         <item name="textAllCaps">true</item>
    118     </style>
    119 
    120     <style name="Base.Widget.AppCompat.Light.ActionBar.TabText"
    121            parent="Base.Widget.AppCompat.ActionBar.TabText">
    122     </style>
    123 
    124     <style name="Base.Widget.AppCompat.Light.ActionBar.TabText.Inverse"
    125            parent="Base.Widget.AppCompat.Light.ActionBar.TabText">
    126         <item name="android:textAppearance">@style/TextAppearance.AppCompat.Medium.Inverse</item>
    127     </style>
    128 
    129     <style name="Base.Widget.AppCompat.ActionMode" parent="">
    130         <item name="background">?attr/actionModeBackground</item>
    131         <item name="backgroundSplit">?attr/actionModeSplitBackground</item>
    132         <item name="height">?attr/actionBarSize</item>
    133         <item name="titleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Title</item>
    134         <item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Subtitle</item>
    135         <item name="closeItemLayout">@layout/abc_action_mode_close_item_material</item>
    136     </style>
    137 
    138     <style name="Base.TextAppearance.AppCompat.Widget.ActionMode.Title" parent="TextAppearance.AppCompat.Title">
    139         <item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item>
    140     </style>
    141 
    142     <style name="Base.TextAppearance.AppCompat.Widget.ActionMode.Subtitle" parent="TextAppearance.AppCompat.Subhead">
    143         <item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item>
    144     </style>
    145 
    146     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Menu" parent="android:TextAppearance.Small">
    147         <item name="android:textSize">12sp</item>
    148         <item name="android:textStyle">bold</item>
    149         <item name="android:textColor">?attr/actionMenuTextColor</item>
    150     </style>
    151 
    152     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Title" parent="TextAppearance.AppCompat.Title">
    153         <item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item>
    154     </style>
    155 
    156     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Subtitle" parent="TextAppearance.AppCompat.Subhead">
    157         <item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item>
    158     </style>
    159 
    160     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse" parent="TextAppearance.AppCompat.Title.Inverse">
    161         <item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item>
    162     </style>
    163 
    164     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Subtitle.Inverse" parent="TextAppearance.AppCompat.Subhead.Inverse">
    165         <item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item>
    166     </style>
    167 
    168     <style name="Base.Widget.AppCompat.ProgressBar.Horizontal" parent="android:Widget.ProgressBar.Horizontal">
    169     </style>
    170 
    171     <style name="Base.Widget.AppCompat.ProgressBar" parent="android:Widget.ProgressBar">
    172         <item name="android:minWidth">@dimen/abc_action_bar_progress_bar_size</item>
    173         <item name="android:maxWidth">@dimen/abc_action_bar_progress_bar_size</item>
    174         <item name="android:minHeight">@dimen/abc_action_bar_progress_bar_size</item>
    175         <item name="android:maxHeight">@dimen/abc_action_bar_progress_bar_size</item>
    176     </style>
    177 
    178     <!-- Spinner Widgets -->
    179 
    180     <style name="Base.Widget.AppCompat.Spinner" parent="android:Widget.Spinner">
    181         <item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>
    182         <item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
    183         <item name="android:dropDownVerticalOffset">0dip</item>
    184     </style>
    185 
    186     <style name="Base.Widget.AppCompat.Spinner.Underlined">
    187         <item name="android:background">@drawable/abc_spinner_textfield_background_material</item>
    188     </style>
    189 
    190     <style name="Base.Widget.AppCompat.Spinner.DropDown.ActionBar" parent="android:Widget">
    191         <item name="spinnerMode">dropdown</item>
    192 
    193         <item name="android:clickable">true</item>
    194         <item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>
    195         <item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
    196         <item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item>
    197         <item name="android:dropDownVerticalOffset">0dip</item>
    198         <item name="android:dropDownHorizontalOffset">0dip</item>
    199         <item name="overlapAnchor">true</item>
    200         <item name="android:dropDownWidth">wrap_content</item>
    201         <item name="popupPromptView">@layout/abc_simple_dropdown_hint</item>
    202         <item name="android:gravity">left|start|center_vertical</item>
    203         <item name="disableChildrenWhenDisabled">true</item>
    204     </style>
    205 
    206     <style name="Base.Widget.AppCompat.DropDownItem.Spinner" parent="">
    207         <item name="android:textAppearance">@style/TextAppearance.AppCompat.Widget.DropDownItem</item>
    208         <item name="android:paddingLeft">8dp</item>
    209         <item name="android:paddingRight">8dp</item>
    210         <item name="android:gravity">center_vertical</item>
    211     </style>
    212 
    213     <style name="Base.Widget.AppCompat.ListView.DropDown" parent="android:Widget.ListView">
    214         <item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item>
    215         <item name="android:divider">@null</item>
    216     </style>
    217 
    218     <style name="Base.TextAppearance.AppCompat.Widget.DropDownItem"
    219            parent="android:TextAppearance.Small">
    220         <item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item>
    221     </style>
    222 
    223     <style name="Base.TextAppearance.Widget.AppCompat.ExpandedMenu.Item"
    224            parent="android:TextAppearance.Medium">
    225         <item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item>
    226     </style>
    227 
    228     <style name="Base.Widget.AppCompat.ListView.Menu" parent="android:Widget.ListView.Menu">
    229         <item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item>
    230         <item name="android:divider">?attr/dividerHorizontal</item>
    231     </style>
    232 
    233     <style name="Base.Widget.AppCompat.ListPopupWindow" parent="">
    234         <item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
    235         <item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item>
    236         <item name="android:dropDownVerticalOffset">0dip</item>
    237         <item name="android:dropDownHorizontalOffset">0dip</item>
    238         <item name="android:dropDownWidth">wrap_content</item>
    239     </style>
    240 
    241     <style name="Base.Widget.AppCompat.PopupMenu.Overflow">
    242         <item name="overlapAnchor">true</item>
    243         <item name="android:dropDownHorizontalOffset">-4dip</item>
    244     </style>
    245 
    246     <style name="Base.Widget.AppCompat.Light.PopupMenu.Overflow">
    247         <item name="overlapAnchor">true</item>
    248         <item name="android:dropDownHorizontalOffset">-4dip</item>
    249     </style>
    250 
    251     <style name="Base.Widget.AppCompat.PopupMenu" parent="@style/Widget.AppCompat.ListPopupWindow">
    252     </style>
    253 
    254     <style name="Base.Widget.AppCompat.Light.PopupMenu" parent="@style/Widget.AppCompat.ListPopupWindow">
    255     </style>
    256 
    257     <style name="Base.TextAppearance.AppCompat.Widget.PopupMenu.Large" parent="TextAppearance.AppCompat.Menu">
    258     </style>
    259 
    260     <style name="Base.TextAppearance.AppCompat.Widget.PopupMenu.Small" parent="TextAppearance.AppCompat.Menu">
    261     </style>
    262 
    263     <style name="Base.TextAppearance.AppCompat.Light.Widget.PopupMenu.Large" parent="TextAppearance.AppCompat.Menu">
    264     </style>
    265 
    266     <style name="Base.TextAppearance.AppCompat.Light.Widget.PopupMenu.Small" parent="TextAppearance.AppCompat.Menu">
    267     </style>
    268 
    269     <style name="Base.TextAppearance.AppCompat.SearchResult" parent="">
    270         <item name="android:textStyle">normal</item>
    271         <item name="android:textColor">?android:textColorPrimary</item>
    272         <item name="android:textColorHint">?android:textColorHint</item>
    273     </style>
    274 
    275     <style name="Base.TextAppearance.AppCompat.SearchResult.Title">
    276         <item name="android:textSize">18sp</item>
    277     </style>
    278 
    279     <style name="Base.TextAppearance.AppCompat.SearchResult.Subtitle">
    280         <item name="android:textSize">14sp</item>
    281         <item name="android:textColor">?android:textColorSecondary</item>
    282     </style>
    283 
    284     <style name="Base.Widget.AppCompat.AutoCompleteTextView" parent="android:Widget.AutoCompleteTextView">
    285         <item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
    286         <item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item>
    287         <item name="android:background">?attr/editTextBackground</item>
    288         <item name="android:textColor">?attr/editTextColor</item>
    289         <item name="android:textAppearance">?android:attr/textAppearanceMediumInverse</item>
    290     </style>
    291 
    292     <style name="Base.Widget.AppCompat.ActivityChooserView" parent="">
    293         <item name="android:gravity">center</item>
    294         <item name="android:background">@drawable/abc_ab_share_pack_mtrl_alpha</item>
    295         <item name="divider">?attr/dividerVertical</item>
    296         <item name="showDividers">middle</item>
    297         <item name="dividerPadding">6dip</item>
    298     </style>
    299 
    300     <style name="Base.Widget.AppCompat.PopupWindow" parent="android:Widget.PopupWindow">
    301     </style>
    302 
    303     <style name="Base.Widget.AppCompat.Toolbar" parent="android:Widget">
    304         <item name="titleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Title</item>
    305         <item name="subtitleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Subtitle</item>
    306         <item name="android:minHeight">?attr/actionBarSize</item>
    307         <item name="titleMargins">4dp</item>
    308         <item name="maxButtonHeight">56dp</item>
    309         <item name="collapseIcon">?attr/homeAsUpIndicator</item>
    310         <item name="collapseContentDescription">@string/abc_toolbar_collapse_description</item>
    311         <item name="contentInsetStart">16dp</item>
    312     </style>
    313 
    314     <style name="Base.Widget.AppCompat.Toolbar.Button.Navigation" parent="android:Widget">
    315         <item name="android:minWidth">56dp</item>
    316         <item name="android:scaleType">center</item>
    317         <item name="android:background">?attr/selectableItemBackground</item>
    318     </style>
    319 
    320     <style name="Base.TextAppearance.Widget.AppCompat.Toolbar.Title"
    321            parent="TextAppearance.AppCompat.Widget.ActionBar.Title">
    322     </style>
    323 
    324     <style name="Base.TextAppearance.Widget.AppCompat.Toolbar.Subtitle"
    325            parent="TextAppearance.AppCompat.Widget.ActionBar.Subtitle">
    326     </style>
    327 
    328     <style name="Base.Widget.AppCompat.SearchView" parent="android:Widget">
    329         <item name="layout">@layout/abc_search_view</item>
    330         <item name="queryBackground">@drawable/abc_textfield_search_material</item>
    331         <item name="submitBackground">@drawable/abc_textfield_search_material</item>
    332         <item name="closeIcon">@drawable/abc_ic_clear_mtrl_alpha</item>
    333         <item name="searchIcon">@drawable/abc_ic_search_api_mtrl_alpha</item>
    334         <item name="goIcon">@drawable/abc_ic_go_search_api_mtrl_alpha</item>
    335         <item name="voiceIcon">@drawable/abc_ic_voice_search_api_mtrl_alpha</item>
    336         <item name="commitIcon">@drawable/abc_ic_commit_search_api_mtrl_alpha</item>
    337         <item name="suggestionRowLayout">@layout/abc_search_dropdown_item_icons_2line</item>
    338     </style>
    339 
    340     <style name="Base.Widget.AppCompat.EditText" parent="android:Widget.EditText">
    341         <item name="android:background">?attr/editTextBackground</item>
    342         <item name="android:textColor">?attr/editTextColor</item>
    343         <item name="android:textAppearance">?android:attr/textAppearanceMediumInverse</item>
    344     </style>
    345     <!-- contains values used in all dpis -->
    346     <style name="Base.Widget.AppCompat.DrawerArrowToggle.Common" parent="">
    347         <item name="color">?android:attr/textColorSecondary</item>
    348         <item name="middleBarArrowSize">16dp</item>
    349         <item name="spinBars">true</item>
    350         <item name="thickness">2dp</item>
    351         <item name="topBottomBarArrowSize">11.31dp</item>
    352     </style>
    353 
    354     <!-- contains values used in all dpis except hdpi and xxhdpi -->
    355     <style name="Base.Widget.AppCompat.DrawerArrowToggle" parent="Base.Widget.AppCompat.DrawerArrowToggle.Common">
    356         <item name="barSize">18dp</item>
    357         <item name="gapBetweenBars">3dp</item>
    358         <item name="drawableSize">24dp</item>
    359     </style>
    360 
    361     <style name="Base.Widget.AppCompat.CompoundButton.Switch" parent="android:Widget.CompoundButton">
    362         <item name="track">@drawable/abc_switch_track_mtrl_alpha</item>
    363         <item name="android:thumb">@drawable/abc_switch_thumb_material</item>
    364         <item name="switchTextAppearance">@style/TextAppearance.AppCompat.Widget.Switch</item>
    365         <item name="android:background">?attr/selectableItemBackgroundBorderless</item>
    366         <item name="showText">false</item>
    367     </style>
    368 
    369     <style name="Base.TextAppearance.AppCompat.Widget.Switch" parent="TextAppearance.AppCompat.Button" />
    370 
    371     <style name="Base.Widget.AppCompat.RatingBar" parent="android:Widget.RatingBar">
    372         <item name="android:progressDrawable">@drawable/abc_ratingbar_full_material</item>
    373         <item name="android:indeterminateDrawable">@drawable/abc_ratingbar_full_material</item>
    374     </style>
    375 
    376     <!-- Bordered ink button -->
    377     <style name="Base.Widget.AppCompat.Button" parent="android:Widget">
    378         <item name="android:background">@drawable/abc_btn_default_mtrl_shape</item>
    379         <item name="android:textAppearance">?android:attr/textAppearanceButton</item>
    380         <item name="android:minHeight">48dip</item>
    381         <item name="android:minWidth">88dip</item>
    382         <item name="android:focusable">true</item>
    383         <item name="android:clickable">true</item>
    384         <item name="android:gravity">center_vertical|center_horizontal</item>
    385     </style>
    386 
    387     <!-- Small bordered ink button -->
    388     <style name="Base.Widget.AppCompat.Button.Small">
    389         <item name="android:minHeight">48dip</item>
    390         <item name="android:minWidth">48dip</item>
    391     </style>
    392 
    393     <style name="Base.Widget.AppCompat.TextView.SpinnerItem" parent="android:Widget.TextView.SpinnerItem">
    394         <item name="android:textAppearance">@style/TextAppearance.AppCompat.Widget.TextView.SpinnerItem</item>
    395         <item name="android:paddingLeft">8dp</item>
    396         <item name="android:paddingRight">8dp</item>
    397     </style>
    398 
    399     <style name="Base.TextAppearance.AppCompat.Widget.TextView.SpinnerItem" parent="TextAppearance.AppCompat.Menu" />
    400 
    401 </resources>
    402