checkey / libs / appcompat / res / values / styles_base.xml @ 44e720f7
History | View | Annotate | Download (18.5 KB)
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 "*.AppCompat.Base" 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="Widget.AppCompat.Base.ActionBar" parent=""> |
25 |
<item name="displayOptions">useLogo|showHome|showTitle</item> |
26 |
<item name="divider">?attr/dividerVertical</item> |
27 |
<item name="height">?attr/actionBarSize</item> |
28 |
<item name="homeLayout">@layout/abc_action_bar_home</item> |
29 |
|
30 |
<item name="titleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionBar.Title</item> |
31 |
<item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle |
32 |
</item>
|
33 |
|
34 |
<item name="background">@drawable/abc_ab_transparent_dark_holo</item> |
35 |
<item name="backgroundStacked">@drawable/abc_ab_stacked_transparent_dark_holo</item> |
36 |
<item name="backgroundSplit">@drawable/abc_ab_bottom_transparent_dark_holo</item> |
37 |
|
38 |
<item name="actionButtonStyle">@style/Widget.AppCompat.ActionButton</item> |
39 |
<item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow</item> |
40 |
|
41 |
<item name="progressBarStyle">@style/Widget.AppCompat.ProgressBar.Horizontal</item> |
42 |
<item name="indeterminateProgressStyle">@style/Widget.AppCompat.ProgressBar</item> |
43 |
</style>
|
44 |
|
45 |
<style name="Widget.AppCompat.Light.Base.ActionBar" parent="Widget.AppCompat.Base.ActionBar"> |
46 |
<item name="background">@drawable/abc_ab_transparent_light_holo</item> |
47 |
<item name="backgroundStacked">@drawable/abc_ab_stacked_transparent_light_holo</item> |
48 |
<item name="backgroundSplit">@drawable/abc_ab_bottom_transparent_light_holo</item> |
49 |
|
50 |
<item name="actionButtonStyle">@style/Widget.AppCompat.Light.ActionButton</item> |
51 |
<item name="actionOverflowButtonStyle">@style/Widget.AppCompat.Light.ActionButton.Overflow |
52 |
</item>
|
53 |
|
54 |
<item name="progressBarStyle">@style/Widget.AppCompat.ProgressBar.Horizontal</item> |
55 |
<item name="indeterminateProgressStyle">@style/Widget.AppCompat.ProgressBar</item> |
56 |
</style>
|
57 |
|
58 |
<style name="Widget.AppCompat.Base.ActionBar.Solid" parent="Widget.AppCompat.Base.ActionBar"> |
59 |
<item name="background">@drawable/abc_ab_solid_dark_holo</item> |
60 |
<item name="backgroundStacked">@drawable/abc_ab_stacked_solid_dark_holo</item> |
61 |
<item name="backgroundSplit">@drawable/abc_ab_bottom_solid_dark_holo</item> |
62 |
</style>
|
63 |
|
64 |
<style name="Widget.AppCompat.Light.Base.ActionBar.Solid" |
65 |
parent="Widget.AppCompat.Light.Base.ActionBar"> |
66 |
<item name="background">@drawable/abc_ab_solid_light_holo</item> |
67 |
<item name="backgroundStacked">@drawable/abc_ab_stacked_solid_light_holo</item> |
68 |
<item name="backgroundSplit">@drawable/abc_ab_bottom_solid_light_holo</item> |
69 |
</style>
|
70 |
|
71 |
<style name="Widget.AppCompat.Light.Base.ActionBar.Solid.Inverse" |
72 |
parent="Widget.AppCompat.Base.ActionBar.Solid"> |
73 |
<item name="titleTextStyle"> |
74 |
@style/TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse |
75 |
</item>
|
76 |
<item name="subtitleTextStyle"> |
77 |
@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle.Inverse |
78 |
</item>
|
79 |
<item name="actionButtonStyle">@style/Widget.AppCompat.ActionButton</item> |
80 |
<item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow |
81 |
</item>
|
82 |
</style>
|
83 |
|
84 |
<style name="Widget.AppCompat.Base.ActionButton" parent=""> |
85 |
<item name="android:background">?attr/actionBarItemBackground</item> |
86 |
<item name="android:paddingLeft">12dip</item> |
87 |
<item name="android:paddingRight">12dip</item> |
88 |
<item name="android:minWidth">@dimen/abc_action_button_min_width</item> |
89 |
<item name="android:minHeight">?attr/actionBarSize</item> |
90 |
<item name="android:gravity">center</item> |
91 |
<item name="android:maxLines">2</item> |
92 |
<item name="textAllCaps">@bool/abc_config_actionMenuItemAllCaps</item> |
93 |
</style>
|
94 |
|
95 |
<style name="Widget.AppCompat.Light.Base.ActionButton" |
96 |
parent="Widget.AppCompat.Base.ActionButton"> |
97 |
</style>
|
98 |
|
99 |
<style name="Widget.AppCompat.Base.ActionButton.CloseMode" |
100 |
parent="Widget.AppCompat.Base.ActionButton"> |
101 |
</style>
|
102 |
|
103 |
<style name="Widget.AppCompat.Light.Base.ActionButton.CloseMode" |
104 |
parent="Widget.AppCompat.Light.Base.ActionButton"> |
105 |
</style>
|
106 |
|
107 |
<style name="Widget.AppCompat.Base.ActionButton.Overflow" |
108 |
parent="Widget.AppCompat.Base.ActionButton"> |
109 |
<item name="android:src">@drawable/abc_ic_menu_moreoverflow_normal_holo_dark</item> |
110 |
</style>
|
111 |
|
112 |
<style name="Widget.AppCompat.Light.Base.ActionButton.Overflow" |
113 |
parent="Widget.AppCompat.Light.Base.ActionButton"> |
114 |
<item name="android:src">@drawable/abc_ic_menu_moreoverflow_normal_holo_light</item> |
115 |
</style>
|
116 |
|
117 |
<style name="Widget.AppCompat.Base.ActionBar.TabBar" parent=""> |
118 |
<item name="divider">?attr/actionBarDivider</item> |
119 |
<item name="showDividers">middle</item> |
120 |
<item name="dividerPadding">12dip</item> |
121 |
</style>
|
122 |
|
123 |
<style name="Widget.AppCompat.Light.Base.ActionBar.TabBar" |
124 |
parent="Widget.AppCompat.Base.ActionBar.TabBar"> |
125 |
</style>
|
126 |
|
127 |
<style name="Widget.AppCompat.Light.Base.ActionBar.TabBar.Inverse" |
128 |
parent="Widget.AppCompat.Light.Base.ActionBar.TabBar"> |
129 |
</style>
|
130 |
|
131 |
<style name="Widget.AppCompat.Base.ActionBar.TabView" parent=""> |
132 |
<item name="android:background">@drawable/abc_tab_indicator_ab_holo</item> |
133 |
<item name="android:gravity">center_horizontal</item> |
134 |
<item name="android:paddingLeft">16dip</item> |
135 |
<item name="android:paddingRight">16dip</item> |
136 |
<item name="android:minWidth">80dip</item> |
137 |
</style>
|
138 |
|
139 |
<style name="Widget.AppCompat.Light.Base.ActionBar.TabView" |
140 |
parent="Widget.AppCompat.Base.ActionBar.TabView"> |
141 |
</style>
|
142 |
|
143 |
<style name="Widget.AppCompat.Light.Base.ActionBar.TabView.Inverse" |
144 |
parent="Widget.AppCompat.Light.Base.ActionBar.TabView"> |
145 |
</style>
|
146 |
|
147 |
<style name="Widget.AppCompat.Base.ActionBar.TabText" parent=""> |
148 |
<item name="android:textAppearance">@null</item> |
149 |
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item> |
150 |
<item name="android:textSize">12sp</item> |
151 |
<item name="android:textStyle">bold</item> |
152 |
<item name="android:ellipsize">marquee</item> |
153 |
<item name="android:maxLines">2</item> |
154 |
<item name="textAllCaps">true</item> |
155 |
</style>
|
156 |
|
157 |
<style name="Widget.AppCompat.Light.Base.ActionBar.TabText" |
158 |
parent="Widget.AppCompat.Base.ActionBar.TabText"> |
159 |
</style>
|
160 |
|
161 |
<style name="Widget.AppCompat.Light.Base.ActionBar.TabText.Inverse" |
162 |
parent="Widget.AppCompat.Light.Base.ActionBar.TabText"> |
163 |
<item name="android:textColor">?android:attr/textColorPrimaryInverseDisableOnly</item> |
164 |
</style>
|
165 |
|
166 |
<style name="Widget.AppCompat.Base.ActionMode" parent=""> |
167 |
<item name="background">?attr/actionModeBackground</item> |
168 |
<item name="backgroundSplit">?attr/actionModeSplitBackground</item> |
169 |
<item name="height">?attr/actionBarSize</item> |
170 |
<item name="titleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Title</item> |
171 |
<item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Subtitle |
172 |
</item>
|
173 |
</style>
|
174 |
|
175 |
<style name="Widget.AppCompat.Light.Base.ActionMode.Inverse" |
176 |
parent="Widget.AppCompat.Base.ActionMode"> |
177 |
<item name="titleTextStyle"> |
178 |
@style/TextAppearance.AppCompat.Widget.ActionMode.Title.Inverse |
179 |
</item>
|
180 |
<item name="subtitleTextStyle"> |
181 |
@style/TextAppearance.AppCompat.Widget.ActionMode.Subtitle.Inverse |
182 |
</item>
|
183 |
</style>
|
184 |
|
185 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionMode.Title" |
186 |
parent="android:TextAppearance.Medium"> |
187 |
</style>
|
188 |
|
189 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionMode.Subtitle" |
190 |
parent="android:TextAppearance.Small"> |
191 |
<item name="android:textColor">?android:attr/textColorSecondary</item> |
192 |
</style>
|
193 |
|
194 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionMode.Title.Inverse" |
195 |
parent="android:TextAppearance.Medium.Inverse"> |
196 |
</style>
|
197 |
|
198 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionMode.Subtitle.Inverse" |
199 |
parent="android:TextAppearance.Small.Inverse"> |
200 |
<item name="android:textColor">?android:attr/textColorSecondaryInverse</item> |
201 |
</style>
|
202 |
|
203 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionBar.Menu" |
204 |
parent="android:TextAppearance.Small"> |
205 |
<item name="android:textSize">12sp</item> |
206 |
<item name="android:textStyle">bold</item> |
207 |
<item name="android:textColor">?attr/actionMenuTextColor</item> |
208 |
</style>
|
209 |
|
210 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionBar.Title" |
211 |
parent="android:TextAppearance.Medium"> |
212 |
<item name="android:textSize">@dimen/abc_action_bar_title_text_size</item> |
213 |
</style>
|
214 |
|
215 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionBar.Subtitle" |
216 |
parent="android:TextAppearance.Small"> |
217 |
<item name="android:textSize">@dimen/abc_action_bar_subtitle_text_size</item> |
218 |
</style>
|
219 |
|
220 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionBar.Title.Inverse" |
221 |
parent="android:TextAppearance.Medium.Inverse"> |
222 |
<item name="android:textSize">@dimen/abc_action_bar_title_text_size</item> |
223 |
</style>
|
224 |
|
225 |
<style name="TextAppearance.AppCompat.Widget.Base.ActionBar.Subtitle.Inverse" |
226 |
parent="android:TextAppearance.Small.Inverse"> |
227 |
<item name="android:textSize">@dimen/abc_action_bar_subtitle_text_size</item> |
228 |
</style>
|
229 |
|
230 |
<style name="Widget.AppCompat.Base.ProgressBar.Horizontal" |
231 |
parent="android:Widget.ProgressBar.Horizontal"> |
232 |
</style>
|
233 |
|
234 |
<style name="Widget.AppCompat.Base.ProgressBar" parent="android:Widget.ProgressBar"> |
235 |
<item name="android:minWidth">@dimen/abc_action_bar_progress_bar_size</item> |
236 |
<item name="android:maxWidth">@dimen/abc_action_bar_progress_bar_size</item> |
237 |
<item name="android:minHeight">@dimen/abc_action_bar_progress_bar_size</item> |
238 |
<item name="android:maxHeight">@dimen/abc_action_bar_progress_bar_size</item> |
239 |
</style>
|
240 |
|
241 |
<!-- Action Bar Spinner Widgets -->
|
242 |
|
243 |
<style name="Widget.AppCompat.Base.Spinner" parent=""> |
244 |
<item name="spinnerMode">dropdown</item> |
245 |
<item name="android:popupBackground">@drawable/abc_menu_dropdown_panel_holo_dark</item> |
246 |
<item name="android:dropDownSelector">@drawable/abc_list_selector_holo_dark</item> |
247 |
<item name="android:dropDownVerticalOffset">0dip</item> |
248 |
<item name="android:dropDownHorizontalOffset">0dip</item> |
249 |
<item name="android:dropDownWidth">wrap_content</item> |
250 |
<item name="android:gravity">left|center_vertical</item> |
251 |
<item name="android:clickable">true</item> |
252 |
<item name="android:background">@drawable/abc_spinner_ab_holo_dark</item> |
253 |
</style>
|
254 |
|
255 |
<style name="Widget.AppCompat.Light.Base.Spinner" parent="Widget.AppCompat.Base.Spinner"> |
256 |
<item name="android:dropDownSelector">@drawable/abc_list_selector_holo_light</item> |
257 |
<item name="android:popupBackground">@drawable/abc_menu_dropdown_panel_holo_light</item> |
258 |
<item name="android:background">@drawable/abc_spinner_ab_holo_light</item> |
259 |
</style>
|
260 |
|
261 |
<style name="Widget.AppCompat.Base.DropDownItem.Spinner" parent=""> |
262 |
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Widget.DropDownItem |
263 |
</item>
|
264 |
<item name="android:paddingLeft">8dp</item> |
265 |
<item name="android:paddingRight">8dp</item> |
266 |
<item name="android:gravity">center_vertical</item> |
267 |
</style>
|
268 |
|
269 |
<style name="Widget.AppCompat.Light.Base.DropDownItem.Spinner" |
270 |
parent="Widget.AppCompat.Base.DropDownItem.Spinner"> |
271 |
</style>
|
272 |
|
273 |
<style name="Widget.AppCompat.Base.ListView.DropDown" parent="android:Widget.ListView"> |
274 |
<item name="android:listSelector">@drawable/abc_list_selector_holo_dark</item> |
275 |
</style>
|
276 |
|
277 |
<style name="Widget.AppCompat.Light.Base.ListView.DropDown" |
278 |
parent="android:Widget.ListView"> |
279 |
<item name="android:listSelector">@drawable/abc_list_selector_holo_light</item> |
280 |
</style>
|
281 |
|
282 |
<style name="TextAppearance.AppCompat.Widget.Base.DropDownItem" |
283 |
parent="android:TextAppearance.Small"> |
284 |
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item> |
285 |
</style>
|
286 |
|
287 |
<style name="TextAppearance.Widget.AppCompat.Base.ExpandedMenu.Item" |
288 |
parent="android:TextAppearance.Medium"> |
289 |
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item> |
290 |
</style>
|
291 |
|
292 |
<!-- Mimic text appearance in select_dialog_item.xml -->
|
293 |
<style name="TextAppearance.AppCompat.Base.CompactMenu.Dialog" |
294 |
parent="android:TextAppearance.Medium"> |
295 |
<item name="android:textColor">@android:color/primary_text_light</item> |
296 |
</style>
|
297 |
|
298 |
<style name="Widget.AppCompat.Base.ListView.Menu" parent="android:Widget.ListView.Menu"> |
299 |
<item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item> |
300 |
<item name="android:divider">?attr/dividerHorizontal</item> |
301 |
</style>
|
302 |
|
303 |
<style name="Widget.AppCompat.Base.ListPopupWindow" parent=""> |
304 |
<item name="android:dropDownSelector">@drawable/abc_list_selector_holo_dark</item> |
305 |
<item name="android:popupBackground">@drawable/abc_menu_dropdown_panel_holo_dark</item> |
306 |
<item name="android:dropDownVerticalOffset">0dip</item> |
307 |
<item name="android:dropDownHorizontalOffset">0dip</item> |
308 |
<item name="android:dropDownWidth">wrap_content</item> |
309 |
</style>
|
310 |
|
311 |
<style name="Widget.AppCompat.Light.Base.ListPopupWindow" parent=""> |
312 |
<item name="android:dropDownSelector">@drawable/abc_list_selector_holo_light</item> |
313 |
<item name="android:popupBackground">@drawable/abc_menu_dropdown_panel_holo_light</item> |
314 |
<item name="android:dropDownVerticalOffset">0dip</item> |
315 |
<item name="android:dropDownHorizontalOffset">0dip</item> |
316 |
<item name="android:dropDownWidth">wrap_content</item> |
317 |
</style>
|
318 |
|
319 |
<style name="Widget.AppCompat.Base.PopupMenu" |
320 |
parent="@style/Widget.AppCompat.Base.ListPopupWindow"> |
321 |
</style>
|
322 |
|
323 |
<style name="Widget.AppCompat.Light.Base.PopupMenu" |
324 |
parent="@style/Widget.AppCompat.Light.Base.ListPopupWindow"> |
325 |
</style>
|
326 |
|
327 |
<style name="TextAppearance.AppCompat.Base.Widget.PopupMenu.Large" |
328 |
parent="android:TextAppearance.Widget"> |
329 |
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item> |
330 |
<item name="android:textSize">18sp</item> |
331 |
</style>
|
332 |
|
333 |
<style name="TextAppearance.AppCompat.Base.Widget.PopupMenu.Small" |
334 |
parent="android:TextAppearance.Widget"> |
335 |
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item> |
336 |
<item name="android:textSize">14sp</item> |
337 |
</style>
|
338 |
|
339 |
<style name="TextAppearance.AppCompat.Light.Base.Widget.PopupMenu.Large" |
340 |
parent="TextAppearance.AppCompat.Base.Widget.PopupMenu.Large"> |
341 |
</style>
|
342 |
|
343 |
<style name="TextAppearance.AppCompat.Light.Base.Widget.PopupMenu.Small" |
344 |
parent="TextAppearance.AppCompat.Base.Widget.PopupMenu.Small"> |
345 |
</style>
|
346 |
|
347 |
<style name="TextAppearance.AppCompat.Base.SearchResult" parent=""> |
348 |
<item name="android:textStyle">normal</item> |
349 |
<item name="android:textColor">?android:textColorPrimary</item> |
350 |
<item name="android:textColorHint">?android:textColorHint</item> |
351 |
</style>
|
352 |
|
353 |
<style name="TextAppearance.AppCompat.Base.SearchResult.Title"> |
354 |
<item name="android:textSize">18sp</item> |
355 |
</style>
|
356 |
|
357 |
<style name="TextAppearance.AppCompat.Base.SearchResult.Subtitle"> |
358 |
<item name="android:textSize">14sp</item> |
359 |
<item name="android:textColor">?android:textColorSecondary</item> |
360 |
</style>
|
361 |
|
362 |
<style name="TextAppearance.AppCompat.Light.Base.SearchResult" |
363 |
parent="TextAppearance.AppCompat.Base.SearchResult"> |
364 |
<item name="android:textColor">?android:textColorPrimary</item> |
365 |
<item name="android:textColorHint">?android:textColorHint</item> |
366 |
</style>
|
367 |
|
368 |
<style name="TextAppearance.AppCompat.Light.Base.SearchResult.Title"> |
369 |
<item name="android:textSize">18sp</item> |
370 |
</style>
|
371 |
|
372 |
<style name="TextAppearance.AppCompat.Light.Base.SearchResult.Subtitle"> |
373 |
<item name="android:textSize">14sp</item> |
374 |
<item name="android:textColor">?android:textColorSecondary</item> |
375 |
</style>
|
376 |
|
377 |
<style name="Widget.AppCompat.Base.AutoCompleteTextView" |
378 |
parent="android:Widget.AutoCompleteTextView"> |
379 |
<item name="android:textColor">?attr/actionMenuTextColor</item> |
380 |
<item name="android:dropDownSelector">@drawable/abc_list_selector_holo_dark</item> |
381 |
<item name="android:popupBackground">@drawable/abc_menu_dropdown_panel_holo_dark</item> |
382 |
</style>
|
383 |
|
384 |
<style name="Widget.AppCompat.Light.Base.AutoCompleteTextView" |
385 |
parent="android:Widget.AutoCompleteTextView"> |
386 |
<item name="android:textColor">?attr/actionMenuTextColor</item> |
387 |
<item name="android:dropDownSelector">@drawable/abc_list_selector_holo_light</item> |
388 |
<item name="android:popupBackground">@drawable/abc_menu_dropdown_panel_holo_light</item> |
389 |
</style>
|
390 |
|
391 |
<style name="Widget.AppCompat.Base.ActivityChooserView" parent=""> |
392 |
<item name="android:gravity">center</item> |
393 |
<item name="android:background">@drawable/abc_ab_share_pack_holo_dark</item> |
394 |
<item name="divider">?attr/dividerVertical</item> |
395 |
<item name="showDividers">middle</item> |
396 |
<item name="dividerPadding">6dip</item> |
397 |
</style>
|
398 |
|
399 |
<style name="Widget.AppCompat.Light.Base.ActivityChooserView" |
400 |
parent="Widget.AppCompat.Base.ActivityChooserView"> |
401 |
<item name="android:background">@drawable/abc_ab_share_pack_holo_light</item> |
402 |
</style>
|
403 |
|
404 |
</resources>
|