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