Home | History | Annotate | Download | only in values-v11
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2013 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 
     26     <style name="Platform.AppCompat" parent="Platform.V11.AppCompat" />
     27     <style name="Platform.AppCompat.Light" parent="Platform.V11.AppCompat.Light" />
     28 
     29     <style name="Platform.V11.AppCompat" parent="android:Theme.Holo">
     30         <item name="android:windowNoTitle">true</item>
     31         <item name="android:windowActionBar">false</item>
     32 
     33         <item name="android:buttonBarStyle">?attr/buttonBarStyle</item>
     34         <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item>
     35 
     36         <!-- Window colors -->
     37         <item name="android:colorForeground">@color/foreground_material_dark</item>
     38         <item name="android:colorForegroundInverse">@color/foreground_material_light</item>
     39         <item name="android:colorBackground">@color/background_material_dark</item>
     40         <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_dark</item>
     41         <item name="android:disabledAlpha">@dimen/abc_disabled_alpha_material_dark</item>
     42         <item name="android:backgroundDimAmount">0.6</item>
     43         <item name="android:windowBackground">@color/background_material_dark</item>
     44 
     45         <!-- Text colors -->
     46         <item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item>
     47         <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item>
     48         <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_dark</item>
     49         <item name="android:textColorSecondary">@color/abc_secondary_text_material_dark</item>
     50         <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_light</item>
     51         <item name="android:textColorTertiary">@color/abc_secondary_text_material_dark</item>
     52         <item name="android:textColorTertiaryInverse">@color/abc_secondary_text_material_light</item>
     53         <item name="android:textColorHint">@color/hint_foreground_material_dark</item>
     54         <item name="android:textColorHintInverse">@color/hint_foreground_material_light</item>
     55         <item name="android:textColorHighlight">@color/highlighted_text_material_dark</item>
     56         <item name="android:textColorHighlightInverse">@color/highlighted_text_material_light</item>
     57         <item name="android:textColorLink">?attr/colorAccent</item>
     58         <item name="android:textColorLinkInverse">?attr/colorAccent</item>
     59         <item name="android:textColorAlertDialogListItem">@color/abc_primary_text_material_dark</item>
     60 
     61         <!-- Text styles -->
     62         <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
     63         <item name="android:textAppearanceInverse">@style/TextAppearance.AppCompat.Inverse</item>
     64         <item name="android:textAppearanceLarge">@style/TextAppearance.AppCompat.Large</item>
     65         <item name="android:textAppearanceLargeInverse">@style/TextAppearance.AppCompat.Large.Inverse</item>
     66         <item name="android:textAppearanceMedium">@style/TextAppearance.AppCompat.Medium</item>
     67         <item name="android:textAppearanceMediumInverse">@style/TextAppearance.AppCompat.Medium.Inverse</item>
     68         <item name="android:textAppearanceSmall">@style/TextAppearance.AppCompat.Small</item>
     69         <item name="android:textAppearanceSmallInverse">@style/TextAppearance.AppCompat.Small.Inverse</item>
     70 
     71         <item name="android:listChoiceIndicatorSingle">@drawable/abc_btn_radio_material</item>
     72         <item name="android:listChoiceIndicatorMultiple">@drawable/abc_btn_check_material</item>
     73 
     74         <item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
     75         <item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
     76         <item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
     77 
     78         <item name="android:textSelectHandle">@drawable/abc_text_select_handle_middle_mtrl_alpha</item>
     79         <item name="android:textSelectHandleLeft">@drawable/abc_text_select_handle_left_mtrl_alpha</item>
     80         <item name="android:textSelectHandleRight">@drawable/abc_text_select_handle_right_mtrl_alpha</item>
     81     </style>
     82 
     83     <style name="Platform.V11.AppCompat.Light" parent="android:Theme.Holo.Light">
     84         <item name="android:windowNoTitle">true</item>
     85         <item name="android:windowActionBar">false</item>
     86 
     87         <item name="android:buttonBarStyle">?attr/buttonBarStyle</item>
     88         <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item>
     89 
     90         <!-- Window colors -->
     91         <item name="android:colorForeground">@color/foreground_material_light</item>
     92         <item name="android:colorForegroundInverse">@color/foreground_material_dark</item>
     93         <item name="android:colorBackground">@color/background_material_light</item>
     94         <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_light</item>
     95         <item name="android:disabledAlpha">@dimen/abc_disabled_alpha_material_light</item>
     96         <item name="android:backgroundDimAmount">0.6</item>
     97         <item name="android:windowBackground">@color/background_material_light</item>
     98 
     99         <!-- Text colors -->
    100         <item name="android:textColorPrimary">@color/abc_primary_text_material_light</item>
    101         <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_dark</item>
    102         <item name="android:textColorSecondary">@color/abc_secondary_text_material_light</item>
    103         <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_dark</item>
    104         <item name="android:textColorTertiary">@color/abc_secondary_text_material_light</item>
    105         <item name="android:textColorTertiaryInverse">@color/abc_secondary_text_material_dark</item>
    106         <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_light</item>
    107         <item name="android:textColorPrimaryInverseDisableOnly">@color/abc_primary_text_disable_only_material_dark</item>
    108         <item name="android:textColorHint">@color/hint_foreground_material_light</item>
    109         <item name="android:textColorHintInverse">@color/hint_foreground_material_dark</item>
    110         <item name="android:textColorHighlight">@color/highlighted_text_material_light</item>
    111         <item name="android:textColorHighlightInverse">@color/highlighted_text_material_dark</item>
    112         <item name="android:textColorLink">?attr/colorAccent</item>
    113         <item name="android:textColorLinkInverse">?attr/colorAccent</item>
    114         <item name="android:textColorAlertDialogListItem">@color/abc_primary_text_material_light</item>
    115 
    116         <!-- Text styles -->
    117         <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
    118         <item name="android:textAppearanceInverse">@style/TextAppearance.AppCompat.Inverse</item>
    119         <item name="android:textAppearanceLarge">@style/TextAppearance.AppCompat.Large</item>
    120         <item name="android:textAppearanceLargeInverse">@style/TextAppearance.AppCompat.Large.Inverse</item>
    121         <item name="android:textAppearanceMedium">@style/TextAppearance.AppCompat.Medium</item>
    122         <item name="android:textAppearanceMediumInverse">@style/TextAppearance.AppCompat.Medium.Inverse</item>
    123         <item name="android:textAppearanceSmall">@style/TextAppearance.AppCompat.Small</item>
    124         <item name="android:textAppearanceSmallInverse">@style/TextAppearance.AppCompat.Small.Inverse</item>
    125 
    126         <item name="android:listChoiceIndicatorSingle">@drawable/abc_btn_radio_material</item>
    127         <item name="android:listChoiceIndicatorMultiple">@drawable/abc_btn_check_material</item>
    128 
    129         <item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
    130         <item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
    131         <item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
    132 
    133         <item name="android:textSelectHandle">@drawable/abc_text_select_handle_middle_mtrl_alpha</item>
    134         <item name="android:textSelectHandleLeft">@drawable/abc_text_select_handle_left_mtrl_alpha</item>
    135         <item name="android:textSelectHandleRight">@drawable/abc_text_select_handle_right_mtrl_alpha</item>
    136     </style>
    137 
    138     <style name="Base.V11.Theme.AppCompat.Dialog" parent="Base.V7.Theme.AppCompat.Dialog">
    139         <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
    140         <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
    141         <item name="android:windowCloseOnTouchOutside">@bool/abc_config_closeDialogWhenTouchOutside</item>
    142     </style>
    143 
    144     <style name="Base.V11.Theme.AppCompat.Light.Dialog" parent="Base.V7.Theme.AppCompat.Light.Dialog">
    145         <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
    146         <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
    147         <item name="android:windowCloseOnTouchOutside">@bool/abc_config_closeDialogWhenTouchOutside</item>
    148     </style>
    149 
    150     <style name="Base.Theme.AppCompat.Dialog" parent="Base.V11.Theme.AppCompat.Dialog" />
    151     <style name="Base.Theme.AppCompat.Light.Dialog" parent="Base.V11.Theme.AppCompat.Light.Dialog" />
    152 
    153     <style name="Base.V11.ThemeOverlay.AppCompat.Dialog" parent="Base.V7.ThemeOverlay.AppCompat.Dialog">
    154         <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
    155         <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
    156         <item name="android:windowCloseOnTouchOutside">@bool/abc_config_closeDialogWhenTouchOutside</item>
    157     </style>
    158 
    159     <style name="Base.ThemeOverlay.AppCompat.Dialog" parent="Base.V11.ThemeOverlay.AppCompat.Dialog" />
    160 
    161 </resources>
    162