Home | History | Annotate | Download | only in values-v21
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2014 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 
     18 <resources>
     19 
     20     <!-- Like in themes_base.xml, the namespace "*.AppCompat.Base" is used to
     21      define base styles for the platform version. The "*.AppCompat"
     22      variants are for direct use or use as parent styles by the app. -->
     23     <eat-comment/>
     24 
     25     <style name="Base.Widget.AppCompat.ActionBar.TabView"
     26            parent="android:Widget.Material.ActionBar.TabView">
     27     </style>
     28 
     29     <style name="Base.Widget.AppCompat.Light.ActionBar.TabView"
     30            parent="android:Widget.Material.Light.ActionBar.TabView">
     31     </style>
     32 
     33     <style name="Base.Widget.AppCompat.ActionBar.TabText"
     34            parent="android:Widget.Material.ActionBar.TabText">
     35     </style>
     36 
     37     <style name="Base.Widget.AppCompat.Light.ActionBar.TabText"
     38            parent="android:Widget.Material.Light.ActionBar.TabText">
     39     </style>
     40 
     41     <style name="Base.Widget.AppCompat.Light.ActionBar.TabText.Inverse"
     42            parent="android:Widget.Material.Light.ActionBar.TabText">
     43     </style>
     44 
     45     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Menu"
     46            parent="android:TextAppearance.Material.Widget.ActionBar.Menu">
     47     </style>
     48 
     49     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Title"
     50            parent="android:TextAppearance.Material.Widget.ActionBar.Title">
     51     </style>
     52 
     53     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Subtitle"
     54            parent="android:TextAppearance.Material.Widget.ActionBar.Subtitle">
     55     </style>
     56 
     57     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse"
     58            parent="android:TextAppearance.Material.Widget.ActionBar.Title.Inverse">
     59     </style>
     60 
     61     <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Subtitle.Inverse"
     62            parent="android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse">
     63     </style>
     64 
     65     <style name="Base.TextAppearance.AppCompat.Widget.ActionMode.Title"
     66            parent="android:TextAppearance.Material.Widget.ActionMode.Title">
     67     </style>
     68 
     69     <style name="Base.TextAppearance.AppCompat.Widget.ActionMode.Subtitle"
     70            parent="android:TextAppearance.Material.Widget.ActionMode.Subtitle">
     71     </style>
     72 
     73     <!-- Action Button Styles -->
     74 
     75     <style name="Base.Widget.AppCompat.ActionButton"
     76            parent="android:Widget.Material.ActionButton">
     77     </style>
     78 
     79     <style name="Base.Widget.AppCompat.ActionButton.CloseMode"
     80            parent="android:Widget.Material.ActionButton.CloseMode">
     81     </style>
     82 
     83     <style name="Base.Widget.AppCompat.ActionButton.Overflow"
     84            parent="android:Widget.Material.ActionButton.Overflow">
     85     </style>
     86 
     87     <!--
     88         Widget.AppCompat.Toolbar style is purposely ommitted. This is because the support
     89         Toolbar implementation is used on ALL platforms and relies on the unbundled attrs.
     90         The supporting Toolbar styles below only use basic attrs so work fine.
     91     -->
     92 
     93     <style name="Base.Widget.AppCompat.Toolbar.Button.Navigation"
     94            parent="android:Widget.Material.Toolbar.Button.Navigation">
     95     </style>
     96 
     97     <style name="Base.TextAppearance.Widget.AppCompat.Toolbar.Title"
     98            parent="android:TextAppearance.Material.Widget.ActionBar.Title">
     99     </style>
    100 
    101     <style name="Base.TextAppearance.Widget.AppCompat.Toolbar.Subtitle"
    102            parent="android:TextAppearance.Material.Widget.ActionBar.Subtitle">
    103     </style>
    104 
    105     <!-- Spinner Widgets -->
    106 
    107     <style name="Base.Widget.AppCompat.ListView.DropDown"
    108            parent="android:Widget.Material.ListView.DropDown"/>
    109 
    110     <style name="Base.Widget.AppCompat.DropDownItem.Spinner"
    111            parent="android:Widget.Material.DropDownItem.Spinner"/>
    112 
    113     <style name="Base.Widget.AppCompat.Spinner" parent="android:Widget.Material.Spinner" />
    114 
    115     <style name="Base.Widget.AppCompat.Spinner.DropDown.ActionBar" parent="android:Widget.Material.Spinner">
    116         <item name="spinnerMode">dropdown</item>
    117         <item name="disableChildrenWhenDisabled">true</item>
    118         <item name="popupPromptView">@layout/abc_simple_dropdown_hint</item>
    119     </style>
    120 
    121     <style name="Base.Widget.AppCompat.ListView.Menu"
    122            parent="android:Widget.Material.ListView" />
    123 
    124     <!-- Popup Menu -->
    125 
    126     <style name="Base.Widget.AppCompat.ListPopupWindow" parent="android:Widget.Material.ListPopupWindow">
    127     </style>
    128 
    129     <style name="Base.Widget.AppCompat.PopupMenu" parent="android:Widget.Material.PopupMenu">
    130     </style>
    131 
    132     <style name="Base.Widget.AppCompat.Light.PopupMenu"
    133         parent="android:Widget.Material.Light.PopupMenu">
    134     </style>
    135 
    136     <style name="Base.Widget.AppCompat.PopupMenu.Overflow">
    137         <item name="android:dropDownHorizontalOffset">-4dip</item>
    138         <item name="android:overlapAnchor">true</item>
    139     </style>
    140 
    141     <style name="Base.Widget.AppCompat.Light.PopupMenu.Overflow">
    142         <item name="android:dropDownHorizontalOffset">-4dip</item>
    143         <item name="android:overlapAnchor">true</item>
    144     </style>
    145 
    146     <style name="Base.TextAppearance.AppCompat.Widget.PopupMenu.Large"
    147         parent="android:TextAppearance.Material.Widget.PopupMenu.Large">
    148     </style>
    149 
    150     <style name="Base.TextAppearance.AppCompat.Widget.PopupMenu.Small"
    151         parent="android:TextAppearance.Material.Widget.PopupMenu.Small">
    152     </style>
    153 
    154     <style name="Base.TextAppearance.AppCompat.Light.Widget.PopupMenu.Large"
    155         parent="android:TextAppearance.Material.Widget.PopupMenu.Large">
    156     </style>
    157 
    158     <style name="Base.TextAppearance.AppCompat.Light.Widget.PopupMenu.Small"
    159         parent="android:TextAppearance.Material.Widget.PopupMenu.Small">
    160     </style>
    161 
    162     <!-- Search View result styles -->
    163 
    164     <style name="Base.TextAppearance.AppCompat.SearchResult.Title"
    165            parent="@android:TextAppearance.Material.SearchResult.Title">
    166     </style>
    167 
    168     <style name="Base.TextAppearance.AppCompat.SearchResult.Subtitle"
    169            parent="@android:TextAppearance.Material.SearchResult.Subtitle">
    170     </style>
    171 
    172     <style name="Base.Widget.AppCompat.AutoCompleteTextView" parent="android:Widget.Material.AutoCompleteTextView" />
    173 
    174     <style name="Base.Widget.AppCompat.Light.AutoCompleteTextView" parent="android:Widget.Material.AutoCompleteTextView" />
    175 
    176     <!-- Progress Bar -->
    177 
    178     <style name="Base.Widget.AppCompat.ProgressBar.Horizontal"
    179            parent="android:Widget.Material.ProgressBar.Horizontal">
    180     </style>
    181 
    182     <style name="Base.Widget.AppCompat.ProgressBar"
    183            parent="android:Widget.Material.ProgressBar">
    184     </style>
    185 
    186     <!-- TODO. Needs updating for Material -->
    187     <style name="Base.Widget.AppCompat.ActivityChooserView" parent="">
    188         <item name="android:gravity">center</item>
    189         <item name="android:background">@drawable/abc_ab_share_pack_holo_dark</item>
    190         <item name="android:divider">?attr/dividerVertical</item>
    191         <item name="android:showDividers">middle</item>
    192         <item name="android:dividerPadding">6dip</item>
    193     </style>
    194 
    195 </resources>
    196