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     <!--
     21         Theme in the "Platform.AppCompat" family are designed to be aliases for the default
     22         theme on a given platform version and should set up the default theme ready for adding our
     23         unbundled Action Bar.
     24     -->
     25     <eat-comment/>
     26     <style name="Platform.AppCompat" parent="android:Theme.Material">
     27         <item name="android:windowNoTitle">true</item>
     28         <item name="android:windowActionBar">false</item>
     29 
     30         <item name="android:textColorLink">?android:attr/colorAccent</item>
     31         <item name="android:textColorLinkInverse">?android:attr/colorAccent</item>
     32 
     33         <item name="android:buttonBarStyle">?attr/buttonBarStyle</item>
     34         <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item>
     35     </style>
     36 
     37     <style name="Platform.AppCompat.Light" parent="android:Theme.Material.Light">
     38         <item name="android:windowNoTitle">true</item>
     39         <item name="android:windowActionBar">false</item>
     40 
     41         <item name="android:textColorLink">?android:attr/colorAccent</item>
     42         <item name="android:textColorLinkInverse">?android:attr/colorAccent</item>
     43 
     44         <item name="android:buttonBarStyle">?attr/buttonBarStyle</item>
     45         <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item>
     46     </style>
     47 
     48     <style name="Base.Theme.AppCompat" parent="Base.V21.Theme.AppCompat" />
     49     <style name="Base.Theme.AppCompat.Light" parent="Base.V21.Theme.AppCompat.Light" />
     50 
     51     <style name="Base.V21.Theme.AppCompat" parent="Base.V7.Theme.AppCompat">
     52         <!-- Action Bar styling attributes -->
     53         <item name="actionBarSize">?android:attr/actionBarSize</item>
     54         <item name="actionBarDivider">?android:attr/actionBarDivider</item>
     55         <item name="actionBarItemBackground">@drawable/abc_action_bar_item_background_material</item>
     56         <item name="actionButtonStyle">?android:attr/actionButtonStyle</item>
     57         <item name="actionModeBackground">?android:attr/actionModeBackground</item>
     58         <item name="actionModeCloseDrawable">?android:attr/actionModeCloseDrawable</item>
     59         <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item>
     60         <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item>
     61 
     62         <!-- For PopupMenu -->
     63         <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item>
     64         <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item>
     65         <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item>
     66 
     67         <!-- General view attributes -->
     68         <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
     69         <item name="selectableItemBackgroundBorderless">?android:attr/selectableItemBackgroundBorderless</item>
     70         <item name="borderlessButtonStyle">?android:borderlessButtonStyle</item>
     71         <item name="dividerHorizontal">?android:attr/dividerHorizontal</item>
     72         <item name="dividerVertical">?android:attr/dividerVertical</item>
     73         <item name="editTextBackground">@drawable/abc_edit_text_material</item>
     74         <item name="editTextColor">?android:attr/editTextColor</item>
     75         <item name="listChoiceBackgroundIndicator">?android:attr/listChoiceBackgroundIndicator</item>
     76 
     77         <!-- Copy the platform default styles for the AppCompat widgets -->
     78         <item name="buttonStyle">?android:attr/buttonStyle</item>
     79         <item name="buttonStyleSmall">?android:attr/buttonStyleSmall</item>
     80         <item name="checkboxStyle">?android:attr/checkboxStyle</item>
     81         <item name="checkedTextViewStyle">?android:attr/checkedTextViewStyle</item>
     82         <item name="radioButtonStyle">?android:attr/radioButtonStyle</item>
     83         <item name="ratingBarStyle">?android:attr/ratingBarStyle</item>
     84         <item name="spinnerStyle">?android:attr/spinnerStyle</item>
     85 
     86         <!-- Copy our color theme attributes to the framework -->
     87         <item name="android:colorPrimary">?attr/colorPrimary</item>
     88         <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item>
     89         <item name="android:colorAccent">?attr/colorAccent</item>
     90         <item name="android:colorControlNormal">?attr/colorControlNormal</item>
     91         <item name="android:colorControlActivated">?attr/colorControlActivated</item>
     92         <item name="android:colorControlHighlight">?attr/colorControlHighlight</item>
     93         <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>
     94     </style>
     95 
     96     <style name="Base.V21.Theme.AppCompat.Light" parent="Base.V7.Theme.AppCompat.Light">
     97         <!-- Action Bar styling attributes -->
     98         <item name="actionBarSize">?android:attr/actionBarSize</item>
     99         <item name="actionBarDivider">?android:attr/actionBarDivider</item>
    100         <item name="actionBarItemBackground">@drawable/abc_action_bar_item_background_material</item>
    101         <item name="actionButtonStyle">?android:attr/actionButtonStyle</item>
    102         <item name="actionModeBackground">?android:attr/actionModeBackground</item>
    103         <item name="actionModeCloseDrawable">?android:attr/actionModeCloseDrawable</item>
    104         <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item>
    105         <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item>
    106 
    107         <!-- For PopupMenu -->
    108         <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item>
    109         <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item>
    110         <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item>
    111 
    112         <!-- General view attributes -->
    113         <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
    114         <item name="selectableItemBackgroundBorderless">?android:attr/selectableItemBackgroundBorderless</item>
    115         <item name="borderlessButtonStyle">?android:borderlessButtonStyle</item>
    116         <item name="dividerHorizontal">?android:attr/dividerHorizontal</item>
    117         <item name="dividerVertical">?android:attr/dividerVertical</item>
    118         <item name="editTextBackground">@drawable/abc_edit_text_material</item>
    119         <item name="editTextColor">?android:attr/editTextColor</item>
    120         <item name="listChoiceBackgroundIndicator">?android:attr/listChoiceBackgroundIndicator</item>
    121 
    122         <!-- Copy the platform default styles for the AppCompat widgets -->
    123         <item name="buttonStyle">?android:attr/buttonStyle</item>
    124         <item name="buttonStyleSmall">?android:attr/buttonStyleSmall</item>
    125         <item name="checkboxStyle">?android:attr/checkboxStyle</item>
    126         <item name="checkedTextViewStyle">?android:attr/checkedTextViewStyle</item>
    127         <item name="radioButtonStyle">?android:attr/radioButtonStyle</item>
    128         <item name="ratingBarStyle">?android:attr/ratingBarStyle</item>
    129         <item name="spinnerStyle">?android:attr/spinnerStyle</item>
    130 
    131         <!-- Copy our color theme attributes to the framework -->
    132         <item name="android:colorPrimary">?attr/colorPrimary</item>
    133         <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item>
    134         <item name="android:colorAccent">?attr/colorAccent</item>
    135         <item name="android:colorControlNormal">?attr/colorControlNormal</item>
    136         <item name="android:colorControlActivated">?attr/colorControlActivated</item>
    137         <item name="android:colorControlHighlight">?attr/colorControlHighlight</item>
    138         <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>
    139     </style>
    140 
    141     <style name="Base.V21.Theme.AppCompat.Dialog" parent="Base.V11.Theme.AppCompat.Dialog">
    142         <item name="android:windowElevation">@dimen/abc_floating_window_z</item>
    143     </style>
    144 
    145     <style name="Base.V21.Theme.AppCompat.Light.Dialog" parent="Base.V11.Theme.AppCompat.Light.Dialog">
    146         <item name="android:windowElevation">@dimen/abc_floating_window_z</item>
    147     </style>
    148 
    149     <style name="Base.Theme.AppCompat.Dialog" parent="Base.V21.Theme.AppCompat.Dialog" />
    150     <style name="Base.Theme.AppCompat.Light.Dialog" parent="Base.V21.Theme.AppCompat.Light.Dialog" />
    151 
    152     <style name="Platform.ThemeOverlay.AppCompat" parent="">
    153         <!-- Copy our color theme attributes to the framework -->
    154         <item name="android:colorPrimary">?attr/colorPrimary</item>
    155         <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item>
    156         <item name="android:colorAccent">?attr/colorAccent</item>
    157         <item name="android:colorControlNormal">?attr/colorControlNormal</item>
    158         <item name="android:colorControlActivated">?attr/colorControlActivated</item>
    159         <item name="android:colorControlHighlight">?attr/colorControlHighlight</item>
    160         <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>
    161     </style>
    162 
    163     <style name="Platform.ThemeOverlay.AppCompat.Dark" />
    164 
    165     <style name="Platform.ThemeOverlay.AppCompat.Light" />
    166 
    167     <style name="Base.ThemeOverlay.AppCompat.Dialog" parent="Base.V21.ThemeOverlay.AppCompat.Dialog" />
    168 
    169     <style name="Base.V21.ThemeOverlay.AppCompat.Dialog" parent="Base.V11.ThemeOverlay.AppCompat.Dialog">
    170         <item name="android:windowElevation">@dimen/abc_floating_window_z</item>
    171     </style>
    172 
    173 </resources>
    174