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