attrs.xml revision 61c0bbe56a13fe55ce91a5b1d64e751164ecb894
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 this window's Action Bar should overlay
46             application content. Does nothing if the window would not
47             have an Action Bar. -->
48        <attr name="windowActionBarOverlay" format="boolean" />
49
50        <!-- A fixed width for the window along the major axis of the screen,
51             that is, when in landscape. Can be either an absolute dimension
52             or a fraction of the screen size in that dimension. -->
53        <attr name="windowFixedWidthMajor" format="dimension|fraction" />
54        <!-- A fixed height for the window along the minor axis of the screen,
55             that is, when in landscape. Can be either an absolute dimension
56             or a fraction of the screen size in that dimension. -->
57        <attr name="windowFixedHeightMinor" format="dimension|fraction" />
58
59        <!-- A fixed width for the window along the minor axis of the screen,
60             that is, when in portrait. Can be either an absolute dimension
61             or a fraction of the screen size in that dimension. -->
62        <attr name="windowFixedWidthMinor" format="dimension|fraction" />
63        <!-- A fixed height for the window along the major axis of the screen,
64             that is, when in portrait. Can be either an absolute dimension
65             or a fraction of the screen size in that dimension. -->
66        <attr name="windowFixedHeightMajor" format="dimension|fraction" />
67
68
69        <!-- =================== -->
70        <!-- Action bar styles   -->
71        <!-- =================== -->
72        <eat-comment />
73        <!-- Default style for tabs within an action bar -->
74        <attr name="actionBarTabStyle" format="reference" />
75        <attr name="actionBarTabBarStyle" format="reference" />
76        <attr name="actionBarTabTextStyle" format="reference" />
77        <attr name="actionOverflowButtonStyle" format="reference" />
78        <attr name="actionOverflowMenuStyle" format="reference" />
79        <!-- Reference to a theme that should be used to inflate popups
80             shown by widgets in the action bar. -->
81        <attr name="actionBarPopupTheme" format="reference" />
82        <!-- Reference to a style for the Action Bar -->
83        <attr name="actionBarStyle" format="reference" />
84        <!-- Reference to a style for the split Action Bar. This style
85             controls the split component that holds the menu/action
86             buttons. actionBarStyle is still used for the primary
87             bar. -->
88        <attr name="actionBarSplitStyle" format="reference" />
89        <!-- Reference to a theme that should be used to inflate the
90             action bar. This will be inherited by any widget inflated
91             into the action bar. -->
92        <attr name="actionBarTheme" format="reference" />
93        <!-- Reference to a theme that should be used to inflate widgets
94             and layouts destined for the action bar. Most of the time
95             this will be a reference to the current theme, but when
96             the action bar has a significantly different contrast
97             profile than the rest of the activity the difference
98             can become important. If this is set to @null the current
99             theme will be used.-->
100        <attr name="actionBarWidgetTheme" format="reference" />
101        <!-- Size of the Action Bar, including the contextual
102             bar used to present Action Modes. -->
103        <attr name="actionBarSize" format="dimension" >
104            <enum name="wrap_content" value="0" />
105        </attr>
106        <!-- Custom divider drawable to use for elements in the action bar. -->
107        <attr name="actionBarDivider" format="reference" />
108        <!-- Custom item state list drawable background for action bar items. -->
109        <attr name="actionBarItemBackground" format="reference" />
110        <!-- TextAppearance style that will be applied to text that
111             appears within action menu items. -->
112        <attr name="actionMenuTextAppearance" format="reference" />
113        <!-- Color for text that appears within action menu items. -->
114        <!-- Color for text that appears within action menu items. -->
115        <attr name="actionMenuTextColor" format="color|reference"/>
116
117
118        <!-- =================== -->
119        <!-- Action mode styles  -->
120        <!-- =================== -->
121        <eat-comment/>
122        <attr name="actionModeStyle" format="reference"/>
123        <attr name="actionModeCloseButtonStyle" format="reference"/>
124        <!-- Background drawable to use for action mode UI -->
125        <attr name="actionModeBackground" format="reference"/>
126        <!-- Background drawable to use for action mode UI in the lower split bar -->
127        <attr name="actionModeSplitBackground" format="reference"/>
128        <!-- Drawable to use for the close action mode button -->
129        <attr name="actionModeCloseDrawable" format="reference"/>
130        <!-- Drawable to use for the Cut action button in Contextual Action Bar -->
131        <attr name="actionModeCutDrawable" format="reference"/>
132        <!-- Drawable to use for the Copy action button in Contextual Action Bar -->
133        <attr name="actionModeCopyDrawable" format="reference"/>
134        <!-- Drawable to use for the Paste action button in Contextual Action Bar -->
135        <attr name="actionModePasteDrawable" format="reference"/>
136        <!-- Drawable to use for the Select all action button in Contextual Action Bar -->
137        <attr name="actionModeSelectAllDrawable" format="reference"/>
138        <!-- Drawable to use for the Share action button in WebView selection action modes -->
139        <attr name="actionModeShareDrawable" format="reference"/>
140        <!-- Drawable to use for the Find action button in WebView selection action modes -->
141        <attr name="actionModeFindDrawable" format="reference"/>
142        <!-- Drawable to use for the Web Search action button in WebView selection action modes -->
143        <attr name="actionModeWebSearchDrawable" format="reference"/>
144
145        <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
146        <attr name="actionModePopupWindowStyle" format="reference"/>
147
148
149        <!-- =================== -->
150        <!-- Text styles -->
151        <!-- =================== -->
152        <eat-comment />
153        <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
154        <attr name="textAppearanceLargePopupMenu" format="reference"/>
155        <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
156        <attr name="textAppearanceSmallPopupMenu" format="reference"/>
157
158
159        <!-- =================== -->
160        <!-- Other widget styles -->
161        <!-- =================== -->
162        <eat-comment />
163
164        <!-- Default ActionBar dropdown style. -->
165        <attr name="actionDropDownStyle" format="reference"/>
166        <!-- The preferred item height for dropdown lists. -->
167        <attr name="dropdownListPreferredItemHeight" format="dimension"/>
168
169        <!-- Default Spinner style. -->
170        <attr name="spinnerStyle" format="reference" />
171        <!-- Default Spinner style. -->
172        <attr name="spinnerDropDownItemStyle" format="reference" />
173        <!-- Specifies a drawable to use for the 'home as up' indicator. -->
174        <attr name="homeAsUpIndicator" format="reference"/>
175
176        <!-- Default action button style. -->
177        <attr name="actionButtonStyle" format="reference"/>
178
179        <!-- A style that may be applied to horizontal LinearLayouts
180         to form a button bar. -->
181        <attr name="buttonBarStyle" format="reference"/>
182        <!-- A style that may be applied to Buttons placed within a
183             LinearLayout with the style buttonBarStyle to form a button bar. -->
184        <attr name="buttonBarButtonStyle" format="reference"/>
185        <!-- A style that may be applied to buttons or other selectable items
186             that should react to pressed and focus states, but that do not
187             have a clear visual border along the edges. -->
188        <attr name="selectableItemBackground" format="reference"/>
189        <!-- A drawable that may be used as a vertical divider between visual elements. -->
190        <attr name="dividerVertical" format="reference"/>
191        <!-- A drawable that may be used as a horizontal divider between visual elements. -->
192        <attr name="dividerHorizontal" format="reference"/>
193        <!-- Default ActivityChooserView style. -->
194        <attr name="activityChooserViewStyle" format="reference" />
195
196        <!-- Default Toolbar style. -->
197        <attr name="toolbarStyle" format="reference" />
198        <!-- Default Toolar NavigationButtonStyle -->
199        <attr name="toolbarNavigationButtonStyle" format="reference" />
200
201        <!-- Default PopupMenu style. -->
202        <attr name="popupMenuStyle" format="reference"/>
203        <!-- Default PopupWindow style. -->
204        <attr name="popupWindowStyle" format="reference" />
205
206        <!-- ============================ -->
207        <!-- SearchView styles and assets -->
208        <!-- ============================ -->
209        <eat-comment />
210        <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
211        <attr name="textAppearanceSearchResultTitle" format="reference" />
212        <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
213        <attr name="textAppearanceSearchResultSubtitle" format="reference" />
214        <!-- Text color for urls in search suggestions, used by things like global search -->
215        <attr name="textColorSearchUrl" format="reference|color" />
216        <!-- Style for the search query widget. -->
217        <attr name="searchViewStyle" format="reference" />
218
219        <!-- =========== -->
220        <!-- List styles -->
221        <!-- =========== -->
222        <eat-comment />
223
224        <!-- The preferred list item height. -->
225        <attr name="listPreferredItemHeight" format="dimension"/>
226        <!-- A smaller, sleeker list item height. -->
227        <attr name="listPreferredItemHeightSmall" format="dimension"/>
228        <!-- A larger, more robust list item height. -->
229        <attr name="listPreferredItemHeightLarge" format="dimension"/>
230
231        <!-- The preferred padding along the left edge of list items. -->
232        <attr name="listPreferredItemPaddingLeft" format="dimension"/>
233        <!-- The preferred padding along the right edge of list items. -->
234        <attr name="listPreferredItemPaddingRight" format="dimension"/>
235
236        <!-- ListPopupWindow compatibility -->
237        <attr name="dropDownListViewStyle" format="reference"/>
238        <attr name="listPopupWindowStyle" format="reference"/>
239
240        <!-- The preferred TextAppearance for the primary text of list items. -->
241        <attr name="textAppearanceListItem" format="reference"/>
242        <!-- The preferred TextAppearance for the primary text of small list items. -->
243        <attr name="textAppearanceListItemSmall" format="reference"/>
244
245
246        <!-- ============ -->
247        <!-- Panel styles -->
248        <!-- ============ -->
249        <eat-comment />
250
251        <!-- Default Panel Menu width. -->
252        <attr name="panelMenuListWidth" format="dimension" />
253
254        <!-- Default Panel Menu style. -->
255        <attr name="panelMenuListTheme" format="reference" />
256
257        <!-- Drawable used as a background for selected list items. -->
258        <attr name="listChoiceBackgroundIndicator" format="reference" />
259
260        <!-- ============= -->
261        <!-- Color palette -->
262        <!-- ============= -->
263        <eat-comment />
264
265        <!-- The primary branding color for the app. By default, this is the color applied to the
266             action bar background. -->
267        <attr name="colorPrimary" format="color" />
268
269        <!-- Dark variant of the primary branding color. By default, this is the color applied to
270             the status bar (via statusBarColor) and navigation bar (via navigationBarColor). -->
271        <attr name="colorPrimaryDark" format="color" />
272
273        <!-- Bright complement to the primary branding color. By default, this is the color applied
274             to framework controls (via colorControlActivated). -->
275        <attr name="colorAccent" format="color" />
276
277        <!-- The color applied to framework controls in their normal state. -->
278        <attr name="colorControlNormal" format="color" />
279
280        <!-- The color applied to framework controls in their activated (ex. checked) state. -->
281        <attr name="colorControlActivated" format="color" />
282
283        <!-- The color applied to framework control highlights (ex. ripples, list selectors). -->
284        <attr name="colorControlHighlight" format="color" />
285
286        <!-- The color applied to framework buttons in their normal state. -->
287        <attr name="colorButtonNormal" format="color" />
288
289    </declare-styleable>
290
291
292    <!-- ============================================ -->
293
294    <!-- Attributes used to style the Action Bar.
295         These should be set on your theme; the default actionBarStyle will
296         propagate them to the correct elements as needed.
297
298         Please Note: when overriding attributes for an ActionBar style
299         you must specify each attribute twice: once with the "android:"
300         namespace prefix and once without. -->
301    <declare-styleable name="ActionBar">
302        <!-- The type of navigation to use. -->
303        <attr name="navigationMode">
304            <!-- Normal static title text -->
305            <enum name="normal" value="0"/>
306            <!-- The action bar will use a selection list for navigation. -->
307            <enum name="listMode" value="1"/>
308            <!-- The action bar will use a series of horizontal tabs for navigation. -->
309            <enum name="tabMode" value="2"/>
310        </attr>
311        <!-- Options affecting how the action bar is displayed. -->
312        <attr name="displayOptions">
313            <flag name="none" value="0" />
314            <flag name="useLogo" value="0x1"/>
315            <flag name="showHome" value="0x2"/>
316            <flag name="homeAsUp" value="0x4"/>
317            <flag name="showTitle" value="0x8"/>
318            <flag name="showCustom" value="0x10"/>
319            <flag name="disableHome" value="0x20"/>
320        </attr>
321        <!-- Specifies title text used for navigationMode="normal" -->
322        <attr name="title"/>
323        <!-- Specifies subtitle text used for navigationMode="normal" -->
324        <attr name="subtitle" format="string"/>
325        <!-- Specifies a style to use for title text. -->
326        <attr name="titleTextStyle" format="reference"/>
327        <!-- Specifies a style to use for subtitle text. -->
328        <attr name="subtitleTextStyle" format="reference"/>
329        <!-- Specifies the drawable used for the application icon. -->
330        <attr name="icon" format="reference"/>
331        <!-- Specifies the drawable used for the application logo. -->
332        <attr name="logo" format="reference"/>
333        <!-- Specifies the drawable used for item dividers. -->
334        <attr name="divider" format="reference"/>
335        <!-- Specifies a background drawable for the action bar. -->
336        <attr name="background" format="reference"/>
337        <!-- Specifies a background drawable for a second stacked row of the action bar. -->
338        <attr name="backgroundStacked" format="reference|color"/>
339        <!-- Specifies a background drawable for the bottom component of a split action bar. -->
340        <attr name="backgroundSplit" format="reference|color"/>
341        <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
342        <attr name="customNavigationLayout" format="reference"/>
343        <!-- Specifies a fixed height. -->
344        <attr name="height"/>
345        <!-- Specifies a layout to use for the "home" section of the action bar. -->
346        <attr name="homeLayout" format="reference"/>
347        <!-- Specifies a style resource to use for an embedded progress bar. -->
348        <attr name="progressBarStyle" format="reference"/>
349        <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
350        <attr name="indeterminateProgressStyle" format="reference"/>
351        <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
352        <attr name="progressBarPadding" format="dimension"/>
353        <!-- Up navigation glyph -->
354        <attr name="homeAsUpIndicator" />
355        <!-- Specifies padding that should be applied to the left and right sides of
356             system-provided items in the bar. -->
357        <attr name="itemPadding" format="dimension"/>
358        <!-- Set true to hide the action bar on a vertical nested scroll of content. -->
359        <attr name="hideOnContentScroll" format="boolean"/>
360        <!-- Minimum inset for content views within a bar. Navigation buttons and
361             menu views are excepted. Only valid for some themes and configurations. -->
362        <attr name="contentInsetStart" format="dimension"/>
363        <!-- Minimum inset for content views within a bar. Navigation buttons and
364             menu views are excepted. Only valid for some themes and configurations. -->
365        <attr name="contentInsetEnd" format="dimension"/>
366        <!-- Minimum inset for content views within a bar. Navigation buttons and
367             menu views are excepted. Only valid for some themes and configurations. -->
368        <attr name="contentInsetLeft" format="dimension"/>
369        <!-- Minimum inset for content views within a bar. Navigation buttons and
370             menu views are excepted. Only valid for some themes and configurations. -->
371        <attr name="contentInsetRight" format="dimension"/>
372        <!-- Elevation for the action bar itself -->
373        <attr name="elevation" format="dimension" />
374        <!-- Reference to a theme that should be used to inflate popups
375             shown by widgets in the action bar. -->
376        <attr name="popupTheme" format="reference" />
377    </declare-styleable>
378
379    <!-- Valid LayoutParams for views placed in the action bar as custom views. -->
380    <declare-styleable name="ActionBarLayout">
381        <attr name="android:layout_gravity"/>
382    </declare-styleable>
383
384    <declare-styleable name="ActionMenuItemView">
385        <attr name="android:minWidth"/>
386    </declare-styleable>
387
388    <declare-styleable name="ActionMode">
389        <!-- Specifies a style to use for title text. -->
390        <attr name="titleTextStyle"/>
391        <!-- Specifies a style to use for subtitle text. -->
392        <attr name="subtitleTextStyle"/>
393        <!-- Specifies a background for the action mode bar. -->
394        <attr name="background"/>
395        <!-- Specifies a background for the split action mode bar. -->
396        <attr name="backgroundSplit"/>
397        <!-- Specifies a fixed height for the action mode bar. -->
398        <attr name="height"/>
399    </declare-styleable>
400
401    <declare-styleable name="View">
402        <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
403        <attr name="paddingStart" format="dimension"/>
404        <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
405        <attr name="paddingEnd" format="dimension"/>
406
407        <!-- Boolean that controls whether a view can take focus.  By default the user can not
408             move focus to a view; by setting this attribute to true the view is
409             allowed to take focus.  This value does not impact the behavior of
410             directly calling {@link android.view.View#requestFocus}, which will
411             always request focus regardless of this view.  It only impacts where
412             focus navigation will try to move focus. -->
413        <attr name="android:focusable" />
414    </declare-styleable>
415
416    <declare-styleable name="MenuView">
417        <!-- Default appearance of menu item text. -->
418        <attr name="android:itemTextAppearance"/>
419        <!-- Default horizontal divider between rows of menu items. -->
420        <attr name="android:horizontalDivider"/>
421        <!-- Default vertical divider between menu items. -->
422        <attr name="android:verticalDivider"/>
423        <!-- Default background for the menu header. -->
424        <attr name="android:headerBackground"/>
425        <!-- Default background for each menu item. -->
426        <attr name="android:itemBackground"/>
427        <!-- Default animations for the menu. -->
428        <attr name="android:windowAnimationStyle"/>
429        <!-- Default disabled icon alpha for each menu item that shows an icon. -->
430        <attr name="android:itemIconDisabledAlpha"/>
431        <!-- Whether space should be reserved in layout when an icon is missing. -->
432        <attr name="android:preserveIconSpacing"/>
433    </declare-styleable>
434    <declare-styleable name="ActionMenuView">
435        <!-- Size of padding on either end of a divider. -->
436    </declare-styleable>
437
438    <!-- Base attributes that are available to all groups. -->
439    <declare-styleable name="MenuGroup">
440
441        <!-- The ID of the group. -->
442        <attr name="android:id" />
443
444        <!-- The category applied to all items within this group.
445             (This will be or'ed with the orderInCategory attribute.) -->
446        <attr name="android:menuCategory" />
447
448        <!-- The order within the category applied to all items within this group.
449             (This will be or'ed with the category attribute.) -->
450        <attr name="android:orderInCategory" />
451
452        <!-- Whether the items are capable of displaying a check mark. -->
453        <attr name="android:checkableBehavior" />
454
455        <!-- Whether the items are shown/visible. -->
456        <attr name="android:visible" />
457
458        <!-- Whether the items are enabled. -->
459        <attr name="android:enabled" />
460
461    </declare-styleable>
462
463    <!-- Base attributes that are available to all Item objects. -->
464    <declare-styleable name="MenuItem">
465
466        <!-- The ID of the item. -->
467        <attr name="android:id" />
468
469        <!-- The category applied to the item.
470             (This will be or'ed with the orderInCategory attribute.) -->
471        <attr name="android:menuCategory" />
472
473        <!-- The order within the category applied to the item.
474             (This will be or'ed with the category attribute.) -->
475        <attr name="android:orderInCategory" />
476
477        <!-- The title associated with the item. -->
478        <attr name="android:title" />
479
480        <!-- The condensed title associated with the item.  This is used in situations where the
481             normal title may be too long to be displayed. -->
482        <attr name="android:titleCondensed" />
483
484        <!-- The icon associated with this item.  This icon will not always be shown, so
485             the title should be sufficient in describing this item. -->
486        <attr name="android:icon" />
487
488        <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
489             with alphabetic keys. -->
490        <attr name="android:alphabeticShortcut" />
491
492        <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
493             keyboard. -->
494        <attr name="android:numericShortcut" />
495
496        <!-- Whether the item is capable of displaying a check mark. -->
497        <attr name="android:checkable" />
498
499        <!-- Whether the item is checked.  Note that you must first have enabled checking with
500             the checkable attribute or else the check mark will not appear. -->
501        <attr name="android:checked"  />
502
503        <!-- Whether the item is shown/visible. -->
504        <attr name="android:visible" />
505
506        <!-- Whether the item is enabled. -->
507        <attr name="android:enabled" />
508
509        <!-- Name of a method on the Context used to inflate the menu that will be
510             called when the item is clicked. -->
511        <attr name="android:onClick" />
512
513        <!-- How this item should display in the Action Bar, if present. -->
514        <attr name="showAsAction">
515            <!-- Never show this item in an action bar, show it in the overflow menu instead.
516                 Mutually exclusive with "ifRoom" and "always". -->
517            <flag name="never" value="0" />
518            <!-- Show this item in an action bar if there is room for it as determined
519                 by the system. Favor this option over "always" where possible.
520                 Mutually exclusive with "never" and "always". -->
521            <flag name="ifRoom" value="1" />
522            <!-- Always show this item in an actionbar, even if it would override
523                 the system's limits of how much stuff to put there. This may make
524                 your action bar look bad on some screens. In most cases you should
525                 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
526            <flag name="always" value="2" />
527            <!-- When this item is shown as an action in the action bar, show a text
528                 label with it even if it has an icon representation. -->
529            <flag name="withText" value="4" />
530            <!-- This item's action view collapses to a normal menu
531                 item. When expanded, the action view takes over a
532                 larger segment of its container. -->
533            <flag name="collapseActionView" value="8" />
534        </attr>
535
536        <!-- An optional layout to be used as an action view.
537             See {@link android.view.MenuItem#setActionView(android.view.View)}
538             for more info. -->
539        <attr name="actionLayout" format="reference" />
540
541        <!-- The name of an optional View class to instantiate and use as an
542             action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
543             for more info. -->
544        <attr name="actionViewClass" format="string" />
545
546        <!-- The name of an optional ActionProvider class to instantiate an action view
547             and perform operations such as default action for that menu item.
548             See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
549             for more info. -->
550        <attr name="actionProviderClass" format="string" />
551
552    </declare-styleable>
553
554    <declare-styleable name="Spinner">
555        <!-- The prompt to display when the spinner's dialog is shown. -->
556        <attr name="prompt" format="reference" />
557        <!-- Display mode for spinner options. -->
558        <attr name="spinnerMode" format="enum">
559            <!-- Spinner options will be presented to the user as a dialog window. -->
560            <enum name="dialog" value="0" />
561            <!-- Spinner options will be presented to the user as an inline dropdown
562                 anchored to the spinner widget itself. -->
563            <enum name="dropdown" value="1" />
564        </attr>
565        <!-- List selector to use for spinnerMode="dropdown" display. -->
566        <attr name="android:dropDownSelector" />
567        <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
568        <attr name="android:popupBackground" />
569        <!-- Vertical offset from the spinner widget for positioning the dropdown in
570             spinnerMode="dropdown". -->
571        <attr name="android:dropDownVerticalOffset" />
572        <!-- Horizontal offset from the spinner widget for positioning the dropdown
573             in spinnerMode="dropdown". -->
574        <attr name="android:dropDownHorizontalOffset" />
575        <!-- Width of the dropdown in spinnerMode="dropdown". -->
576        <attr name="android:dropDownWidth" />
577        <!-- Reference to a layout to use for displaying a prompt in the dropdown for
578             spinnerMode="dropdown". This layout must contain a TextView with the id
579             {@code @android:id/text1} to be populated with the prompt text. -->
580        <attr name="popupPromptView" format="reference" />
581        <!-- Gravity setting for positioning the currently selected item. -->
582        <attr name="android:gravity" />
583        <!-- Whether this spinner should mark child views as enabled/disabled when
584             the spinner itself is enabled/disabled. -->
585        <attr name="disableChildrenWhenDisabled" format="boolean" />
586    </declare-styleable>
587
588    <declare-styleable name="SearchView">
589        <!-- The layout to use for the search view. -->
590        <attr name="layout" format="reference" />
591        <!-- The default state of the SearchView. If true, it will be iconified when not in
592             use and expanded when clicked. -->
593        <attr name="iconifiedByDefault" format="boolean" />
594        <!-- An optional maximum width of the SearchView. -->
595        <attr name="android:maxWidth" />
596        <!-- An optional query hint string to be displayed in the empty query field. -->
597        <attr name="queryHint" format="string" />
598        <!-- The IME options to set on the query text field. -->
599        <attr name="android:imeOptions" />
600        <!-- The input type to set on the query text field. -->
601        <attr name="android:inputType" />
602        <!-- Close button icon -->
603        <attr name="closeIcon" format="reference" />
604        <!-- Go button icon -->
605        <attr name="goIcon" format="reference" />
606        <!-- Search icon -->
607        <attr name="searchIcon" format="reference" />
608        <!-- Voice button icon -->
609        <attr name="voiceIcon" format="reference" />
610        <!-- Commit icon shown in the query suggestion row -->
611        <attr name="commitIcon" format="reference" />
612        <!-- Layout for query suggestion rows -->
613        <attr name="suggestionRowLayout" format="reference" />
614        <!-- Background for the section containing the search query -->
615        <attr name="queryBackground" format="reference" />
616        <!-- Background for the section containing the action (e.g. voice search) -->
617        <attr name="submitBackground" format="reference" />
618    </declare-styleable>
619
620    <!-- Attrbitutes for a ActivityChooserView. -->
621    <declare-styleable name="ActivityChooserView">
622        <!-- The maximal number of items initially shown in the activity list. -->
623        <attr name="initialActivityCount" format="string" />
624        <!-- The drawable to show in the button for expanding the activities overflow popup.
625             <strong>Note:</strong> Clients would like to set this drawable
626             as a clue about the action the chosen activity will perform. For
627             example, if share activity is to be chosen the drawable should
628             give a clue that sharing is to be performed.
629         -->
630        <attr name="expandActivityOverflowButtonDrawable" format="reference" />
631    </declare-styleable>
632
633    <declare-styleable name="CompatTextView">
634        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
635        <attr name="textAllCaps" format="reference|boolean" />
636    </declare-styleable>
637
638    <declare-styleable name="LinearLayoutCompat">
639        <!-- Should the layout be a column or a row?  Use "horizontal"
640             for a row, "vertical" for a column.  The default is
641             horizontal. -->
642        <attr name="android:orientation" />
643        <attr name="android:gravity" />
644        <!-- When set to false, prevents the layout from aligning its children's
645             baselines. This attribute is particularly useful when the children
646             use different values for gravity. The default value is true. -->
647        <attr name="android:baselineAligned" />
648        <!-- When a linear layout is part of another layout that is baseline
649          aligned, it can specify which of its children to baseline align to
650          (that is, which child TextView).-->
651        <attr name="android:baselineAlignedChildIndex" />
652        <!-- Defines the maximum weight sum. If unspecified, the sum is computed
653             by adding the layout_weight of all of the children. This can be
654             used for instance to give a single child 50% of the total available
655             space by giving it a layout_weight of 0.5 and setting the weightSum
656             to 1.0. -->
657        <attr name="android:weightSum" />
658        <!-- When set to true, all children with a weight will be considered having
659             the minimum size of the largest child. If false, all children are
660             measured normally. -->
661        <attr name="measureWithLargestChild" format="boolean" />
662        <!-- Drawable to use as a vertical divider between buttons. -->
663        <attr name="divider" />
664        <!-- Setting for which dividers to show. -->
665        <attr name="showDividers">
666            <flag name="none" value="0" />
667            <flag name="beginning" value="1" />
668            <flag name="middle" value="2" />
669            <flag name="end" value="4" />
670        </attr>
671        <!-- Size of padding on either end of a divider. -->
672        <attr name="dividerPadding" format="dimension" />
673    </declare-styleable>
674
675    <declare-styleable name="LinearLayoutCompat_Layout">
676        <attr name="android:layout_width" />
677        <attr name="android:layout_height" />
678        <attr name="android:layout_weight" />
679        <attr name="android:layout_gravity" />
680    </declare-styleable>
681
682    <declare-styleable name="Toolbar">
683        <attr name="titleTextAppearance" format="reference" />
684        <attr name="subtitleTextAppearance" format="reference" />
685        <attr name="title" />
686        <attr name="subtitle" />
687        <attr name="android:gravity" />
688        <attr name="titleMargins" format="dimension" />
689        <attr name="titleMarginStart" format="dimension" />
690        <attr name="titleMarginEnd" format="dimension" />
691        <attr name="titleMarginTop" format="dimension" />
692        <attr name="titleMarginBottom" format="dimension" />
693        <attr name="contentInsetStart" />
694        <attr name="contentInsetEnd" />
695        <attr name="contentInsetLeft" />
696        <attr name="contentInsetRight" />
697        <attr name="maxButtonHeight" format="dimension" />
698
699        <!-- Use Theme toolbarNavigationButtonStyle instead -->
700        <!-- <attr name="navigationButtonStyle" format="reference" /> -->
701
702        <attr name="buttonGravity">
703            <!-- Push object to the top of its container, not changing its size. -->
704            <flag name="top" value="0x30" />
705            <!-- Push object to the bottom of its container, not changing its size. -->
706            <flag name="bottom" value="0x50" />
707        </attr>
708        <attr name="collapseIcon" format="reference" />
709        <!-- Reference to a theme that should be used to inflate popups
710             shown by widgets in the toolbar. -->
711        <attr name="popupTheme" />
712    </declare-styleable>
713
714    <declare-styleable name="PopupWindowBackgroundState">
715        <!-- State identifier indicating the popup will be above the anchor. -->
716        <attr name="state_above_anchor" format="boolean" />
717    </declare-styleable>
718
719</resources>
720