attrs.xml revision b1131c6dfc9affe5751523f235878055cb699960
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
499        <!-- Boolean that controls whether a view can take focus.  By default the user can not
500             move focus to a view; by setting this attribute to true the view is
501             allowed to take focus.  This value does not impact the behavior of
502             directly calling {@link android.view.View#requestFocus}, which will
503             always request focus regardless of this view.  It only impacts where
504             focus navigation will try to move focus. -->
505        <attr name="android:focusable" />
506
507        <!-- Deprecated. -->
508        <attr name="theme" format="reference" />
509
510        <!-- Specifies a theme override for a view. When a theme override is set, the
511             view will be inflated using a {@link android.content.Context} themed with
512             the specified resource. -->
513        <attr name="android:theme" />
514
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        <!-- An optional tint for the item's icon -->
674        <attr name="iconTint" format="color" />
675
676        <!-- The blending mode used for tinting the item's icon -->
677        <attr name="iconTintMode">
678            <!-- The tint is drawn on top of the drawable.
679                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
680            <enum name="src_over" value="3" />
681            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
682                 color channels are thrown out. [Sa * Da, Sc * Da] -->
683            <enum name="src_in" value="5" />
684            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
685                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
686            <enum name="src_atop" value="9" />
687            <!-- Multiplies the color and alpha channels of the drawable with those of
688                 the tint. [Sa * Da, Sc * Dc] -->
689            <enum name="multiply" value="14" />
690            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
691            <enum name="screen" value="15" />
692            <!-- Combines the tint and drawable color and alpha channels, clamping the
693                 result to valid color values. Saturate(S + D). Only works on APIv 11+ -->
694            <enum name="add" value="16" />
695        </attr>
696    </declare-styleable>
697
698    <declare-styleable name="Spinner">
699        <!-- The prompt to display when the spinner's dialog is shown. -->
700        <attr name="prompt" format="reference" />
701        <!-- Display mode for spinner options. -->
702        <attr name="spinnerMode" format="enum">
703            <!-- Spinner options will be presented to the user as a dialog window. -->
704            <enum name="dialog" value="0" />
705            <!-- Spinner options will be presented to the user as an inline dropdown
706                 anchored to the spinner widget itself. -->
707            <enum name="dropdown" value="1" />
708        </attr>
709        <!-- List selector to use for spinnerMode="dropdown" display. -->
710        <attr name="android:dropDownSelector" />
711        <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
712        <attr name="android:popupBackground" />
713        <!-- Vertical offset from the spinner widget for positioning the dropdown in
714             spinnerMode="dropdown". -->
715        <attr name="android:dropDownVerticalOffset" />
716        <!-- Horizontal offset from the spinner widget for positioning the dropdown
717             in spinnerMode="dropdown". -->
718        <attr name="android:dropDownHorizontalOffset" />
719        <!-- Width of the dropdown in spinnerMode="dropdown". -->
720        <attr name="android:dropDownWidth" />
721        <!-- Reference to a layout to use for displaying a prompt in the dropdown for
722             spinnerMode="dropdown". This layout must contain a TextView with the id
723             {@code @android:id/text1} to be populated with the prompt text. -->
724        <attr name="popupPromptView" format="reference" />
725        <!-- Gravity setting for positioning the currently selected item. -->
726        <attr name="android:gravity" />
727        <!-- Whether this spinner should mark child views as enabled/disabled when
728             the spinner itself is enabled/disabled. -->
729        <attr name="disableChildrenWhenDisabled" format="boolean" />
730        <attr name="android:background" />
731    </declare-styleable>
732
733    <declare-styleable name="SearchView">
734        <!-- The layout to use for the search view. -->
735        <attr name="layout" format="reference" />
736        <!-- The default state of the SearchView. If true, it will be iconified when not in
737             use and expanded when clicked. -->
738        <attr name="iconifiedByDefault" format="boolean" />
739        <!-- An optional maximum width of the SearchView. -->
740        <attr name="android:maxWidth" />
741        <!-- An optional user-defined query hint string to be displayed in the empty query field. -->
742        <attr name="queryHint" format="string" />
743        <!-- Default query hint used when {@code queryHint} is undefined and
744             the search view's {@code SearchableInfo} does not provide a hint. -->
745        <attr name="defaultQueryHint" format="string" />
746        <!-- The IME options to set on the query text field. -->
747        <attr name="android:imeOptions" />
748        <!-- The input type to set on the query text field. -->
749        <attr name="android:inputType" />
750        <!-- Close button icon -->
751        <attr name="closeIcon" format="reference" />
752        <!-- Go button icon -->
753        <attr name="goIcon" format="reference" />
754        <!-- Search icon -->
755        <attr name="searchIcon" format="reference" />
756        <!-- Search icon displayed as a text field hint -->
757        <attr name="searchHintIcon" format="reference" />
758        <!-- Voice button icon -->
759        <attr name="voiceIcon" format="reference" />
760        <!-- Commit icon shown in the query suggestion row -->
761        <attr name="commitIcon" format="reference" />
762        <!-- Layout for query suggestion rows -->
763        <attr name="suggestionRowLayout" format="reference" />
764        <!-- Background for the section containing the search query -->
765        <attr name="queryBackground" format="reference" />
766        <!-- Background for the section containing the action (e.g. voice search) -->
767        <attr name="submitBackground" format="reference" />
768        <attr name="android:focusable" />
769    </declare-styleable>
770
771    <!-- Attrbitutes for a ActivityChooserView. -->
772    <declare-styleable name="ActivityChooserView">
773        <!-- The maximal number of items initially shown in the activity list. -->
774        <attr name="initialActivityCount" format="string" />
775        <!-- The drawable to show in the button for expanding the activities overflow popup.
776             <strong>Note:</strong> Clients would like to set this drawable
777             as a clue about the action the chosen activity will perform. For
778             example, if share activity is to be chosen the drawable should
779             give a clue that sharing is to be performed.
780         -->
781        <attr name="expandActivityOverflowButtonDrawable" format="reference" />
782    </declare-styleable>
783
784    <declare-styleable name="AppCompatTextView">
785        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
786        <attr name="textAllCaps" format="reference|boolean" />
787        <attr name="android:textAppearance" />
788    </declare-styleable>
789
790    <declare-styleable name="LinearLayoutCompat">
791        <!-- Should the layout be a column or a row?  Use "horizontal"
792             for a row, "vertical" for a column.  The default is
793             horizontal. -->
794        <attr name="android:orientation" />
795        <attr name="android:gravity" />
796        <!-- When set to false, prevents the layout from aligning its children's
797             baselines. This attribute is particularly useful when the children
798             use different values for gravity. The default value is true. -->
799        <attr name="android:baselineAligned" />
800        <!-- When a linear layout is part of another layout that is baseline
801          aligned, it can specify which of its children to baseline align to
802          (that is, which child TextView).-->
803        <attr name="android:baselineAlignedChildIndex" />
804        <!-- Defines the maximum weight sum. If unspecified, the sum is computed
805             by adding the layout_weight of all of the children. This can be
806             used for instance to give a single child 50% of the total available
807             space by giving it a layout_weight of 0.5 and setting the weightSum
808             to 1.0. -->
809        <attr name="android:weightSum" />
810        <!-- When set to true, all children with a weight will be considered having
811             the minimum size of the largest child. If false, all children are
812             measured normally. -->
813        <attr name="measureWithLargestChild" format="boolean" />
814        <!-- Drawable to use as a vertical divider between buttons. -->
815        <attr name="divider" />
816        <!-- Setting for which dividers to show. -->
817        <attr name="showDividers">
818            <flag name="none" value="0" />
819            <flag name="beginning" value="1" />
820            <flag name="middle" value="2" />
821            <flag name="end" value="4" />
822        </attr>
823        <!-- Size of padding on either end of a divider. -->
824        <attr name="dividerPadding" format="dimension" />
825    </declare-styleable>
826
827    <declare-styleable name="LinearLayoutCompat_Layout">
828        <attr name="android:layout_width" />
829        <attr name="android:layout_height" />
830        <attr name="android:layout_weight" />
831        <attr name="android:layout_gravity" />
832    </declare-styleable>
833
834    <declare-styleable name="Toolbar">
835        <attr name="titleTextAppearance" format="reference" />
836        <attr name="subtitleTextAppearance" format="reference" />
837        <attr name="title" />
838        <attr name="subtitle" />
839        <attr name="android:gravity" />
840        <attr name="titleMargins" format="dimension" />
841        <attr name="titleMarginStart" format="dimension" />
842        <attr name="titleMarginEnd" format="dimension" />
843        <attr name="titleMarginTop" format="dimension" />
844        <attr name="titleMarginBottom" format="dimension" />
845        <attr name="contentInsetStart" />
846        <attr name="contentInsetEnd" />
847        <attr name="contentInsetLeft" />
848        <attr name="contentInsetRight" />
849        <attr name="maxButtonHeight" format="dimension" />
850
851        <attr name="collapseIcon" format="reference" />
852        <!-- Text to set as the content description for the collapse button. -->
853        <attr name="collapseContentDescription" format="string" />
854        <!-- Reference to a theme that should be used to inflate popups
855             shown by widgets in the toolbar. -->
856        <attr name="popupTheme" />
857        <!-- Icon drawable to use for the navigation button located at
858             the start of the toolbar. -->
859        <attr name="navigationIcon" format="reference" />
860        <!-- Text to set as the content description for the navigation button
861             located at the start of the toolbar. -->
862        <attr name="navigationContentDescription" format="string" />
863
864        <!-- Allows us to read in the minHeight attr pre-v16 -->
865        <attr name="android:minHeight" />
866
867        <!-- Tint used for the overflow button -->
868        <attr name="overflowTint" format="color" />
869        <!-- The blending mode used for tinting the overflow button -->
870        <attr name="overflowTintMode">
871            <!-- The tint is drawn on top of the drawable.
872                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
873            <enum name="src_over" value="3" />
874            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
875                 color channels are thrown out. [Sa * Da, Sc * Da] -->
876            <enum name="src_in" value="5" />
877            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
878                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
879            <enum name="src_atop" value="9" />
880            <!-- Multiplies the color and alpha channels of the drawable with those of
881                 the tint. [Sa * Da, Sc * Dc] -->
882            <enum name="multiply" value="14" />
883            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
884            <enum name="screen" value="15" />
885            <!-- Combines the tint and drawable color and alpha channels, clamping the
886                 result to valid color values. Saturate(S + D). Only works on APIv 11+ -->
887            <enum name="add" value="16" />
888        </attr>
889
890        <!-- Tint used for the navigation button -->
891        <attr name="navigationTint" format="color" />
892        <!-- The blending mode used for tinting the navigation button -->
893        <attr name="navigationTintMode">
894            <!-- The tint is drawn on top of the drawable.
895                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
896            <enum name="src_over" value="3" />
897            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
898                 color channels are thrown out. [Sa * Da, Sc * Da] -->
899            <enum name="src_in" value="5" />
900            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
901                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
902            <enum name="src_atop" value="9" />
903            <!-- Multiplies the color and alpha channels of the drawable with those of
904                 the tint. [Sa * Da, Sc * Dc] -->
905            <enum name="multiply" value="14" />
906            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
907            <enum name="screen" value="15" />
908            <!-- Combines the tint and drawable color and alpha channels, clamping the
909                 result to valid color values. Saturate(S + D). Only works on APIv 11+ -->
910            <enum name="add" value="16" />
911        </attr>
912    </declare-styleable>
913
914    <declare-styleable name="PopupWindowBackgroundState">
915        <!-- State identifier indicating the popup will be above the anchor. -->
916        <attr name="state_above_anchor" format="boolean" />
917    </declare-styleable>
918
919    <declare-styleable name="ListPopupWindow">
920        <!-- Amount of pixels by which the drop down should be offset vertically. -->
921        <attr name="android:dropDownVerticalOffset" />
922        <!-- Amount of pixels by which the drop down should be offset horizontally. -->
923        <attr name="android:dropDownHorizontalOffset" />
924    </declare-styleable>
925
926    <declare-styleable name="PopupWindow">
927        <!-- Whether the popup window should overlap its anchor view. -->
928        <attr name="overlapAnchor" format="boolean" />
929        <attr name="android:popupBackground" />
930    </declare-styleable>
931
932    <declare-styleable name="DrawerArrowToggle">
933        <!-- The drawing color for the bars -->
934        <attr name="color" format="color"/>
935        <!-- Whether bars should rotate or not during transition -->
936        <attr name="spinBars" format="boolean"/>
937        <!-- The total size of the drawable -->
938        <attr name="drawableSize" format="dimension"/>
939        <!-- The max gap between the bars when they are parallel to each other -->
940        <attr name="gapBetweenBars" format="dimension"/>
941        <!-- The size of the top and bottom bars when they merge to the middle bar to form an arrow -->
942        <attr name="topBottomBarArrowSize" format="dimension"/>
943        <!-- The size of the middle bar when top and bottom bars merge into middle bar to form an arrow -->
944        <attr name="middleBarArrowSize" format="dimension"/>
945        <!-- The size of the bars when they are parallel to each other -->
946        <attr name="barSize" format="dimension"/>
947        <!-- The thickness (stroke size) for the bar paint -->
948        <attr name="thickness" format="dimension"/>
949    </declare-styleable>
950
951    <attr name="drawerArrowStyle" format="reference" />
952
953    <declare-styleable name="ViewStubCompat">
954        <!-- Supply an identifier for the layout resource to inflate when the ViewStub
955             becomes visible or when forced to do so. The layout resource must be a
956             valid reference to a layout. -->
957        <attr name="android:layout" />
958        <!-- Overrides the id of the inflated View with this value. -->
959        <attr name="android:inflatedId" />
960        <attr name="android:id" />
961    </declare-styleable>
962
963    <declare-styleable name="SwitchCompat">
964        <!-- Drawable to use as the "thumb" that switches back and forth. -->
965        <attr name="android:thumb" />
966        <!-- Drawable to use as the "track" that the switch thumb slides within. -->
967        <attr name="track" format="reference" />
968        <!-- Text to use when the switch is in the checked/"on" state. -->
969        <attr name="android:textOn" />
970        <!-- Text to use when the switch is in the unchecked/"off" state. -->
971        <attr name="android:textOff" />
972        <!-- Amount of padding on either side of text within the switch thumb. -->
973        <attr name="thumbTextPadding" format="dimension" />
974        <!-- TextAppearance style for text displayed on the switch thumb. -->
975        <attr name="switchTextAppearance" format="reference" />
976        <!-- Minimum width for the switch component -->
977        <attr name="switchMinWidth" format="dimension" />
978        <!-- Minimum space between the switch and caption text -->
979        <attr name="switchPadding" format="dimension" />
980        <!-- Whether to split the track and leave a gap for the thumb drawable. -->
981        <attr name="splitTrack" format="boolean" />
982        <!-- Whether to draw on/off text. -->
983        <attr name="showText" format="boolean" />
984    </declare-styleable>
985
986    <declare-styleable name="TextAppearance">
987        <attr name="android:textSize" />
988        <attr name="android:textColor" />
989        <attr name="android:textStyle" />
990        <attr name="android:typeface" />
991        <attr name="textAllCaps" />
992    </declare-styleable>
993
994    <!-- The set of attributes that describe a AlertDialog's theme. -->
995    <declare-styleable name="AlertDialog">
996        <attr name="android:layout" />
997        <attr name="buttonPanelSideLayout" format="reference" />
998        <attr name="listLayout" format="reference" />
999        <attr name="multiChoiceItemLayout" format="reference" />
1000        <attr name="singleChoiceItemLayout" format="reference" />
1001        <attr name="listItemLayout" format="reference" />
1002    </declare-styleable>
1003
1004</resources>
1005