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