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