attrs.xml revision 320c3e9fe1e100a5a7cda5dd217d2d1152d08b3f
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<resources>
18    <!-- Many app-specific attributes are declared in this file.
19         Unless otherwise specified, they are intended to be set within
20         the context of a theme declaration.
21
22         Each cluster of attributes below states whether it is meant to
23         be set by the app and read by the system, or set by the system and
24         read by the app. -->
25    <eat-comment/>
26
27
28    <attr name="title" format="string"/>
29    <attr name="height" format="dimension"/>
30    <!-- Specifies whether the theme is light, otherwise it is dark. -->
31    <attr name="isLightTheme" format="boolean" />
32
33    <!-- These are the standard attributes that make up a complete theme. -->
34    <declare-styleable name="Theme">
35
36        <!-- ============= -->
37        <!-- Window styles -->
38        <!-- ============= -->
39        <eat-comment />
40
41        <!-- Flag indicating whether this window should have an Action Bar
42             in place of the usual title bar. -->
43        <attr name="windowActionBar" format="boolean" />
44
45        <!-- Flag indicating whether there should be no title on this window. -->
46        <attr name="windowNoTitle" format="boolean" />
47
48        <!-- Flag indicating whether this window's Action Bar should overlay
49             application content. Does nothing if the window would not
50             have an Action Bar. -->
51        <attr name="windowActionBarOverlay" format="boolean" />
52
53        <!-- Flag indicating whether action modes should overlay window content
54             when there is not reserved space for their UI (such as an Action Bar). -->
55        <attr name="windowActionModeOverlay" format="boolean" />
56
57        <!-- A fixed width for the window along the major axis of the screen,
58             that is, when in landscape. Can be either an absolute dimension
59             or a fraction of the screen size in that dimension. -->
60        <attr name="windowFixedWidthMajor" format="dimension|fraction" />
61        <!-- A fixed height for the window along the minor axis of the screen,
62             that is, when in landscape. Can be either an absolute dimension
63             or a fraction of the screen size in that dimension. -->
64        <attr name="windowFixedHeightMinor" format="dimension|fraction" />
65
66        <!-- A fixed width for the window along the minor axis of the screen,
67             that is, when in portrait. Can be either an absolute dimension
68             or a fraction of the screen size in that dimension. -->
69        <attr name="windowFixedWidthMinor" format="dimension|fraction" />
70        <!-- A fixed height for the window along the major axis of the screen,
71             that is, when in portrait. Can be either an absolute dimension
72             or a fraction of the screen size in that dimension. -->
73        <attr name="windowFixedHeightMajor" format="dimension|fraction" />
74
75        <attr name="android:windowIsFloating" />
76        <attr name="android:windowAnimationStyle" />
77
78        <!-- =================== -->
79        <!-- Action bar styles   -->
80        <!-- =================== -->
81        <eat-comment />
82        <!-- Default style for tabs within an action bar -->
83        <attr name="actionBarTabStyle" format="reference" />
84        <attr name="actionBarTabBarStyle" format="reference" />
85        <attr name="actionBarTabTextStyle" format="reference" />
86        <attr name="actionOverflowButtonStyle" format="reference" />
87        <attr name="actionOverflowMenuStyle" format="reference" />
88        <!-- Reference to a theme that should be used to inflate popups
89             shown by widgets in the action bar. -->
90        <attr name="actionBarPopupTheme" format="reference" />
91        <!-- Reference to a style for the Action Bar -->
92        <attr name="actionBarStyle" format="reference" />
93        <!-- Reference to a style for the split Action Bar. This style
94             controls the split component that holds the menu/action
95             buttons. actionBarStyle is still used for the primary
96             bar. -->
97        <attr name="actionBarSplitStyle" format="reference" />
98        <!-- Reference to a theme that should be used to inflate the
99             action bar. This will be inherited by any widget inflated
100             into the action bar. -->
101        <attr name="actionBarTheme" format="reference" />
102        <!-- Reference to a theme that should be used to inflate widgets
103             and layouts destined for the action bar. Most of the time
104             this will be a reference to the current theme, but when
105             the action bar has a significantly different contrast
106             profile than the rest of the activity the difference
107             can become important. If this is set to @null the current
108             theme will be used.-->
109        <attr name="actionBarWidgetTheme" format="reference" />
110        <!-- Size of the Action Bar, including the contextual
111             bar used to present Action Modes. -->
112        <attr name="actionBarSize" format="dimension" >
113            <enum name="wrap_content" value="0" />
114        </attr>
115        <!-- Custom divider drawable to use for elements in the action bar. -->
116        <attr name="actionBarDivider" format="reference" />
117        <!-- Custom item state list drawable background for action bar items. -->
118        <attr name="actionBarItemBackground" format="reference" />
119        <!-- TextAppearance style that will be applied to text that
120             appears within action menu items. -->
121        <attr name="actionMenuTextAppearance" format="reference" />
122        <!-- Color for text that appears within action menu items. -->
123        <!-- Color for text that appears within action menu items. -->
124        <attr name="actionMenuTextColor" format="color|reference"/>
125
126
127        <!-- =================== -->
128        <!-- Action mode styles  -->
129        <!-- =================== -->
130        <eat-comment/>
131        <attr name="actionModeStyle" format="reference"/>
132        <attr name="actionModeCloseButtonStyle" format="reference"/>
133        <!-- Background drawable to use for action mode UI -->
134        <attr name="actionModeBackground" format="reference"/>
135        <!-- Background drawable to use for action mode UI in the lower split bar -->
136        <attr name="actionModeSplitBackground" format="reference"/>
137        <!-- Drawable to use for the close action mode button -->
138        <attr name="actionModeCloseDrawable" format="reference"/>
139        <!-- Drawable to use for the Cut action button in Contextual Action Bar -->
140        <attr name="actionModeCutDrawable" format="reference"/>
141        <!-- Drawable to use for the Copy action button in Contextual Action Bar -->
142        <attr name="actionModeCopyDrawable" format="reference"/>
143        <!-- Drawable to use for the Paste action button in Contextual Action Bar -->
144        <attr name="actionModePasteDrawable" format="reference"/>
145        <!-- Drawable to use for the Select all action button in Contextual Action Bar -->
146        <attr name="actionModeSelectAllDrawable" format="reference"/>
147        <!-- Drawable to use for the Share action button in WebView selection action modes -->
148        <attr name="actionModeShareDrawable" format="reference"/>
149        <!-- Drawable to use for the Find action button in WebView selection action modes -->
150        <attr name="actionModeFindDrawable" format="reference"/>
151        <!-- Drawable to use for the Web Search action button in WebView selection action modes -->
152        <attr name="actionModeWebSearchDrawable" format="reference"/>
153
154        <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
155        <attr name="actionModePopupWindowStyle" format="reference"/>
156
157
158        <!-- =================== -->
159        <!-- Text styles -->
160        <!-- =================== -->
161        <eat-comment />
162        <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
163        <attr name="textAppearanceLargePopupMenu" format="reference"/>
164        <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
165        <attr name="textAppearanceSmallPopupMenu" format="reference"/>
166
167
168        <!-- =================== -->
169        <!-- Dialog styles -->
170        <!-- =================== -->
171        <eat-comment />
172
173        <!-- Theme to use for dialogs spawned from this theme. -->
174        <attr name="dialogTheme" format="reference" />
175        <!-- Preferred padding for dialog content. -->
176        <attr name="dialogPreferredPadding" format="dimension" />
177
178
179        <!-- =================== -->
180        <!-- Other widget styles -->
181        <!-- =================== -->
182        <eat-comment />
183
184        <!-- Default ActionBar dropdown style. -->
185        <attr name="actionDropDownStyle" format="reference"/>
186        <!-- The preferred item height for dropdown lists. -->
187        <attr name="dropdownListPreferredItemHeight" format="dimension"/>
188
189        <!-- Default Spinner style. -->
190        <attr name="spinnerStyle" format="reference" />
191        <!-- Default Spinner style. -->
192        <attr name="spinnerDropDownItemStyle" format="reference" />
193        <!-- Specifies a drawable to use for the 'home as up' indicator. -->
194        <attr name="homeAsUpIndicator" format="reference"/>
195
196        <!-- Default action button style. -->
197        <attr name="actionButtonStyle" format="reference"/>
198
199        <!-- Style for button bars -->
200        <attr name="buttonBarStyle" format="reference"/>
201        <!-- Style for buttons within button bars -->
202        <attr name="buttonBarButtonStyle" format="reference"/>
203        <!-- A style that may be applied to buttons or other selectable items
204             that should react to pressed and focus states, but that do not
205             have a clear visual border along the edges. -->
206        <attr name="selectableItemBackground" format="reference"/>
207        <!-- Background drawable for borderless standalone items that need focus/pressed states. -->
208        <attr name="selectableItemBackgroundBorderless" format="reference" />
209        <!-- A drawable that may be used as a vertical divider between visual elements. -->
210        <attr name="dividerVertical" format="reference"/>
211        <!-- A drawable that may be used as a horizontal divider between visual elements. -->
212        <attr name="dividerHorizontal" format="reference"/>
213        <!-- Default ActivityChooserView style. -->
214        <attr name="activityChooserViewStyle" format="reference" />
215
216        <!-- Default Toolbar style. -->
217        <attr name="toolbarStyle" format="reference" />
218        <!-- Default Toolar NavigationButtonStyle -->
219        <attr name="toolbarNavigationButtonStyle" format="reference" />
220
221        <!-- Default PopupMenu style. -->
222        <attr name="popupMenuStyle" format="reference"/>
223        <!-- Default PopupWindow style. -->
224        <attr name="popupWindowStyle" format="reference" />
225
226        <!-- EditText text foreground color. -->
227        <attr name="editTextColor" format="reference|color" />
228        <!-- EditText background drawable. -->
229        <attr name="editTextBackground" format="reference" />
230
231        <!-- Default style for the Switch widget. -->
232        <attr name="switchStyle" format="reference" />
233
234        <!-- ============================ -->
235        <!-- SearchView styles and assets -->
236        <!-- ============================ -->
237        <eat-comment />
238        <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
239        <attr name="textAppearanceSearchResultTitle" format="reference" />
240        <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
241        <attr name="textAppearanceSearchResultSubtitle" format="reference" />
242        <!-- Text color for urls in search suggestions, used by things like global search -->
243        <attr name="textColorSearchUrl" format="reference|color" />
244        <!-- Style for the search query widget. -->
245        <attr name="searchViewStyle" format="reference" />
246
247        <!-- =========== -->
248        <!-- List styles -->
249        <!-- =========== -->
250        <eat-comment />
251
252        <!-- The preferred list item height. -->
253        <attr name="listPreferredItemHeight" format="dimension"/>
254        <!-- A smaller, sleeker list item height. -->
255        <attr name="listPreferredItemHeightSmall" format="dimension"/>
256        <!-- A larger, more robust list item height. -->
257        <attr name="listPreferredItemHeightLarge" format="dimension"/>
258
259        <!-- The preferred padding along the left edge of list items. -->
260        <attr name="listPreferredItemPaddingLeft" format="dimension"/>
261        <!-- The preferred padding along the right edge of list items. -->
262        <attr name="listPreferredItemPaddingRight" format="dimension"/>
263
264        <!-- ListPopupWindow compatibility -->
265        <attr name="dropDownListViewStyle" format="reference"/>
266        <attr name="listPopupWindowStyle" format="reference"/>
267
268        <!-- The preferred TextAppearance for the primary text of list items. -->
269        <attr name="textAppearanceListItem" format="reference"/>
270        <!-- The preferred TextAppearance for the primary text of small list items. -->
271        <attr name="textAppearanceListItemSmall" format="reference"/>
272
273
274        <!-- ============ -->
275        <!-- Panel styles -->
276        <!-- ============ -->
277        <eat-comment />
278
279        <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
280        <attr name="panelBackground" format="reference" />
281        <!-- Default Panel Menu width. -->
282        <attr name="panelMenuListWidth" format="dimension" />
283        <!-- Default Panel Menu style. -->
284        <attr name="panelMenuListTheme" format="reference" />
285        <!-- Drawable used as a background for selected list items. -->
286        <attr name="listChoiceBackgroundIndicator" format="reference" />
287
288        <!-- ============= -->
289        <!-- Color palette -->
290        <!-- ============= -->
291        <eat-comment />
292
293        <!-- The primary branding color for the app. By default, this is the color applied to the
294             action bar background. -->
295        <attr name="colorPrimary" format="color" />
296
297        <!-- Dark variant of the primary branding color. By default, this is the color applied to
298             the status bar (via statusBarColor) and navigation bar (via navigationBarColor). -->
299        <attr name="colorPrimaryDark" format="color" />
300
301        <!-- Bright complement to the primary branding color. By default, this is the color applied
302             to framework controls (via colorControlActivated). -->
303        <attr name="colorAccent" format="color" />
304
305        <!-- The color applied to framework controls in their normal state. -->
306        <attr name="colorControlNormal" format="color" />
307
308        <!-- The color applied to framework controls in their activated (ex. checked) state. -->
309        <attr name="colorControlActivated" format="color" />
310
311        <!-- The color applied to framework control highlights (ex. ripples, list selectors). -->
312        <attr name="colorControlHighlight" format="color" />
313
314        <!-- The color applied to framework buttons in their normal state. -->
315        <attr name="colorButtonNormal" format="color" />
316
317        <!-- The color applied to framework switch thumbs in their normal state. -->
318        <attr name="colorSwitchThumbNormal" format="color" />
319
320    </declare-styleable>
321
322
323    <!-- ============================================ -->
324
325    <!-- Attributes used to style the Action Bar.
326         These should be set on your theme; the default actionBarStyle will
327         propagate them to the correct elements as needed.
328
329         Please Note: when overriding attributes for an ActionBar style
330         you must specify each attribute twice: once with the "android:"
331         namespace prefix and once without. -->
332    <declare-styleable name="ActionBar">
333        <!-- The type of navigation to use. -->
334        <attr name="navigationMode">
335            <!-- Normal static title text -->
336            <enum name="normal" value="0"/>
337            <!-- The action bar will use a selection list for navigation. -->
338            <enum name="listMode" value="1"/>
339            <!-- The action bar will use a series of horizontal tabs for navigation. -->
340            <enum name="tabMode" value="2"/>
341        </attr>
342        <!-- Options affecting how the action bar is displayed. -->
343        <attr name="displayOptions">
344            <flag name="none" value="0" />
345            <flag name="useLogo" value="0x1"/>
346            <flag name="showHome" value="0x2"/>
347            <flag name="homeAsUp" value="0x4"/>
348            <flag name="showTitle" value="0x8"/>
349            <flag name="showCustom" value="0x10"/>
350            <flag name="disableHome" value="0x20"/>
351        </attr>
352        <!-- Specifies title text used for navigationMode="normal" -->
353        <attr name="title"/>
354        <!-- Specifies subtitle text used for navigationMode="normal" -->
355        <attr name="subtitle" format="string"/>
356        <!-- Specifies a style to use for title text. -->
357        <attr name="titleTextStyle" format="reference"/>
358        <!-- Specifies a style to use for subtitle text. -->
359        <attr name="subtitleTextStyle" format="reference"/>
360        <!-- Specifies the drawable used for the application icon. -->
361        <attr name="icon" format="reference"/>
362        <!-- Specifies the drawable used for the application logo. -->
363        <attr name="logo" format="reference"/>
364        <!-- Specifies the drawable used for item dividers. -->
365        <attr name="divider" format="reference"/>
366        <!-- Specifies a background drawable for the action bar. -->
367        <attr name="background" format="reference"/>
368        <!-- Specifies a background drawable for a second stacked row of the action bar. -->
369        <attr name="backgroundStacked" format="reference|color"/>
370        <!-- Specifies a background drawable for the bottom component of a split action bar. -->
371        <attr name="backgroundSplit" format="reference|color"/>
372        <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
373        <attr name="customNavigationLayout" format="reference"/>
374        <!-- Specifies a fixed height. -->
375        <attr name="height"/>
376        <!-- Specifies a layout to use for the "home" section of the action bar. -->
377        <attr name="homeLayout" format="reference"/>
378        <!-- Specifies a style resource to use for an embedded progress bar. -->
379        <attr name="progressBarStyle" format="reference"/>
380        <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
381        <attr name="indeterminateProgressStyle" format="reference"/>
382        <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
383        <attr name="progressBarPadding" format="dimension"/>
384        <!-- Up navigation glyph -->
385        <attr name="homeAsUpIndicator" />
386        <!-- Specifies padding that should be applied to the left and right sides of
387             system-provided items in the bar. -->
388        <attr name="itemPadding" format="dimension"/>
389        <!-- Set true to hide the action bar on a vertical nested scroll of content. -->
390        <attr name="hideOnContentScroll" format="boolean"/>
391        <!-- Minimum inset for content views within a bar. Navigation buttons and
392             menu views are excepted. Only valid for some themes and configurations. -->
393        <attr name="contentInsetStart" format="dimension"/>
394        <!-- Minimum inset for content views within a bar. Navigation buttons and
395             menu views are excepted. Only valid for some themes and configurations. -->
396        <attr name="contentInsetEnd" format="dimension"/>
397        <!-- Minimum inset for content views within a bar. Navigation buttons and
398             menu views are excepted. Only valid for some themes and configurations. -->
399        <attr name="contentInsetLeft" format="dimension"/>
400        <!-- Minimum inset for content views within a bar. Navigation buttons and
401             menu views are excepted. Only valid for some themes and configurations. -->
402        <attr name="contentInsetRight" format="dimension"/>
403        <!-- Elevation for the action bar itself -->
404        <attr name="elevation" format="dimension" />
405        <!-- Reference to a theme that should be used to inflate popups
406             shown by widgets in the action bar. -->
407        <attr name="popupTheme" format="reference" />
408    </declare-styleable>
409
410    <!-- Valid LayoutParams for views placed in the action bar as custom views. -->
411    <declare-styleable name="ActionBarLayout">
412        <attr name="android:layout_gravity"/>
413    </declare-styleable>
414
415    <declare-styleable name="ActionMenuItemView">
416        <attr name="android:minWidth"/>
417    </declare-styleable>
418
419    <declare-styleable name="ActionMode">
420        <!-- Specifies a style to use for title text. -->
421        <attr name="titleTextStyle"/>
422        <!-- Specifies a style to use for subtitle text. -->
423        <attr name="subtitleTextStyle"/>
424        <!-- Specifies a background for the action mode bar. -->
425        <attr name="background"/>
426        <!-- Specifies a background for the split action mode bar. -->
427        <attr name="backgroundSplit"/>
428        <!-- Specifies a fixed height for the action mode bar. -->
429        <attr name="height"/>
430        <!-- Specifies a layout to use for the "close" item at the starting edge. -->
431        <attr name="closeItemLayout" format="reference" />
432    </declare-styleable>
433
434    <declare-styleable name="View">
435        <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
436        <attr name="paddingStart" format="dimension"/>
437        <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
438        <attr name="paddingEnd" format="dimension"/>
439
440        <!-- Boolean that controls whether a view can take focus.  By default the user can not
441             move focus to a view; by setting this attribute to true the view is
442             allowed to take focus.  This value does not impact the behavior of
443             directly calling {@link android.view.View#requestFocus}, which will
444             always request focus regardless of this view.  It only impacts where
445             focus navigation will try to move focus. -->
446        <attr name="android:focusable" />
447
448        <!-- Deprecated. -->
449        <attr name="theme" format="reference" />
450
451        <!-- Specifies a theme override for a view. When a theme override is set, the
452             view will be inflated using a {@link android.content.Context} themed with
453             the specified resource. -->
454        <attr name="android:theme" />
455
456        <!-- Tint to apply to the background. -->
457        <attr name="backgroundTint" format="color" />
458
459        <!-- Blending mode used to apply the background tint. -->
460        <attr name="backgroundTintMode">
461            <!-- The tint is drawn on top of the drawable.
462                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
463            <enum name="src_over" value="3" />
464            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
465                 color channels are thrown out. [Sa * Da, Sc * Da] -->
466            <enum name="src_in" value="5" />
467            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
468                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
469            <enum name="src_atop" value="9" />
470            <!-- Multiplies the color and alpha channels of the drawable with those of
471                 the tint. [Sa * Da, Sc * Dc] -->
472            <enum name="multiply" value="14" />
473            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
474            <enum name="screen" value="15" />
475        </attr>
476    </declare-styleable>
477
478    <declare-styleable name="MenuView">
479        <!-- Default appearance of menu item text. -->
480        <attr name="android:itemTextAppearance"/>
481        <!-- Default horizontal divider between rows of menu items. -->
482        <attr name="android:horizontalDivider"/>
483        <!-- Default vertical divider between menu items. -->
484        <attr name="android:verticalDivider"/>
485        <!-- Default background for the menu header. -->
486        <attr name="android:headerBackground"/>
487        <!-- Default background for each menu item. -->
488        <attr name="android:itemBackground"/>
489        <!-- Default animations for the menu. -->
490        <attr name="android:windowAnimationStyle"/>
491        <!-- Default disabled icon alpha for each menu item that shows an icon. -->
492        <attr name="android:itemIconDisabledAlpha"/>
493        <!-- Whether space should be reserved in layout when an icon is missing. -->
494        <attr name="preserveIconSpacing" format="boolean" />
495    </declare-styleable>
496    <declare-styleable name="ActionMenuView">
497        <!-- Size of padding on either end of a divider. -->
498    </declare-styleable>
499
500    <!-- Base attributes that are available to all groups. -->
501    <declare-styleable name="MenuGroup">
502
503        <!-- The ID of the group. -->
504        <attr name="android:id" />
505
506        <!-- The category applied to all items within this group.
507             (This will be or'ed with the orderInCategory attribute.) -->
508        <attr name="android:menuCategory" />
509
510        <!-- The order within the category applied to all items within this group.
511             (This will be or'ed with the category attribute.) -->
512        <attr name="android:orderInCategory" />
513
514        <!-- Whether the items are capable of displaying a check mark. -->
515        <attr name="android:checkableBehavior" />
516
517        <!-- Whether the items are shown/visible. -->
518        <attr name="android:visible" />
519
520        <!-- Whether the items are enabled. -->
521        <attr name="android:enabled" />
522
523    </declare-styleable>
524
525    <!-- Base attributes that are available to all Item objects. -->
526    <declare-styleable name="MenuItem">
527
528        <!-- The ID of the item. -->
529        <attr name="android:id" />
530
531        <!-- The category applied to the item.
532             (This will be or'ed with the orderInCategory attribute.) -->
533        <attr name="android:menuCategory" />
534
535        <!-- The order within the category applied to the item.
536             (This will be or'ed with the category attribute.) -->
537        <attr name="android:orderInCategory" />
538
539        <!-- The title associated with the item. -->
540        <attr name="android:title" />
541
542        <!-- The condensed title associated with the item.  This is used in situations where the
543             normal title may be too long to be displayed. -->
544        <attr name="android:titleCondensed" />
545
546        <!-- The icon associated with this item.  This icon will not always be shown, so
547             the title should be sufficient in describing this item. -->
548        <attr name="android:icon" />
549
550        <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
551             with alphabetic keys. -->
552        <attr name="android:alphabeticShortcut" />
553
554        <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
555             keyboard. -->
556        <attr name="android:numericShortcut" />
557
558        <!-- Whether the item is capable of displaying a check mark. -->
559        <attr name="android:checkable" />
560
561        <!-- Whether the item is checked.  Note that you must first have enabled checking with
562             the checkable attribute or else the check mark will not appear. -->
563        <attr name="android:checked"  />
564
565        <!-- Whether the item is shown/visible. -->
566        <attr name="android:visible" />
567
568        <!-- Whether the item is enabled. -->
569        <attr name="android:enabled" />
570
571        <!-- Name of a method on the Context used to inflate the menu that will be
572             called when the item is clicked. -->
573        <attr name="android:onClick" />
574
575        <!-- How this item should display in the Action Bar, if present. -->
576        <attr name="showAsAction">
577            <!-- Never show this item in an action bar, show it in the overflow menu instead.
578                 Mutually exclusive with "ifRoom" and "always". -->
579            <flag name="never" value="0" />
580            <!-- Show this item in an action bar if there is room for it as determined
581                 by the system. Favor this option over "always" where possible.
582                 Mutually exclusive with "never" and "always". -->
583            <flag name="ifRoom" value="1" />
584            <!-- Always show this item in an actionbar, even if it would override
585                 the system's limits of how much stuff to put there. This may make
586                 your action bar look bad on some screens. In most cases you should
587                 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
588            <flag name="always" value="2" />
589            <!-- When this item is shown as an action in the action bar, show a text
590                 label with it even if it has an icon representation. -->
591            <flag name="withText" value="4" />
592            <!-- This item's action view collapses to a normal menu
593                 item. When expanded, the action view takes over a
594                 larger segment of its container. -->
595            <flag name="collapseActionView" value="8" />
596        </attr>
597
598        <!-- An optional layout to be used as an action view.
599             See {@link android.view.MenuItem#setActionView(android.view.View)}
600             for more info. -->
601        <attr name="actionLayout" format="reference" />
602
603        <!-- The name of an optional View class to instantiate and use as an
604             action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
605             for more info. -->
606        <attr name="actionViewClass" format="string" />
607
608        <!-- The name of an optional ActionProvider class to instantiate an action view
609             and perform operations such as default action for that menu item.
610             See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
611             for more info. -->
612        <attr name="actionProviderClass" format="string" />
613
614    </declare-styleable>
615
616    <declare-styleable name="Spinner">
617        <!-- The prompt to display when the spinner's dialog is shown. -->
618        <attr name="prompt" format="reference" />
619        <!-- Display mode for spinner options. -->
620        <attr name="spinnerMode" format="enum">
621            <!-- Spinner options will be presented to the user as a dialog window. -->
622            <enum name="dialog" value="0" />
623            <!-- Spinner options will be presented to the user as an inline dropdown
624                 anchored to the spinner widget itself. -->
625            <enum name="dropdown" value="1" />
626        </attr>
627        <!-- List selector to use for spinnerMode="dropdown" display. -->
628        <attr name="android:dropDownSelector" />
629        <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
630        <attr name="android:popupBackground" />
631        <!-- Vertical offset from the spinner widget for positioning the dropdown in
632             spinnerMode="dropdown". -->
633        <attr name="android:dropDownVerticalOffset" />
634        <!-- Horizontal offset from the spinner widget for positioning the dropdown
635             in spinnerMode="dropdown". -->
636        <attr name="android:dropDownHorizontalOffset" />
637        <!-- Width of the dropdown in spinnerMode="dropdown". -->
638        <attr name="android:dropDownWidth" />
639        <!-- Reference to a layout to use for displaying a prompt in the dropdown for
640             spinnerMode="dropdown". This layout must contain a TextView with the id
641             {@code @android:id/text1} to be populated with the prompt text. -->
642        <attr name="popupPromptView" format="reference" />
643        <!-- Gravity setting for positioning the currently selected item. -->
644        <attr name="android:gravity" />
645        <!-- Whether this spinner should mark child views as enabled/disabled when
646             the spinner itself is enabled/disabled. -->
647        <attr name="disableChildrenWhenDisabled" format="boolean" />
648        <attr name="android:background" />
649    </declare-styleable>
650
651    <declare-styleable name="SearchView">
652        <!-- The layout to use for the search view. -->
653        <attr name="layout" format="reference" />
654        <!-- The default state of the SearchView. If true, it will be iconified when not in
655             use and expanded when clicked. -->
656        <attr name="iconifiedByDefault" format="boolean" />
657        <!-- An optional maximum width of the SearchView. -->
658        <attr name="android:maxWidth" />
659        <!-- An optional query hint string to be displayed in the empty query field. -->
660        <attr name="queryHint" format="string" />
661        <!-- The IME options to set on the query text field. -->
662        <attr name="android:imeOptions" />
663        <!-- The input type to set on the query text field. -->
664        <attr name="android:inputType" />
665        <!-- Close button icon -->
666        <attr name="closeIcon" format="reference" />
667        <!-- Go button icon -->
668        <attr name="goIcon" format="reference" />
669        <!-- Search icon -->
670        <attr name="searchIcon" format="reference" />
671        <!-- Search icon displayed as a text field hint -->
672        <attr name="searchHintIcon" format="reference" />
673        <!-- Voice button icon -->
674        <attr name="voiceIcon" format="reference" />
675        <!-- Commit icon shown in the query suggestion row -->
676        <attr name="commitIcon" format="reference" />
677        <!-- Layout for query suggestion rows -->
678        <attr name="suggestionRowLayout" format="reference" />
679        <!-- Background for the section containing the search query -->
680        <attr name="queryBackground" format="reference" />
681        <!-- Background for the section containing the action (e.g. voice search) -->
682        <attr name="submitBackground" format="reference" />
683        <attr name="android:focusable" />
684    </declare-styleable>
685
686    <!-- Attrbitutes for a ActivityChooserView. -->
687    <declare-styleable name="ActivityChooserView">
688        <!-- The maximal number of items initially shown in the activity list. -->
689        <attr name="initialActivityCount" format="string" />
690        <!-- The drawable to show in the button for expanding the activities overflow popup.
691             <strong>Note:</strong> Clients would like to set this drawable
692             as a clue about the action the chosen activity will perform. For
693             example, if share activity is to be chosen the drawable should
694             give a clue that sharing is to be performed.
695         -->
696        <attr name="expandActivityOverflowButtonDrawable" format="reference" />
697    </declare-styleable>
698
699    <declare-styleable name="CompatTextView">
700        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
701        <attr name="textAllCaps" format="reference|boolean" />
702        <attr name="android:textAppearance" />
703    </declare-styleable>
704
705    <declare-styleable name="LinearLayoutCompat">
706        <!-- Should the layout be a column or a row?  Use "horizontal"
707             for a row, "vertical" for a column.  The default is
708             horizontal. -->
709        <attr name="android:orientation" />
710        <attr name="android:gravity" />
711        <!-- When set to false, prevents the layout from aligning its children's
712             baselines. This attribute is particularly useful when the children
713             use different values for gravity. The default value is true. -->
714        <attr name="android:baselineAligned" />
715        <!-- When a linear layout is part of another layout that is baseline
716          aligned, it can specify which of its children to baseline align to
717          (that is, which child TextView).-->
718        <attr name="android:baselineAlignedChildIndex" />
719        <!-- Defines the maximum weight sum. If unspecified, the sum is computed
720             by adding the layout_weight of all of the children. This can be
721             used for instance to give a single child 50% of the total available
722             space by giving it a layout_weight of 0.5 and setting the weightSum
723             to 1.0. -->
724        <attr name="android:weightSum" />
725        <!-- When set to true, all children with a weight will be considered having
726             the minimum size of the largest child. If false, all children are
727             measured normally. -->
728        <attr name="measureWithLargestChild" format="boolean" />
729        <!-- Drawable to use as a vertical divider between buttons. -->
730        <attr name="divider" />
731        <!-- Setting for which dividers to show. -->
732        <attr name="showDividers">
733            <flag name="none" value="0" />
734            <flag name="beginning" value="1" />
735            <flag name="middle" value="2" />
736            <flag name="end" value="4" />
737        </attr>
738        <!-- Size of padding on either end of a divider. -->
739        <attr name="dividerPadding" format="dimension" />
740    </declare-styleable>
741
742    <declare-styleable name="LinearLayoutCompat_Layout">
743        <attr name="android:layout_width" />
744        <attr name="android:layout_height" />
745        <attr name="android:layout_weight" />
746        <attr name="android:layout_gravity" />
747    </declare-styleable>
748
749    <declare-styleable name="Toolbar">
750        <attr name="titleTextAppearance" format="reference" />
751        <attr name="subtitleTextAppearance" format="reference" />
752        <attr name="title" />
753        <attr name="subtitle" />
754        <attr name="android:gravity" />
755        <attr name="titleMargins" format="dimension" />
756        <attr name="titleMarginStart" format="dimension" />
757        <attr name="titleMarginEnd" format="dimension" />
758        <attr name="titleMarginTop" format="dimension" />
759        <attr name="titleMarginBottom" format="dimension" />
760        <attr name="contentInsetStart" />
761        <attr name="contentInsetEnd" />
762        <attr name="contentInsetLeft" />
763        <attr name="contentInsetRight" />
764        <attr name="maxButtonHeight" format="dimension" />
765
766        <attr name="collapseIcon" format="reference" />
767        <!-- Text to set as the content description for the collapse button. -->
768        <attr name="collapseContentDescription" format="string" />
769        <!-- Reference to a theme that should be used to inflate popups
770             shown by widgets in the toolbar. -->
771        <attr name="popupTheme" />
772        <!-- Icon drawable to use for the navigation button located at
773             the start of the toolbar. -->
774        <attr name="navigationIcon" format="reference" />
775        <!-- Text to set as the content description for the navigation button
776             located at the start of the toolbar. -->
777        <attr name="navigationContentDescription" format="string" />
778
779        <!-- Allows us to read in the minHeight attr pre-v16 -->
780        <attr name="android:minHeight" />
781    </declare-styleable>
782
783    <declare-styleable name="PopupWindowBackgroundState">
784        <!-- State identifier indicating the popup will be above the anchor. -->
785        <attr name="state_above_anchor" format="boolean" />
786    </declare-styleable>
787
788    <declare-styleable name="ListPopupWindow">
789        <!-- Amount of pixels by which the drop down should be offset vertically. -->
790        <attr name="android:dropDownVerticalOffset" />
791        <!-- Amount of pixels by which the drop down should be offset horizontally. -->
792        <attr name="android:dropDownHorizontalOffset" />
793    </declare-styleable>
794
795    <declare-styleable name="PopupWindow">
796        <!-- Whether the popup window should overlap its anchor view. -->
797        <attr name="overlapAnchor" format="boolean" />
798        <attr name="android:popupBackground" />
799    </declare-styleable>
800
801    <declare-styleable name="DrawerArrowToggle">
802        <!-- The drawing color for the bars -->
803        <attr name="color" format="color"/>
804        <!-- Whether bars should rotate or not during transition -->
805        <attr name="spinBars" format="boolean"/>
806        <!-- The total size of the drawable -->
807        <attr name="drawableSize" format="dimension"/>
808        <!-- The max gap between the bars when they are parallel to each other -->
809        <attr name="gapBetweenBars" format="dimension"/>
810        <!-- The size of the top and bottom bars when they merge to the middle bar to form an arrow -->
811        <attr name="topBottomBarArrowSize" format="dimension"/>
812        <!-- The size of the middle bar when top and bottom bars merge into middle bar to form an arrow -->
813        <attr name="middleBarArrowSize" format="dimension"/>
814        <!-- The size of the bars when they are parallel to each other -->
815        <attr name="barSize" format="dimension"/>
816        <!-- The thickness (stroke size) for the bar paint -->
817        <attr name="thickness" format="dimension"/>
818    </declare-styleable>
819
820    <attr name="drawerArrowStyle" format="reference" />
821
822    <declare-styleable name="ViewStubCompat">
823        <!-- Supply an identifier for the layout resource to inflate when the ViewStub
824             becomes visible or when forced to do so. The layout resource must be a
825             valid reference to a layout. -->
826        <attr name="android:layout" />
827        <!-- Overrides the id of the inflated View with this value. -->
828        <attr name="android:inflatedId" />
829        <attr name="android:id" />
830    </declare-styleable>
831
832    <declare-styleable name="SwitchCompat">
833        <!-- Drawable to use as the "thumb" that switches back and forth. -->
834        <attr name="android:thumb" />
835        <!-- Drawable to use as the "track" that the switch thumb slides within. -->
836        <attr name="track" format="reference" />
837        <!-- Text to use when the switch is in the checked/"on" state. -->
838        <attr name="android:textOn" />
839        <!-- Text to use when the switch is in the unchecked/"off" state. -->
840        <attr name="android:textOff" />
841        <!-- Amount of padding on either side of text within the switch thumb. -->
842        <attr name="thumbTextPadding" format="dimension" />
843        <!-- TextAppearance style for text displayed on the switch thumb. -->
844        <attr name="switchTextAppearance" format="reference" />
845        <!-- Minimum width for the switch component -->
846        <attr name="switchMinWidth" format="dimension" />
847        <!-- Minimum space between the switch and caption text -->
848        <attr name="switchPadding" format="dimension" />
849        <!-- Whether to split the track and leave a gap for the thumb drawable. -->
850        <attr name="splitTrack" format="boolean" />
851        <!-- Whether to draw on/off text. -->
852        <attr name="showText" format="boolean" />
853    </declare-styleable>
854
855    <declare-styleable name="TextAppearance">
856        <attr name="android:textSize" />
857        <attr name="android:textColor" />
858        <attr name="android:textStyle" />
859        <attr name="android:typeface" />
860        <attr name="textAllCaps" />
861    </declare-styleable>
862
863</resources>
864