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    <!-- Many app-specific attributes are declared in this file.
19         Unless otherwise specified, they are intended to be set within
20         the context of a theme declaration.
21
22         Each cluster of attributes below states whether it is meant to
23         be set by the app and read by the system, or set by the system and
24         read by the app. -->
25    <eat-comment/>
26
27
28    <attr name="title" format="string"/>
29    <attr name="height" format="dimension"/>
30    <!-- Specifies whether the theme is light, otherwise it is dark. -->
31    <attr name="isLightTheme" format="boolean" />
32
33    <!-- These are the standard attributes that make up a complete theme. -->
34    <declare-styleable name="Theme">
35
36        <!-- ============= -->
37        <!-- Window styles -->
38        <!-- ============= -->
39        <eat-comment />
40
41        <!-- Flag indicating whether this window should have an Action Bar
42             in place of the usual title bar. -->
43        <attr name="windowActionBar" format="boolean" />
44
45        <!-- Flag indicating whether there should be no title on this window. -->
46        <attr name="windowNoTitle" format="boolean" />
47
48        <!-- Flag indicating whether this window's Action Bar should overlay
49             application content. Does nothing if the window would not
50             have an Action Bar. -->
51        <attr name="windowActionBarOverlay" format="boolean" />
52
53        <!-- Flag indicating whether action modes should overlay window content
54             when there is not reserved space for their UI (such as an Action Bar). -->
55        <attr name="windowActionModeOverlay" format="boolean" />
56
57        <!-- A fixed width for the window along the major axis of the screen,
58             that is, when in landscape. Can be either an absolute dimension
59             or a fraction of the screen size in that dimension. -->
60        <attr name="windowFixedWidthMajor" format="dimension|fraction" />
61        <!-- A fixed height for the window along the minor axis of the screen,
62             that is, when in landscape. Can be either an absolute dimension
63             or a fraction of the screen size in that dimension. -->
64        <attr name="windowFixedHeightMinor" format="dimension|fraction" />
65
66        <!-- A fixed width for the window along the minor axis of the screen,
67             that is, when in portrait. Can be either an absolute dimension
68             or a fraction of the screen size in that dimension. -->
69        <attr name="windowFixedWidthMinor" format="dimension|fraction" />
70        <!-- A fixed height for the window along the major axis of the screen,
71             that is, when in portrait. Can be either an absolute dimension
72             or a fraction of the screen size in that dimension. -->
73        <attr name="windowFixedHeightMajor" format="dimension|fraction" />
74
75        <!-- The minimum width the window is allowed to be, along the major
76             axis of the screen.  That is, when in landscape.  Can be either
77             an absolute dimension or a fraction of the screen size in that
78             dimension. -->
79        <attr name="windowMinWidthMajor" format="dimension|fraction" />
80        <!-- The minimum width the window is allowed to be, along the minor
81             axis of the screen.  That is, when in portrait.  Can be either
82             an absolute dimension or a fraction of the screen size in that
83             dimension. -->
84        <attr name="windowMinWidthMinor" format="dimension|fraction" />
85
86        <attr name="android:windowIsFloating" />
87        <attr name="android:windowAnimationStyle" />
88
89        <!-- =================== -->
90        <!-- Action bar styles   -->
91        <!-- =================== -->
92        <eat-comment />
93        <!-- Default style for tabs within an action bar -->
94        <attr name="actionBarTabStyle" format="reference" />
95        <attr name="actionBarTabBarStyle" format="reference" />
96        <attr name="actionBarTabTextStyle" format="reference" />
97        <attr name="actionOverflowButtonStyle" format="reference" />
98        <attr name="actionOverflowMenuStyle" format="reference" />
99        <!-- Reference to a theme that should be used to inflate popups
100             shown by widgets in the action bar. -->
101        <attr name="actionBarPopupTheme" format="reference" />
102        <!-- Reference to a style for the Action Bar -->
103        <attr name="actionBarStyle" format="reference" />
104        <!-- Reference to a style for the split Action Bar. This style
105             controls the split component that holds the menu/action
106             buttons. actionBarStyle is still used for the primary
107             bar. -->
108        <attr name="actionBarSplitStyle" format="reference" />
109        <!-- Reference to a theme that should be used to inflate the
110             action bar. This will be inherited by any widget inflated
111             into the action bar. -->
112        <attr name="actionBarTheme" format="reference" />
113        <!-- Reference to a theme that should be used to inflate widgets
114             and layouts destined for the action bar. Most of the time
115             this will be a reference to the current theme, but when
116             the action bar has a significantly different contrast
117             profile than the rest of the activity the difference
118             can become important. If this is set to @null the current
119             theme will be used.-->
120        <attr name="actionBarWidgetTheme" format="reference" />
121        <!-- Size of the Action Bar, including the contextual
122             bar used to present Action Modes. -->
123        <attr name="actionBarSize" format="dimension" >
124            <enum name="wrap_content" value="0" />
125        </attr>
126        <!-- Custom divider drawable to use for elements in the action bar. -->
127        <attr name="actionBarDivider" format="reference" />
128        <!-- Custom item state list drawable background for action bar items. -->
129        <attr name="actionBarItemBackground" format="reference" />
130        <!-- TextAppearance style that will be applied to text that
131             appears within action menu items. -->
132        <attr name="actionMenuTextAppearance" format="reference" />
133        <!-- Color for text that appears within action menu items. -->
134        <!-- Color for text that appears within action menu items. -->
135        <attr name="actionMenuTextColor" format="color|reference"/>
136
137
138        <!-- =================== -->
139        <!-- Action mode styles  -->
140        <!-- =================== -->
141        <eat-comment/>
142        <attr name="actionModeStyle" format="reference"/>
143        <attr name="actionModeCloseButtonStyle" format="reference"/>
144        <!-- Background drawable to use for action mode UI -->
145        <attr name="actionModeBackground" format="reference"/>
146        <!-- Background drawable to use for action mode UI in the lower split bar -->
147        <attr name="actionModeSplitBackground" format="reference"/>
148        <!-- Drawable to use for the close action mode button -->
149        <attr name="actionModeCloseDrawable" format="reference"/>
150        <!-- Drawable to use for the Cut action button in Contextual Action Bar -->
151        <attr name="actionModeCutDrawable" format="reference"/>
152        <!-- Drawable to use for the Copy action button in Contextual Action Bar -->
153        <attr name="actionModeCopyDrawable" format="reference"/>
154        <!-- Drawable to use for the Paste action button in Contextual Action Bar -->
155        <attr name="actionModePasteDrawable" format="reference"/>
156        <!-- Drawable to use for the Select all action button in Contextual Action Bar -->
157        <attr name="actionModeSelectAllDrawable" format="reference"/>
158        <!-- Drawable to use for the Share action button in WebView selection action modes -->
159        <attr name="actionModeShareDrawable" format="reference"/>
160        <!-- Drawable to use for the Find action button in WebView selection action modes -->
161        <attr name="actionModeFindDrawable" format="reference"/>
162        <!-- Drawable to use for the Web Search action button in WebView selection action modes -->
163        <attr name="actionModeWebSearchDrawable" format="reference"/>
164
165        <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
166        <attr name="actionModePopupWindowStyle" format="reference"/>
167
168
169        <!-- =================== -->
170        <!-- Text styles -->
171        <!-- =================== -->
172        <eat-comment />
173        <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
174        <attr name="textAppearanceLargePopupMenu" format="reference"/>
175        <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
176        <attr name="textAppearanceSmallPopupMenu" format="reference"/>
177
178
179        <!-- =================== -->
180        <!-- Dialog styles -->
181        <!-- =================== -->
182        <eat-comment />
183
184        <!-- Theme to use for dialogs spawned from this theme. -->
185        <attr name="dialogTheme" format="reference" />
186        <!-- Preferred padding for dialog content. -->
187        <attr name="dialogPreferredPadding" format="dimension" />
188        <!-- The list divider used in alert dialogs. -->
189        <attr name="listDividerAlertDialog" format="reference" />
190
191        <!-- =================== -->
192        <!-- Other widget styles -->
193        <!-- =================== -->
194        <eat-comment />
195
196        <!-- Default ActionBar dropdown style. -->
197        <attr name="actionDropDownStyle" format="reference"/>
198        <!-- The preferred item height for dropdown lists. -->
199        <attr name="dropdownListPreferredItemHeight" format="dimension"/>
200        <!-- Default Spinner style. -->
201        <attr name="spinnerDropDownItemStyle" format="reference" />
202        <!-- Specifies a drawable to use for the 'home as up' indicator. -->
203        <attr name="homeAsUpIndicator" format="reference"/>
204
205        <!-- Default action button style. -->
206        <attr name="actionButtonStyle" format="reference"/>
207
208        <!-- Style for button bars -->
209        <attr name="buttonBarStyle" format="reference"/>
210        <!-- Style for buttons within button bars -->
211        <attr name="buttonBarButtonStyle" format="reference"/>
212        <!-- A style that may be applied to buttons or other selectable items
213             that should react to pressed and focus states, but that do not
214             have a clear visual border along the edges. -->
215        <attr name="selectableItemBackground" format="reference"/>
216        <!-- Background drawable for borderless standalone items that need focus/pressed states. -->
217        <attr name="selectableItemBackgroundBorderless" format="reference" />
218        <!-- Style for buttons without an explicit border, often used in groups. -->
219        <attr name="borderlessButtonStyle" format="reference" />
220        <!-- A drawable that may be used as a vertical divider between visual elements. -->
221        <attr name="dividerVertical" format="reference"/>
222        <!-- A drawable that may be used as a horizontal divider between visual elements. -->
223        <attr name="dividerHorizontal" format="reference"/>
224        <!-- Default ActivityChooserView style. -->
225        <attr name="activityChooserViewStyle" format="reference" />
226
227        <!-- Default Toolbar style. -->
228        <attr name="toolbarStyle" format="reference" />
229        <!-- Default Toolar NavigationButtonStyle -->
230        <attr name="toolbarNavigationButtonStyle" format="reference" />
231
232        <!-- Default PopupMenu style. -->
233        <attr name="popupMenuStyle" format="reference"/>
234        <!-- Default PopupWindow style. -->
235        <attr name="popupWindowStyle" format="reference" />
236
237        <!-- EditText text foreground color. -->
238        <attr name="editTextColor" format="reference|color" />
239        <!-- EditText background drawable. -->
240        <attr name="editTextBackground" format="reference" />
241
242        <!-- ============================ -->
243        <!-- SearchView styles and assets -->
244        <!-- ============================ -->
245        <eat-comment />
246        <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
247        <attr name="textAppearanceSearchResultTitle" format="reference" />
248        <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
249        <attr name="textAppearanceSearchResultSubtitle" format="reference" />
250        <!-- Text color for urls in search suggestions, used by things like global search -->
251        <attr name="textColorSearchUrl" format="reference|color" />
252        <!-- Style for the search query widget. -->
253        <attr name="searchViewStyle" format="reference" />
254
255        <!-- =========== -->
256        <!-- List styles -->
257        <!-- =========== -->
258        <eat-comment />
259
260        <!-- The preferred list item height. -->
261        <attr name="listPreferredItemHeight" format="dimension"/>
262        <!-- A smaller, sleeker list item height. -->
263        <attr name="listPreferredItemHeightSmall" format="dimension"/>
264        <!-- A larger, more robust list item height. -->
265        <attr name="listPreferredItemHeightLarge" format="dimension"/>
266
267        <!-- The preferred padding along the left edge of list items. -->
268        <attr name="listPreferredItemPaddingLeft" format="dimension"/>
269        <!-- The preferred padding along the right edge of list items. -->
270        <attr name="listPreferredItemPaddingRight" format="dimension"/>
271
272        <!-- ListPopupWindow compatibility -->
273        <attr name="dropDownListViewStyle" format="reference"/>
274        <attr name="listPopupWindowStyle" format="reference"/>
275
276        <!-- The preferred TextAppearance for the primary text of list items. -->
277        <attr name="textAppearanceListItem" format="reference"/>
278        <!-- The preferred TextAppearance for the primary text of small list items. -->
279        <attr name="textAppearanceListItemSmall" format="reference"/>
280
281
282        <!-- ============ -->
283        <!-- Panel styles -->
284        <!-- ============ -->
285        <eat-comment />
286
287        <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
288        <attr name="panelBackground" format="reference" />
289        <!-- Default Panel Menu width. -->
290        <attr name="panelMenuListWidth" format="dimension" />
291        <!-- Default Panel Menu style. -->
292        <attr name="panelMenuListTheme" format="reference" />
293        <!-- Drawable used as a background for selected list items. -->
294        <attr name="listChoiceBackgroundIndicator" format="reference" />
295
296        <!-- ============= -->
297        <!-- Color palette -->
298        <!-- ============= -->
299        <eat-comment />
300
301        <!-- The primary branding color for the app. By default, this is the color applied to the
302             action bar background. -->
303        <attr name="colorPrimary" format="color" />
304
305        <!-- Dark variant of the primary branding color. By default, this is the color applied to
306             the status bar (via statusBarColor) and navigation bar (via navigationBarColor). -->
307        <attr name="colorPrimaryDark" format="color" />
308
309        <!-- Bright complement to the primary branding color. By default, this is the color applied
310             to framework controls (via colorControlActivated). -->
311        <attr name="colorAccent" format="color" />
312
313        <!-- The color applied to framework controls in their normal state. -->
314        <attr name="colorControlNormal" format="color" />
315
316        <!-- The color applied to framework controls in their activated (ex. checked) state. -->
317        <attr name="colorControlActivated" format="color" />
318
319        <!-- The color applied to framework control highlights (ex. ripples, list selectors). -->
320        <attr name="colorControlHighlight" format="color" />
321
322        <!-- The color applied to framework buttons in their normal state. -->
323        <attr name="colorButtonNormal" format="color" />
324
325        <!-- The color applied to framework switch thumbs in their normal state. -->
326        <attr name="colorSwitchThumbNormal" format="color" />
327
328        <!-- The background used by framework controls. -->
329        <attr name="controlBackground" format="reference" />
330
331        <!-- ============ -->
332        <!-- Alert Dialog styles -->
333        <!-- ============ -->
334        <eat-comment />
335        <attr name="alertDialogStyle" format="reference" />
336        <attr name="alertDialogButtonGroupStyle" format="reference" />
337        <attr name="alertDialogCenterButtons" format="boolean" />
338        <!-- Theme to use for alert dialogs spawned from this theme. -->
339        <attr name="alertDialogTheme" format="reference" />
340
341        <!-- Color of list item text in alert dialogs. -->
342        <attr name="textColorAlertDialogListItem" format="reference|color" />
343
344        <!-- Style for the "positive" buttons within button bars -->
345        <attr name="buttonBarPositiveButtonStyle" format="reference" />
346
347        <!-- Style for the "negative" buttons within button bars -->
348        <attr name="buttonBarNegativeButtonStyle" format="reference" />
349
350        <!-- Style for the "neutral" buttons within button bars -->
351        <attr name="buttonBarNeutralButtonStyle" format="reference" />
352
353        <!-- ===================== -->
354        <!-- Default widget styles -->
355        <!-- ===================== -->
356        <eat-comment />
357
358        <!-- Default AutoCompleteTextView style. -->
359        <attr name="autoCompleteTextViewStyle" format="reference" />
360        <!-- Normal Button style. -->
361        <attr name="buttonStyle" format="reference" />
362        <!-- Small Button style. -->
363        <attr name="buttonStyleSmall" format="reference" />
364        <!-- Default Checkbox style. -->
365        <attr name="checkboxStyle" format="reference" />
366        <!-- Default CheckedTextView style. -->
367        <attr name="checkedTextViewStyle" format="reference" />
368        <!-- Default EditText style. -->
369        <attr name="editTextStyle" format="reference" />
370        <!-- Default RadioButton style. -->
371        <attr name="radioButtonStyle" format="reference" />
372        <!-- Default RatingBar style. -->
373        <attr name="ratingBarStyle" format="reference" />
374        <!-- Default Spinner style. -->
375        <attr name="spinnerStyle" format="reference" />
376        <!-- Default style for the Switch widget. -->
377        <attr name="switchStyle" format="reference" />
378
379    </declare-styleable>
380
381
382    <!-- ============================================ -->
383
384    <!-- Attributes used to style the Action Bar.
385         These should be set on your theme; the default actionBarStyle will
386         propagate them to the correct elements as needed.
387
388         Please Note: when overriding attributes for an ActionBar style
389         you must specify each attribute twice: once with the "android:"
390         namespace prefix and once without. -->
391    <declare-styleable name="ActionBar">
392        <!-- The type of navigation to use. -->
393        <attr name="navigationMode">
394            <!-- Normal static title text -->
395            <enum name="normal" value="0"/>
396            <!-- The action bar will use a selection list for navigation. -->
397            <enum name="listMode" value="1"/>
398            <!-- The action bar will use a series of horizontal tabs for navigation. -->
399            <enum name="tabMode" value="2"/>
400        </attr>
401        <!-- Options affecting how the action bar is displayed. -->
402        <attr name="displayOptions">
403            <flag name="none" value="0" />
404            <flag name="useLogo" value="0x1"/>
405            <flag name="showHome" value="0x2"/>
406            <flag name="homeAsUp" value="0x4"/>
407            <flag name="showTitle" value="0x8"/>
408            <flag name="showCustom" value="0x10"/>
409            <flag name="disableHome" value="0x20"/>
410        </attr>
411        <!-- Specifies title text used for navigationMode="normal" -->
412        <attr name="title"/>
413        <!-- Specifies subtitle text used for navigationMode="normal" -->
414        <attr name="subtitle" format="string"/>
415        <!-- Specifies a style to use for title text. -->
416        <attr name="titleTextStyle" format="reference"/>
417        <!-- Specifies a style to use for subtitle text. -->
418        <attr name="subtitleTextStyle" format="reference"/>
419        <!-- Specifies the drawable used for the application icon. -->
420        <attr name="icon" format="reference"/>
421        <!-- Specifies the drawable used for the application logo. -->
422        <attr name="logo" format="reference"/>
423        <!-- Specifies the drawable used for item dividers. -->
424        <attr name="divider" format="reference"/>
425        <!-- Specifies a background drawable for the action bar. -->
426        <attr name="background" format="reference"/>
427        <!-- Specifies a background drawable for a second stacked row of the action bar. -->
428        <attr name="backgroundStacked" format="reference|color"/>
429        <!-- Specifies a background drawable for the bottom component of a split action bar. -->
430        <attr name="backgroundSplit" format="reference|color"/>
431        <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
432        <attr name="customNavigationLayout" format="reference"/>
433        <!-- Specifies a fixed height. -->
434        <attr name="height"/>
435        <!-- Specifies a layout to use for the "home" section of the action bar. -->
436        <attr name="homeLayout" format="reference"/>
437        <!-- Specifies a style resource to use for an embedded progress bar. -->
438        <attr name="progressBarStyle" format="reference"/>
439        <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
440        <attr name="indeterminateProgressStyle" format="reference"/>
441        <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
442        <attr name="progressBarPadding" format="dimension"/>
443        <!-- Up navigation glyph -->
444        <attr name="homeAsUpIndicator" />
445        <!-- Specifies padding that should be applied to the left and right sides of
446             system-provided items in the bar. -->
447        <attr name="itemPadding" format="dimension"/>
448        <!-- Set true to hide the action bar on a vertical nested scroll of content. -->
449        <attr name="hideOnContentScroll" format="boolean"/>
450        <!-- Minimum inset for content views within a bar. Navigation buttons and
451             menu views are excepted. Only valid for some themes and configurations. -->
452        <attr name="contentInsetStart" format="dimension"/>
453        <!-- Minimum inset for content views within a bar. Navigation buttons and
454             menu views are excepted. Only valid for some themes and configurations. -->
455        <attr name="contentInsetEnd" format="dimension"/>
456        <!-- Minimum inset for content views within a bar. Navigation buttons and
457             menu views are excepted. Only valid for some themes and configurations. -->
458        <attr name="contentInsetLeft" format="dimension"/>
459        <!-- Minimum inset for content views within a bar. Navigation buttons and
460             menu views are excepted. Only valid for some themes and configurations. -->
461        <attr name="contentInsetRight" format="dimension"/>
462        <!-- Elevation for the action bar itself -->
463        <attr name="elevation" format="dimension" />
464        <!-- Reference to a theme that should be used to inflate popups
465             shown by widgets in the action bar. -->
466        <attr name="popupTheme" format="reference" />
467    </declare-styleable>
468
469    <!-- Valid LayoutParams for views placed in the action bar as custom views. -->
470    <declare-styleable name="ActionBarLayout">
471        <attr name="android:layout_gravity"/>
472    </declare-styleable>
473
474    <declare-styleable name="ActionMenuItemView">
475        <attr name="android:minWidth"/>
476    </declare-styleable>
477
478    <declare-styleable name="ActionMode">
479        <!-- Specifies a style to use for title text. -->
480        <attr name="titleTextStyle"/>
481        <!-- Specifies a style to use for subtitle text. -->
482        <attr name="subtitleTextStyle"/>
483        <!-- Specifies a background for the action mode bar. -->
484        <attr name="background"/>
485        <!-- Specifies a background for the split action mode bar. -->
486        <attr name="backgroundSplit"/>
487        <!-- Specifies a fixed height for the action mode bar. -->
488        <attr name="height"/>
489        <!-- Specifies a layout to use for the "close" item at the starting edge. -->
490        <attr name="closeItemLayout" format="reference" />
491    </declare-styleable>
492
493    <declare-styleable name="View">
494        <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
495        <attr name="paddingStart" format="dimension"/>
496        <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
497        <attr name="paddingEnd" format="dimension"/>
498        <!-- Boolean that controls whether a view can take focus.  By default the user can not
499             move focus to a view; by setting this attribute to true the view is
500             allowed to take focus.  This value does not impact the behavior of
501             directly calling {@link android.view.View#requestFocus}, which will
502             always request focus regardless of this view.  It only impacts where
503             focus navigation will try to move focus. -->
504        <attr name="android:focusable" />
505        <!-- Deprecated. -->
506        <attr name="theme" format="reference" />
507        <!-- Specifies a theme override for a view. When a theme override is set, the
508             view will be inflated using a {@link android.content.Context} themed with
509             the specified resource. -->
510        <attr name="android:theme" />
511    </declare-styleable>
512
513    <declare-styleable name="ViewBackgroundHelper">
514        <attr name="android:background" />
515        <!-- Tint to apply to the background. -->
516        <attr name="backgroundTint" format="color" />
517
518        <!-- Blending mode used to apply the background tint. -->
519        <attr name="backgroundTintMode">
520            <!-- The tint is drawn on top of the drawable.
521                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
522            <enum name="src_over" value="3" />
523            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
524                 color channels are thrown out. [Sa * Da, Sc * Da] -->
525            <enum name="src_in" value="5" />
526            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
527                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
528            <enum name="src_atop" value="9" />
529            <!-- Multiplies the color and alpha channels of the drawable with those of
530                 the tint. [Sa * Da, Sc * Dc] -->
531            <enum name="multiply" value="14" />
532            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
533            <enum name="screen" value="15" />
534        </attr>
535    </declare-styleable>
536
537    <declare-styleable name="MenuView">
538        <!-- Default appearance of menu item text. -->
539        <attr name="android:itemTextAppearance"/>
540        <!-- Default horizontal divider between rows of menu items. -->
541        <attr name="android:horizontalDivider"/>
542        <!-- Default vertical divider between menu items. -->
543        <attr name="android:verticalDivider"/>
544        <!-- Default background for the menu header. -->
545        <attr name="android:headerBackground"/>
546        <!-- Default background for each menu item. -->
547        <attr name="android:itemBackground"/>
548        <!-- Default animations for the menu. -->
549        <attr name="android:windowAnimationStyle"/>
550        <!-- Default disabled icon alpha for each menu item that shows an icon. -->
551        <attr name="android:itemIconDisabledAlpha"/>
552        <!-- Whether space should be reserved in layout when an icon is missing. -->
553        <attr name="preserveIconSpacing" format="boolean" />
554    </declare-styleable>
555    <declare-styleable name="ActionMenuView">
556        <!-- Size of padding on either end of a divider. -->
557    </declare-styleable>
558
559    <!-- Base attributes that are available to all groups. -->
560    <declare-styleable name="MenuGroup">
561
562        <!-- The ID of the group. -->
563        <attr name="android:id" />
564
565        <!-- The category applied to all items within this group.
566             (This will be or'ed with the orderInCategory attribute.) -->
567        <attr name="android:menuCategory" />
568
569        <!-- The order within the category applied to all items within this group.
570             (This will be or'ed with the category attribute.) -->
571        <attr name="android:orderInCategory" />
572
573        <!-- Whether the items are capable of displaying a check mark. -->
574        <attr name="android:checkableBehavior" />
575
576        <!-- Whether the items are shown/visible. -->
577        <attr name="android:visible" />
578
579        <!-- Whether the items are enabled. -->
580        <attr name="android:enabled" />
581
582    </declare-styleable>
583
584    <!-- Base attributes that are available to all Item objects. -->
585    <declare-styleable name="MenuItem">
586
587        <!-- The ID of the item. -->
588        <attr name="android:id" />
589
590        <!-- The category applied to the item.
591             (This will be or'ed with the orderInCategory attribute.) -->
592        <attr name="android:menuCategory" />
593
594        <!-- The order within the category applied to the item.
595             (This will be or'ed with the category attribute.) -->
596        <attr name="android:orderInCategory" />
597
598        <!-- The title associated with the item. -->
599        <attr name="android:title" />
600
601        <!-- The condensed title associated with the item.  This is used in situations where the
602             normal title may be too long to be displayed. -->
603        <attr name="android:titleCondensed" />
604
605        <!-- The icon associated with this item.  This icon will not always be shown, so
606             the title should be sufficient in describing this item. -->
607        <attr name="android:icon" />
608
609        <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
610             with alphabetic keys. -->
611        <attr name="android:alphabeticShortcut" />
612
613        <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
614             keyboard. -->
615        <attr name="android:numericShortcut" />
616
617        <!-- Whether the item is capable of displaying a check mark. -->
618        <attr name="android:checkable" />
619
620        <!-- Whether the item is checked.  Note that you must first have enabled checking with
621             the checkable attribute or else the check mark will not appear. -->
622        <attr name="android:checked"  />
623
624        <!-- Whether the item is shown/visible. -->
625        <attr name="android:visible" />
626
627        <!-- Whether the item is enabled. -->
628        <attr name="android:enabled" />
629
630        <!-- Name of a method on the Context used to inflate the menu that will be
631             called when the item is clicked. -->
632        <attr name="android:onClick" />
633
634        <!-- How this item should display in the Action Bar, if present. -->
635        <attr name="showAsAction">
636            <!-- Never show this item in an action bar, show it in the overflow menu instead.
637                 Mutually exclusive with "ifRoom" and "always". -->
638            <flag name="never" value="0" />
639            <!-- Show this item in an action bar if there is room for it as determined
640                 by the system. Favor this option over "always" where possible.
641                 Mutually exclusive with "never" and "always". -->
642            <flag name="ifRoom" value="1" />
643            <!-- Always show this item in an actionbar, even if it would override
644                 the system's limits of how much stuff to put there. This may make
645                 your action bar look bad on some screens. In most cases you should
646                 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
647            <flag name="always" value="2" />
648            <!-- When this item is shown as an action in the action bar, show a text
649                 label with it even if it has an icon representation. -->
650            <flag name="withText" value="4" />
651            <!-- This item's action view collapses to a normal menu
652                 item. When expanded, the action view takes over a
653                 larger segment of its container. -->
654            <flag name="collapseActionView" value="8" />
655        </attr>
656
657        <!-- An optional layout to be used as an action view.
658             See {@link android.view.MenuItem#setActionView(android.view.View)}
659             for more info. -->
660        <attr name="actionLayout" format="reference" />
661
662        <!-- The name of an optional View class to instantiate and use as an
663             action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
664             for more info. -->
665        <attr name="actionViewClass" format="string" />
666
667        <!-- The name of an optional ActionProvider class to instantiate an action view
668             and perform operations such as default action for that menu item.
669             See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
670             for more info. -->
671        <attr name="actionProviderClass" format="string" />
672
673    </declare-styleable>
674
675    <declare-styleable name="Spinner">
676        <!-- The prompt to display when the spinner's dialog is shown. -->
677        <attr name="android:prompt" />
678        <!-- Theme to use for the drop-down or dialog popup window. -->
679        <attr name="popupTheme" />
680        <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
681        <attr name="android:popupBackground" />
682        <!-- Width of the dropdown in spinnerMode="dropdown". -->
683        <attr name="android:dropDownWidth" />
684    </declare-styleable>
685
686    <declare-styleable name="SearchView">
687        <!-- The layout to use for the search view. -->
688        <attr name="layout" format="reference" />
689        <!-- The default state of the SearchView. If true, it will be iconified when not in
690             use and expanded when clicked. -->
691        <attr name="iconifiedByDefault" format="boolean" />
692        <!-- An optional maximum width of the SearchView. -->
693        <attr name="android:maxWidth" />
694        <!-- An optional user-defined query hint string to be displayed in the empty query field. -->
695        <attr name="queryHint" format="string" />
696        <!-- Default query hint used when {@code queryHint} is undefined and
697             the search view's {@code SearchableInfo} does not provide a hint. -->
698        <attr name="defaultQueryHint" format="string" />
699        <!-- The IME options to set on the query text field. -->
700        <attr name="android:imeOptions" />
701        <!-- The input type to set on the query text field. -->
702        <attr name="android:inputType" />
703        <!-- Close button icon -->
704        <attr name="closeIcon" format="reference" />
705        <!-- Go button icon -->
706        <attr name="goIcon" format="reference" />
707        <!-- Search icon -->
708        <attr name="searchIcon" format="reference" />
709        <!-- Search icon displayed as a text field hint -->
710        <attr name="searchHintIcon" format="reference" />
711        <!-- Voice button icon -->
712        <attr name="voiceIcon" format="reference" />
713        <!-- Commit icon shown in the query suggestion row -->
714        <attr name="commitIcon" format="reference" />
715        <!-- Layout for query suggestion rows -->
716        <attr name="suggestionRowLayout" format="reference" />
717        <!-- Background for the section containing the search query -->
718        <attr name="queryBackground" format="reference" />
719        <!-- Background for the section containing the action (e.g. voice search) -->
720        <attr name="submitBackground" format="reference" />
721        <attr name="android:focusable" />
722    </declare-styleable>
723
724    <!-- Attrbitutes for a ActivityChooserView. -->
725    <declare-styleable name="ActivityChooserView">
726        <!-- The maximal number of items initially shown in the activity list. -->
727        <attr name="initialActivityCount" format="string" />
728        <!-- The drawable to show in the button for expanding the activities overflow popup.
729             <strong>Note:</strong> Clients would like to set this drawable
730             as a clue about the action the chosen activity will perform. For
731             example, if share activity is to be chosen the drawable should
732             give a clue that sharing is to be performed.
733         -->
734        <attr name="expandActivityOverflowButtonDrawable" format="reference" />
735    </declare-styleable>
736
737    <declare-styleable name="AppCompatTextView">
738        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
739        <attr name="textAllCaps" format="reference|boolean" />
740        <attr name="android:textAppearance" />
741    </declare-styleable>
742
743    <declare-styleable name="LinearLayoutCompat">
744        <!-- Should the layout be a column or a row?  Use "horizontal"
745             for a row, "vertical" for a column.  The default is
746             horizontal. -->
747        <attr name="android:orientation" />
748        <attr name="android:gravity" />
749        <!-- When set to false, prevents the layout from aligning its children's
750             baselines. This attribute is particularly useful when the children
751             use different values for gravity. The default value is true. -->
752        <attr name="android:baselineAligned" />
753        <!-- When a linear layout is part of another layout that is baseline
754          aligned, it can specify which of its children to baseline align to
755          (that is, which child TextView).-->
756        <attr name="android:baselineAlignedChildIndex" />
757        <!-- Defines the maximum weight sum. If unspecified, the sum is computed
758             by adding the layout_weight of all of the children. This can be
759             used for instance to give a single child 50% of the total available
760             space by giving it a layout_weight of 0.5 and setting the weightSum
761             to 1.0. -->
762        <attr name="android:weightSum" />
763        <!-- When set to true, all children with a weight will be considered having
764             the minimum size of the largest child. If false, all children are
765             measured normally. -->
766        <attr name="measureWithLargestChild" format="boolean" />
767        <!-- Drawable to use as a vertical divider between buttons. -->
768        <attr name="divider" />
769        <!-- Setting for which dividers to show. -->
770        <attr name="showDividers">
771            <flag name="none" value="0" />
772            <flag name="beginning" value="1" />
773            <flag name="middle" value="2" />
774            <flag name="end" value="4" />
775        </attr>
776        <!-- Size of padding on either end of a divider. -->
777        <attr name="dividerPadding" format="dimension" />
778    </declare-styleable>
779
780    <declare-styleable name="LinearLayoutCompat_Layout">
781        <attr name="android:layout_width" />
782        <attr name="android:layout_height" />
783        <attr name="android:layout_weight" />
784        <attr name="android:layout_gravity" />
785    </declare-styleable>
786
787    <declare-styleable name="Toolbar">
788        <attr name="titleTextAppearance" format="reference" />
789        <attr name="subtitleTextAppearance" format="reference" />
790        <attr name="title" />
791        <attr name="subtitle" />
792        <attr name="android:gravity" />
793        <attr name="titleMargins" format="dimension" />
794        <attr name="titleMarginStart" format="dimension" />
795        <attr name="titleMarginEnd" format="dimension" />
796        <attr name="titleMarginTop" format="dimension" />
797        <attr name="titleMarginBottom" format="dimension" />
798        <attr name="contentInsetStart" />
799        <attr name="contentInsetEnd" />
800        <attr name="contentInsetLeft" />
801        <attr name="contentInsetRight" />
802        <attr name="maxButtonHeight" format="dimension" />
803
804        <attr name="collapseIcon" format="reference" />
805        <!-- Text to set as the content description for the collapse button. -->
806        <attr name="collapseContentDescription" format="string" />
807        <!-- Reference to a theme that should be used to inflate popups
808             shown by widgets in the toolbar. -->
809        <attr name="popupTheme" />
810        <!-- Icon drawable to use for the navigation button located at
811             the start of the toolbar. -->
812        <attr name="navigationIcon" format="reference" />
813        <!-- Text to set as the content description for the navigation button
814             located at the start of the toolbar. -->
815        <attr name="navigationContentDescription" format="string" />
816
817        <!-- Allows us to read in the minHeight attr pre-v16 -->
818        <attr name="android:minHeight" />
819
820        <!-- Drawable to set as the logo that appears at the starting side of
821             the Toolbar, just after the navigation button. -->
822        <attr name="logo" />
823        <!-- A content description string to describe the appearance of the
824             associated logo image. -->
825        <attr name="logoDescription" format="string" />
826        <!-- A color to apply to the title string. -->
827        <attr name="titleTextColor" format="color" />
828        <!-- A color to apply to the subtitle string. -->
829        <attr name="subtitleTextColor" format="color" />
830    </declare-styleable>
831
832    <declare-styleable name="PopupWindowBackgroundState">
833        <!-- State identifier indicating the popup will be above the anchor. -->
834        <attr name="state_above_anchor" format="boolean" />
835    </declare-styleable>
836
837    <declare-styleable name="ListPopupWindow">
838        <!-- Amount of pixels by which the drop down should be offset vertically. -->
839        <attr name="android:dropDownVerticalOffset" />
840        <!-- Amount of pixels by which the drop down should be offset horizontally. -->
841        <attr name="android:dropDownHorizontalOffset" />
842    </declare-styleable>
843
844    <declare-styleable name="PopupWindow">
845        <!-- Whether the popup window should overlap its anchor view. -->
846        <attr name="overlapAnchor" format="boolean" />
847        <attr name="android:popupBackground" />
848    </declare-styleable>
849
850    <declare-styleable name="DrawerArrowToggle">
851        <!-- The drawing color for the bars -->
852        <attr name="color" format="color"/>
853        <!-- Whether bars should rotate or not during transition -->
854        <attr name="spinBars" format="boolean"/>
855        <!-- The total size of the drawable -->
856        <attr name="drawableSize" format="dimension"/>
857        <!-- The max gap between the bars when they are parallel to each other -->
858        <attr name="gapBetweenBars" format="dimension"/>
859        <!-- The length of the arrow head when formed to make an arrow -->
860        <attr name="arrowHeadLength" format="dimension"/>
861        <!-- The length of the shaft when formed to make an arrow -->
862        <attr name="arrowShaftLength" format="dimension"/>
863        <!-- The length of the bars when they are parallel to each other -->
864        <attr name="barLength" format="dimension"/>
865        <!-- The thickness (stroke size) for the bar paint -->
866        <attr name="thickness" format="dimension"/>
867    </declare-styleable>
868
869    <attr name="drawerArrowStyle" format="reference" />
870
871    <declare-styleable name="ViewStubCompat">
872        <!-- Supply an identifier for the layout resource to inflate when the ViewStub
873             becomes visible or when forced to do so. The layout resource must be a
874             valid reference to a layout. -->
875        <attr name="android:layout" />
876        <!-- Overrides the id of the inflated View with this value. -->
877        <attr name="android:inflatedId" />
878        <attr name="android:id" />
879    </declare-styleable>
880
881    <declare-styleable name="CompoundButton">
882        <attr name="android:button"/>
883        <!-- Tint to apply to the button drawable. -->
884        <attr name="buttonTint" format="color" />
885
886        <!-- Blending mode used to apply the button tint. -->
887        <attr name="buttonTintMode">
888            <!-- The tint is drawn on top of the drawable.
889                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
890            <enum name="src_over" value="3" />
891            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
892                 color channels are thrown out. [Sa * Da, Sc * Da] -->
893            <enum name="src_in" value="5" />
894            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
895                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
896            <enum name="src_atop" value="9" />
897            <!-- Multiplies the color and alpha channels of the drawable with those of
898                 the tint. [Sa * Da, Sc * Dc] -->
899            <enum name="multiply" value="14" />
900            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
901            <enum name="screen" value="15" />
902        </attr>
903    </declare-styleable>
904
905    <declare-styleable name="SwitchCompat">
906        <!-- Drawable to use as the "thumb" that switches back and forth. -->
907        <attr name="android:thumb" />
908        <!-- Drawable to use as the "track" that the switch thumb slides within. -->
909        <attr name="track" format="reference" />
910        <!-- Text to use when the switch is in the checked/"on" state. -->
911        <attr name="android:textOn" />
912        <!-- Text to use when the switch is in the unchecked/"off" state. -->
913        <attr name="android:textOff" />
914        <!-- Amount of padding on either side of text within the switch thumb. -->
915        <attr name="thumbTextPadding" format="dimension" />
916        <!-- TextAppearance style for text displayed on the switch thumb. -->
917        <attr name="switchTextAppearance" format="reference" />
918        <!-- Minimum width for the switch component -->
919        <attr name="switchMinWidth" format="dimension" />
920        <!-- Minimum space between the switch and caption text -->
921        <attr name="switchPadding" format="dimension" />
922        <!-- Whether to split the track and leave a gap for the thumb drawable. -->
923        <attr name="splitTrack" format="boolean" />
924        <!-- Whether to draw on/off text. -->
925        <attr name="showText" format="boolean" />
926    </declare-styleable>
927
928    <declare-styleable name="TextAppearance">
929        <attr name="android:textSize" />
930        <attr name="android:textColor" />
931        <attr name="android:textStyle" />
932        <attr name="android:typeface" />
933        <attr name="textAllCaps" />
934    </declare-styleable>
935
936    <!-- The set of attributes that describe a AlertDialog's theme. -->
937    <declare-styleable name="AlertDialog">
938        <attr name="android:layout" />
939        <attr name="buttonPanelSideLayout" format="reference" />
940        <attr name="listLayout" format="reference" />
941        <attr name="multiChoiceItemLayout" format="reference" />
942        <attr name="singleChoiceItemLayout" format="reference" />
943        <attr name="listItemLayout" format="reference" />
944    </declare-styleable>
945
946</resources>
947