attrs.xml revision 09591e89e4cf6d3ea836b02e3ef965375f4ab214
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2006 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<!-- Formatting note: terminate all comments with a period, to avoid breaking
18     the documentation output. To suppress comment lines from the documentation
19     output, insert an eat-comment element after the comment lines.
20-->
21
22<resources>
23    <!-- These are the standard attributes that make up a complete theme. -->
24    <declare-styleable name="Theme">
25        <!-- ============== -->
26        <!-- Generic styles -->
27        <!-- ============== -->
28        <eat-comment />
29
30        <!-- Default color of foreground imagery. -->
31        <attr name="colorForeground" format="color" />
32        <!-- Default color of foreground imagery on an inverted background. -->
33        <attr name="colorForegroundInverse" format="color" />
34        <!-- Color that matches (as closely as possible) the window background. -->
35        <attr name="colorBackground" format="color" />
36        <!-- This is a hint for a solid color that can be used for caching
37             rendered views.  This should be the color of the background when
38             there is a solid background color; it should be null when the
39             background is a texture or translucent.  When a device is able
40             to use accelerated drawing (thus setting state_accelerated), the
41             cache hint is ignored and always assumed to be transparent. -->
42        <attr name="colorBackgroundCacheHint" format="color" />
43
44        <!-- Default highlight color for items that are pressed. -->
45        <attr name="colorPressedHighlight" format="color" />
46        <!-- Default highlight color for items that are long-pressed. -->
47        <attr name="colorLongPressedHighlight" format="color" />
48        <!-- Default highlight color for items that are
49             focused. (Focused meaning cursor-based selection.) -->
50        <attr name="colorFocusedHighlight" format="color" />
51        <!-- Default highlight color for items that are
52             activated. (Activated meaning persistent selection.) -->
53        <attr name="colorActivatedHighlight" format="color" />
54        <!-- Default highlight color for items in multiple selection
55             mode. -->
56        <attr name="colorMultiSelectHighlight" format="color" />
57
58        <!-- Default disabled alpha for widgets that set enabled/disabled alpha programmatically. -->
59        <attr name="disabledAlpha" format="float" />
60        <!-- Default background dim amount when a menu, dialog, or something similar pops up. -->
61        <attr name="backgroundDimAmount" format="float" />
62        <!-- Control whether dimming behind the window is enabled.  The default
63             theme does not set this value, meaning it is based on whether the
64             window is floating. -->
65        <attr name="backgroundDimEnabled" format="boolean" />
66
67        <!-- =========== -->
68        <!-- Text styles -->
69        <!-- =========== -->
70        <eat-comment />
71
72        <!-- Default appearance of text: color, typeface, size, and style. -->
73        <attr name="textAppearance" format="reference" />
74        <!-- Default appearance of text against an inverted background:
75             color, typeface, size, and style. -->
76        <attr name="textAppearanceInverse" format="reference" />
77
78        <!-- The most prominent text color.  -->
79        <attr name="textColorPrimary" format="reference|color" />
80        <!-- Secondary text color. -->
81        <attr name="textColorSecondary" format="reference|color" />
82        <!-- Tertiary text color. -->
83        <attr name="textColorTertiary" format="reference|color" />
84
85        <!-- Primary inverse text color, useful for inverted backgrounds. -->
86        <attr name="textColorPrimaryInverse" format="reference|color" />
87        <!-- Secondary inverse text color, useful for inverted backgrounds. -->
88        <attr name="textColorSecondaryInverse" format="reference|color" />
89        <!-- Tertiary inverse text color, useful for inverted backgrounds. -->
90        <attr name="textColorTertiaryInverse" format="reference|color" />
91
92        <!-- Inverse hint text color. -->
93        <attr name="textColorHintInverse" format="reference|color" />
94
95        <!-- Bright text color. Only differentiates based on the disabled state. -->
96        <attr name="textColorPrimaryDisableOnly" format="reference|color" />
97
98        <!-- Bright inverse text color. Only differentiates based on the disabled state. -->
99        <attr name="textColorPrimaryInverseDisableOnly" format="reference|color" />
100
101        <!-- Bright text color. This does not differentiate the disabled state. As an example,
102             buttons use this since they display the disabled state via the background and not the
103             foreground text color. -->
104        <attr name="textColorPrimaryNoDisable" format="reference|color" />
105        <!-- Dim text color. This does not differentiate the disabled state. -->
106        <attr name="textColorSecondaryNoDisable" format="reference|color" />
107
108        <!-- Bright inverse text color. This does not differentiate the disabled state. -->
109        <attr name="textColorPrimaryInverseNoDisable" format="reference|color" />
110        <!-- Dim inverse text color. This does not differentiate the disabled state. -->
111        <attr name="textColorSecondaryInverseNoDisable" format="reference|color" />
112
113        <!-- Text color for urls in search suggestions, used by things like global search and the browser. @hide -->
114        <attr name="textColorSearchUrl" format="reference|color" />
115
116        <!-- Color of highlighted text, when used in a light theme. -->
117        <attr name="textColorHighlightInverse" format="reference|color" />
118        <!-- Color of link text (URLs), when used in a light theme. -->
119        <attr name="textColorLinkInverse" format="reference|color" />
120
121        <!-- Color of list item text in alert dialogs. -->
122        <attr name="textColorAlertDialogListItem" format="reference|color" />
123
124        <!-- Search widget more corpus result item background. -->
125        <attr name="searchWidgetCorpusItemBackground" format="reference|color" />
126
127        <!-- Text color, typeface, size, and style for "large" text. Defaults to primary text color. -->
128        <attr name="textAppearanceLarge" format="reference" />
129        <!-- Text color, typeface, size, and style for "medium" text. Defaults to primary text color. -->
130        <attr name="textAppearanceMedium" format="reference" />
131        <!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. -->
132        <attr name="textAppearanceSmall" format="reference" />
133
134        <!-- Text color, typeface, size, and style for "large" inverse text. Defaults to primary inverse text color. -->
135        <attr name="textAppearanceLargeInverse" format="reference" />
136        <!-- Text color, typeface, size, and style for "medium" inverse text. Defaults to primary inverse text color. -->
137        <attr name="textAppearanceMediumInverse" format="reference" />
138        <!-- Text color, typeface, size, and style for "small" inverse text. Defaults to secondary inverse text color. -->
139        <attr name="textAppearanceSmallInverse" format="reference" />
140
141        <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
142        <attr name="textAppearanceSearchResultTitle" format="reference" />
143        <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
144        <attr name="textAppearanceSearchResultSubtitle" format="reference" />
145
146        <!-- Text color, typeface, size, and style for the text inside of a button. -->
147        <attr name="textAppearanceButton" format="reference" />
148
149        <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
150        <attr name="textAppearanceLargePopupMenu" format="reference" />
151
152        <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
153        <attr name="textAppearanceSmallPopupMenu" format="reference" />
154
155        <!-- The underline color and thickness for easy correct suggestion -->
156        <attr name="textAppearanceEasyCorrectSuggestion" format="reference" />
157
158        <!-- The underline color and thickness for misspelled suggestion -->
159        <attr name="textAppearanceMisspelledSuggestion" format="reference" />
160
161        <!-- The underline color and thickness for auto correction suggestion -->
162        <attr name="textAppearanceAutoCorrectionSuggestion" format="reference" />
163
164        <!--  The underline color -->
165        <attr name="textUnderlineColor" format="reference|color" />
166        <!--  The underline thickness -->
167        <attr name="textUnderlineThickness" format="reference|dimension" />
168
169        <!-- EditText text foreground color. -->
170        <attr name="editTextColor" format="reference|color" />
171        <!-- EditText background drawable. -->
172        <attr name="editTextBackground" format="reference" />
173
174        <!-- Popup text displayed in TextView when setError is used. -->
175        <attr name="errorMessageBackground" format="reference" />
176        <!-- Background used instead of errorMessageBackground when the popup has to be above. -->
177        <attr name="errorMessageAboveBackground" format="reference" />
178
179        <!-- A styled string, specifying the style to be used for showing
180             inline candidate text when composing with an input method.  The
181             text itself will be ignored, but the style spans will be applied
182             to the candidate text as it is edited. -->
183        <attr name="candidatesTextStyleSpans" format="reference|string" />
184
185        <!-- Drawable to use for check marks. -->
186        <attr name="textCheckMark" format="reference" />
187        <attr name="textCheckMarkInverse" format="reference" />
188
189        <!-- Drawable to use for multiple choice indicators. -->
190        <attr name="listChoiceIndicatorMultiple" format="reference" />
191
192        <!-- Drawable to use for single choice indicators. -->
193        <attr name="listChoiceIndicatorSingle" format="reference" />
194
195        <!-- Drawable used as a background for selected list items. -->
196        <attr name="listChoiceBackgroundIndicator" format="reference" />
197
198        <!-- Drawable used as a background for activated items. -->
199        <attr name="activatedBackgroundIndicator" format="reference" />
200
201        <!-- ============= -->
202        <!-- Button styles -->
203        <!-- ============= -->
204        <eat-comment />
205
206        <!-- Normal Button style. -->
207        <attr name="buttonStyle" format="reference" />
208
209        <!-- Small Button style. -->
210        <attr name="buttonStyleSmall" format="reference" />
211
212        <!-- Button style to inset into an EditText. -->
213        <attr name="buttonStyleInset" format="reference" />
214
215        <!-- ToggleButton style. -->
216        <attr name="buttonStyleToggle" format="reference" />
217
218        <!-- ============== -->
219        <!-- Gallery styles -->
220        <!-- ============== -->
221        <eat-comment />
222
223        <!-- The preferred background for gallery items. This should be set
224             as the background of any Views you provide from the Adapter. -->
225        <attr name="galleryItemBackground" format="reference" />
226
227        <!-- =========== -->
228        <!-- List styles -->
229        <!-- =========== -->
230        <eat-comment />
231
232        <!-- The preferred list item height. -->
233        <attr name="listPreferredItemHeight" format="dimension" />
234        <!-- A smaller, sleeker list item height. -->
235        <attr name="listPreferredItemHeightSmall" format="dimension" />
236        <!-- A larger, more robust list item height. -->
237        <attr name="listPreferredItemHeightLarge" format="dimension" />
238        <!-- The list item height for search results. @hide -->
239        <attr name="searchResultListItemHeight" 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        <!-- The preferred TextAppearance for the primary text of list items. -->
247        <attr name="textAppearanceListItem" format="reference" />
248        <!-- The preferred TextAppearance for the primary text of small list items. -->
249        <attr name="textAppearanceListItemSmall" format="reference" />
250
251        <!-- The drawable for the list divider. -->
252        <attr name="listDivider" format="reference" />
253        <!-- The list divider used in alert dialogs. -->
254        <attr name="listDividerAlertDialog" format="reference" />
255        <!-- TextView style for list separators. -->
256        <attr name="listSeparatorTextViewStyle" format="reference" />
257        <!-- The preferred left padding for an expandable list item (for child-specific layouts,
258             use expandableListPreferredChildPaddingLeft). This takes into account
259             the indicator that will be shown to next to the item. -->
260        <attr name="expandableListPreferredItemPaddingLeft" format="dimension" />
261        <!-- The preferred left padding for an expandable list item that is a child.
262             If this is not provided, it defaults to the expandableListPreferredItemPaddingLeft. -->
263        <attr name="expandableListPreferredChildPaddingLeft" format="dimension" />
264        <!-- The preferred left bound for an expandable list item's indicator. For a child-specific
265             indicator, use expandableListPreferredChildIndicatorLeft. -->
266        <attr name="expandableListPreferredItemIndicatorLeft" format="dimension" />
267        <!-- The preferred right bound for an expandable list item's indicator. For a child-specific
268             indicator, use expandableListPreferredChildIndicatorRight. -->
269        <attr name="expandableListPreferredItemIndicatorRight" format="dimension" />
270        <!-- The preferred left bound for an expandable list child's indicator. -->
271        <attr name="expandableListPreferredChildIndicatorLeft" format="dimension" />
272        <!-- The preferred right bound for an expandable list child's indicator. -->
273        <attr name="expandableListPreferredChildIndicatorRight" format="dimension" />
274
275        <!-- The preferred item height for dropdown lists. -->
276        <attr name="dropdownListPreferredItemHeight" format="dimension" />
277
278        <!-- The preferred padding along the start edge of list items. -->
279        <attr name="listPreferredItemPaddingStart" format="dimension" />
280        <!-- The preferred padding along the end edge of list items. -->
281        <attr name="listPreferredItemPaddingEnd" format="dimension" />
282
283        <!-- ============= -->
284        <!-- Window styles -->
285        <!-- ============= -->
286        <eat-comment />
287
288        <!-- Drawable to use as the overall window background.  As of
289             {@link android.os.Build.VERSION_CODES#HONEYCOMB}, this may
290             be a selector that uses state_accelerated to pick a non-solid
291             color when running on devices that can draw such a bitmap
292             with complex compositing on top at 60fps.
293
294             <p>There are a few special considerations to use when setting this
295             drawable:
296             <ul>
297             <li> This information will be used to infer the pixel format
298                  for your window's surface.  If the drawable has any
299                  non-opaque pixels, your window will be translucent
300                  (32 bpp).
301             <li> If you want to draw the entire background
302                  yourself, you should set this drawable to some solid
303                  color that closely matches that background (so the
304                  system's preview of your window will match), and
305                  then in code manually set your window's background to
306                  null so it will not be drawn.
307             </ul> -->
308        <attr name="windowBackground" format="reference" />
309        <!-- Drawable to use as a frame around the window. -->
310        <attr name="windowFrame" format="reference" />
311        <!-- Flag indicating whether there should be no title on this window. -->
312        <attr name="windowNoTitle" format="boolean" />
313        <!-- Flag indicating whether this window should fill the entire screen.  Corresponds
314             to {@link android.view.WindowManager.LayoutParams#FLAG_FULLSCREEN}. -->
315        <attr name="windowFullscreen" format="boolean" />
316        <!-- Flag indicating whether this window should extend into overscan region.  Corresponds
317             to {@link android.view.WindowManager.LayoutParams#FLAG_LAYOUT_IN_OVERSCAN}. -->
318        <attr name="windowOverscan" format="boolean" />
319        <!-- Flag indicating whether this is a floating window. -->
320        <attr name="windowIsFloating" format="boolean" />
321        <!-- Flag indicating whether this is a translucent window. -->
322        <attr name="windowIsTranslucent" format="boolean" />
323        <!-- Flag indicating that this window's background should be the
324             user's current wallpaper.  Corresponds
325             to {@link android.view.WindowManager.LayoutParams#FLAG_SHOW_WALLPAPER}. -->
326        <attr name="windowShowWallpaper" format="boolean" />
327        <!-- This Drawable is overlaid over the foreground of the Window's content area, usually
328             to place a shadow below the title.  -->
329        <attr name="windowContentOverlay" format="reference" />
330        <!-- The style resource to use for a window's title bar height. -->
331        <attr name="windowTitleSize" format="dimension" />
332        <!-- The style resource to use for a window's title text. -->
333        <attr name="windowTitleStyle" format="reference" />
334        <!-- The style resource to use for a window's title area. -->
335        <attr name="windowTitleBackgroundStyle" format="reference" />
336
337        <!-- Reference to a style resource holding
338             the set of window animations to use, which can be
339             any of the attributes defined by
340             {@link android.R.styleable#WindowAnimation}. -->
341        <attr name="windowAnimationStyle" format="reference" />
342
343        <!-- Flag indicating whether this window should have an Action Bar
344             in place of the usual title bar. -->
345        <attr name="windowActionBar" format="boolean" />
346
347        <!-- Flag indicating whether this window's Action Bar should overlay
348             application content. Does nothing if the window would not
349             have an Action Bar. -->
350        <attr name="windowActionBarOverlay" format="boolean" />
351
352        <!-- Flag indicating whether action modes should overlay window content
353             when there is not reserved space for their UI (such as an Action Bar). -->
354        <attr name="windowActionModeOverlay" format="boolean" />
355
356        <!-- Flag indicating that the action bar should be split to provide more
357             room for elements. -->
358        <attr name="windowSplitActionBar" format="boolean" />
359
360        <!-- Defines the default soft input state that this window would
361             like when it is displayed.  Corresponds
362             to {@link android.view.WindowManager.LayoutParams#softInputMode}. -->
363        <attr name="windowSoftInputMode">
364            <!-- Not specified, use what the system thinks is best.  This
365                 is the default. -->
366            <flag name="stateUnspecified" value="0" />
367            <!-- Leave the soft input window as-is, in whatever state it
368                 last was. -->
369            <flag name="stateUnchanged" value="1" />
370            <!-- Make the soft input area hidden when normally appropriate
371                 (when the user is navigating forward to your window). -->
372            <flag name="stateHidden" value="2" />
373            <!-- Always make the soft input area hidden when this window
374                 has input focus. -->
375            <flag name="stateAlwaysHidden" value="3" />
376            <!-- Make the soft input area visible when normally appropriate
377                 (when the user is navigating forward to your window). -->
378            <flag name="stateVisible" value="4" />
379            <!-- Always make the soft input area visible when this window
380                 has input focus. -->
381            <flag name="stateAlwaysVisible" value="5" />
382
383            <!-- The window resize/pan adjustment has not been specified,
384                 the system will automatically select between resize and pan
385                 modes, depending
386                 on whether the content of the window has any layout views
387                 that can scroll their contents.  If there is such a view,
388                 then the window will be resized, with the assumption being
389                 that the resizeable area can be reduced to make room for
390                 the input UI. -->
391            <flag name="adjustUnspecified" value="0x00" />
392            <!-- Always resize the window: the content area of the window is
393                 reduced to make room for the soft input area. -->
394            <flag name="adjustResize" value="0x10" />
395            <!-- Don't resize the window to make room for the soft input area;
396                 instead pan the contents of the window as focus moves inside
397                 of it so that the user can see what they are typing.  This is
398                 generally less desireable than panning because the user may
399                 need to close the input area to get at and interact with
400                 parts of the window. -->
401            <flag name="adjustPan" value="0x20" />
402            <!-- Don't resize <em>or</em> pan the window to make room for the
403                 soft input area; the window is never adjusted for it. -->
404            <flag name="adjustNothing" value="0x30" />
405        </attr>
406
407        <!-- Flag allowing you to disable the preview animation for a window.
408             The default value is false; if set to true, the system can never
409             use the window's theme to show a preview of it before your
410             actual instance is shown to the user. -->
411        <attr name="windowDisablePreview" format="boolean" />
412
413        <!-- Flag indicating that this window should not be displayed at all.
414             The default value is false; if set to true, and this window is
415             the main window of an Activity, then it will never actually
416             be added to the window manager.  This means that your activity
417             must immediately quit without waiting for user interaction,
418             because there will be no such interaction coming. -->
419        <attr name="windowNoDisplay" format="boolean" />
420
421        <!-- Flag indicating that this window should allow touches to be split
422             across other windows that also support split touch.
423             The default value is true for applications with a targetSdkVersion
424             of Honeycomb or newer; false otherwise.
425             When this flag is false, the first pointer that goes down determines
426             the window to which all subsequent touches go until all pointers go up.
427             When this flag is true, each pointer (not necessarily the first) that
428             goes down determines the window to which all subsequent touches of that
429             pointer will go until that pointers go up thereby enabling touches
430             with multiple pointers to be split across multiple windows. -->
431        <attr name="windowEnableSplitTouch" format="boolean" />
432
433        <!-- Control whether a container should automatically close itself if
434             the user touches outside of it.  This only applies to activities
435             and dialogs.
436
437             <p>Note: this attribute will only be respected for applications
438             that are targeting {@link android.os.Build.VERSION_CODES#HONEYCOMB}
439             or later. -->
440        <attr name="windowCloseOnTouchOutside" format="boolean" />
441
442        <!-- Flag indicating whether this window requests a translucent status bar.  Corresponds
443             to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_STATUS}. -->
444        <attr name="windowTranslucentStatus" format="boolean" />
445
446        <!-- Flag indicating whether this window requests a translucent navigation bar.  Corresponds
447             to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_NAVIGATION}. -->
448        <attr name="windowTranslucentNavigation" format="boolean" />
449
450        <!-- Flag indicating whether this window requests that content changes be performed
451             as scene changes with transitions. Corresponds to
452             {@link android.view.Window#FEATURE_CONTENT_TRANSITIONS}. -->
453        <attr name="windowContentTransitions" format="boolean" />
454
455        <!-- Reference to a TransitionManager XML resource defining the desired
456             transitions between different window content. -->
457        <attr name="windowContentTransitionManager" format="reference" />
458
459        <!-- ============ -->
460        <!-- Alert Dialog styles -->
461        <!-- ============ -->
462        <eat-comment />
463        <attr name="alertDialogStyle" format="reference" />
464        <attr name="alertDialogButtonGroupStyle" format="reference" />
465        <attr name="alertDialogCenterButtons" format="boolean" />
466
467        <!-- ============== -->
468        <!-- Image elements -->
469        <!-- ============== -->
470        <eat-comment />
471
472        <!-- Background that can be used behind parts of a UI that provide
473             details on data the user is selecting.  For example, this is
474             the background element of PreferenceActivity's embedded
475             preference fragment. -->
476        <attr name="detailsElementBackground" format="reference" />
477
478        <!-- ============ -->
479        <!-- Panel styles -->
480        <!-- ============ -->
481        <eat-comment />
482
483        <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
484        <attr name="panelBackground" format="reference|color" />
485        <!-- The background of a panel when it extends to the left and right edges of the screen. -->
486        <attr name="panelFullBackground" format="reference|color" />
487        <!-- Default color of foreground panel imagery. -->
488        <attr name="panelColorForeground" format="reference|color" />
489        <!-- Color that matches (as closely as possible) the panel background. -->
490        <attr name="panelColorBackground" format="reference|color" />
491        <!-- Default appearance of panel text. -->
492        <attr name="panelTextAppearance" format="reference" />
493
494        <attr name="panelMenuIsCompact" format="boolean" />
495        <attr name="panelMenuListWidth" format="dimension" />
496        <attr name="panelMenuListTheme" format="reference" />
497
498        <!-- =================== -->
499        <!-- Other widget styles -->
500        <!-- =================== -->
501        <eat-comment />
502
503        <!-- Default AbsListView style. -->
504        <attr name="absListViewStyle" format="reference" />
505        <!-- Default AutoCompleteTextView style. -->
506        <attr name="autoCompleteTextViewStyle" format="reference" />
507        <!-- Default Checkbox style. -->
508        <attr name="checkboxStyle" format="reference" />
509        <!-- Default CheckedTextView style. -->
510        <attr name="checkedTextViewStyle" format="reference" />
511        <!-- Default ListView style for drop downs. -->
512        <attr name="dropDownListViewStyle" format="reference" />
513        <!-- Default EditText style. -->
514        <attr name="editTextStyle" format="reference" />
515        <!-- Default ExpandableListView style. -->
516        <attr name="expandableListViewStyle" format="reference" />
517        <!-- ExpandableListView with white background. -->
518        <attr name="expandableListViewWhiteStyle" format="reference" />
519        <!-- Default Gallery style. -->
520        <attr name="galleryStyle" format="reference" />
521        <!-- Default GestureOverlayView style. -->
522        <attr name="gestureOverlayViewStyle" format="reference" />
523        <!-- Default GridView style. -->
524        <attr name="gridViewStyle" format="reference" />
525        <!-- The style resource to use for an ImageButton. -->
526        <attr name="imageButtonStyle" format="reference" />
527        <!-- The style resource to use for an ImageButton that is an image well. -->
528        <attr name="imageWellStyle" format="reference" />
529        <!-- Default ListView style. -->
530        <attr name="listViewStyle" format="reference" />
531        <!-- ListView with white background. -->
532        <attr name="listViewWhiteStyle" format="reference" />
533        <!-- Default PopupWindow style. -->
534        <attr name="popupWindowStyle" format="reference" />
535        <!-- Default ProgressBar style. This is a medium circular progress bar. -->
536        <attr name="progressBarStyle" format="reference" />
537        <!-- Horizontal ProgressBar style. This is a horizontal progress bar. -->
538        <attr name="progressBarStyleHorizontal" format="reference" />
539        <!-- Small ProgressBar style. This is a small circular progress bar. -->
540        <attr name="progressBarStyleSmall" format="reference" />
541        <!-- Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars. -->
542        <attr name="progressBarStyleSmallTitle" format="reference" />
543        <!-- Large ProgressBar style. This is a large circular progress bar. -->
544        <attr name="progressBarStyleLarge" format="reference" />
545        <!-- Inverse ProgressBar style. This is a medium circular progress bar. -->
546        <attr name="progressBarStyleInverse" format="reference" />
547        <!-- Small inverse ProgressBar style. This is a small circular progress bar. -->
548        <attr name="progressBarStyleSmallInverse" format="reference" />
549        <!-- Large inverse ProgressBar style. This is a large circular progress bar. -->
550        <attr name="progressBarStyleLargeInverse" format="reference" />
551        <!-- Default SeekBar style. -->
552        <attr name="seekBarStyle" format="reference" />
553        <!-- Default RatingBar style. -->
554        <attr name="ratingBarStyle" format="reference" />
555        <!-- Indicator RatingBar style. -->
556        <attr name="ratingBarStyleIndicator" format="reference" />
557        <!-- Small indicator RatingBar style. -->
558        <attr name="ratingBarStyleSmall" format="reference" />
559        <!-- Default RadioButton style. -->
560        <attr name="radioButtonStyle" format="reference" />
561        <!-- Default ScrollView style. -->
562        <attr name="scrollViewStyle" format="reference" />
563        <!-- Default HorizontalScrollView style. -->
564        <attr name="horizontalScrollViewStyle" format="reference" />
565        <!-- Default Spinner style. -->
566        <attr name="spinnerStyle" format="reference" />
567        <!-- Default dropdown Spinner style. -->
568        <attr name="dropDownSpinnerStyle" format="reference" />
569        <!-- Default ActionBar dropdown style. -->
570        <attr name="actionDropDownStyle" format="reference" />
571        <!-- Default action button style. -->
572        <attr name="actionButtonStyle" format="reference" />
573        <!-- Default Star style. -->
574        <attr name="starStyle" format="reference" />
575        <!-- Default TabWidget style. -->
576        <attr name="tabWidgetStyle" format="reference" />
577        <!-- Default TextView style. -->
578        <attr name="textViewStyle" format="reference" />
579        <!-- Default WebTextView style. -->
580        <attr name="webTextViewStyle" format="reference" />
581        <!-- Default WebView style. -->
582        <attr name="webViewStyle" format="reference" />
583        <!-- Default style for drop down items. -->
584        <attr name="dropDownItemStyle" format="reference" />
585         <!-- Default style for spinner drop down items. -->
586        <attr name="spinnerDropDownItemStyle" format="reference" />
587        <!-- Default style for drop down hints. -->
588        <attr name="dropDownHintAppearance" format="reference" />
589        <!-- Default spinner item style. -->
590        <attr name="spinnerItemStyle" format="reference" />
591        <!-- Default MapView style. -->
592        <attr name="mapViewStyle" format="reference" />
593        <!-- Drawable used as an overlay on top of quickcontact photos. -->
594        <attr name="quickContactBadgeOverlay" format="reference" />
595        <!-- Default quickcontact badge style with small quickcontact window. -->
596        <attr name="quickContactBadgeStyleWindowSmall" format="reference" />
597        <!-- Default quickcontact badge style with medium quickcontact window. -->
598        <attr name="quickContactBadgeStyleWindowMedium" format="reference" />
599        <!-- Default quickcontact badge style with large quickcontact window. -->
600        <attr name="quickContactBadgeStyleWindowLarge" format="reference" />
601        <!-- Default quickcontact badge style with small quickcontact window. -->
602        <attr name="quickContactBadgeStyleSmallWindowSmall" format="reference" />
603        <!-- Default quickcontact badge style with medium quickcontact window. -->
604        <attr name="quickContactBadgeStyleSmallWindowMedium" format="reference" />
605        <!-- Default quickcontact badge style with large quickcontact window. -->
606        <attr name="quickContactBadgeStyleSmallWindowLarge" format="reference" />
607        <!-- Reference to a style that will be used for the window containing a text
608             selection anchor. -->
609        <attr name="textSelectHandleWindowStyle" format="reference" />
610        <!-- Reference to a style that will be used for the window containing a list of possible
611             text suggestions in an EditText. -->
612        <attr name="textSuggestionsWindowStyle" format="reference" />
613        <!-- Default ListPopupWindow style. -->
614        <attr name="listPopupWindowStyle" format="reference" />
615        <!-- Default PopupMenu style. -->
616        <attr name="popupMenuStyle" format="reference" />
617        <!-- Default StackView style. -->
618        <attr name="stackViewStyle" format="reference" />
619        <!-- Default style for the FragmentBreadCrumbs widget. -->
620        <attr name="fragmentBreadCrumbsStyle" format="reference" />
621
622        <!-- NumberPicker style. -->
623        <attr name="numberPickerStyle" format="reference" />
624
625        <!-- The CalendarView style. -->
626        <attr name="calendarViewStyle" format="reference" />
627
628        <!-- The TimePicker style. -->
629        <attr name="timePickerStyle" format="reference" />
630
631        <!-- The TimePicker Header background color . -->
632        <attr name="timePickerHeaderBackgroundColor" format="reference" />
633
634        <!-- The TimePicker Header time label text appearance -->
635        <attr name="timePickerHeaderTimeLabelTextAppearance" format="reference" />
636
637        <!-- TimePicker Header am pm label text appearance -->
638        <attr name="timePickerHeaderAmPmLabelTextAppearance" format="reference" />
639
640        <!-- The TimePicker dialog theme. -->
641        <attr name="timePickerDialogTheme" format="reference" />
642
643        <!-- The DatePicker style. -->
644        <attr name="datePickerStyle" format="reference" />
645
646        <!-- Default ActivityChooserView style. -->
647        <attr name="activityChooserViewStyle" format="reference" />
648
649        <!-- Fast scroller styles -->
650        <eat-comment />
651
652        <!-- Drawable to use as the fast scroll thumb. -->
653        <attr name="fastScrollThumbDrawable" format="reference" />
654        <!-- Drawable to use as the fast scroll index preview window background
655             when shown on the right. -->
656        <attr name="fastScrollPreviewBackgroundRight" format="reference" />
657        <!-- Drawable to use as the fast scroll index preview window background
658             when shown on the left. -->
659        <attr name="fastScrollPreviewBackgroundLeft" format="reference" />
660        <!-- Drawable to use as the track for the fast scroll thumb.
661             This may be null. -->
662        <attr name="fastScrollTrackDrawable" format="reference" />
663        <!-- Position of the fast scroll index overlay window. -->
664        <attr name="fastScrollOverlayPosition">
665            <enum name="floating" value="0" />
666            <enum name="atThumb" value="1" />
667        </attr>
668        <!-- Text color for the fast scroll index overlay. Make sure it
669             plays nicely with fastScrollPreviewBackground[Left|Right]. -->
670        <attr name="fastScrollTextColor" format="color" />
671
672        <!-- =================== -->
673        <!-- Action bar styles   -->
674        <!-- =================== -->
675        <eat-comment />
676        <!-- Default style for tabs within an action bar -->
677        <attr name="actionBarTabStyle" format="reference" />
678        <attr name="actionBarTabBarStyle" format="reference" />
679        <attr name="actionBarTabTextStyle" format="reference" />
680        <attr name="actionOverflowButtonStyle" format="reference" />
681        <!-- Reference to a style for the Action Bar -->
682        <attr name="actionBarStyle" format="reference" />
683        <!-- Reference to a style for the split Action Bar. This style
684             controls the split component that holds the menu/action
685             buttons. actionBarStyle is still used for the primary
686             bar. -->
687        <attr name="actionBarSplitStyle" format="reference" />
688        <!-- Reference to a theme that should be used to inflate widgets
689             and layouts destined for the action bar. Most of the time
690             this will be a reference to the current theme, but when
691             the action bar has a significantly different contrast
692             profile than the rest of the activity the difference
693             can become important. If this is set to @null the current
694             theme will be used.-->
695        <attr name="actionBarWidgetTheme" format="reference" />
696        <!-- Size of the Action Bar, including the contextual
697             bar used to present Action Modes. -->
698        <attr name="actionBarSize" format="dimension" >
699            <enum name="wrap_content" value="0" />
700        </attr>
701        <!-- Custom divider drawable to use for elements in the action bar. -->
702        <attr name="actionBarDivider" format="reference" />
703        <!-- Custom item state list drawable background for action bar items. -->
704        <attr name="actionBarItemBackground" format="reference" />
705        <!-- TextAppearance style that will be applied to text that
706             appears within action menu items. -->
707        <attr name="actionMenuTextAppearance" format="reference" />
708        <!-- Color for text that appears within action menu items. -->
709        <attr name="actionMenuTextColor" format="color|reference" />
710
711        <!-- =================== -->
712        <!-- Action mode styles  -->
713        <!-- =================== -->
714        <eat-comment />
715        <attr name="actionModeStyle" format="reference" />
716        <attr name="actionModeCloseButtonStyle" format="reference" />
717        <!-- Background drawable to use for action mode UI -->
718        <attr name="actionModeBackground" format="reference" />
719        <!-- Background drawable to use for action mode UI in the lower split bar -->
720        <attr name="actionModeSplitBackground" format="reference" />
721        <!-- Drawable to use for the close action mode button -->
722        <attr name="actionModeCloseDrawable" format="reference" />
723
724        <!-- Drawable to use for the Cut action button in Contextual Action Bar -->
725        <attr name="actionModeCutDrawable" format="reference" />
726        <!-- Drawable to use for the Copy action button in Contextual Action Bar -->
727        <attr name="actionModeCopyDrawable" format="reference" />
728        <!-- Drawable to use for the Paste action button in Contextual Action Bar -->
729        <attr name="actionModePasteDrawable" format="reference" />
730        <!-- Drawable to use for the Select all action button in Contextual Action Bar -->
731        <attr name="actionModeSelectAllDrawable" format="reference" />
732        <!-- Drawable to use for the Share action button in WebView selection action modes -->
733        <attr name="actionModeShareDrawable" format="reference" />
734        <!-- Drawable to use for the Find action button in WebView selection action modes -->
735        <attr name="actionModeFindDrawable" format="reference" />
736        <!-- Drawable to use for the Web Search action button in WebView selection action modes -->
737        <attr name="actionModeWebSearchDrawable" format="reference" />
738
739        <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
740        <attr name="actionModePopupWindowStyle" format="reference" />
741
742        <!-- =================== -->
743        <!-- Preference styles   -->
744        <!-- =================== -->
745        <eat-comment />
746
747        <!-- Default style for PreferenceScreen. -->
748        <attr name="preferenceScreenStyle" format="reference" />
749        <!-- Default style for Headers pane in PreferenceActivity. -->
750        <attr name="preferenceFragmentStyle" format="reference" />
751        <!-- Default style for PreferenceCategory. -->
752        <attr name="preferenceCategoryStyle" format="reference" />
753        <!-- Default style for Preference. -->
754        <attr name="preferenceStyle" format="reference" />
755        <!-- Default style for informational Preference. -->
756        <attr name="preferenceInformationStyle" format="reference" />
757        <!-- Default style for CheckBoxPreference. -->
758        <attr name="checkBoxPreferenceStyle" format="reference" />
759        <!-- Default style for YesNoPreference. -->
760        <attr name="yesNoPreferenceStyle" format="reference" />
761        <!-- Default style for DialogPreference. -->
762        <attr name="dialogPreferenceStyle" format="reference" />
763        <!-- Default style for EditTextPreference. -->
764        <attr name="editTextPreferenceStyle" format="reference" />
765        <!-- Default style for RingtonePreference. -->
766        <attr name="ringtonePreferenceStyle" format="reference" />
767        <!-- The preference layout that has the child/tabbed effect. -->
768        <attr name="preferenceLayoutChild" format="reference" />
769        <!-- Preference panel style -->
770        <attr name="preferencePanelStyle" format="reference" />
771        <!-- Preference headers panel style -->
772        <attr name="preferenceHeaderPanelStyle" format="reference" />
773        <!-- Preference list style -->
774        <attr name="preferenceListStyle" format="reference" />
775        <!-- Preference fragment list style -->
776        <attr name="preferenceFragmentListStyle" format="reference" />
777        <!-- Preference fragment padding side -->
778        <attr name="preferenceFragmentPaddingSide" format="dimension" />
779        <!-- Default style for switch preferences. -->
780        <attr name="switchPreferenceStyle" format="reference" />
781
782        <!-- ============================ -->
783        <!-- Text selection handle styles -->
784        <!-- ============================ -->
785        <eat-comment />
786
787        <!-- Reference to a drawable that will be used to display a text selection
788             anchor on the left side of a selection region. -->
789        <attr name="textSelectHandleLeft" format="reference" />
790        <!-- Reference to a drawable that will be used to display a text selection
791             anchor on the right side of a selection region. -->
792        <attr name="textSelectHandleRight" format="reference" />
793        <!-- Reference to a drawable that will be used to display a text selection
794             anchor for positioning the cursor within text. -->
795        <attr name="textSelectHandle" format="reference" />
796        <!-- The layout of the view that is displayed on top of the cursor to paste inside a
797             TextEdit field. -->
798        <attr name="textEditPasteWindowLayout" format="reference" />
799        <!-- Variation of textEditPasteWindowLayout displayed when the clipboard is empty. -->
800        <attr name="textEditNoPasteWindowLayout" format="reference" />
801        <!-- Used instead of textEditPasteWindowLayout when the window is moved on the side of the
802             insertion cursor because it would be clipped if it were positioned on top. -->
803        <attr name="textEditSidePasteWindowLayout" format="reference" />
804        <!-- Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. -->
805        <attr name="textEditSideNoPasteWindowLayout" format="reference" />
806
807        <!-- Layout of the TextView item that will populate the suggestion popup window. -->
808        <attr name="textEditSuggestionItemLayout" format="reference" />
809
810        <!-- Theme to use for dialogs spawned from this theme. -->
811        <attr name="dialogTheme" format="reference" />
812        <!-- Window decor layout to use in dialog mode with icons -->
813        <attr name="dialogTitleIconsDecorLayout" format="reference" />
814        <!-- Window decor layout to use in dialog mode with custom titles -->
815        <attr name="dialogCustomTitleDecorLayout" format="reference" />
816        <!-- Window decor layout to use in dialog mode with title only -->
817        <attr name="dialogTitleDecorLayout" format="reference" />
818
819        <!-- Theme to use for alert dialogs spawned from this theme. -->
820        <attr name="alertDialogTheme" format="reference" />
821        <!-- Icon drawable to use for alerts -->
822        <attr name="alertDialogIcon" format="reference" />
823
824        <!-- Theme to use for presentations spawned from this theme. -->
825        <attr name="presentationTheme" format="reference" />
826
827        <!-- Drawable to use for generic vertical dividers. -->
828        <attr name="dividerVertical" format="reference" />
829
830        <!-- Drawable to use for generic horizontal dividers. -->
831        <attr name="dividerHorizontal" format="reference" />
832
833        <!-- Style for button bars -->
834        <attr name="buttonBarStyle" format="reference" />
835
836        <!-- Style for buttons within button bars -->
837        <attr name="buttonBarButtonStyle" format="reference" />
838
839        <!-- Style for segmented buttons - a container that houses several buttons
840             with the appearance of a singel button broken into segments. -->
841        <attr name="segmentedButtonStyle" format="reference" />
842
843        <!-- Background drawable for standalone items that need focus/pressed states. -->
844        <attr name="selectableItemBackground" format="reference" />
845
846        <!-- Style for buttons without an explicit border, often used in groups. -->
847        <attr name="borderlessButtonStyle" format="reference" />
848
849        <!-- Background to use for toasts -->
850        <attr name="toastFrameBackground" format="reference" />
851
852        <!-- ============================ -->
853        <!-- SearchView styles and assets -->
854        <!-- ============================ -->
855        <eat-comment />
856        <!-- SearchView dropdown background -->
857        <attr name="searchDropdownBackground" format="reference" />
858        <!-- SearchView close button icon -->
859        <attr name="searchViewCloseIcon" format="reference" />
860        <!-- SearchView Go button icon -->
861        <attr name="searchViewGoIcon" format="reference" />
862        <!-- SearchView Search icon -->
863        <attr name="searchViewSearchIcon" format="reference" />
864        <!-- SearchView Voice button icon -->
865        <attr name="searchViewVoiceIcon" format="reference" />
866        <!-- SearchView query refinement icon -->
867        <attr name="searchViewEditQuery" format="reference" />
868        <!-- SearchView query refinement icon background -->
869        <attr name="searchViewEditQueryBackground" format="reference" />
870        <!-- SearchView text field background for the left section -->
871        <attr name="searchViewTextField" format="reference" />
872        <!-- SearchView text field background for the right section -->
873        <attr name="searchViewTextFieldRight" format="reference" />
874
875        <!-- Theme to use for Search Dialogs -->
876        <attr name="searchDialogTheme" format="reference" />
877
878        <!-- Specifies a drawable to use for the 'home as up' indicator. -->
879        <attr name="homeAsUpIndicator" format="reference" />
880
881        <!-- Preference frame layout styles. -->
882        <attr name="preferenceFrameLayoutStyle" format="reference" />
883
884        <!-- Default style for the Switch widget. -->
885        <attr name="switchStyle" format="reference" />
886
887        <!-- Default style for the MediaRouteButton widget. -->
888        <attr name="mediaRouteButtonStyle" format="reference" />
889
890        <!-- ============== -->
891        <!-- Pointer styles -->
892        <!-- ============== -->
893        <eat-comment />
894
895        <!-- Reference to the Pointer style -->
896        <attr name="pointerStyle" format="reference" />
897
898        <!-- The drawable for accessibility focused views. -->
899        <attr name="accessibilityFocusedDrawable" format="reference" />
900
901        <!-- Drawable for WebView find-on-page dialogue's "next" button. @hide -->
902        <attr name="findOnPageNextDrawable" format="reference" />
903
904        <!-- Drawable for WebView find-on-page dialogue's "previous" button. @hide -->
905        <attr name="findOnPagePreviousDrawable" format="reference" />
906
907    </declare-styleable>
908
909    <!-- **************************************************************** -->
910    <!-- Other non-theme attributes. -->
911    <!-- **************************************************************** -->
912    <eat-comment />
913
914    <!-- Size of text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
915         Supported values include the following:<p/>
916    <ul>
917        <li><b>px</b> Pixels</li>
918        <li><b>sp</b> Scaled pixels (scaled to relative pixel size on screen). See {@link android.util.DisplayMetrics} for more information.</li>
919        <li><b>pt</b> Points</li>
920        <li><b>dip</b> Device independent pixels. See {@link android.util.DisplayMetrics} for more information.</li>
921    </ul>
922        -->
923    <attr name="textSize" format="dimension" />
924
925    <!-- Default font family. -->
926    <attr name="fontFamily" format="string" />
927
928    <!-- Default text typeface. -->
929    <attr name="typeface">
930        <enum name="normal" value="0" />
931        <enum name="sans" value="1" />
932        <enum name="serif" value="2" />
933        <enum name="monospace" value="3" />
934    </attr>
935
936    <!-- Default text typeface style. -->
937    <attr name="textStyle">
938        <flag name="normal" value="0" />
939        <flag name="bold" value="1" />
940        <flag name="italic" value="2" />
941    </attr>
942
943    <!-- Color of text (usually same as colorForeground). -->
944    <attr name="textColor" format="reference|color" />
945
946    <!-- Color of highlighted text. -->
947    <attr name="textColorHighlight" format="reference|color" />
948
949    <!-- Color of hint text (displayed when the field is empty). -->
950    <attr name="textColorHint" format="reference|color" />
951
952    <!-- Color of link text (URLs). -->
953    <attr name="textColorLink" format="reference|color" />
954
955    <!-- Reference to a drawable that will be drawn under the insertion cursor. -->
956    <attr name="textCursorDrawable" format="reference" />
957
958    <!-- Indicates that the content of a non-editable TextView can be selected.
959     Default value is false. EditText content is always selectable. -->
960    <attr name="textIsSelectable" format="boolean" />
961
962    <!-- Where to ellipsize text. -->
963    <attr name="ellipsize">
964        <enum name="none" value="0" />
965        <enum name="start" value="1" />
966        <enum name="middle" value="2" />
967        <enum name="end" value="3" />
968        <enum name="marquee" value="4" />
969    </attr>
970
971    <!-- The type of data being placed in a text field, used to help an
972         input method decide how to let the user enter text.  The constants
973         here correspond to those defined by
974         {@link android.text.InputType}.  Generally you can select
975         a single value, though some can be combined together as
976         indicated.  Setting this attribute to anything besides
977         <var>none</var> also implies that the text is editable. -->
978    <attr name="inputType">
979        <!-- There is no content type.  The text is not editable. -->
980        <flag name="none" value="0x00000000" />
981        <!-- Just plain old text.  Corresponds to
982             {@link android.text.InputType#TYPE_CLASS_TEXT} |
983             {@link android.text.InputType#TYPE_TEXT_VARIATION_NORMAL}. -->
984        <flag name="text" value="0x00000001" />
985        <!-- Can be combined with <var>text</var> and its variations to
986             request capitalization of all characters.  Corresponds to
987             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_CHARACTERS}. -->
988        <flag name="textCapCharacters" value="0x00001001" />
989        <!-- Can be combined with <var>text</var> and its variations to
990             request capitalization of the first character of every word.  Corresponds to
991             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_WORDS}. -->
992        <flag name="textCapWords" value="0x00002001" />
993        <!-- Can be combined with <var>text</var> and its variations to
994             request capitalization of the first character of every sentence.  Corresponds to
995             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_SENTENCES}. -->
996        <flag name="textCapSentences" value="0x00004001" />
997        <!-- Can be combined with <var>text</var> and its variations to
998             request auto-correction of text being input.  Corresponds to
999             {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_CORRECT}. -->
1000        <flag name="textAutoCorrect" value="0x00008001" />
1001        <!-- Can be combined with <var>text</var> and its variations to
1002             specify that this field will be doing its own auto-completion and
1003             talking with the input method appropriately.  Corresponds to
1004             {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_COMPLETE}. -->
1005        <flag name="textAutoComplete" value="0x00010001" />
1006        <!-- Can be combined with <var>text</var> and its variations to
1007             allow multiple lines of text in the field.  If this flag is not set,
1008             the text field will be constrained to a single line.  Corresponds to
1009             {@link android.text.InputType#TYPE_TEXT_FLAG_MULTI_LINE}. -->
1010        <flag name="textMultiLine" value="0x00020001" />
1011        <!-- Can be combined with <var>text</var> and its variations to
1012             indicate that though the regular text view should not be multiple
1013             lines, the IME should provide multiple lines if it can.  Corresponds to
1014             {@link android.text.InputType#TYPE_TEXT_FLAG_IME_MULTI_LINE}. -->
1015        <flag name="textImeMultiLine" value="0x00040001" />
1016        <!-- Can be combined with <var>text</var> and its variations to
1017             indicate that the IME should not show any
1018             dictionary-based word suggestions.  Corresponds to
1019             {@link android.text.InputType#TYPE_TEXT_FLAG_NO_SUGGESTIONS}. -->
1020        <flag name="textNoSuggestions" value="0x00080001" />
1021        <!-- Text that will be used as a URI.  Corresponds to
1022             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1023             {@link android.text.InputType#TYPE_TEXT_VARIATION_URI}. -->
1024        <flag name="textUri" value="0x00000011" />
1025        <!-- Text that will be used as an e-mail address.  Corresponds to
1026             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1027             {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_ADDRESS}. -->
1028        <flag name="textEmailAddress" value="0x00000021" />
1029        <!-- Text that is being supplied as the subject of an e-mail.  Corresponds to
1030             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1031             {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_SUBJECT}. -->
1032        <flag name="textEmailSubject" value="0x00000031" />
1033        <!-- Text that is the content of a short message.  Corresponds to
1034             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1035             {@link android.text.InputType#TYPE_TEXT_VARIATION_SHORT_MESSAGE}. -->
1036        <flag name="textShortMessage" value="0x00000041" />
1037        <!-- Text that is the content of a long message.  Corresponds to
1038             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1039             {@link android.text.InputType#TYPE_TEXT_VARIATION_LONG_MESSAGE}. -->
1040        <flag name="textLongMessage" value="0x00000051" />
1041        <!-- Text that is the name of a person.  Corresponds to
1042             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1043             {@link android.text.InputType#TYPE_TEXT_VARIATION_PERSON_NAME}. -->
1044        <flag name="textPersonName" value="0x00000061" />
1045        <!-- Text that is being supplied as a postal mailing address.  Corresponds to
1046             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1047             {@link android.text.InputType#TYPE_TEXT_VARIATION_POSTAL_ADDRESS}. -->
1048        <flag name="textPostalAddress" value="0x00000071" />
1049        <!-- Text that is a password.  Corresponds to
1050             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1051             {@link android.text.InputType#TYPE_TEXT_VARIATION_PASSWORD}. -->
1052        <flag name="textPassword" value="0x00000081" />
1053        <!-- Text that is a password that should be visible.  Corresponds to
1054             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1055             {@link android.text.InputType#TYPE_TEXT_VARIATION_VISIBLE_PASSWORD}. -->
1056        <flag name="textVisiblePassword" value="0x00000091" />
1057        <!-- Text that is being supplied as text in a web form.  Corresponds to
1058             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1059             {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EDIT_TEXT}. -->
1060        <flag name="textWebEditText" value="0x000000a1" />
1061        <!-- Text that is filtering some other data.  Corresponds to
1062             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1063             {@link android.text.InputType#TYPE_TEXT_VARIATION_FILTER}. -->
1064        <flag name="textFilter" value="0x000000b1" />
1065        <!-- Text that is for phonetic pronunciation, such as a phonetic name
1066             field in a contact entry.  Corresponds to
1067             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1068             {@link android.text.InputType#TYPE_TEXT_VARIATION_PHONETIC}. -->
1069        <flag name="textPhonetic" value="0x000000c1" />
1070        <!-- Text that will be used as an e-mail address on a web form.  Corresponds to
1071             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1072             {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS}. -->
1073        <flag name="textWebEmailAddress" value="0x000000d1" />
1074        <!-- Text that will be used as a password on a web form.  Corresponds to
1075             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1076             {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_PASSWORD}. -->
1077        <flag name="textWebPassword" value="0x000000e1" />
1078        <!-- A numeric only field.  Corresponds to
1079             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1080             {@link android.text.InputType#TYPE_NUMBER_VARIATION_NORMAL}. -->
1081        <flag name="number" value="0x00000002" />
1082        <!-- Can be combined with <var>number</var> and its other options to
1083             allow a signed number.  Corresponds to
1084             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1085             {@link android.text.InputType#TYPE_NUMBER_FLAG_SIGNED}. -->
1086        <flag name="numberSigned" value="0x00001002" />
1087        <!-- Can be combined with <var>number</var> and its other options to
1088             allow a decimal (fractional) number.  Corresponds to
1089             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1090             {@link android.text.InputType#TYPE_NUMBER_FLAG_DECIMAL}. -->
1091        <flag name="numberDecimal" value="0x00002002" />
1092        <!-- A numeric password field.  Corresponds to
1093             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1094             {@link android.text.InputType#TYPE_NUMBER_VARIATION_PASSWORD}. -->
1095        <flag name="numberPassword" value="0x00000012" />
1096        <!-- For entering a phone number.  Corresponds to
1097             {@link android.text.InputType#TYPE_CLASS_PHONE}. -->
1098        <flag name="phone" value="0x00000003" />
1099        <!-- For entering a date and time.  Corresponds to
1100             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1101             {@link android.text.InputType#TYPE_DATETIME_VARIATION_NORMAL}. -->
1102        <flag name="datetime" value="0x00000004" />
1103        <!-- For entering a date.  Corresponds to
1104             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1105             {@link android.text.InputType#TYPE_DATETIME_VARIATION_DATE}. -->
1106        <flag name="date" value="0x00000014" />
1107        <!-- For entering a time.  Corresponds to
1108             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1109             {@link android.text.InputType#TYPE_DATETIME_VARIATION_TIME}. -->
1110        <flag name="time" value="0x00000024" />
1111    </attr>
1112
1113    <!-- Additional features you can enable in an IME associated with an editor
1114         to improve the integration with your application.  The constants
1115         here correspond to those defined by
1116         {@link android.view.inputmethod.EditorInfo#imeOptions}. -->
1117    <attr name="imeOptions">
1118        <!-- There are no special semantics associated with this editor. -->
1119        <flag name="normal" value="0x00000000" />
1120        <!-- There is no specific action associated with this editor, let the
1121             editor come up with its own if it can.
1122             Corresponds to
1123             {@link android.view.inputmethod.EditorInfo#IME_NULL}. -->
1124        <flag name="actionUnspecified" value="0x00000000" />
1125        <!-- This editor has no action associated with it.
1126             Corresponds to
1127             {@link android.view.inputmethod.EditorInfo#IME_ACTION_NONE}. -->
1128        <flag name="actionNone" value="0x00000001" />
1129        <!-- The action key performs a "go"
1130             operation to take the user to the target of the text they typed.
1131             Typically used, for example, when entering a URL.
1132             Corresponds to
1133             {@link android.view.inputmethod.EditorInfo#IME_ACTION_GO}. -->
1134        <flag name="actionGo" value="0x00000002" />
1135        <!-- The action key performs a "search"
1136             operation, taking the user to the results of searching for the text
1137             the have typed (in whatever context is appropriate).
1138             Corresponds to
1139             {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEARCH}. -->
1140        <flag name="actionSearch" value="0x00000003" />
1141        <!-- The action key performs a "send"
1142             operation, delivering the text to its target.  This is typically used
1143             when composing a message.
1144             Corresponds to
1145             {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEND}. -->
1146        <flag name="actionSend" value="0x00000004" />
1147        <!-- The action key performs a "next"
1148             operation, taking the user to the next field that will accept text.
1149             Corresponds to
1150             {@link android.view.inputmethod.EditorInfo#IME_ACTION_NEXT}. -->
1151        <flag name="actionNext" value="0x00000005" />
1152        <!-- The action key performs a "done"
1153             operation, closing the soft input method.
1154             Corresponds to
1155             {@link android.view.inputmethod.EditorInfo#IME_ACTION_DONE}. -->
1156        <flag name="actionDone" value="0x00000006" />
1157        <!-- The action key performs a "previous"
1158             operation, taking the user to the previous field that will accept text.
1159             Corresponds to
1160             {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. -->
1161        <flag name="actionPrevious" value="0x00000007" />
1162        <!-- Used to request that the IME never go
1163             into fullscreen mode.  Applications need to be aware that the flag is not
1164             a guarantee, and not all IMEs will respect it.
1165             <p>Corresponds to
1166             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_FULLSCREEN}. -->
1167        <flag name="flagNoFullscreen" value="0x2000000" />
1168        <!-- Like flagNavigateNext, but
1169             specifies there is something interesting that a backward navigation
1170             can focus on.  If the user selects the IME's facility to backward
1171             navigate, this will show up in the application as an actionPrevious
1172             at {@link android.view.inputmethod.InputConnection#performEditorAction(int)
1173             InputConnection.performEditorAction(int)}.
1174             <p>Corresponds to
1175             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_FULLSCREEN}. -->
1176        <flag name="flagNavigatePrevious" value="0x4000000" />
1177        <!-- Used to specify that there is something
1178             interesting that a forward navigation can focus on. This is like using
1179             actionNext, except allows the IME to be multiline (with
1180             an enter key) as well as provide forward navigation.  Note that some
1181             IMEs may not be able to do this, especially when running on a small
1182             screen where there is little space.  In that case it does not need to
1183             present a UI for this option.  Like actionNext, if the
1184             user selects the IME's facility to forward navigate, this will show up
1185             in the application at
1186             {@link android.view.inputmethod.InputConnection#performEditorAction(int)
1187             InputConnection.performEditorAction(int)}.
1188             <p>Corresponds to
1189             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NAVIGATE_NEXT}. -->
1190        <flag name="flagNavigateNext" value="0x8000000" />
1191        <!-- Used to specify that the IME does not need
1192             to show its extracted text UI.  For input methods that may be fullscreen,
1193             often when in landscape mode, this allows them to be smaller and let part
1194             of the application be shown behind.  Though there will likely be limited
1195             access to the application available from the user, it can make the
1196             experience of a (mostly) fullscreen IME less jarring.  Note that when
1197             this flag is specified the IME may <em>not</em> be set up to be able
1198             to display text, so it should only be used in situations where this is
1199             not needed.
1200             <p>Corresponds to
1201             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_EXTRACT_UI}. -->
1202        <flag name="flagNoExtractUi" value="0x10000000" />
1203        <!-- Used in conjunction with a custom action, this indicates that the
1204             action should not be available as an accessory button when the
1205             input method is full-screen.
1206             Note that by setting this flag, there can be cases where the action
1207             is simply never available to the user.  Setting this generally means
1208             that you think showing text being edited is more important than the
1209             action you have supplied.
1210             <p>Corresponds to
1211             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ACCESSORY_ACTION}. -->
1212        <flag name="flagNoAccessoryAction" value="0x20000000" />
1213        <!-- Used in conjunction with a custom action,
1214             this indicates that the action should not be available in-line as
1215             a replacement for the "enter" key.  Typically this is
1216             because the action has such a significant impact or is not recoverable
1217             enough that accidentally hitting it should be avoided, such as sending
1218             a message.    Note that {@link android.widget.TextView} will
1219             automatically set this flag for you on multi-line text views.
1220             <p>Corresponds to
1221             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ENTER_ACTION}. -->
1222        <flag name="flagNoEnterAction" value="0x40000000" />
1223        <!-- Used to request that the IME should be capable of inputting ASCII
1224             characters.  The intention of this flag is to ensure that the user
1225             can type Roman alphabet characters in a {@link android.widget.TextView}
1226             used for, typically, account ID or password input.  It is expected that IMEs
1227             normally are able to input ASCII even without being told so (such IMEs
1228             already respect this flag in a sense), but there could be some cases they
1229             aren't when, for instance, only non-ASCII input languagaes like Arabic,
1230             Greek, Hebrew, Russian are enabled in the IME.  Applications need to be
1231             aware that the flag is not a guarantee, and not all IMEs will respect it.
1232             However, it is strongly recommended for IME authors to respect this flag
1233             especially when their IME could end up with a state that has only non-ASCII
1234             input languages enabled.
1235             <p>Corresponds to
1236             {@link android.view.inputmethod.EditorInfo#IME_FLAG_FORCE_ASCII}. -->
1237        <flag name="flagForceAscii" value="0x80000000" />
1238    </attr>
1239
1240    <!-- A coordinate in the X dimension. -->
1241    <attr name="x" format="dimension" />
1242    <!-- A coordinate in the Y dimension. -->
1243    <attr name="y" format="dimension" />
1244
1245    <!-- Specifies how an object should position its content, on both the X and Y axes,
1246         within its own bounds.  -->
1247    <attr name="gravity">
1248        <!-- Push object to the top of its container, not changing its size. -->
1249        <flag name="top" value="0x30" />
1250        <!-- Push object to the bottom of its container, not changing its size. -->
1251        <flag name="bottom" value="0x50" />
1252        <!-- Push object to the left of its container, not changing its size. -->
1253        <flag name="left" value="0x03" />
1254        <!-- Push object to the right of its container, not changing its size. -->
1255        <flag name="right" value="0x05" />
1256        <!-- Place object in the vertical center of its container, not changing its size. -->
1257        <flag name="center_vertical" value="0x10" />
1258        <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
1259        <flag name="fill_vertical" value="0x70" />
1260        <!-- Place object in the horizontal center of its container, not changing its size. -->
1261        <flag name="center_horizontal" value="0x01" />
1262        <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
1263        <flag name="fill_horizontal" value="0x07" />
1264        <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
1265        <flag name="center" value="0x11" />
1266        <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
1267        <flag name="fill" value="0x77" />
1268        <!-- Additional option that can be set to have the top and/or bottom edges of
1269             the child clipped to its container's bounds.
1270             The clip will be based on the vertical gravity: a top gravity will clip the bottom
1271             edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
1272        <flag name="clip_vertical" value="0x80" />
1273        <!-- Additional option that can be set to have the left and/or right edges of
1274             the child clipped to its container's bounds.
1275             The clip will be based on the horizontal gravity: a left gravity will clip the right
1276             edge, a right gravity will clip the left edge, and neither will clip both edges. -->
1277        <flag name="clip_horizontal" value="0x08" />
1278        <!-- Push object to the beginning of its container, not changing its size. -->
1279        <flag name="start" value="0x00800003" />
1280        <!-- Push object to the end of its container, not changing its size. -->
1281        <flag name="end" value="0x00800005" />
1282    </attr>
1283
1284    <!-- Controls whether links such as urls and email addresses are
1285         automatically found and converted to clickable links.  The default
1286         value is "none", disabling this feature. -->
1287    <attr name="autoLink">
1288        <!-- Match no patterns (default). -->
1289        <flag name="none" value="0x00" />
1290        <!-- Match Web URLs. -->
1291        <flag name="web" value="0x01" />
1292        <!-- Match email addresses. -->
1293        <flag name="email" value="0x02" />
1294        <!-- Match phone numbers. -->
1295        <flag name="phone" value="0x04" />
1296        <!-- Match map addresses. -->
1297        <flag name="map" value="0x08" />
1298        <!-- Match all patterns (equivalent to web|email|phone|map). -->
1299        <flag name="all" value="0x0f" />
1300    </attr>
1301
1302    <!-- Reference to an array resource that will populate a list/adapter. -->
1303    <attr name="entries" format="reference" />
1304
1305    <!-- Standard gravity constant that a child supplies to its parent.
1306         Defines how the child view should be positioned, on both the X and Y axes, within its enclosing layout. -->
1307    <attr name="layout_gravity">
1308        <!-- Push object to the top of its container, not changing its size. -->
1309        <flag name="top" value="0x30" />
1310        <!-- Push object to the bottom of its container, not changing its size. -->
1311        <flag name="bottom" value="0x50" />
1312        <!-- Push object to the left of its container, not changing its size. -->
1313        <flag name="left" value="0x03" />
1314        <!-- Push object to the right of its container, not changing its size. -->
1315        <flag name="right" value="0x05" />
1316        <!-- Place object in the vertical center of its container, not changing its size. -->
1317        <flag name="center_vertical" value="0x10" />
1318        <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
1319        <flag name="fill_vertical" value="0x70" />
1320        <!-- Place object in the horizontal center of its container, not changing its size. -->
1321        <flag name="center_horizontal" value="0x01" />
1322        <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
1323        <flag name="fill_horizontal" value="0x07" />
1324        <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
1325        <flag name="center" value="0x11" />
1326        <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
1327        <flag name="fill" value="0x77" />
1328        <!-- Additional option that can be set to have the top and/or bottom edges of
1329             the child clipped to its container's bounds.
1330             The clip will be based on the vertical gravity: a top gravity will clip the bottom
1331             edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
1332        <flag name="clip_vertical" value="0x80" />
1333        <!-- Additional option that can be set to have the left and/or right edges of
1334             the child clipped to its container's bounds.
1335             The clip will be based on the horizontal gravity: a left gravity will clip the right
1336             edge, a right gravity will clip the left edge, and neither will clip both edges. -->
1337        <flag name="clip_horizontal" value="0x08" />
1338        <!-- Push object to the beginning of its container, not changing its size. -->
1339        <flag name="start" value="0x00800003" />
1340        <!-- Push object to the end of its container, not changing its size. -->
1341        <flag name="end" value="0x00800005" />
1342    </attr>
1343
1344    <!-- Standard orientation constant. -->
1345    <attr name="orientation">
1346        <!-- Defines an horizontal widget. -->
1347        <enum name="horizontal" value="0" />
1348        <!-- Defines a vertical widget. -->
1349        <enum name="vertical" value="1" />
1350    </attr>
1351
1352    <!-- Alignment constants. -->
1353    <attr name="alignmentMode">
1354        <!-- Align the bounds of the children.
1355        See {@link android.widget.GridLayout#ALIGN_BOUNDS}. -->
1356        <enum name="alignBounds" value="0" />
1357        <!-- Align the margins of the children.
1358        See {@link android.widget.GridLayout#ALIGN_MARGINS}. -->
1359        <enum name="alignMargins" value="1" />
1360    </attr>
1361
1362    <!-- ========================== -->
1363    <!-- Key Codes                  -->
1364    <!-- ========================== -->
1365    <eat-comment />
1366
1367    <!-- This enum provides the same keycode values as can be found in
1368        {@link android.view.KeyEvent}. -->
1369    <attr name="keycode">
1370        <enum name="KEYCODE_UNKNOWN" value="0" />
1371        <enum name="KEYCODE_SOFT_LEFT" value="1" />
1372        <enum name="KEYCODE_SOFT_RIGHT" value="2" />
1373        <enum name="KEYCODE_HOME" value="3" />
1374        <enum name="KEYCODE_BACK" value="4" />
1375        <enum name="KEYCODE_CALL" value="5" />
1376        <enum name="KEYCODE_ENDCALL" value="6" />
1377        <enum name="KEYCODE_0" value="7" />
1378        <enum name="KEYCODE_1" value="8" />
1379        <enum name="KEYCODE_2" value="9" />
1380        <enum name="KEYCODE_3" value="10" />
1381        <enum name="KEYCODE_4" value="11" />
1382        <enum name="KEYCODE_5" value="12" />
1383        <enum name="KEYCODE_6" value="13" />
1384        <enum name="KEYCODE_7" value="14" />
1385        <enum name="KEYCODE_8" value="15" />
1386        <enum name="KEYCODE_9" value="16" />
1387        <enum name="KEYCODE_STAR" value="17" />
1388        <enum name="KEYCODE_POUND" value="18" />
1389        <enum name="KEYCODE_DPAD_UP" value="19" />
1390        <enum name="KEYCODE_DPAD_DOWN" value="20" />
1391        <enum name="KEYCODE_DPAD_LEFT" value="21" />
1392        <enum name="KEYCODE_DPAD_RIGHT" value="22" />
1393        <enum name="KEYCODE_DPAD_CENTER" value="23" />
1394        <enum name="KEYCODE_VOLUME_UP" value="24" />
1395        <enum name="KEYCODE_VOLUME_DOWN" value="25" />
1396        <enum name="KEYCODE_POWER" value="26" />
1397        <enum name="KEYCODE_CAMERA" value="27" />
1398        <enum name="KEYCODE_CLEAR" value="28" />
1399        <enum name="KEYCODE_A" value="29" />
1400        <enum name="KEYCODE_B" value="30" />
1401        <enum name="KEYCODE_C" value="31" />
1402        <enum name="KEYCODE_D" value="32" />
1403        <enum name="KEYCODE_E" value="33" />
1404        <enum name="KEYCODE_F" value="34" />
1405        <enum name="KEYCODE_G" value="35" />
1406        <enum name="KEYCODE_H" value="36" />
1407        <enum name="KEYCODE_I" value="37" />
1408        <enum name="KEYCODE_J" value="38" />
1409        <enum name="KEYCODE_K" value="39" />
1410        <enum name="KEYCODE_L" value="40" />
1411        <enum name="KEYCODE_M" value="41" />
1412        <enum name="KEYCODE_N" value="42" />
1413        <enum name="KEYCODE_O" value="43" />
1414        <enum name="KEYCODE_P" value="44" />
1415        <enum name="KEYCODE_Q" value="45" />
1416        <enum name="KEYCODE_R" value="46" />
1417        <enum name="KEYCODE_S" value="47" />
1418        <enum name="KEYCODE_T" value="48" />
1419        <enum name="KEYCODE_U" value="49" />
1420        <enum name="KEYCODE_V" value="50" />
1421        <enum name="KEYCODE_W" value="51" />
1422        <enum name="KEYCODE_X" value="52" />
1423        <enum name="KEYCODE_Y" value="53" />
1424        <enum name="KEYCODE_Z" value="54" />
1425        <enum name="KEYCODE_COMMA" value="55" />
1426        <enum name="KEYCODE_PERIOD" value="56" />
1427        <enum name="KEYCODE_ALT_LEFT" value="57" />
1428        <enum name="KEYCODE_ALT_RIGHT" value="58" />
1429        <enum name="KEYCODE_SHIFT_LEFT" value="59" />
1430        <enum name="KEYCODE_SHIFT_RIGHT" value="60" />
1431        <enum name="KEYCODE_TAB" value="61" />
1432        <enum name="KEYCODE_SPACE" value="62" />
1433        <enum name="KEYCODE_SYM" value="63" />
1434        <enum name="KEYCODE_EXPLORER" value="64" />
1435        <enum name="KEYCODE_ENVELOPE" value="65" />
1436        <enum name="KEYCODE_ENTER" value="66" />
1437        <enum name="KEYCODE_DEL" value="67" />
1438        <enum name="KEYCODE_GRAVE" value="68" />
1439        <enum name="KEYCODE_MINUS" value="69" />
1440        <enum name="KEYCODE_EQUALS" value="70" />
1441        <enum name="KEYCODE_LEFT_BRACKET" value="71" />
1442        <enum name="KEYCODE_RIGHT_BRACKET" value="72" />
1443        <enum name="KEYCODE_BACKSLASH" value="73" />
1444        <enum name="KEYCODE_SEMICOLON" value="74" />
1445        <enum name="KEYCODE_APOSTROPHE" value="75" />
1446        <enum name="KEYCODE_SLASH" value="76" />
1447        <enum name="KEYCODE_AT" value="77" />
1448        <enum name="KEYCODE_NUM" value="78" />
1449        <enum name="KEYCODE_HEADSETHOOK" value="79" />
1450        <enum name="KEYCODE_FOCUS" value="80" />
1451        <enum name="KEYCODE_PLUS" value="81" />
1452        <enum name="KEYCODE_MENU" value="82" />
1453        <enum name="KEYCODE_NOTIFICATION" value="83" />
1454        <enum name="KEYCODE_SEARCH" value="84" />
1455        <enum name="KEYCODE_MEDIA_PLAY_PAUSE" value="85" />
1456        <enum name="KEYCODE_MEDIA_STOP" value="86" />
1457        <enum name="KEYCODE_MEDIA_NEXT" value="87" />
1458        <enum name="KEYCODE_MEDIA_PREVIOUS" value="88" />
1459        <enum name="KEYCODE_MEDIA_REWIND" value="89" />
1460        <enum name="KEYCODE_MEDIA_FAST_FORWARD" value="90" />
1461        <enum name="KEYCODE_MUTE" value="91" />
1462        <enum name="KEYCODE_PAGE_UP" value="92" />
1463        <enum name="KEYCODE_PAGE_DOWN" value="93" />
1464        <enum name="KEYCODE_PICTSYMBOLS" value="94" />
1465        <enum name="KEYCODE_SWITCH_CHARSET" value="95" />
1466        <enum name="KEYCODE_BUTTON_A" value="96" />
1467        <enum name="KEYCODE_BUTTON_B" value="97" />
1468        <enum name="KEYCODE_BUTTON_C" value="98" />
1469        <enum name="KEYCODE_BUTTON_X" value="99" />
1470        <enum name="KEYCODE_BUTTON_Y" value="100" />
1471        <enum name="KEYCODE_BUTTON_Z" value="101" />
1472        <enum name="KEYCODE_BUTTON_L1" value="102" />
1473        <enum name="KEYCODE_BUTTON_R1" value="103" />
1474        <enum name="KEYCODE_BUTTON_L2" value="104" />
1475        <enum name="KEYCODE_BUTTON_R2" value="105" />
1476        <enum name="KEYCODE_BUTTON_THUMBL" value="106" />
1477        <enum name="KEYCODE_BUTTON_THUMBR" value="107" />
1478        <enum name="KEYCODE_BUTTON_START" value="108" />
1479        <enum name="KEYCODE_BUTTON_SELECT" value="109" />
1480        <enum name="KEYCODE_BUTTON_MODE" value="110" />
1481        <enum name="KEYCODE_ESCAPE" value="111" />
1482        <enum name="KEYCODE_FORWARD_DEL" value="112" />
1483        <enum name="KEYCODE_CTRL_LEFT" value="113" />
1484        <enum name="KEYCODE_CTRL_RIGHT" value="114" />
1485        <enum name="KEYCODE_CAPS_LOCK" value="115" />
1486        <enum name="KEYCODE_SCROLL_LOCK" value="116" />
1487        <enum name="KEYCODE_META_LEFT" value="117" />
1488        <enum name="KEYCODE_META_RIGHT" value="118" />
1489        <enum name="KEYCODE_FUNCTION" value="119" />
1490        <enum name="KEYCODE_SYSRQ" value="120" />
1491        <enum name="KEYCODE_BREAK" value="121" />
1492        <enum name="KEYCODE_MOVE_HOME" value="122" />
1493        <enum name="KEYCODE_MOVE_END" value="123" />
1494        <enum name="KEYCODE_INSERT" value="124" />
1495        <enum name="KEYCODE_FORWARD" value="125" />
1496        <enum name="KEYCODE_MEDIA_PLAY" value="126" />
1497        <enum name="KEYCODE_MEDIA_PAUSE" value="127" />
1498        <enum name="KEYCODE_MEDIA_CLOSE" value="128" />
1499        <enum name="KEYCODE_MEDIA_EJECT" value="129" />
1500        <enum name="KEYCODE_MEDIA_RECORD" value="130" />
1501        <enum name="KEYCODE_F1" value="131" />
1502        <enum name="KEYCODE_F2" value="132" />
1503        <enum name="KEYCODE_F3" value="133" />
1504        <enum name="KEYCODE_F4" value="134" />
1505        <enum name="KEYCODE_F5" value="135" />
1506        <enum name="KEYCODE_F6" value="136" />
1507        <enum name="KEYCODE_F7" value="137" />
1508        <enum name="KEYCODE_F8" value="138" />
1509        <enum name="KEYCODE_F9" value="139" />
1510        <enum name="KEYCODE_F10" value="140" />
1511        <enum name="KEYCODE_F11" value="141" />
1512        <enum name="KEYCODE_F12" value="142" />
1513        <enum name="KEYCODE_NUM_LOCK" value="143" />
1514        <enum name="KEYCODE_NUMPAD_0" value="144" />
1515        <enum name="KEYCODE_NUMPAD_1" value="145" />
1516        <enum name="KEYCODE_NUMPAD_2" value="146" />
1517        <enum name="KEYCODE_NUMPAD_3" value="147" />
1518        <enum name="KEYCODE_NUMPAD_4" value="148" />
1519        <enum name="KEYCODE_NUMPAD_5" value="149" />
1520        <enum name="KEYCODE_NUMPAD_6" value="150" />
1521        <enum name="KEYCODE_NUMPAD_7" value="151" />
1522        <enum name="KEYCODE_NUMPAD_8" value="152" />
1523        <enum name="KEYCODE_NUMPAD_9" value="153" />
1524        <enum name="KEYCODE_NUMPAD_DIVIDE" value="154" />
1525        <enum name="KEYCODE_NUMPAD_MULTIPLY" value="155" />
1526        <enum name="KEYCODE_NUMPAD_SUBTRACT" value="156" />
1527        <enum name="KEYCODE_NUMPAD_ADD" value="157" />
1528        <enum name="KEYCODE_NUMPAD_DOT" value="158" />
1529        <enum name="KEYCODE_NUMPAD_COMMA" value="159" />
1530        <enum name="KEYCODE_NUMPAD_ENTER" value="160" />
1531        <enum name="KEYCODE_NUMPAD_EQUALS" value="161" />
1532        <enum name="KEYCODE_NUMPAD_LEFT_PAREN" value="162" />
1533        <enum name="KEYCODE_NUMPAD_RIGHT_PAREN" value="163" />
1534        <enum name="KEYCODE_VOLUME_MUTE" value="164" />
1535        <enum name="KEYCODE_INFO" value="165" />
1536        <enum name="KEYCODE_CHANNEL_UP" value="166" />
1537        <enum name="KEYCODE_CHANNEL_DOWN" value="167" />
1538        <enum name="KEYCODE_ZOOM_IN" value="168" />
1539        <enum name="KEYCODE_ZOOM_OUT" value="169" />
1540        <enum name="KEYCODE_TV" value="170" />
1541        <enum name="KEYCODE_WINDOW" value="171" />
1542        <enum name="KEYCODE_GUIDE" value="172" />
1543        <enum name="KEYCODE_DVR" value="173" />
1544        <enum name="KEYCODE_BOOKMARK" value="174" />
1545        <enum name="KEYCODE_CAPTIONS" value="175" />
1546        <enum name="KEYCODE_SETTINGS" value="176" />
1547        <enum name="KEYCODE_TV_POWER" value="177" />
1548        <enum name="KEYCODE_TV_INPUT" value="178" />
1549        <enum name="KEYCODE_STB_POWER" value="179" />
1550        <enum name="KEYCODE_STB_INPUT" value="180" />
1551        <enum name="KEYCODE_AVR_POWER" value="181" />
1552        <enum name="KEYCODE_AVR_INPUT" value="182" />
1553        <enum name="KEYCODE_PROG_GRED" value="183" />
1554        <enum name="KEYCODE_PROG_GREEN" value="184" />
1555        <enum name="KEYCODE_PROG_YELLOW" value="185" />
1556        <enum name="KEYCODE_PROG_BLUE" value="186" />
1557        <enum name="KEYCODE_APP_SWITCH" value="187" />
1558        <enum name="KEYCODE_BUTTON_1" value="188" />
1559        <enum name="KEYCODE_BUTTON_2" value="189" />
1560        <enum name="KEYCODE_BUTTON_3" value="190" />
1561        <enum name="KEYCODE_BUTTON_4" value="191" />
1562        <enum name="KEYCODE_BUTTON_5" value="192" />
1563        <enum name="KEYCODE_BUTTON_6" value="193" />
1564        <enum name="KEYCODE_BUTTON_7" value="194" />
1565        <enum name="KEYCODE_BUTTON_8" value="195" />
1566        <enum name="KEYCODE_BUTTON_9" value="196" />
1567        <enum name="KEYCODE_BUTTON_10" value="197" />
1568        <enum name="KEYCODE_BUTTON_11" value="198" />
1569        <enum name="KEYCODE_BUTTON_12" value="199" />
1570        <enum name="KEYCODE_BUTTON_13" value="200" />
1571        <enum name="KEYCODE_BUTTON_14" value="201" />
1572        <enum name="KEYCODE_BUTTON_15" value="202" />
1573        <enum name="KEYCODE_BUTTON_16" value="203" />
1574        <enum name="KEYCODE_LANGUAGE_SWITCH" value="204" />
1575        <enum name="KEYCODE_MANNER_MODE" value="205" />
1576        <enum name="KEYCODE_3D_MODE" value="206" />
1577        <enum name="KEYCODE_CONTACTS" value="207" />
1578        <enum name="KEYCODE_CALENDAR" value="208" />
1579        <enum name="KEYCODE_MUSIC" value="209" />
1580        <enum name="KEYCODE_CALCULATOR" value="210" />
1581        <enum name="KEYCODE_ZENKAKU_HANKAKU" value="211" />
1582        <enum name="KEYCODE_EISU" value="212" />
1583        <enum name="KEYCODE_MUHENKAN" value="213" />
1584        <enum name="KEYCODE_HENKAN" value="214" />
1585        <enum name="KEYCODE_KATAKANA_HIRAGANA" value="215" />
1586        <enum name="KEYCODE_YEN" value="216" />
1587        <enum name="KEYCODE_RO" value="217" />
1588        <enum name="KEYCODE_KANA" value="218" />
1589        <enum name="KEYCODE_ASSIST" value="219" />
1590        <enum name="KEYCODE_BRIGHTNESS_DOWN" value="220" />
1591        <enum name="KEYCODE_BRIGHTNESS_UP" value="221" />
1592        <enum name="KEYCODE_MEDIA_AUDIO_TRACK" value="222" />
1593    </attr>
1594
1595    <!-- ***************************************************************** -->
1596    <!-- These define collections of attributes that can are with classes. -->
1597    <!-- ***************************************************************** -->
1598
1599    <!-- ========================== -->
1600    <!-- Special attribute classes. -->
1601    <!-- ========================== -->
1602    <eat-comment />
1603
1604    <!-- The set of attributes that describe a Windows's theme. -->
1605    <declare-styleable name="Window">
1606        <attr name="windowBackground" />
1607        <attr name="windowContentOverlay" />
1608        <attr name="windowFrame" />
1609        <attr name="windowNoTitle" />
1610        <attr name="windowFullscreen" />
1611        <attr name="windowOverscan" />
1612        <attr name="windowIsFloating" />
1613        <attr name="windowIsTranslucent" />
1614        <attr name="windowShowWallpaper" />
1615        <attr name="windowAnimationStyle" />
1616        <attr name="windowSoftInputMode" />
1617        <attr name="windowDisablePreview" />
1618        <attr name="windowNoDisplay" />
1619        <attr name="textColor" />
1620        <attr name="backgroundDimEnabled" />
1621        <attr name="backgroundDimAmount" />
1622        <attr name="windowActionBar" />
1623        <attr name="windowActionModeOverlay" />
1624        <attr name="windowActionBarOverlay" />
1625        <attr name="windowSplitActionBar" />
1626        <attr name="windowEnableSplitTouch" />
1627        <attr name="windowCloseOnTouchOutside" />
1628        <attr name="windowTranslucentStatus" />
1629        <attr name="windowTranslucentNavigation" />
1630        <attr name="windowContentTransitions" />
1631        <attr name="windowContentTransitionManager" />
1632
1633        <!-- The minimum width the window is allowed to be, along the major
1634             axis of the screen.  That is, when in landscape.  Can be either
1635             an absolute dimension or a fraction of the screen size in that
1636             dimension. -->
1637        <attr name="windowMinWidthMajor" format="dimension|fraction" />
1638        <!-- The minimum width the window is allowed to be, along the minor
1639             axis of the screen.  That is, when in portrait.  Can be either
1640             an absolute dimension or a fraction of the screen size in that
1641             dimension. -->
1642        <attr name="windowMinWidthMinor" format="dimension|fraction" />
1643
1644        <!-- A fixed width for the window along the major axis of the screen,
1645             that is, when in landscape. Can be either an absolute dimension
1646             or a fraction of the screen size in that dimension. -->
1647        <attr name="windowFixedWidthMajor" format="dimension|fraction" />
1648        <!-- A fixed height for the window along the minor axis of the screen,
1649             that is, when in landscape. Can be either an absolute dimension
1650             or a fraction of the screen size in that dimension. -->
1651        <attr name="windowFixedHeightMinor" format="dimension|fraction" />
1652
1653        <!-- A fixed width for the window along the minor axis of the screen,
1654             that is, when in portrait. Can be either an absolute dimension
1655             or a fraction of the screen size in that dimension. -->
1656        <attr name="windowFixedWidthMinor" format="dimension|fraction" />
1657        <!-- A fixed height for the window along the major axis of the screen,
1658             that is, when in portrait. Can be either an absolute dimension
1659             or a fraction of the screen size in that dimension. -->
1660        <attr name="windowFixedHeightMajor" format="dimension|fraction" />
1661    </declare-styleable>
1662
1663    <!-- The set of attributes that describe a AlertDialog's theme. -->
1664    <declare-styleable name="AlertDialog">
1665        <attr name="fullDark" format="reference|color" />
1666        <attr name="topDark" format="reference|color" />
1667        <attr name="centerDark" format="reference|color" />
1668        <attr name="bottomDark" format="reference|color" />
1669        <attr name="fullBright" format="reference|color" />
1670        <attr name="topBright" format="reference|color" />
1671        <attr name="centerBright" format="reference|color" />
1672        <attr name="bottomBright" format="reference|color" />
1673        <attr name="bottomMedium" format="reference|color" />
1674        <attr name="centerMedium" format="reference|color" />
1675        <attr name="layout" />
1676        <attr name="listLayout" format="reference" />
1677        <attr name="multiChoiceItemLayout" format="reference" />
1678        <attr name="singleChoiceItemLayout" format="reference" />
1679        <attr name="listItemLayout" format="reference" />
1680        <attr name="progressLayout" format="reference" />
1681        <attr name="horizontalProgressLayout" format="reference" />
1682    </declare-styleable>
1683
1684    <!-- Fragment animation class attributes. -->
1685    <declare-styleable name="FragmentAnimation">
1686        <attr name="fragmentOpenEnterAnimation" format="reference" />
1687        <attr name="fragmentOpenExitAnimation" format="reference" />
1688        <attr name="fragmentCloseEnterAnimation" format="reference" />
1689        <attr name="fragmentCloseExitAnimation" format="reference" />
1690        <attr name="fragmentFadeEnterAnimation" format="reference" />
1691        <attr name="fragmentFadeExitAnimation" format="reference" />
1692    </declare-styleable>
1693
1694    <!-- Window animation class attributes. -->
1695    <declare-styleable name="WindowAnimation">
1696        <!-- The animation used when a window is being added. -->
1697        <attr name="windowEnterAnimation" format="reference" />
1698        <!-- The animation used when a window is being removed. -->
1699        <attr name="windowExitAnimation" format="reference" />
1700        <!-- The animation used when a window is going from INVISIBLE to VISIBLE. -->
1701        <attr name="windowShowAnimation" format="reference" />
1702        <!-- The animation used when a window is going from VISIBLE to INVISIBLE. -->
1703        <attr name="windowHideAnimation" format="reference" />
1704
1705        <!--  When opening a new activity, this is the animation that is
1706              run on the next activity (which is entering the screen). -->
1707        <attr name="activityOpenEnterAnimation" format="reference" />
1708        <!--  When opening a new activity, this is the animation that is
1709              run on the previous activity (which is exiting the screen). -->
1710        <attr name="activityOpenExitAnimation" format="reference" />
1711        <!--  When closing the current activity, this is the animation that is
1712              run on the next activity (which is entering the screen). -->
1713        <attr name="activityCloseEnterAnimation" format="reference" />
1714        <!--  When closing the current activity, this is the animation that is
1715              run on the current activity (which is exiting the screen). -->
1716        <attr name="activityCloseExitAnimation" format="reference" />
1717        <!--  When opening an activity in a new task, this is the animation that is
1718              run on the activity of the new task (which is entering the screen). -->
1719        <attr name="taskOpenEnterAnimation" format="reference" />
1720        <!--  When opening an activity in a new task, this is the animation that is
1721              run on the activity of the old task (which is exiting the screen). -->
1722        <attr name="taskOpenExitAnimation" format="reference" />
1723        <!--  When closing the last activity of a task, this is the animation that is
1724              run on the activity of the next task (which is entering the screen). -->
1725        <attr name="taskCloseEnterAnimation" format="reference" />
1726        <!--  When opening an activity in a new task, this is the animation that is
1727              run on the activity of the old task (which is exiting the screen). -->
1728        <attr name="taskCloseExitAnimation" format="reference" />
1729        <!--  When bringing an existing task to the foreground, this is the
1730              animation that is run on the top activity of the task being brought
1731              to the foreground (which is entering the screen). -->
1732        <attr name="taskToFrontEnterAnimation" format="reference" />
1733        <!--  When bringing an existing task to the foreground, this is the
1734              animation that is run on the current foreground activity
1735              (which is exiting the screen). -->
1736        <attr name="taskToFrontExitAnimation" format="reference" />
1737        <!--  When sending the current task to the background, this is the
1738              animation that is run on the top activity of the task behind
1739              it (which is entering the screen). -->
1740        <attr name="taskToBackEnterAnimation" format="reference" />
1741        <!--  When sending the current task to the background, this is the
1742              animation that is run on the top activity of the current task
1743              (which is exiting the screen). -->
1744        <attr name="taskToBackExitAnimation" format="reference" />
1745
1746        <!--  When opening a new activity that shows the wallpaper, while
1747              currently not showing the wallpaper, this is the animation that
1748              is run on the new wallpaper activity (which is entering the screen). -->
1749        <attr name="wallpaperOpenEnterAnimation" format="reference" />
1750        <!--  When opening a new activity that shows the wallpaper, while
1751              currently not showing the wallpaper, this is the animation that
1752              is run on the current activity (which is exiting the screen). -->
1753        <attr name="wallpaperOpenExitAnimation" format="reference" />
1754        <!--  When opening a new activity that hides the wallpaper, while
1755              currently showing the wallpaper, this is the animation that
1756              is run on the new activity (which is entering the screen). -->
1757        <attr name="wallpaperCloseEnterAnimation" format="reference" />
1758        <!--  When opening a new activity that hides the wallpaper, while
1759              currently showing the wallpaper, this is the animation that
1760              is run on the old wallpaper activity (which is exiting the screen). -->
1761        <attr name="wallpaperCloseExitAnimation" format="reference" />
1762
1763        <!--  When opening a new activity that is on top of the wallpaper
1764              when the current activity is also on top of the wallpaper,
1765              this is the animation that is run on the new activity
1766              (which is entering the screen).  The wallpaper remains
1767              static behind the animation. -->
1768        <attr name="wallpaperIntraOpenEnterAnimation" format="reference" />
1769        <!--  When opening a new activity that is on top of the wallpaper
1770              when the current activity is also on top of the wallpaper,
1771              this is the animation that is run on the current activity
1772              (which is exiting the screen).  The wallpaper remains
1773              static behind the animation. -->
1774        <attr name="wallpaperIntraOpenExitAnimation" format="reference" />
1775        <!--  When closing a foreround activity that is on top of the wallpaper
1776              when the previous activity is also on top of the wallpaper,
1777              this is the animation that is run on the previous activity
1778              (which is entering the screen).  The wallpaper remains
1779              static behind the animation. -->
1780        <attr name="wallpaperIntraCloseEnterAnimation" format="reference" />
1781        <!--  When closing a foreround activity that is on top of the wallpaper
1782              when the previous activity is also on top of the wallpaper,
1783              this is the animation that is run on the current activity
1784              (which is exiting the screen).  The wallpaper remains
1785              static behind the animation. -->
1786        <attr name="wallpaperIntraCloseExitAnimation" format="reference" />
1787    </declare-styleable>
1788
1789    <!-- ============================= -->
1790    <!-- View package class attributes -->
1791    <!-- ============================= -->
1792    <eat-comment />
1793
1794    <!-- Attributes that can be used with {@link android.view.View} or
1795         any of its subclasses.  Also see {@link #ViewGroup_Layout} for
1796         attributes that are processed by the view's parent. -->
1797    <declare-styleable name="View">
1798        <!-- Supply an identifier name for this view, to later retrieve it
1799             with {@link android.view.View#findViewById View.findViewById()} or
1800             {@link android.app.Activity#findViewById Activity.findViewById()}.
1801             This must be a
1802             resource reference; typically you set this using the
1803             <code>@+</code> syntax to create a new ID resources.
1804             For example: <code>android:id="@+id/my_id"</code> which
1805             allows you to later retrieve the view
1806             with <code>findViewById(R.id.my_id)</code>. -->
1807        <attr name="id" format="reference" />
1808
1809        <!-- Supply a tag for this view containing a String, to be retrieved
1810             later with {@link android.view.View#getTag View.getTag()} or
1811             searched for with {@link android.view.View#findViewWithTag
1812             View.findViewWithTag()}.  It is generally preferable to use
1813             IDs (through the android:id attribute) instead of tags because
1814             they are faster and allow for compile-time type checking. -->
1815        <attr name="tag" format="string" />
1816
1817        <!-- The initial horizontal scroll offset, in pixels.-->
1818        <attr name="scrollX" format="dimension" />
1819
1820        <!-- The initial vertical scroll offset, in pixels. -->
1821        <attr name="scrollY" format="dimension" />
1822
1823        <!-- A drawable to use as the background.  This can be either a reference
1824             to a full drawable resource (such as a PNG image, 9-patch,
1825             XML state list description, etc), or a solid color such as "#ff000000"
1826            (black). -->
1827        <attr name="background" format="reference|color" />
1828
1829        <!-- Sets the padding, in pixels, of all four edges.  Padding is defined as
1830             space between the edges of the view and the view's content. A views size
1831             will include it's padding.  If a {@link android.R.attr#background}
1832             is provided, the padding will initially be set to that (0 if the
1833             drawable does not have padding).  Explicitly setting a padding value
1834             will override the corresponding padding found in the background. -->
1835        <attr name="padding" format="dimension" />
1836        <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. -->
1837        <attr name="paddingLeft" format="dimension" />
1838        <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. -->
1839        <attr name="paddingTop" format="dimension" />
1840        <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. -->
1841        <attr name="paddingRight" format="dimension" />
1842        <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. -->
1843        <attr name="paddingBottom" format="dimension" />
1844        <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
1845        <attr name="paddingStart" format="dimension" />
1846        <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
1847        <attr name="paddingEnd" format="dimension" />
1848
1849        <!-- Boolean that controls whether a view can take focus.  By default the user can not
1850             move focus to a view; by setting this attribute to true the view is
1851             allowed to take focus.  This value does not impact the behavior of
1852             directly calling {@link android.view.View#requestFocus}, which will
1853             always request focus regardless of this view.  It only impacts where
1854             focus navigation will try to move focus. -->
1855        <attr name="focusable" format="boolean" />
1856
1857        <!-- Boolean that controls whether a view can take focus while in touch mode.
1858             If this is true for a view, that view can gain focus when clicked on, and can keep
1859             focus if another view is clicked on that doesn't have this attribute set to true. -->
1860        <attr name="focusableInTouchMode" format="boolean" />
1861
1862        <!-- Controls the initial visibility of the view.  -->
1863        <attr name="visibility">
1864            <!-- Visible on screen; the default value. -->
1865            <enum name="visible" value="0" />
1866            <!-- Not displayed, but taken into account during layout (space is left for it). -->
1867            <enum name="invisible" value="1" />
1868            <!-- Completely hidden, as if the view had not been added. -->
1869            <enum name="gone" value="2" />
1870        </attr>
1871
1872        <!-- Boolean internal attribute to adjust view layout based on
1873             system windows such as the status bar.
1874             If true, adjusts the padding of this view to leave space for the system windows.
1875             Will only take effect if this view is in a non-embedded activity. -->
1876        <attr name="fitsSystemWindows" format="boolean" />
1877
1878        <!-- Defines which scrollbars should be displayed on scrolling or not. -->
1879        <attr name="scrollbars">
1880            <!-- No scrollbar is displayed. -->
1881            <flag name="none" value="0x00000000" />
1882            <!-- Displays horizontal scrollbar only. -->
1883            <flag name="horizontal" value="0x00000100" />
1884            <!-- Displays vertical scrollbar only. -->
1885            <flag name="vertical" value="0x00000200" />
1886        </attr>
1887
1888        <!-- Controls the scrollbar style and position. The scrollbars can be overlaid or
1889             inset. When inset, they add to the padding of the view. And the
1890             scrollbars can be drawn inside the padding area or on the edge of
1891             the view. For example, if a view has a background drawable and you
1892             want to draw the scrollbars inside the padding specified by the
1893             drawable, you can use insideOverlay or insideInset. If you want them
1894             to appear at the edge of the view, ignoring the padding, then you can
1895             use outsideOverlay or outsideInset.-->
1896        <attr name="scrollbarStyle">
1897            <!-- Inside the padding and overlaid -->
1898            <enum name="insideOverlay" value="0x0" />
1899            <!-- Inside the padding and inset -->
1900            <enum name="insideInset" value="0x01000000" />
1901            <!-- Edge of the view and overlaid -->
1902            <enum name="outsideOverlay" value="0x02000000" />
1903            <!-- Edge of the view and inset -->
1904            <enum name="outsideInset" value="0x03000000" />
1905        </attr>
1906
1907        <!-- Set this if the view will serve as a scrolling container, meaing
1908             that it can be resized to shrink its overall window so that there
1909             will be space for an input method.  If not set, the default
1910             value will be true if "scrollbars" has the vertical scrollbar
1911             set, else it will be false. -->
1912        <attr name="isScrollContainer" format="boolean" />
1913
1914          <!-- Defines whether to fade out scrollbars when they are not in use. -->
1915         <attr name="fadeScrollbars" format="boolean" />
1916         <!-- Defines the delay in milliseconds that a scrollbar takes to fade out. -->
1917         <attr name="scrollbarFadeDuration" format="integer" />
1918         <!-- Defines the delay in milliseconds that a scrollbar waits before fade out. -->
1919        <attr name="scrollbarDefaultDelayBeforeFade" format="integer" />
1920        <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. -->
1921        <attr name="scrollbarSize" format="dimension" />
1922        <!-- Defines the horizontal scrollbar thumb drawable. -->
1923        <attr name="scrollbarThumbHorizontal" format="reference" />
1924        <!-- Defines the vertical scrollbar thumb drawable. -->
1925        <attr name="scrollbarThumbVertical" format="reference" />
1926        <!-- Defines the horizontal scrollbar track drawable. -->
1927        <attr name="scrollbarTrackHorizontal" format="reference" />
1928        <!-- Defines the vertical scrollbar track drawable. -->
1929        <attr name="scrollbarTrackVertical" format="reference" />
1930        <!-- Defines whether the horizontal scrollbar track should always be drawn. -->
1931        <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" />
1932        <!-- Defines whether the vertical scrollbar track should always be drawn. -->
1933        <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" />
1934
1935        <!-- This attribute is deprecated and will be ignored as of
1936             API level 14 ({@link android.os.Build.VERSION_CODES#ICE_CREAM_SANDWICH}).
1937             Using fading edges may introduce noticeable performance
1938             degradations and should be used only when required by the application's
1939             visual design. To request fading edges with API level 14 and above,
1940             use the <code>android:requiresFadingEdge</code> attribute instead. -->
1941        <attr name="fadingEdge">
1942            <!-- No edge is faded. -->
1943            <flag name="none" value="0x00000000" />
1944            <!-- Fades horizontal edges only. -->
1945            <flag name="horizontal" value="0x00001000" />
1946            <!-- Fades vertical edges only. -->
1947            <flag name="vertical" value="0x00002000" />
1948        </attr>
1949        <!-- Defines which edges should be faded on scrolling. -->
1950        <attr name="requiresFadingEdge">
1951            <!-- No edge is faded. -->
1952            <flag name="none" value="0x00000000" />
1953            <!-- Fades horizontal edges only. -->
1954            <flag name="horizontal" value="0x00001000" />
1955            <!-- Fades vertical edges only. -->
1956            <flag name="vertical" value="0x00002000" />
1957        </attr>
1958        <!-- Defines the length of the fading edges. -->
1959        <attr name="fadingEdgeLength" format="dimension" />
1960
1961        <!-- Defines the next view to give focus to when the next focus is
1962             {@link android.view.View#FOCUS_LEFT}.
1963
1964             If the reference refers to a view that does not exist or is part
1965             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1966             will result when the reference is accessed.-->
1967        <attr name="nextFocusLeft" format="reference"/>
1968
1969        <!-- Defines the next view to give focus to when the next focus is
1970             {@link android.view.View#FOCUS_RIGHT}
1971
1972             If the reference refers to a view that does not exist or is part
1973             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1974             will result when the reference is accessed.-->
1975        <attr name="nextFocusRight" format="reference"/>
1976
1977        <!-- Defines the next view to give focus to when the next focus is
1978             {@link android.view.View#FOCUS_UP}
1979
1980             If the reference refers to a view that does not exist or is part
1981             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1982             will result when the reference is accessed.-->
1983        <attr name="nextFocusUp" format="reference"/>
1984
1985        <!-- Defines the next view to give focus to when the next focus is
1986             {@link android.view.View#FOCUS_DOWN}
1987
1988             If the reference refers to a view that does not exist or is part
1989             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1990             will result when the reference is accessed.-->
1991        <attr name="nextFocusDown" format="reference"/>
1992
1993        <!-- Defines the next view to give focus to when the next focus is
1994             {@link android.view.View#FOCUS_FORWARD}
1995
1996             If the reference refers to a view that does not exist or is part
1997             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1998             will result when the reference is accessed.-->
1999        <attr name="nextFocusForward" format="reference"/>
2000
2001        <!-- Defines whether this view reacts to click events. -->
2002        <attr name="clickable" format="boolean" />
2003
2004        <!-- Defines whether this view reacts to long click events. -->
2005        <attr name="longClickable" format="boolean" />
2006
2007        <!-- If unset, no state will be saved for this view when it is being
2008             frozen. The default is true, allowing the view to be saved
2009             (however it also must have an ID assigned to it for its
2010             state to be saved).  Setting this to false only disables the
2011             state for this view, not for its children which may still
2012             be saved. -->
2013        <attr name="saveEnabled" format="boolean" />
2014
2015        <!-- Specifies whether to filter touches when the view's window is obscured by
2016             another visible window.  When set to true, the view will not receive touches
2017             whenever a toast, dialog or other window appears above the view's window.
2018             Refer to the {@link android.view.View} security documentation for more details. -->
2019        <attr name="filterTouchesWhenObscured" format="boolean" />
2020
2021        <!-- Defines the quality of translucent drawing caches. This property is used
2022             only when the drawing cache is enabled and translucent. The default value is auto. -->
2023        <attr name="drawingCacheQuality">
2024            <!-- Lets the framework decide what quality level should be used
2025                 for the drawing cache. -->
2026            <enum name="auto" value="0" />
2027            <!-- Low quality. When set to low quality, the drawing cache uses a lower color
2028                 depth, thus losing precision in rendering gradients, but uses less memory. -->
2029            <enum name="low" value="1" />
2030            <!-- High quality. When set to high quality, the drawing cache uses a higher
2031                 color depth but uses more memory. -->
2032            <enum name="high" value="2" />
2033        </attr>
2034
2035        <!-- Controls whether the view's window should keep the screen on
2036             while visible. -->
2037        <attr name="keepScreenOn" format="boolean" />
2038
2039        <!-- When this attribute is set to true, the view gets its drawable state
2040             (focused, pressed, etc.) from its direct parent rather than from itself. -->
2041        <attr name="duplicateParentState" format="boolean" />
2042
2043        <!-- Defines the minimum height of the view. It is not guaranteed
2044             the view will be able to achieve this minimum height (for example,
2045             if its parent layout constrains it with less available height). -->
2046        <attr name="minHeight" />
2047
2048        <!-- Defines the minimum width of the view. It is not guaranteed
2049             the view will be able to achieve this minimum width (for example,
2050             if its parent layout constrains it with less available width). -->
2051        <attr name="minWidth" />
2052
2053        <!-- Boolean that controls whether a view should have sound effects
2054             enabled for events such as clicking and touching. -->
2055        <attr name="soundEffectsEnabled" format="boolean" />
2056
2057        <!-- Boolean that controls whether a view should have haptic feedback
2058             enabled for events such as long presses. -->
2059        <attr name="hapticFeedbackEnabled" format="boolean" />
2060
2061        <!-- Defines text that briefly describes content of the view. This property is used
2062             primarily for accessibility. Since some views do not have textual
2063             representation this attribute can be used for providing such. -->
2064        <attr name="contentDescription" format="string" localization="suggested" />
2065
2066        <!-- Name of the method in this View's context to invoke when the view is
2067             clicked. This name must correspond to a public method that takes
2068             exactly one parameter of type View. For instance, if you specify
2069             <code>android:onClick="sayHello"</code>, you must declare a
2070             <code>public void sayHello(View v)</code> method of your context
2071             (typically, your Activity). -->
2072        <attr name="onClick" format="string" />
2073
2074        <!-- Defines over-scrolling behavior. This property is used only if the
2075             View is scrollable. Over-scrolling is the ability for the user to
2076             receive feedback when attempting to scroll beyond meaningful content. -->
2077        <attr name="overScrollMode">
2078            <!-- Always show over-scroll effects, even if the content fits entirely
2079                 within the available space. -->
2080            <enum name="always" value="0" />
2081            <!-- Only show over-scroll effects if the content is large
2082                 enough to meaningfully scroll. -->
2083            <enum name="ifContentScrolls" value="1" />
2084            <!-- Never show over-scroll effects. -->
2085            <enum name="never" value="2" />
2086        </attr>
2087
2088        <!-- alpha property of the view, as a value between 0 (completely transparent) and 1
2089             (completely opaque). -->
2090        <attr name="alpha" format="float" />
2091
2092        <!-- translation in x of the view. This value is added post-layout to the left
2093             property of the view, which is set by its layout. -->
2094        <attr name="translationX" format="dimension" />
2095
2096        <!-- translation in y of the view. This value is added post-layout to the top
2097             property of the view, which is set by its layout. -->
2098        <attr name="translationY" format="dimension" />
2099
2100        <!-- translation in z of the view. This value is added post-layout to its position. -->
2101        <attr name="translationZ" format="dimension" />
2102
2103        <!-- x location of the pivot point around which the view will rotate and scale.
2104             This xml attribute sets the pivotX property of the View. -->
2105        <attr name="transformPivotX" format="dimension" />
2106
2107        <!-- y location of the pivot point around which the view will rotate and scale.
2108             This xml attribute sets the pivotY property of the View. -->
2109        <attr name="transformPivotY" format="dimension" />
2110
2111        <!-- rotation of the view, in degrees. -->
2112        <attr name="rotation" format="float" />
2113
2114        <!-- rotation of the view around the x axis, in degrees. -->
2115        <attr name="rotationX" format="float" />
2116
2117        <!-- rotation of the view around the y axis, in degrees. -->
2118        <attr name="rotationY" format="float" />
2119
2120        <!-- scale of the view in the x direction. -->
2121        <attr name="scaleX" format="float" />
2122
2123        <!-- scale of the view in the y direction. -->
2124        <attr name="scaleY" format="float" />
2125
2126        <!-- Determines which side the vertical scroll bar should be placed on. -->
2127        <attr name="verticalScrollbarPosition">
2128            <!-- Place the scroll bar wherever the system default determines. -->
2129            <enum name="defaultPosition" value="0" />
2130            <!-- Place the scroll bar on the left. -->
2131            <enum name="left" value="1" />
2132            <!-- Place the scroll bar on the right. -->
2133            <enum name="right" value="2" />
2134        </attr>
2135
2136        <!-- Specifies the type of layer backing this view. The default value is none.
2137             Refer to {@link android.view.View#setLayerType(int, android.graphics.Paint)}
2138             for more information.-->
2139        <attr name="layerType">
2140            <!-- Don't use a layer. -->
2141            <enum name="none" value="0" />
2142            <!-- Use a software layer. Refer to
2143                 {@link android.view.View#setLayerType(int, android.graphics.Paint)} for
2144                 more information. -->
2145            <enum name="software" value="1" />
2146            <!-- Use a hardware layer. Refer to
2147                 {@link android.view.View#setLayerType(int, android.graphics.Paint)} for
2148                 more information. -->
2149            <enum name="hardware" value="2" />
2150        </attr>
2151
2152        <!-- Defines the direction of layout drawing. This typically is associated with writing
2153             direction of the language script used. The possible values are "ltr" for Left-to-Right,
2154             "rtl" for Right-to-Left, "locale" and "inherit" from parent view. If there is nothing
2155             to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction
2156             used in "en-US". The default for this attribute is "inherit". -->
2157        <attr name="layoutDirection">
2158            <!-- Left-to-Right -->
2159            <enum name="ltr" value="0" />
2160            <!-- Right-to-Left -->
2161            <enum name="rtl" value="1" />
2162            <!-- Inherit from parent -->
2163            <enum name="inherit" value="2" />
2164            <!-- Locale -->
2165            <enum name="locale" value="3" />
2166        </attr>
2167
2168        <!-- Defines the direction of the text. A heuristic is used to determine the resolved text
2169              direction of paragraphs. -->
2170         <attr name="textDirection" format="integer">
2171            <!-- Default -->
2172            <enum name="inherit" value="0" />
2173            <!-- Default for the root view. The first strong directional character determines the
2174                 paragraph direction.  If there is no strong directional character, the paragraph
2175                 direction is the view’s resolved layout direction. -->
2176            <enum name="firstStrong" value="1" />
2177            <!-- The paragraph direction is RTL if it contains any strong RTL character, otherwise
2178                 it is LTR if it contains any strong LTR characters.  If there are neither, the
2179                 paragraph direction is the view’s resolved layout direction. -->
2180            <enum name="anyRtl" value="2" />
2181            <!-- The paragraph direction is left to right. -->
2182            <enum name="ltr" value="3" />
2183            <!-- The paragraph direction is right to left. -->
2184            <enum name="rtl" value="4" />
2185            <!-- The paragraph direction is coming from the system Locale. -->
2186            <enum name="locale" value="5" />
2187        </attr>
2188
2189        <!-- Defines the alignment of the text. A heuristic is used to determine the resolved
2190            text alignment. -->
2191        <attr name="textAlignment" format="integer">
2192            <!-- Default -->
2193            <enum name="inherit" value="0" />
2194            <!-- Default for the root view. The gravity determines the alignment, ALIGN_NORMAL,
2195                ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s
2196                text direction -->
2197            <enum name="gravity" value="1" />
2198            <!-- Align to the start of the paragraph, e.g. ALIGN_NORMAL. -->
2199            <enum name="textStart" value="2" />
2200            <!-- Align to the end of the paragraph, e.g. ALIGN_OPPOSITE. -->
2201            <enum name="textEnd" value="3" />
2202            <!-- Center the paragraph, e.g. ALIGN_CENTER. -->
2203            <enum name="center" value="4" />
2204            <!-- Align to the start of the view, which is ALIGN_LEFT if the view’s resolved
2205                layoutDirection is LTR, and ALIGN_RIGHT otherwise. -->
2206            <enum name="viewStart" value="5" />
2207            <!-- Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved
2208                layoutDirection is LTR, and ALIGN_LEFT otherwise -->
2209            <enum name="viewEnd" value="6" />
2210        </attr>
2211
2212        <!-- Controls how this View is important for accessibility which is if it fires
2213             accessibility events and if it is reported to accessibility services that
2214             query the screen. Note: While not recommended, an accessibility service may
2215             decide to ignore this attribute and operate on all views in the view tree. -->
2216        <attr name="importantForAccessibility" format="integer">
2217            <!-- The system determines whether the view is important for accessibility - default
2218                 (recommended). -->
2219            <enum name="auto" value="0" />
2220            <!-- The view is important for accessibility. -->
2221            <enum name="yes" value="1" />
2222            <!-- The view is not important for accessibility. -->
2223            <enum name="no" value="2" />
2224            <!-- The view is not important for accessibility, nor are any of its descendant
2225                 views. -->
2226            <enum name="noHideDescendants" value="4" />
2227        </attr>
2228
2229        <!-- Indicates to accessibility services whether the user should be notified when
2230             this view changes. -->
2231        <attr name="accessibilityLiveRegion" format="integer">
2232            <!-- Accessibility services should not announce changes to this view. -->
2233            <enum name="none" value="0" />
2234            <!-- Accessibility services should announce changes to this view. -->
2235            <enum name="polite" value="1" />
2236            <!-- Accessibility services should interrupt ongoing speech to immediately
2237                 announce changes to this view. -->
2238            <enum name="assertive" value="2" />
2239        </attr>
2240
2241        <!-- Specifies the id of a view for which this view serves as a label for
2242             accessibility purposes. For example, a TextView before an EditText in
2243             the UI usually specifies what infomation is contained in the EditText.
2244             Hence, the TextView is a label for the EditText. -->
2245        <attr name="labelFor" format="integer" />
2246
2247        <!-- Specifies a theme override for a view. When a theme override is set, the
2248             view will be inflated using a {@link android.content.Context} themed with
2249             the specified resource. During XML inflation, any child views under the
2250             view with a theme override will inherit the themed context. -->
2251        <attr name="theme" />
2252
2253        <!-- Specifies that the shared name of the View to be shared with another Activity.
2254             When transitioning between Activities, the name links a UI element in the starting
2255             Activity to UI element in the called Activity. Names should be unique in the
2256             View hierarchy. -->
2257        <attr name="sharedElementName" format="string" />
2258    </declare-styleable>
2259
2260    <!-- Attributes that can be assigned to a tag for a particular View. -->
2261    <declare-styleable name="ViewTag">
2262        <!-- Specifies the key identifying a tag. This must be a resource reference. -->
2263        <attr name="id" />
2264        <!-- Specifies the value with which to tag the view. -->
2265        <attr name="value" />
2266    </declare-styleable>
2267
2268    <!-- Attributes that can be used with a {@link android.view.ViewGroup} or any
2269         of its subclasses.  Also see {@link #ViewGroup_Layout} for
2270         attributes that this class processes in its children. -->
2271    <declare-styleable name="ViewGroup">
2272        <!-- Defines whether changes in layout (caused by adding and removing items) should
2273             cause a LayoutTransition to run. When this flag is set to true, a default
2274             LayoutTransition object will be set on the ViewGroup container and default
2275             animations will run when these layout changes occur.-->
2276        <attr name="animateLayoutChanges" format="boolean" />
2277        <!-- Defines whether a child is limited to draw inside of its bounds or not.
2278             This is useful with animations that scale the size of the children to more
2279             than 100% for instance. In such a case, this property should be set to false
2280             to allow the children to draw outside of their bounds. The default value of
2281             this property is true. -->
2282        <attr name="clipChildren" format="boolean" />
2283        <!-- Defines whether the ViewGroup will clip its drawing surface so as to exclude
2284             the padding area. This property is set to true by default. -->
2285        <attr name="clipToPadding" format="boolean" />
2286        <!-- Defines whether 3d composited descendents of the ViewGroup will be reordered into their
2287             own independent Z volume. This property is set to true by default. -->
2288        <attr name="isolatedZVolume" format="boolean" />
2289        <!-- Defines the layout animation to use the first time the ViewGroup is laid out.
2290             Layout animations can also be started manually after the first layout. -->
2291        <attr name="layoutAnimation" format="reference" />
2292        <!-- Defines whether layout animations should create a drawing cache for their
2293             children. Enabling the animation cache consumes more memory and requires
2294             a longer initialization but provides better performance. The animation
2295             cache is enabled by default. -->
2296        <attr name="animationCache" format="boolean" />
2297        <!-- Defines the persistence of the drawing cache. The drawing cache might be
2298             enabled by a ViewGroup for all its children in specific situations (for
2299             instance during a scrolling.) This property lets you persist the cache
2300             in memory after its initial usage. Persisting the cache consumes more
2301             memory but may prevent frequent garbage collection is the cache is created
2302             over and over again. By default the persistence is set to scrolling. -->
2303        <attr name="persistentDrawingCache">
2304            <!-- The drawing cache is not persisted after use. -->
2305            <flag name="none" value="0x0" />
2306            <!-- The drawing cache is persisted after a layout animation. -->
2307            <flag name="animation" value="0x1" />
2308            <!-- The drawing cache is persisted after a scroll. -->
2309            <flag name="scrolling" value="0x2" />
2310            <!-- The drawing cache is always persisted. -->
2311            <flag name="all" value="0x3" />
2312        </attr>
2313        <!-- Defines whether the ViewGroup should always draw its children using their
2314             drawing cache or not. The default value is true. -->
2315        <attr name="alwaysDrawnWithCache" format="boolean" />
2316        <!-- Sets whether this ViewGroup's drawable states also include
2317             its children's drawable states.  This is used, for example, to
2318             make a group appear to be focused when its child EditText or button
2319             is focused. -->
2320        <attr name="addStatesFromChildren" format="boolean" />
2321
2322        <!-- Defines the relationship between the ViewGroup and its descendants
2323             when looking for a View to take focus. -->
2324        <attr name="descendantFocusability">
2325            <!-- The ViewGroup will get focus before any of its descendants. -->
2326            <enum name="beforeDescendants" value="0" />
2327            <!-- The ViewGroup will get focus only if none of its descendants want it. -->
2328            <enum name="afterDescendants" value="1" />
2329            <!-- The ViewGroup will block its descendants from receiving focus. -->
2330            <enum name="blocksDescendants" value="2" />
2331        </attr>
2332
2333        <!-- Sets whether this ViewGroup should split MotionEvents
2334             to separate child views during touch event dispatch.
2335             If false (default), touch events will be dispatched to
2336             the child view where the first pointer went down until
2337             the last pointer goes up.
2338             If true, touch events may be dispatched to multiple children.
2339             MotionEvents for each pointer will be dispatched to the child
2340             view where the initial ACTION_DOWN event happened.
2341             See {@link android.view.ViewGroup#setMotionEventSplittingEnabled(boolean)}
2342             for more information. -->
2343        <attr name="splitMotionEvents" format="boolean" />
2344
2345        <!-- Defines the layout mode of this ViewGroup. -->
2346        <attr name="layoutMode">
2347            <!-- Use the children's clip bounds when laying out this container. -->
2348            <enum name="clipBounds" value="0" />
2349            <!-- Use the children's optical bounds when laying out this container. -->
2350            <enum name="opticalBounds" value="1" />
2351        </attr>
2352
2353        <!-- Sets whether or not this ViewGroup should be treated as a single entity
2354             when doing an Activity transition. Typically, the elements inside a
2355             ViewGroup are each transitioned from the scene individually. The default
2356             for a ViewGroup is false unless it has a background.
2357             See {@link android.app.ActivityOptions#makeSceneTransitionAnimation(android.os.Bundle)}
2358             for more information. -->
2359        <attr name="transitionGroup" format="boolean" />
2360    </declare-styleable>
2361
2362    <!-- A {@link android.view.ViewStub} lets you lazily include other XML layouts
2363         inside your application at runtime. -->
2364    <declare-styleable name="ViewStub">
2365        <!-- Supply an identifier for the layout resource to inflate when the ViewStub
2366             becomes visible or when forced to do so. The layout resource must be a
2367             valid reference to a layout. -->
2368        <attr name="layout" format="reference" />
2369        <!-- Overrides the id of the inflated View with this value. -->
2370        <attr name="inflatedId" format="reference" />
2371    </declare-styleable>
2372
2373    <!-- ===================================== -->
2374    <!-- View package parent layout attributes -->
2375    <!-- ===================================== -->
2376    <eat-comment />
2377
2378    <!-- This is the basic set of layout attributes that are common to all
2379         layout managers.  These attributes are specified with the rest of
2380         a view's normal attributes (such as {@link android.R.attr#background},
2381         but will be parsed by the view's parent and ignored by the child.
2382        <p>The values defined here correspond to the base layout attribute
2383        class {@link android.view.ViewGroup.LayoutParams}. -->
2384    <declare-styleable name="ViewGroup_Layout">
2385        <!-- Specifies the basic width of the view.  This is a required attribute
2386             for any view inside of a containing layout manager.  Its value may
2387             be a dimension (such as "12dip") for a constant width or one of
2388             the special constants. -->
2389        <attr name="layout_width" format="dimension">
2390            <!-- The view should be as big as its parent (minus padding).
2391                 This constant is deprecated starting from API Level 8 and
2392                 is replaced by {@code match_parent}. -->
2393            <enum name="fill_parent" value="-1" />
2394            <!-- The view should be as big as its parent (minus padding).
2395                 Introduced in API Level 8. -->
2396            <enum name="match_parent" value="-1" />
2397            <!-- The view should be only big enough to enclose its content (plus padding). -->
2398            <enum name="wrap_content" value="-2" />
2399        </attr>
2400
2401        <!-- Specifies the basic height of the view.  This is a required attribute
2402             for any view inside of a containing layout manager.  Its value may
2403             be a dimension (such as "12dip") for a constant height or one of
2404             the special constants. -->
2405        <attr name="layout_height" format="dimension">
2406            <!-- The view should be as big as its parent (minus padding).
2407                 This constant is deprecated starting from API Level 8 and
2408                 is replaced by {@code match_parent}. -->
2409            <enum name="fill_parent" value="-1" />
2410            <!-- The view should be as big as its parent (minus padding).
2411                 Introduced in API Level 8. -->
2412            <enum name="match_parent" value="-1" />
2413            <!-- The view should be only big enough to enclose its content (plus padding). -->
2414            <enum name="wrap_content" value="-2" />
2415        </attr>
2416    </declare-styleable>
2417
2418    <!-- This is the basic set of layout attributes for layout managers that
2419         wish to place margins around their child views.
2420         These attributes are specified with the rest of
2421         a view's normal attributes (such as {@link android.R.attr#background},
2422         but will be parsed by the view's parent and ignored by the child.
2423        <p>The values defined here correspond to the base layout attribute
2424        class {@link android.view.ViewGroup.MarginLayoutParams}. -->
2425    <declare-styleable name="ViewGroup_MarginLayout">
2426        <attr name="layout_width" />
2427        <attr name="layout_height" />
2428        <!--  Specifies extra space on the left, top, right and bottom
2429              sides of this view. This space is outside this view's bounds. -->
2430        <attr name="layout_margin" format="dimension"  />
2431        <!--  Specifies extra space on the left side of this view.
2432              This space is outside this view's bounds. -->
2433        <attr name="layout_marginLeft" format="dimension"  />
2434        <!--  Specifies extra space on the top side of this view.
2435              This space is outside this view's bounds. -->
2436        <attr name="layout_marginTop" format="dimension" />
2437        <!--  Specifies extra space on the right side of this view.
2438              This space is outside this view's bounds. -->
2439        <attr name="layout_marginRight" format="dimension"  />
2440        <!--  Specifies extra space on the bottom side of this view.
2441              This space is outside this view's bounds. -->
2442        <attr name="layout_marginBottom" format="dimension"  />
2443        <!--  Specifies extra space on the start side of this view.
2444              This space is outside this view's bounds. -->
2445        <attr name="layout_marginStart" format="dimension"  />
2446        <!--  Specifies extra space on the end side of this view.
2447              This space is outside this view's bounds. -->
2448        <attr name="layout_marginEnd" format="dimension"  />
2449    </declare-styleable>
2450
2451    <!-- Use <code>input-method</code> as the root tag of the XML resource that
2452         describes an
2453         {@link android.view.inputmethod.InputMethod} service, which is
2454         referenced from its
2455         {@link android.view.inputmethod.InputMethod#SERVICE_META_DATA}
2456         meta-data entry.  Described here are the attributes that can be
2457         included in that tag. -->
2458    <declare-styleable name="InputMethod">
2459        <!-- Component name of an activity that allows the user to modify
2460             the settings for this service. -->
2461        <attr name="settingsActivity" format="string" />
2462        <!-- Set to true in all of the configurations for which this input
2463             method should be considered an option as the default. -->
2464        <attr name="isDefault" format="boolean" />
2465        <!-- Set to true if this input method supports ways to switch to
2466             a next input method (e.g. a globe key.). When this is true and
2467             InputMethodManager#shouldOfferSwitchingToNextInputMethod() returns true,
2468             the IME has to offer ways to invoke InputMethodManager#switchToNextInputMethod()
2469             accordingly.
2470             <p> Note that the system determines the most appropriate next input method
2471             and subtype in order to provide the consistent user experience in switching
2472             between IMEs and subtypes. -->
2473        <attr name="supportsSwitchingToNextInputMethod" format="boolean" />
2474    </declare-styleable>
2475
2476    <!-- This is the subtype of InputMethod. Subtype can describe locales (e.g. en_US, fr_FR...)
2477         and modes (e.g. voice, keyboard...), and is used for IME switch. This subtype allows
2478         the system to call the specified subtype of the IME directly. -->
2479    <declare-styleable name="InputMethod_Subtype">
2480        <!-- The name of the subtype. -->
2481        <attr name="label" />
2482        <!-- The icon of the subtype. -->
2483        <attr name="icon" />
2484        <!-- The locale of the subtype. This string should be a locale (e.g. en_US, fr_FR...)
2485             and will be passed to the IME when the framework calls the IME
2486             with the subtype. This is also used by the framework to know the supported locales
2487             of the IME.  -->
2488        <attr name="imeSubtypeLocale" format="string" />
2489        <!-- The mode of the subtype. This string can be a mode (e.g. voice, keyboard...) and this
2490             string will be passed to the IME when the framework calls the IME with the
2491             subtype.  -->
2492        <attr name="imeSubtypeMode" format="string" />
2493        <!-- Set true if the subtype is auxiliary.  An auxiliary subtype won't be shown in the
2494             input method selection list in the settings app.
2495             InputMethodManager#switchToLastInputMethod will ignore auxiliary subtypes when it
2496             chooses a target subtype. -->
2497        <attr name="isAuxiliary" format="boolean" />
2498        <!-- Set true when this subtype should be selected by default if no other subtypes are
2499             selected explicitly. Note that a subtype with this parameter being true will
2500             not be shown in the subtypes list. -->
2501        <attr name="overridesImplicitlyEnabledSubtype" format="boolean" />
2502        <!-- The extra value of the subtype. This string can be any string and will be passed to
2503             the IME when the framework calls the IME with the subtype.  -->
2504        <attr name="imeSubtypeExtraValue" format="string" />
2505        <!-- The unique id for the subtype. The input method framework keeps track of enabled
2506             subtypes by ID. When the IME package gets upgraded, enabled IDs will stay enabled even
2507             if other attributes are different. If the ID is unspecified (by calling the other
2508             constructor or 0. Arrays.hashCode(new Object[] {locale, mode, extraValue,
2509             isAuxiliary, overridesImplicitlyEnabledSubtype}) will be used instead. -->
2510        <attr name="subtypeId" format="integer"/>
2511        <!-- Set to true if this subtype is ASCII capable. If the subtype is ASCII
2512             capable, it should guarantee that the user can input ASCII characters with
2513             this subtype. This is important because many password fields only allow
2514             ASCII-characters. -->
2515        <attr name="isAsciiCapable" format="boolean" />
2516    </declare-styleable>
2517
2518    <!-- Use <code>spell-checker</code> as the root tag of the XML resource that
2519         describes an
2520         {@link android.service.textservice.SpellCheckerService} service, which is
2521         referenced from its
2522         {@link android.view.textservice.SpellCheckerSession#SERVICE_META_DATA}
2523         meta-data entry.  Described here are the attributes that can be
2524         included in that tag. -->
2525    <declare-styleable name="SpellChecker">
2526        <!-- The name of the spell checker. -->
2527        <attr name="label" />
2528        <!-- Component name of an activity that allows the user to modify
2529             the settings for this service. -->
2530        <attr name="settingsActivity"/>
2531    </declare-styleable>
2532
2533    <!-- This is the subtype of the spell checker. Subtype can describe locales (e.g. en_US, fr_FR...) -->
2534    <declare-styleable name="SpellChecker_Subtype">
2535        <!-- The name of the subtype. -->
2536        <attr name="label" />
2537        <!-- The locale of the subtype. This string should be a locale (e.g. en_US, fr_FR...)
2538             This is also used by the framework to know the supported locales
2539             of the spell checker.  -->
2540        <attr name="subtypeLocale" format="string" />
2541        <!-- The extra value of the subtype. This string can be any string and will be passed to
2542             the SpellChecker.  -->
2543        <attr name="subtypeExtraValue" format="string" />
2544    </declare-styleable>
2545
2546    <!-- Use <code>accessibility-service</code> as the root tag of the XML resource that
2547         describes an {@link android.accessibilityservice.AccessibilityService} service,
2548         which is referenced from its
2549         {@link android.accessibilityservice.AccessibilityService#SERVICE_META_DATA}
2550         meta-data entry. -->
2551    <declare-styleable name="AccessibilityService">
2552        <!-- The event types this serivce would like to receive as specified in
2553             {@link android.view.accessibility.AccessibilityEvent}. This setting
2554             can be changed at runtime by calling
2555             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2556             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2557        <attr name="accessibilityEventTypes">
2558            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_CLICKED} events.-->
2559            <flag name="typeViewClicked" value="0x00000001" />
2560            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_LONG_CLICKED} events. -->
2561            <flag name="typeViewLongClicked" value="0x00000002" />
2562            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_SELECTED} events. -->
2563            <flag name="typeViewSelected" value="0x00000004" />
2564            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_FOCUSED} events. -->
2565            <flag name="typeViewFocused" value="0x00000008" />
2566            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED} events. -->
2567            <flag name="typeViewTextChanged" value="0x00000010" />
2568            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED} events. -->
2569            <flag name="typeWindowStateChanged" value="0x00000020" />
2570            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED} events. -->
2571            <flag name="typeNotificationStateChanged" value="0x00000040" />
2572            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_HOVER_ENTER} events. -->
2573            <flag name="typeViewHoverEnter" value="0x00000080" />
2574            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_HOVER_EXIT} events. -->
2575            <flag name="typeViewHoverExit" value="0x00000100" />
2576            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START} events. -->
2577            <flag name="typeTouchExplorationGestureStart" value="0x00000200" />
2578            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END} events. -->
2579            <flag name="typeTouchExplorationGestureEnd" value="0x00000400" />
2580            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED} events. -->
2581            <flag name="typeWindowContentChanged" value="0x00000800" />
2582            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_SCROLLED} events. -->
2583            <flag name="typeViewScrolled" value="0x000001000" />
2584            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED} events. -->
2585            <flag name="typeViewTextSelectionChanged" value="0x000002000" />
2586            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPES_ALL_MASK} i.e. all events. -->
2587            <flag name="typeAllMask" value="0xffffffff" />
2588        </attr>
2589        <!-- Comma separated package names from which this serivce would like to receive events (leave out for all packages).
2590             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2591             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2592        <attr name="packageNames" format="string" />
2593        <!-- The feedback types this serivce provides as specified in
2594             {@link android.accessibilityservice.AccessibilityServiceInfo}. This setting
2595             can be changed at runtime by calling
2596             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2597             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2598        <attr name="accessibilityFeedbackType">
2599            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_SPOKEN} feedback. -->
2600            <flag name="feedbackSpoken" value="0x00000001" />
2601            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_HAPTIC} feedback. -->
2602            <flag name="feedbackHaptic" value="0x00000002" />
2603            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_AUDIBLE} feedback. -->
2604            <flag name="feedbackAudible" value="0x00000004" />
2605            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_VISUAL} feedback. -->
2606            <flag name="feedbackVisual" value="0x00000008" />
2607            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_GENERIC} feedback. -->
2608            <flag name="feedbackGeneric" value="0x00000010" />
2609            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_ALL_MASK} feedback. -->
2610            <flag name="feedbackAllMask" value="0xffffffff" />
2611        </attr>
2612        <!-- The minimal period in milliseconds between two accessibility events of the same type
2613             are sent to this serivce. This setting can be changed at runtime by calling
2614             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2615             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2616        <attr name="notificationTimeout" format="integer" />
2617        <!-- Additional flags as specified in
2618             {@link android.accessibilityservice.AccessibilityServiceInfo}.
2619             This setting can be changed at runtime by calling
2620             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2621             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2622        <attr name="accessibilityFlags">
2623            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#DEFAULT} -->
2624            <flag name="flagDefault" value="0x00000001" />
2625            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_INCLUDE_NOT_IMPORTANT_VIEWS} -->
2626            <flag name="flagIncludeNotImportantViews" value="0x00000002" />
2627            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE} -->
2628            <flag name="flagRequestTouchExplorationMode" value="0x00000004" />
2629            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY} -->
2630            <flag name="flagRequestEnhancedWebAccessibility" value="0x00000008" />
2631            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REPORT_VIEW_IDS} -->
2632            <flag name="flagReportViewIds" value="0x00000010" />
2633            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS} -->
2634            <flag name="flagRequestFilterKeyEvents" value="0x00000020" />
2635        </attr>
2636        <!-- Component name of an activity that allows the user to modify
2637             the settings for this service. This setting cannot be changed at runtime. -->
2638        <attr name="settingsActivity" />
2639        <!-- Attribute whether the accessibility service wants to be able to retrieve the
2640             active window content. This setting cannot be changed at runtime. -->
2641        <attr name="canRetrieveWindowContent" format="boolean" />
2642        <!-- Attribute whether the accessibility service wants to be able to request touch
2643             exploration mode in which touched items are spoken aloud and the UI can be
2644             explored via gestures.
2645             <p>
2646             Required to allow setting the {@link android.accessibilityservice
2647             #AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE} flag.
2648             </p>
2649         -->
2650        <attr name="canRequestTouchExplorationMode" format="boolean" />
2651        <!-- Attribute whether the accessibility service wants to be able to request enhanced
2652             web accessibility enhancements. For example, installing scripts to make app
2653             content more accessible.
2654             <p>
2655             Required to allow setting the {@link android.accessibilityservice
2656             #AccessibilityServiceInfo#FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY} flag.
2657             </p>
2658         -->
2659        <attr name="canRequestEnhancedWebAccessibility" format="boolean" />
2660        <!-- Attribute whether the accessibility service wants to be able to request to
2661             filter key events.
2662             <p>
2663             Required to allow setting the {@link android.accessibilityservice
2664             #AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS} flag.
2665             </p>
2666         -->
2667        <attr name="canRequestFilterKeyEvents" format="boolean" />
2668        <!-- Short description of the accessibility serivce purpose or behavior.-->
2669        <attr name="description" />
2670    </declare-styleable>
2671
2672    <!-- Use <code>print-service</code> as the root tag of the XML resource that
2673         describes an {@link android.printservice.PrintService} service, which is
2674         referenced from its {@link android.printservice.PrintService#SERVICE_META_DATA}
2675         meta-data entry. -->
2676    <declare-styleable name="PrintService">
2677        <!-- Fully qualified class name of an activity that allows the user to modify
2678             the settings for this service. -->
2679        <attr name="settingsActivity" />
2680        <!-- Fully qualified class name of an activity that allows the user to manually
2681             add printers to this print service. -->
2682        <attr name="addPrintersActivity" format="string"/>
2683        <!-- Fully qualified class name of an activity with advanced print options
2684             specific to this print service. -->
2685        <attr name="advancedPrintOptionsActivity" format="string"/>
2686        <!-- The vendor name if this print service is vendor specific. -->
2687        <attr name="vendor" format="string"/>
2688    </declare-styleable>
2689
2690    <!-- Use <code>host-apdu-service</code> as the root tag of the XML resource that
2691         describes an {@link android.nfc.cardemulation.HostApduService} service, which
2692         is referenced from its {@link android.nfc.cardemulation.HostApduService#SERVICE_META_DATA}
2693         entry. -->
2694    <declare-styleable name="HostApduService">
2695        <!-- Short description of the functionality the service implements. This attribute
2696             is mandatory.-->
2697        <attr name="description" />
2698        <!-- Whether the device must be unlocked before routing data to this service.
2699             The default is false.-->
2700        <attr name="requireDeviceUnlock" format="boolean"/>
2701        <!-- A drawable that can be rendered in Android's system UI for representing
2702             the service. -->
2703        <attr name="apduServiceBanner" format="reference"/>
2704    </declare-styleable>
2705
2706    <!-- Use <code>offhost-apdu-service</code> as the root tag of the XML resource that
2707         describes an {@link android.nfc.cardemulation.OffHostApduService}
2708         service, which is referenced from its
2709         {@link android.nfc.cardemulation.OffHostApduService#SERVICE_META_DATA} entry. -->
2710    <declare-styleable name="OffHostApduService">
2711        <!-- Short description of the functionality the service implements. This attribute
2712             is mandatory.-->
2713        <attr name="description" />
2714        <!-- A drawable that can be rendered in Android's system UI for representing
2715             the service. -->
2716        <attr name="apduServiceBanner"/>
2717    </declare-styleable>
2718
2719    <!-- Specify one or more <code>aid-group</code> elements inside a
2720         <code>host-apdu-service</code> or <code>offhost-apdu-service</code>
2721         element to define a group of ISO7816 Application ID (AIDs) that
2722         your service can handle.-->
2723    <declare-styleable name="AidGroup">
2724        <!-- Short description of what the AID group implements. This attribute is mandatory.-->
2725        <attr name="description" />
2726        <!-- The category attribute will be used by the Android platform to present
2727             multiple applications that register ISO 7816 Application IDs (AIDs) in the
2728             same category uniformly.
2729             Additionally, when a category is specified, Android will ensure that either
2730             all AIDs in this group are routed to this application, or none at all.
2731             This attribute is optional.-->
2732        <attr name="category" format="string" />
2733    </declare-styleable>
2734
2735    <!-- Specify one or more <code>aid-filter</code> elements inside a
2736         <code>aid-group</code> element to specify an ISO7816 Application ID (AID)
2737         your service can handle. -->
2738    <declare-styleable name="AidFilter">
2739        <!-- The ISO7816 Application ID. This attribute is mandatory. -->
2740        <attr name="name" />
2741    </declare-styleable>
2742
2743    <declare-styleable name="ActionMenuItemView">
2744        <attr name="minWidth" />
2745    </declare-styleable>
2746
2747    <!-- =============================== -->
2748    <!-- Widget package class attributes -->
2749    <!-- =============================== -->
2750    <eat-comment />
2751
2752    <declare-styleable name="AbsListView">
2753         <!-- Drawable used to indicate the currently selected item in the list. -->
2754        <attr name="listSelector" format="color|reference" />
2755        <!-- When set to true, the selector will be drawn over the selected item.
2756             Otherwise the selector is drawn behind the selected item. The default
2757             value is false. -->
2758        <attr name="drawSelectorOnTop" format="boolean" />
2759        <!-- Used by ListView and GridView to stack their content from the bottom. -->
2760        <attr name="stackFromBottom" format="boolean" />
2761        <!-- When set to true, the list uses a drawing cache during scrolling.
2762             This makes the rendering faster but uses more memory. The default
2763             value is true. -->
2764        <attr name="scrollingCache" format="boolean" />
2765        <!-- When set to true, the list will filter results as the user types. The
2766             List's adapter must support the Filterable interface for this to work. -->
2767        <attr name="textFilterEnabled" format="boolean" />
2768        <!-- Sets the transcript mode for the list. In transcript mode, the list
2769             scrolls to the bottom to make new items visible when they are added. -->
2770        <attr name="transcriptMode">
2771            <!-- Disables transcript mode. This is the default value. -->
2772            <enum name="disabled" value="0"/>
2773            <!-- The list will automatically scroll to the bottom when
2774                 a data set change notification is received and only if the last item is
2775                 already visible on screen. -->
2776            <enum name="normal" value="1" />
2777            <!-- The list will automatically scroll to the bottom, no matter what items
2778                 are currently visible. -->
2779            <enum name="alwaysScroll" value="2" />
2780        </attr>
2781        <!-- Indicates that this list will always be drawn on top of solid, single-color
2782             opaque background. This allows the list to optimize drawing. -->
2783        <attr name="cacheColorHint" format="color" />
2784        <!-- Enables the fast scroll thumb that can be dragged to quickly scroll through
2785             the list. -->
2786        <attr name="fastScrollEnabled" format="boolean" />
2787        <!-- Specifies the style of the fast scroll decorations. -->
2788        <attr name="fastScrollStyle" format="reference" />
2789        <!-- When set to true, the list will use a more refined calculation
2790             method based on the pixels height of the items visible on screen. This
2791             property is set to true by default but should be set to false if your adapter
2792             will display items of varying heights. When this property is set to true and
2793             your adapter displays items of varying heights, the scrollbar thumb will
2794             change size as the user scrolls through the list. When set to fale, the list
2795             will use only the number of items in the adapter and the number of items visible
2796             on screen to determine the scrollbar's properties. -->
2797        <attr name="smoothScrollbar" format="boolean" />
2798        <!-- Defines the choice behavior for the view. By default, lists do not have
2799             any choice behavior. By setting the choiceMode to singleChoice, the list
2800             allows up to one item to be in a chosen state. By setting the choiceMode to
2801             multipleChoice, the list allows any number of items to be chosen.
2802             Finally, by setting the choiceMode to multipleChoiceModal the list allows
2803             any number of items to be chosen in a special selection mode.
2804             The application will supply a
2805             {@link android.widget.AbsListView.MultiChoiceModeListener} using
2806             {@link android.widget.AbsListView#setMultiChoiceModeListener} to control the
2807             selection mode. This uses the {@link android.view.ActionMode} API. -->
2808        <attr name="choiceMode">
2809            <!-- Normal list that does not indicate choices. -->
2810            <enum name="none" value="0" />
2811            <!-- The list allows up to one choice. -->
2812            <enum name="singleChoice" value="1" />
2813            <!-- The list allows multiple choices. -->
2814            <enum name="multipleChoice" value="2" />
2815            <!-- The list allows multiple choices in a custom selection mode. -->
2816            <enum name="multipleChoiceModal" value="3" />
2817        </attr>
2818
2819        <!-- When set to true, the list will always show the fast scroll interface.
2820             This setting implies fastScrollEnabled. -->
2821        <attr name="fastScrollAlwaysVisible" format="boolean" />
2822    </declare-styleable>
2823    <declare-styleable name="AbsSpinner">
2824        <!-- Reference to an array resource that will populate the Spinner.  For static content,
2825             this is simpler than populating the Spinner programmatically. -->
2826        <attr name="entries" />
2827    </declare-styleable>
2828    <declare-styleable name="AnalogClock">
2829        <attr name="dial" format="reference"/>
2830        <attr name="hand_hour" format="reference"/>
2831        <attr name="hand_minute" format="reference"/>
2832    </declare-styleable>
2833    <declare-styleable name="Button">
2834    </declare-styleable>
2835    <declare-styleable name="Chronometer">
2836        <!-- Format string: if specified, the Chronometer will display this
2837             string, with the first "%s" replaced by the current timer value
2838             in "MM:SS" or "H:MM:SS" form.
2839             If no format string is specified, the Chronometer will simply display
2840             "MM:SS" or "H:MM:SS". -->
2841        <attr name="format" format="string" localization="suggested" />
2842    </declare-styleable>
2843    <declare-styleable name="CompoundButton">
2844        <!-- Indicates the initial checked state of this button. -->
2845        <attr name="checked" format="boolean" />
2846        <!-- Drawable used for the button graphic (e.g. checkbox, radio button, etc). -->
2847        <attr name="button" format="reference"/>
2848    </declare-styleable>
2849    <declare-styleable name="CheckedTextView">
2850        <!-- Indicates the initial checked state of this text. -->
2851        <attr name="checked" />
2852        <!-- Drawable used for the check mark graphic. -->
2853        <attr name="checkMark" format="reference"/>
2854    </declare-styleable>
2855    <declare-styleable name="EditText">
2856    </declare-styleable>
2857    <declare-styleable name="FastScroll">
2858        <!-- Drawable used for the scroll bar thumb. -->
2859        <attr name="thumbDrawable" format="reference" />
2860        <!-- Minimum width of the thumb. -->
2861        <attr name="thumbMinWidth" format="dimension" />
2862        <!-- Minimum height of the thumb. -->
2863        <attr name="thumbMinHeight" format="dimension" />
2864        <!-- Drawable used for the scroll bar track. -->
2865        <attr name="trackDrawable" format="reference" />
2866        <!-- Drawable used for the section header preview when right-aligned. -->
2867        <attr name="backgroundRight" format="reference" />
2868        <!-- Drawable used for the section header preview when left-aligned. -->
2869        <attr name="backgroundLeft" format="reference" />
2870        <!-- Position of section header preview. -->
2871        <attr name="position">
2872            <!-- Floating at the top of the content. -->
2873            <enum name="floating" value="0" />
2874            <!-- Pinned alongside the thumb. -->
2875            <enum name="atThumb" value="1" />
2876        </attr>
2877        <attr name="textAppearance" />
2878        <attr name="textColor" />
2879        <attr name="textSize" />
2880        <!-- Minimum width of the section header preview. -->
2881        <attr name="minWidth" />
2882        <!-- Minimum height of the section header preview. -->
2883        <attr name="minHeight" />
2884        <!-- Padding for the section header preview. -->
2885        <attr name="padding" />
2886    </declare-styleable>
2887    <declare-styleable name="FrameLayout">
2888        <!-- Defines the drawable to draw over the content. This can be used as an overlay.
2889             The foreground drawable participates in the padding of the content if the gravity
2890             is set to fill. -->
2891        <attr name="foreground" format="reference|color" />
2892        <!-- Defines the gravity to apply to the foreground drawable. The gravity defaults
2893             to fill. -->
2894        <attr name="foregroundGravity">
2895            <!-- Push object to the top of its container, not changing its size. -->
2896            <flag name="top" value="0x30" />
2897            <!-- Push object to the bottom of its container, not changing its size. -->
2898            <flag name="bottom" value="0x50" />
2899            <!-- Push object to the left of its container, not changing its size. -->
2900            <flag name="left" value="0x03" />
2901            <!-- Push object to the right of its container, not changing its size. -->
2902            <flag name="right" value="0x05" />
2903            <!-- Place object in the vertical center of its container, not changing its size. -->
2904            <flag name="center_vertical" value="0x10" />
2905            <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
2906            <flag name="fill_vertical" value="0x70" />
2907            <!-- Place object in the horizontal center of its container, not changing its size. -->
2908            <flag name="center_horizontal" value="0x01" />
2909            <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
2910            <flag name="fill_horizontal" value="0x07" />
2911            <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
2912            <flag name="center" value="0x11" />
2913            <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
2914            <flag name="fill" value="0x77" />
2915            <!-- Additional option that can be set to have the top and/or bottom edges of
2916                 the child clipped to its container's bounds.
2917                 The clip will be based on the vertical gravity: a top gravity will clip the bottom
2918                 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
2919            <flag name="clip_vertical" value="0x80" />
2920            <!-- Additional option that can be set to have the left and/or right edges of
2921                 the child clipped to its container's bounds.
2922                 The clip will be based on the horizontal gravity: a left gravity will clip the right
2923                 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
2924            <flag name="clip_horizontal" value="0x08" />
2925        </attr>
2926        <!-- Defines whether the foreground drawable should be drawn inside the padding.
2927             This property is turned on by default. -->
2928        <attr name="foregroundInsidePadding" format="boolean" />
2929        <!-- Determines whether to measure all children or just those in
2930             the VISIBLE or INVISIBLE state when measuring. Defaults to false. -->
2931        <attr name="measureAllChildren" format="boolean" />
2932    </declare-styleable>
2933    <declare-styleable name="ExpandableListView">
2934        <!-- Indicator shown beside the group View. This can be a stateful Drawable. -->
2935        <attr name="groupIndicator" format="reference" />
2936        <!-- Indicator shown beside the child View. This can be a stateful Drawable. -->
2937        <attr name="childIndicator" format="reference" />
2938        <!-- The left bound for an item's indicator. To specify a left bound specific to children,
2939             use childIndicatorLeft. -->
2940        <attr name="indicatorLeft" format="dimension" />
2941        <!-- The right bound for an item's indicator. To specify a right bound specific to children,
2942             use childIndicatorRight. -->
2943        <attr name="indicatorRight" format="dimension" />
2944        <!-- The left bound for a child's indicator. -->
2945        <attr name="childIndicatorLeft" format="dimension" />
2946        <!-- The right bound for a child's indicator. -->
2947        <attr name="childIndicatorRight" format="dimension" />
2948        <!-- Drawable or color that is used as a divider for children. (It will drawn
2949             below and above child items.) The height of this will be the same as
2950             the height of the normal list item divider. -->
2951        <attr name="childDivider" format="reference|color" />
2952        <!-- The start bound for an item's indicator. To specify a start bound specific to children,
2953             use childIndicatorStart. -->
2954        <attr name="indicatorStart" format="dimension" />
2955        <!-- The end bound for an item's indicator. To specify a right bound specific to children,
2956             use childIndicatorEnd. -->
2957        <attr name="indicatorEnd" format="dimension" />
2958        <!-- The start bound for a child's indicator. -->
2959        <attr name="childIndicatorStart" format="dimension" />
2960        <!-- The end bound for a child's indicator. -->
2961        <attr name="childIndicatorEnd" format="dimension" />
2962    </declare-styleable>
2963    <declare-styleable name="Gallery">
2964        <attr name="gravity" />
2965        <!-- Sets how long a transition animation should run (in milliseconds)
2966             when layout has changed.  Only relevant if animation is turned on. -->
2967        <attr name="animationDuration" format="integer" min="0" />
2968        <attr name="spacing" format="dimension" />
2969        <!-- Sets the alpha on the items that are not selected. -->
2970        <attr name="unselectedAlpha" format="float" />
2971    </declare-styleable>
2972    <declare-styleable name="GridView">
2973        <!-- Defines the default horizontal spacing between columns. -->
2974        <attr name="horizontalSpacing" format="dimension" />
2975        <!-- Defines the default vertical spacing between rows. -->
2976        <attr name="verticalSpacing" format="dimension" />
2977        <!-- Defines how columns should stretch to fill the available empty space, if any. -->
2978        <attr name="stretchMode">
2979            <!-- Stretching is disabled. -->
2980            <enum name="none" value="0"/>
2981            <!-- The spacing between each column is stretched. -->
2982            <enum name="spacingWidth" value="1" />
2983            <!-- Each column is stretched equally. -->
2984            <enum name="columnWidth" value="2" />
2985            <!-- The spacing between each column is uniformly stretched.. -->
2986            <enum name="spacingWidthUniform" value="3" />
2987        </attr>
2988        <!-- Specifies the fixed width for each column. -->
2989        <attr name="columnWidth" format="dimension" />
2990        <!-- Defines how many columns to show. -->
2991        <attr name="numColumns" format="integer" min="0">
2992            <!-- Display as many columns as possible to fill the available space. -->
2993            <enum name="auto_fit" value="-1" />
2994        </attr>
2995        <!-- Specifies the gravity within each cell. -->
2996        <attr name="gravity" />
2997    </declare-styleable>
2998    <declare-styleable name="ImageSwitcher">
2999    </declare-styleable>
3000    <declare-styleable name="ImageView">
3001        <!-- Sets a drawable as the content of this ImageView. -->
3002        <attr name="src" format="reference|color" />
3003        <!-- Controls how the image should be resized or moved to match the size
3004             of this ImageView. -->
3005        <attr name="scaleType">
3006            <enum name="matrix" value="0" />
3007            <enum name="fitXY" value="1" />
3008            <enum name="fitStart" value="2" />
3009            <enum name="fitCenter" value="3" />
3010            <enum name="fitEnd" value="4" />
3011            <enum name="center" value="5" />
3012            <enum name="centerCrop" value="6" />
3013            <enum name="centerInside" value="7" />
3014        </attr>
3015        <!-- Set this to true if you want the ImageView to adjust its bounds
3016             to preserve the aspect ratio of its drawable. -->
3017        <attr name="adjustViewBounds" format="boolean" />
3018        <!-- An optional argument to supply a maximum width for this view.
3019             See {see android.widget.ImageView#setMaxWidth} for details. -->
3020        <attr name="maxWidth" format="dimension" />
3021        <!-- An optional argument to supply a maximum height for this view.
3022             See {see android.widget.ImageView#setMaxHeight} for details. -->
3023        <attr name="maxHeight" format="dimension" />
3024        <!-- Set a tinting color for the image. -->
3025        <attr name="tint" format="color" />
3026        <!-- If true, the image view will be baseline aligned with based on its
3027             bottom edge. -->
3028        <attr name="baselineAlignBottom" format="boolean" />
3029         <!-- If true, the image will be cropped to fit within its padding. -->
3030        <attr name="cropToPadding" format="boolean" />
3031        <!-- The offset of the baseline within this view. See {see android.view.View#getBaseline}
3032             for details -->
3033        <attr name="baseline" format="dimension" />
3034        <!-- @hide The alpha value (0-255) set on the ImageView's drawable. Equivalent
3035             to calling ImageView.setAlpha(int), not the same as View.setAlpha(float). -->
3036        <attr name="drawableAlpha" format="integer" />
3037    </declare-styleable>
3038    <declare-styleable name="ToggleButton">
3039        <!-- The text for the button when it is checked. -->
3040        <attr name="textOn" format="string" />
3041        <!-- The text for the button when it is not checked. -->
3042        <attr name="textOff" format="string" />
3043        <!-- The alpha to apply to the indicator when disabled. -->
3044        <attr name="disabledAlpha" />
3045    </declare-styleable>
3046    <declare-styleable name="RelativeLayout">
3047        <attr name="gravity" />
3048        <!-- Indicates what view should not be affected by gravity. -->
3049        <attr name="ignoreGravity" format="reference" />
3050    </declare-styleable>
3051    <declare-styleable name="LinearLayout">
3052        <!-- Should the layout be a column or a row?  Use "horizontal"
3053             for a row, "vertical" for a column.  The default is
3054             horizontal. -->
3055        <attr name="orientation" />
3056        <attr name="gravity" />
3057        <!-- When set to false, prevents the layout from aligning its children's
3058             baselines. This attribute is particularly useful when the children
3059             use different values for gravity. The default value is true. -->
3060        <attr name="baselineAligned" format="boolean" />
3061        <!-- When a linear layout is part of another layout that is baseline
3062          aligned, it can specify which of its children to baseline align to
3063          (that is, which child TextView).-->
3064        <attr name="baselineAlignedChildIndex" format="integer" min="0"/>
3065        <!-- Defines the maximum weight sum. If unspecified, the sum is computed
3066             by adding the layout_weight of all of the children. This can be
3067             used for instance to give a single child 50% of the total available
3068             space by giving it a layout_weight of 0.5 and setting the weightSum
3069             to 1.0. -->
3070        <attr name="weightSum" format="float" />
3071        <!-- When set to true, all children with a weight will be considered having
3072             the minimum size of the largest child. If false, all children are
3073             measured normally. -->
3074        <attr name="measureWithLargestChild" format="boolean" />
3075        <!-- Drawable to use as a vertical divider between buttons. -->
3076        <attr name="divider" />
3077        <!-- Setting for which dividers to show. -->
3078        <attr name="showDividers">
3079            <flag name="none" value="0" />
3080            <flag name="beginning" value="1" />
3081            <flag name="middle" value="2" />
3082            <flag name="end" value="4" />
3083        </attr>
3084        <!-- Size of padding on either end of a divider. -->
3085        <attr name="dividerPadding" format="dimension" />
3086    </declare-styleable>
3087    <declare-styleable name="GridLayout">
3088        <!-- The orientation property is not used during layout. It is only used to
3089        allocate row and column parameters when they are not specified by its children's
3090        layout paramters. GridLayout works like LinearLayout in this case;
3091        putting all the components either in a single row or in a single column -
3092        depending on the value of this flag. In the horizontal case, a columnCount
3093        property may be additionally supplied to force new rows to be created when a
3094        row is full. The rowCount attribute may be used similarly in the vertical case.
3095        The default is horizontal. -->
3096        <attr name="orientation" />
3097        <!-- The maxmimum number of rows to create when automatically positioning children. -->
3098        <attr name="rowCount" format="integer" />
3099        <!-- The maxmimum number of columns to create when automatically positioning children. -->
3100        <attr name="columnCount" format="integer" />
3101        <!-- When set to true, tells GridLayout to use default margins when none are specified
3102        in a view's layout parameters.
3103        The default value is false.
3104        See {@link android.widget.GridLayout#setUseDefaultMargins(boolean)}.-->
3105        <attr name="useDefaultMargins" format="boolean" />
3106        <!-- When set to alignMargins, causes alignment to take place between the outer
3107        boundary of a view, as defined by its margins. When set to alignBounds,
3108        causes alignment to take place between the edges of the view.
3109        The default is alignMargins.
3110        See {@link android.widget.GridLayout#setAlignmentMode(int)}.-->
3111        <attr name="alignmentMode" />
3112        <!-- When set to true, forces row boundaries to appear in the same order
3113        as row indices.
3114        The default is true.
3115        See {@link android.widget.GridLayout#setRowOrderPreserved(boolean)}.-->
3116        <attr name="rowOrderPreserved" format="boolean" />
3117        <!-- When set to true, forces column boundaries to appear in the same order
3118        as column indices.
3119        The default is true.
3120        See {@link android.widget.GridLayout#setColumnOrderPreserved(boolean)}.-->
3121        <attr name="columnOrderPreserved" format="boolean" />
3122    </declare-styleable>
3123    <declare-styleable name="ListView">
3124        <!-- Reference to an array resource that will populate the ListView.  For static content,
3125             this is simpler than populating the ListView programmatically. -->
3126        <attr name="entries" />
3127        <!-- Drawable or color to draw between list items. -->
3128        <attr name="divider" format="reference|color" />
3129        <!-- Height of the divider. Will use the intrinsic height of the divider if this
3130             is not specified. -->
3131        <attr name="dividerHeight" format="dimension" />
3132        <!-- When set to false, the ListView will not draw the divider after each header view.
3133             The default value is true. -->
3134        <attr name="headerDividersEnabled" format="boolean" />
3135        <!-- When set to false, the ListView will not draw the divider before each footer view.
3136             The default value is true. -->
3137        <attr name="footerDividersEnabled" format="boolean" />
3138        <!-- Drawable to draw above list content. -->
3139        <attr name="overScrollHeader" format="reference|color" />
3140        <!-- Drawable to draw below list content. -->
3141        <attr name="overScrollFooter" format="reference|color" />
3142    </declare-styleable>
3143    <declare-styleable name="PreferenceFrameLayout">
3144        <!-- Padding to use at the top of the prefs content. -->
3145        <attr name="borderTop" format="dimension" />
3146        <!-- Padding to use at the bottom of the prefs content. -->
3147        <attr name="borderBottom" format="dimension" />
3148        <!-- Padding to use at the left of the prefs content. -->
3149        <attr name="borderLeft" format="dimension" />
3150        <!-- Padding to use at the right of the prefs content. -->
3151        <attr name="borderRight" format="dimension" />
3152    </declare-styleable>
3153    <declare-styleable name="PreferenceFrameLayout_Layout">
3154        <!-- Padding to use at the top of the prefs content. -->
3155        <attr name="layout_removeBorders" format="boolean" />
3156    </declare-styleable>
3157    <declare-styleable name="MenuView">
3158        <!-- Default appearance of menu item text. -->
3159        <attr name="itemTextAppearance" format="reference" />
3160        <!-- Default horizontal divider between rows of menu items. -->
3161        <attr name="horizontalDivider" format="reference" />
3162        <!-- Default vertical divider between menu items. -->
3163        <attr name="verticalDivider" format="reference" />
3164        <!-- Default background for the menu header. -->
3165        <attr name="headerBackground" format="color|reference" />
3166        <!-- Default background for each menu item. -->
3167        <attr name="itemBackground" format="color|reference" />
3168        <!-- Default animations for the menu. -->
3169        <attr name="windowAnimationStyle" />
3170        <!-- Default disabled icon alpha for each menu item that shows an icon. -->
3171        <attr name="itemIconDisabledAlpha" format="float" />
3172        <!-- Whether space should be reserved in layout when an icon is missing. -->
3173        <attr name="preserveIconSpacing" format="boolean" />
3174    </declare-styleable>
3175    <declare-styleable name="IconMenuView">
3176        <!-- Defines the height of each row. -->
3177        <attr name="rowHeight" format="dimension" />
3178        <!-- Defines the maximum number of rows displayed. -->
3179        <attr name="maxRows" format="integer" />
3180        <!-- Defines the maximum number of items per row. -->
3181        <attr name="maxItemsPerRow" format="integer" />
3182        <!-- Defines the maximum number of items to show. -->
3183        <attr name="maxItems" format="integer" />
3184        <!-- 'More' icon. -->
3185        <attr name="moreIcon" format="reference" />
3186    </declare-styleable>
3187
3188    <declare-styleable name="ProgressBar">
3189        <!-- Defines the maximum value the progress can take. -->
3190        <attr name="max" format="integer" />
3191        <!-- Defines the default progress value, between 0 and max. -->
3192        <attr name="progress" format="integer" />
3193        <!-- Defines the secondary progress value, between 0 and max. This progress is drawn between
3194             the primary progress and the background.  It can be ideal for media scenarios such as
3195             showing the buffering progress while the default progress shows the play progress. -->
3196        <attr name="secondaryProgress" format="integer" />
3197        <!-- Allows to enable the indeterminate mode. In this mode the progress
3198         bar plays an infinite looping animation. -->
3199        <attr name="indeterminate" format="boolean" />
3200        <!-- Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). -->
3201        <attr name="indeterminateOnly" format="boolean" />
3202        <!-- Drawable used for the indeterminate mode. -->
3203        <attr name="indeterminateDrawable" format="reference" />
3204        <!-- Drawable used for the progress mode. -->
3205        <attr name="progressDrawable" format="reference" />
3206        <!-- Duration of the indeterminate animation. -->
3207        <attr name="indeterminateDuration" format="integer" min="1" />
3208        <!-- Defines how the indeterminate mode should behave when the progress
3209        reaches max. -->
3210        <attr name="indeterminateBehavior">
3211            <!-- Progress starts over from 0. -->
3212            <enum name="repeat" value="1" />
3213            <!-- Progress keeps the current value and goes back to 0. -->
3214            <enum name="cycle" value="2" />
3215        </attr>
3216        <attr name="minWidth" format="dimension" />
3217        <attr name="maxWidth" />
3218        <attr name="minHeight" format="dimension" />
3219        <attr name="maxHeight" />
3220        <attr name="interpolator" format="reference" />
3221        <!-- Timeout between frames of animation in milliseconds
3222             {@deprecated Not used by the framework.} -->
3223        <attr name="animationResolution" format="integer" />
3224        <!-- Defines if the associated drawables need to be mirrored when in RTL mode.
3225             Default is false -->
3226        <attr name="mirrorForRtl" format="boolean" />
3227    </declare-styleable>
3228
3229    <declare-styleable name="SeekBar">
3230        <!-- Draws the thumb on a seekbar. -->
3231        <attr name="thumb" format="reference" />
3232        <!-- An offset for the thumb that allows it to extend out of the range of the track. -->
3233        <attr name="thumbOffset" format="dimension" />
3234    </declare-styleable>
3235
3236    <declare-styleable name="StackView">
3237        <!-- Color of the res-out outline. -->
3238        <attr name="resOutColor" format="color" />
3239        <!-- Color of the outline of click feedback. -->
3240        <attr name="clickColor" format="color" />
3241    </declare-styleable>
3242
3243    <declare-styleable name="RatingBar">
3244        <!-- The number of stars (or rating items) to show. -->
3245        <attr name="numStars" format="integer" />
3246        <!-- The rating to set by default. -->
3247        <attr name="rating" format="float" />
3248        <!-- The step size of the rating. -->
3249        <attr name="stepSize" format="float" />
3250        <!-- Whether this rating bar is an indicator (and non-changeable by the user). -->
3251        <attr name="isIndicator" format="boolean" />
3252    </declare-styleable>
3253
3254    <declare-styleable name="RadioGroup">
3255        <!-- The id of the child radio button that should be checked by default
3256             within this radio group. -->
3257        <attr name="checkedButton" format="integer" />
3258        <!-- Should the radio group be a column or a row?  Use "horizontal"
3259             for a row, "vertical" for a column.  The default is
3260             vertical. -->
3261        <attr name="orientation" />
3262    </declare-styleable>
3263    <declare-styleable name="TableLayout">
3264        <!-- The zero-based index of the columns to stretch. The column indices
3265             must be separated by a comma: 1, 2, 5. Illegal and duplicate
3266             indices are ignored. You can stretch all columns by using the
3267             value "*" instead. Note that a column can be marked stretchable
3268             and shrinkable at the same time. -->
3269        <attr name="stretchColumns" format="string" />
3270       <!-- The zero-based index of the columns to shrink. The column indices
3271             must be separated by a comma: 1, 2, 5. Illegal and duplicate
3272             indices are ignored. You can shrink all columns by using the
3273             value "*" instead. Note that a column can be marked stretchable
3274             and shrinkable at the same time. -->
3275        <attr name="shrinkColumns" format="string" />
3276        <!-- The zero-based index of the columns to collapse. The column indices
3277             must be separated by a comma: 1, 2, 5. Illegal and duplicate
3278             indices are ignored. -->
3279        <attr name="collapseColumns" format="string" />
3280    </declare-styleable>
3281    <declare-styleable name="TableRow">
3282
3283    </declare-styleable>
3284    <declare-styleable name="TableRow_Cell">
3285        <!-- The index of the column in which this child should be. -->
3286        <attr name="layout_column" format="integer" />
3287        <!-- Defines how many columns this child should span.  Must be >= 1.-->
3288        <attr name="layout_span" format="integer" />
3289    </declare-styleable>
3290    <declare-styleable name="TabWidget">
3291        <!-- Drawable used to draw the divider between tabs. -->
3292        <attr name="divider" />
3293        <!-- Determines whether the strip under the tab indicators is drawn or not. -->
3294        <attr name="tabStripEnabled" format="boolean" />
3295        <!-- Drawable used to draw the left part of the strip underneath the tabs. -->
3296        <attr name="tabStripLeft" format="reference" />
3297        <!-- Drawable used to draw the right part of the strip underneath the tabs. -->
3298        <attr name="tabStripRight" format="reference" />
3299        <!-- Layout used to organize each tab's content. -->
3300        <attr name="tabLayout" format="reference" />
3301    </declare-styleable>
3302    <declare-styleable name="TextAppearance">
3303        <!-- Text color. -->
3304        <attr name="textColor" />
3305        <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
3306        <attr name="textSize" />
3307        <!-- Style (bold, italic, bolditalic) for the text. -->
3308        <attr name="textStyle" />
3309        <!-- Typeface (normal, sans, serif, monospace) for the text. -->
3310        <attr name="typeface" />
3311        <!-- Font family (named by string) for the text. -->
3312        <attr name="fontFamily" />
3313        <!-- Color of the text selection highlight. -->
3314        <attr name="textColorHighlight" />
3315        <!-- Color of the hint text. -->
3316        <attr name="textColorHint" />
3317        <!-- Color of the links. -->
3318        <attr name="textColorLink" />
3319        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
3320        <attr name="textAllCaps" format="boolean" />
3321        <!-- Place a shadow of the specified color behind the text. -->
3322        <attr name="shadowColor" format="color" />
3323        <!-- Horizontal offset of the shadow. -->
3324        <attr name="shadowDx" format="float" />
3325        <!-- Vertical offset of the shadow. -->
3326        <attr name="shadowDy" format="float" />
3327        <!-- Radius of the shadow. -->
3328        <attr name="shadowRadius" format="float" />
3329    </declare-styleable>
3330    <declare-styleable name="TextClock">
3331        <!-- Specifies the formatting pattern used to show the time and/or date
3332             in 12-hour mode. Please refer to {@link android.text.format.DateFormat}
3333             for a complete description of accepted formatting patterns.
3334             The default pattern is a locale-appropriate equivalent of "h:mm a". -->
3335        <attr name="format12Hour" format="string"/>
3336        <!-- Specifies the formatting pattern used to show the time and/or date
3337             in 24-hour mode. Please refer to {@link android.text.format.DateFormat}
3338             for a complete description of accepted formatting patterns.
3339             The default pattern is a locale-appropriate equivalent of "H:mm". -->
3340        <attr name="format24Hour" format="string"/>
3341        <!-- Specifies the time zone to use. When this attribute is specified, the
3342             TextClock will ignore the time zone of the system. To use the user's
3343             time zone, do not specify this attribute. The default value is the
3344             user's time zone. Please refer to {@link java.util.TimeZone} for more
3345             information about time zone ids. -->
3346        <attr name="timeZone" format="string"/>
3347    </declare-styleable>
3348    <declare-styleable name="TextSwitcher">
3349    </declare-styleable>
3350    <declare-styleable name="TextView">
3351        <!-- Determines the minimum type that getText() will return.
3352             The default is "normal".
3353             Note that EditText and LogTextBox always return Editable,
3354             even if you specify something less powerful here. -->
3355        <attr name="bufferType">
3356            <!-- Can return any CharSequence, possibly a
3357             Spanned one if the source text was Spanned. -->
3358            <enum name="normal" value="0" />
3359            <!-- Can only return Spannable. -->
3360            <enum name="spannable" value="1" />
3361            <!-- Can only return Spannable and Editable. -->
3362            <enum name="editable" value="2" />
3363        </attr>
3364        <!-- Text to display. -->
3365        <attr name="text" format="string" localization="suggested" />
3366        <!-- Hint text to display when the text is empty. -->
3367        <attr name="hint" format="string" />
3368        <!-- Text color. -->
3369        <attr name="textColor" />
3370        <!-- Color of the text selection highlight. -->
3371        <attr name="textColorHighlight" />
3372        <!-- Color of the hint text. -->
3373        <attr name="textColorHint" />
3374        <!-- Base text color, typeface, size, and style. -->
3375        <attr name="textAppearance" />
3376        <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
3377        <attr name="textSize" />
3378        <!-- Sets the horizontal scaling factor for the text. -->
3379        <attr name="textScaleX" format="float" />
3380        <!-- Typeface (normal, sans, serif, monospace) for the text. -->
3381        <attr name="typeface" />
3382        <!-- Style (bold, italic, bolditalic) for the text. -->
3383        <attr name="textStyle" />
3384        <!-- Font family (named by string) for the text. -->
3385        <attr name="fontFamily" />
3386        <!-- Text color for links. -->
3387        <attr name="textColorLink" />
3388        <!-- Makes the cursor visible (the default) or invisible. -->
3389        <attr name="cursorVisible" format="boolean" />
3390        <!-- Makes the TextView be at most this many lines tall.
3391
3392        When used on an editable text, the <code>inputType</code> attribute's value must be
3393        combined with the <code>textMultiLine</code> flag for the maxLines attribute to apply. -->
3394        <attr name="maxLines" format="integer" min="0" />
3395        <!-- Makes the TextView be at most this many pixels tall. -->
3396        <attr name="maxHeight" />
3397        <!-- Makes the TextView be exactly this many lines tall. -->
3398        <attr name="lines" format="integer" min="0" />
3399        <!-- Makes the TextView be exactly this many pixels tall.
3400             You could get the same effect by specifying this number in the
3401             layout parameters. -->
3402        <attr name="height" format="dimension" />
3403        <!-- Makes the TextView be at least this many lines tall.
3404
3405        When used on an editable text, the <code>inputType</code> attribute's value must be
3406        combined with the <code>textMultiLine</code> flag for the minLines attribute to apply. -->
3407        <attr name="minLines" format="integer" min="0" />
3408        <!-- Makes the TextView be at least this many pixels tall. -->
3409        <attr name="minHeight" />
3410        <!-- Makes the TextView be at most this many ems wide. -->
3411        <attr name="maxEms" format="integer" min="0" />
3412        <!-- Makes the TextView be at most this many pixels wide. -->
3413        <attr name="maxWidth" />
3414        <!-- Makes the TextView be exactly this many ems wide. -->
3415        <attr name="ems" format="integer" min="0" />
3416        <!-- Makes the TextView be exactly this many pixels wide.
3417             You could get the same effect by specifying this number in the
3418             layout parameters. -->
3419        <attr name="width" format="dimension" />
3420        <!-- Makes the TextView be at least this many ems wide. -->
3421        <attr name="minEms" format="integer" min="0" />
3422        <!-- Makes the TextView be at least this many pixels wide. -->
3423        <attr name="minWidth" />
3424        <!-- Specifies how to align the text by the view's x- and/or y-axis
3425             when the text is smaller than the view. -->
3426        <attr name="gravity" />
3427        <!-- Whether the text is allowed to be wider than the view (and
3428             therefore can be scrolled horizontally). -->
3429        <attr name="scrollHorizontally" format="boolean" />
3430        <!-- Whether the characters of the field are displayed as
3431             password dots instead of themselves.
3432             {@deprecated Use inputType instead.} -->
3433        <attr name="password" format="boolean" />
3434        <!-- Constrains the text to a single horizontally scrolling line
3435             instead of letting it wrap onto multiple lines, and advances
3436             focus instead of inserting a newline when you press the
3437             enter key.
3438
3439             The default value is false (multi-line wrapped text mode) for non-editable text, but if
3440             you specify any value for inputType, the default is true (single-line input field mode).
3441
3442             {@deprecated This attribute is deprecated. Use <code>maxLines</code> instead to change
3443             the layout of a static text, and use the <code>textMultiLine</code> flag in the
3444             inputType attribute instead for editable text views (if both singleLine and inputType
3445             are supplied, the inputType flags will override the value of singleLine). } -->
3446        <attr name="singleLine" format="boolean" />
3447        <!-- Specifies whether the widget is enabled. The interpretation of the enabled state varies by subclass.
3448             For example, a non-enabled EditText prevents the user from editing the contained text, and
3449             a non-enabled Button prevents the user from tapping the button.
3450             The appearance of enabled and non-enabled widgets may differ, if the drawables referenced
3451             from evaluating state_enabled differ. -->
3452        <attr name="enabled" format="boolean" />
3453        <!-- If the text is selectable, select it all when the view takes
3454             focus. -->
3455        <attr name="selectAllOnFocus" format="boolean" />
3456        <!-- Leave enough room for ascenders and descenders instead of
3457             using the font ascent and descent strictly.  (Normally true). -->
3458        <attr name="includeFontPadding" format="boolean" />
3459        <!-- Set an input filter to constrain the text length to the
3460             specified number. -->
3461        <attr name="maxLength" format="integer" min="0" />
3462        <!-- Place a shadow of the specified color behind the text. -->
3463        <attr name="shadowColor" />
3464        <!-- Horizontal offset of the shadow. -->
3465        <attr name="shadowDx" />
3466        <!-- Vertical offset of the shadow. -->
3467        <attr name="shadowDy" />
3468        <!-- Radius of the shadow. -->
3469        <attr name="shadowRadius" />
3470        <attr name="autoLink" />
3471        <!-- If set to false, keeps the movement method from being set
3472             to the link movement method even if autoLink causes links
3473             to be found. -->
3474        <attr name="linksClickable" format="boolean" />
3475        <!-- If set, specifies that this TextView has a numeric input method.
3476             The default is false.
3477             {@deprecated Use inputType instead.} -->
3478        <attr name="numeric">
3479            <!-- Input is numeric. -->
3480            <flag name="integer" value="0x01" />
3481            <!-- Input is numeric, with sign allowed. -->
3482            <flag name="signed" value="0x03" />
3483            <!-- Input is numeric, with decimals allowed. -->
3484            <flag name="decimal" value="0x05" />
3485        </attr>
3486        <!-- If set, specifies that this TextView has a numeric input method
3487             and that these specific characters are the ones that it will
3488             accept.
3489             If this is set, numeric is implied to be true.
3490             The default is false. -->
3491        <attr name="digits" format="string" />
3492        <!-- If set, specifies that this TextView has a phone number input
3493             method. The default is false.
3494             {@deprecated Use inputType instead.} -->
3495        <attr name="phoneNumber" format="boolean" />
3496        <!-- If set, specifies that this TextView should use the specified
3497             input method (specified by fully-qualified class name).
3498             {@deprecated Use inputType instead.} -->
3499        <attr name="inputMethod" format="string" />
3500        <!-- If set, specifies that this TextView has a textual input method
3501             and should automatically capitalize what the user types.
3502             The default is "none".
3503             {@deprecated Use inputType instead.} -->
3504        <attr name="capitalize">
3505            <!-- Don't automatically capitalize anything. -->
3506            <enum name="none" value="0" />
3507            <!-- Capitalize the first word of each sentence. -->
3508            <enum name="sentences" value="1" />
3509            <!-- Capitalize the first letter of every word. -->
3510            <enum name="words" value="2" />
3511            <!-- Capitalize every character. -->
3512            <enum name="characters" value="3" />
3513        </attr>
3514        <!-- If set, specifies that this TextView has a textual input method
3515             and automatically corrects some common spelling errors.
3516             The default is "false".
3517             {@deprecated Use inputType instead.} -->
3518        <attr name="autoText" format="boolean" />
3519        <!-- If set, specifies that this TextView has an input method.
3520             It will be a textual one unless it has otherwise been specified.
3521             For TextView, this is false by default.  For EditText, it is
3522             true by default.
3523             {@deprecated Use inputType instead.} -->
3524        <attr name="editable" format="boolean" />
3525        <!-- If set, the text view will include its current complete text
3526             inside of its frozen icicle in addition to meta-data such as
3527             the current cursor position.  By default this is disabled;
3528             it can be useful when the contents of a text view is not stored
3529             in a persistent place such as a content provider. -->
3530        <attr name="freezesText" format="boolean" />
3531        <!-- If set, causes words that are longer than the view is wide
3532             to be ellipsized instead of broken in the middle.
3533             You will often also want to set scrollHorizontally or singleLine
3534             as well so that the text as a whole is also constrained to
3535             a single line instead of still allowed to be broken onto
3536             multiple lines. -->
3537        <attr name="ellipsize" />
3538        <!-- The drawable to be drawn above the text. -->
3539        <attr name="drawableTop" format="reference|color" />
3540        <!-- The drawable to be drawn below the text. -->
3541        <attr name="drawableBottom" format="reference|color" />
3542        <!-- The drawable to be drawn to the left of the text. -->
3543        <attr name="drawableLeft" format="reference|color" />
3544        <!-- The drawable to be drawn to the right of the text. -->
3545        <attr name="drawableRight" format="reference|color" />
3546        <!-- The drawable to be drawn to the start of the text. -->
3547        <attr name="drawableStart" format="reference|color" />
3548        <!-- The drawable to be drawn to the end of the text. -->
3549        <attr name="drawableEnd" format="reference|color" />
3550        <!-- The padding between the drawables and the text. -->
3551        <attr name="drawablePadding" format="dimension" />
3552        <!-- Extra spacing between lines of text. -->
3553        <attr name="lineSpacingExtra" format="dimension" />
3554        <!-- Extra spacing between lines of text, as a multiplier. -->
3555        <attr name="lineSpacingMultiplier" format="float" />
3556        <!-- The number of times to repeat the marquee animation. Only applied if the
3557             TextView has marquee enabled. -->
3558        <attr name="marqueeRepeatLimit" format="integer">
3559            <!-- Indicates that marquee should repeat indefinitely. -->
3560            <enum name="marquee_forever" value="-1" />
3561        </attr>
3562        <attr name="inputType" />
3563        <attr name="imeOptions" />
3564        <!-- An addition content type description to supply to the input
3565             method attached to the text view, which is private to the
3566             implementation of the input method.  This simply fills in
3567             the {@link android.view.inputmethod.EditorInfo#privateImeOptions
3568             EditorInfo.privateImeOptions} field when the input
3569             method is connected. -->
3570        <attr name="privateImeOptions" format="string" />
3571        <!-- Supply a value for
3572             {@link android.view.inputmethod.EditorInfo#actionLabel EditorInfo.actionLabel}
3573             used when an input method is connected to the text view. -->
3574        <attr name="imeActionLabel" format="string" />
3575        <!-- Supply a value for
3576             {@link android.view.inputmethod.EditorInfo#actionId EditorInfo.actionId}
3577             used when an input method is connected to the text view. -->
3578        <attr name="imeActionId" format="integer" />
3579        <!-- Reference to an
3580             {@link android.R.styleable#InputExtras &lt;input-extras&gt;}
3581             XML resource containing additional data to
3582             supply to an input method, which is private to the implementation
3583             of the input method.  This simply fills in
3584             the {@link android.view.inputmethod.EditorInfo#extras
3585             EditorInfo.extras} field when the input
3586             method is connected. -->
3587        <attr name="editorExtras" format="reference" />
3588
3589        <!-- Reference to a drawable that will be used to display a text selection
3590             anchor on the left side of a selection region. -->
3591        <attr name="textSelectHandleLeft" />
3592        <!-- Reference to a drawable that will be used to display a text selection
3593             anchor on the right side of a selection region. -->
3594        <attr name="textSelectHandleRight" />
3595        <!-- Reference to a drawable that will be used to display a text selection
3596             anchor for positioning the cursor within text. -->
3597        <attr name="textSelectHandle" />
3598        <!-- The layout of the view that is displayed on top of the cursor to paste inside a
3599             TextEdit field. -->
3600        <attr name="textEditPasteWindowLayout" />
3601        <!-- Variation of textEditPasteWindowLayout displayed when the clipboard is empty. -->
3602        <attr name="textEditNoPasteWindowLayout" />
3603        <!-- Used instead of textEditPasteWindowLayout when the window is moved on the side of the
3604             insertion cursor because it would be clipped if it were positioned on top. -->
3605        <attr name="textEditSidePasteWindowLayout" />
3606        <!-- Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. -->
3607        <attr name="textEditSideNoPasteWindowLayout" />
3608
3609        <!-- Layout of the TextView item that will populate the suggestion popup window. -->
3610        <attr name="textEditSuggestionItemLayout" />
3611
3612
3613        <!-- Reference to a drawable that will be drawn under the insertion cursor. -->
3614        <attr name="textCursorDrawable" />
3615
3616        <!-- Indicates that the content of a non-editable text can be selected. -->
3617        <attr name="textIsSelectable" />
3618        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
3619        <attr name="textAllCaps" />
3620    </declare-styleable>
3621    <declare-styleable name="TextViewAppearance">
3622        <!-- Base text color, typeface, size, and style. -->
3623        <attr name="textAppearance" />
3624    </declare-styleable>
3625    <declare-styleable name="SelectionModeDrawables">
3626        <attr name="actionModeSelectAllDrawable" />
3627        <attr name="actionModeCutDrawable" />
3628        <attr name="actionModeCopyDrawable" />
3629        <attr name="actionModePasteDrawable" />
3630    </declare-styleable>
3631    <declare-styleable name="SuggestionSpan">
3632        <attr name="textUnderlineColor" />
3633        <attr name="textUnderlineThickness" />
3634    </declare-styleable>
3635    <!-- An <code>input-extras</code> is a container for extra data to supply to
3636         an input method.  Contains
3637         one more more {@link #Extra <extra>} tags.  -->
3638    <declare-styleable name="InputExtras">
3639    </declare-styleable>
3640    <declare-styleable name="AutoCompleteTextView">
3641        <!-- Defines the hint displayed in the drop down menu. -->
3642        <attr name="completionHint" format="string" />
3643        <!-- Defines the hint view displayed in the drop down menu. -->
3644        <attr name="completionHintView" format="reference" />
3645        <!-- Defines the number of characters that the user must type before
3646         completion suggestions are displayed in a drop down menu. -->
3647        <attr name="completionThreshold" format="integer" min="1" />
3648        <!-- Selector in a drop down list. -->
3649        <attr name="dropDownSelector" format="reference|color" />
3650        <!-- Amount of pixels by which the drop down should be offset vertically. -->
3651        <attr name="dropDownVerticalOffset" format="dimension" />
3652        <!-- Amount of pixels by which the drop down should be offset horizontally. -->
3653        <attr name="dropDownHorizontalOffset" format="dimension" />
3654        <!-- View to anchor the auto-complete dropdown to. If not specified, the text view itself
3655             is used. -->
3656        <attr name="dropDownAnchor" format="reference" />
3657        <!-- Specifies the basic width of the dropdown. Its value may
3658             be a dimension (such as "12dip") for a constant width,
3659             fill_parent or match_parent to match the width of the
3660             screen, or wrap_content to match the width of
3661             the anchored view. -->
3662        <attr name="dropDownWidth" format="dimension">
3663            <!-- The dropdown should fill the width of the screen.
3664                 This constant is deprecated starting from API Level 8 and
3665                 is replaced by {@code match_parent}. -->
3666            <enum name="fill_parent" value="-1" />
3667            <!-- The dropdown should fit the width of the screen.
3668                 Introduced in API Level 8. -->
3669            <enum name="match_parent" value="-1" />
3670            <!-- The dropdown should fit the width of its anchor. -->
3671            <enum name="wrap_content" value="-2" />
3672        </attr>
3673        <!-- Specifies the basic height of the dropdown. Its value may
3674             be a dimension (such as "12dip") for a constant height,
3675             fill_parent or match_parent to fill the height of the
3676             screen, or wrap_content to match the height of
3677             the content of the drop down. -->
3678        <attr name="dropDownHeight" format="dimension">
3679            <!-- The dropdown should fit the height of the screen.
3680                 This constant is deprecated starting from API Level 8 and
3681                 is replaced by {@code match_parent}. -->
3682            <enum name="fill_parent" value="-1" />
3683            <!-- The dropdown should fit the height of the screen.
3684                 Introduced in API Level 8. -->
3685            <enum name="match_parent" value="-1" />
3686            <!-- The dropdown should fit the height of the content. -->
3687            <enum name="wrap_content" value="-2" />
3688        </attr>
3689        <attr name="inputType" />
3690    </declare-styleable>
3691    <declare-styleable name="PopupWindow">
3692        <attr name="popupBackground" format="reference|color" />
3693        <attr name="popupAnimationStyle" format="reference" />
3694    </declare-styleable>
3695    <declare-styleable name="ViewAnimator">
3696        <!-- Identifier for the animation to use when a view is shown. -->
3697        <attr name="inAnimation" format="reference" />
3698        <!-- Identifier for the animation to use when a view is hidden. -->
3699        <attr name="outAnimation" format="reference" />
3700        <!-- Defines whether to animate the current View when the ViewAnimation
3701             is first displayed. -->
3702        <attr name="animateFirstView" format="boolean" />
3703    </declare-styleable>
3704    <declare-styleable name="ViewFlipper">
3705        <attr name="flipInterval" format="integer" min="0" />
3706        <!-- When true, automatically start animating -->
3707        <attr name="autoStart" format="boolean" />
3708    </declare-styleable>
3709    <declare-styleable name="AdapterViewAnimator">
3710        <!-- Identifier for the animation to use when a view is shown. -->
3711        <attr name="inAnimation" />
3712        <!-- Identifier for the animation to use when a view is hidden. -->
3713        <attr name="outAnimation" />
3714        <!--Defines whether the animator loops to the first view once it
3715        has reached the end of the list. -->
3716        <attr name="loopViews" format="boolean" />
3717        <!-- Defines whether to animate the current View when the ViewAnimation
3718        is first displayed. -->
3719        <attr name="animateFirstView" />
3720    </declare-styleable>
3721    <declare-styleable name="AdapterViewFlipper">
3722        <attr name="flipInterval" />
3723        <!-- When true, automatically start animating -->
3724        <attr name="autoStart" />
3725    </declare-styleable>
3726    <declare-styleable name="ViewSwitcher">
3727    </declare-styleable>
3728    <declare-styleable name="ScrollView">
3729        <!-- Defines whether the scrollview should stretch its content to fill the viewport. -->
3730        <attr name="fillViewport" format="boolean" />
3731    </declare-styleable>
3732    <declare-styleable name="HorizontalScrollView">
3733        <!-- Defines whether the scrollview should stretch its content to fill the viewport. -->
3734        <attr name="fillViewport" />
3735    </declare-styleable>
3736    <declare-styleable name="Spinner">
3737        <!-- The prompt to display when the spinner's dialog is shown. -->
3738        <attr name="prompt" format="reference" />
3739        <!-- Display mode for spinner options. -->
3740        <attr name="spinnerMode" format="enum">
3741            <!-- Spinner options will be presented to the user as a dialog window. -->
3742            <enum name="dialog" value="0" />
3743            <!-- Spinner options will be presented to the user as an inline dropdown
3744                 anchored to the spinner widget itself. -->
3745            <enum name="dropdown" value="1" />
3746        </attr>
3747        <!-- List selector to use for spinnerMode="dropdown" display. -->
3748        <attr name="dropDownSelector" />
3749        <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
3750        <attr name="popupBackground" />
3751        <!-- Vertical offset from the spinner widget for positioning the dropdown in
3752             spinnerMode="dropdown". -->
3753        <attr name="dropDownVerticalOffset" />
3754        <!-- Horizontal offset from the spinner widget for positioning the dropdown
3755             in spinnerMode="dropdown". -->
3756        <attr name="dropDownHorizontalOffset" />
3757        <!-- Width of the dropdown in spinnerMode="dropdown". -->
3758        <attr name="dropDownWidth" />
3759        <!-- Reference to a layout to use for displaying a prompt in the dropdown for
3760             spinnerMode="dropdown". This layout must contain a TextView with the id
3761             {@code @android:id/text1} to be populated with the prompt text. -->
3762        <attr name="popupPromptView" format="reference" />
3763        <!-- Gravity setting for positioning the currently selected item. -->
3764        <attr name="gravity" />
3765        <!-- Whether this spinner should mark child views as enabled/disabled when
3766             the spinner itself is enabled/disabled. -->
3767        <attr name="disableChildrenWhenDisabled" format="boolean" />
3768    </declare-styleable>
3769
3770    <declare-styleable name="DatePicker">
3771        <!-- The first year (inclusive), for example "1940".
3772             {@deprecated Use minDate instead.}
3773         -->
3774        <attr name="startYear" format="integer" />
3775        <!-- The last year (inclusive), for example "2010".
3776             {@deprecated Use maxDate instead.}
3777         -->
3778        <attr name="endYear" format="integer" />
3779        <!-- Whether the spinners are shown. -->
3780        <attr name="spinnersShown" format="boolean" />
3781        <!-- Whether the calendar view is shown. -->
3782        <attr name="calendarViewShown" format="boolean" />
3783        <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
3784        <attr name="minDate" format="string" />
3785        <!-- The maximal date shown by this calendar view in mm/dd/yyyy format. -->
3786        <attr name="maxDate" format="string" />
3787        <!-- @hide The layout of the date picker. -->
3788        <attr name="internalLayout" format="reference"  />
3789    </declare-styleable>
3790
3791    <declare-styleable name="TwoLineListItem">
3792        <attr name="mode">
3793            <!-- Always show only the first line. -->
3794            <enum name="oneLine" value="1" />
3795            <!-- When selected show both lines, otherwise show only the first line.
3796                 This is the default mode. -->
3797            <enum name="collapsing" value="2" />
3798            <!-- Always show both lines. -->
3799            <enum name="twoLine" value="3" />
3800        </attr>
3801    </declare-styleable>
3802
3803    <!-- SlidingDrawer specific attributes. These attributes are used to configure
3804         a SlidingDrawer from XML. -->
3805    <declare-styleable name="SlidingDrawer">
3806        <!-- Identifier for the child that represents the drawer's handle. -->
3807        <attr name="handle" format="reference" />
3808        <!-- Identifier for the child that represents the drawer's content. -->
3809        <attr name="content" format="reference" />
3810        <!-- Orientation of the SlidingDrawer. -->
3811        <attr name="orientation" />
3812        <!-- Extra offset for the handle at the bottom of the SlidingDrawer. -->
3813        <attr name="bottomOffset" format="dimension"  />
3814        <!-- Extra offset for the handle at the top of the SlidingDrawer. -->
3815        <attr name="topOffset" format="dimension"  />
3816        <!-- Indicates whether the drawer can be opened/closed by a single tap
3817             on the handle.  (If false, the user must drag or fling, or click
3818             using the trackball, to open/close the drawer.)  Default is true. -->
3819        <attr name="allowSingleTap" format="boolean" />
3820        <!-- Indicates whether the drawer should be opened/closed with an animation
3821             when the user clicks the handle. Default is true. -->
3822        <attr name="animateOnClick" format="boolean" />
3823    </declare-styleable>
3824
3825    <!-- GestureOverlayView specific attributes. These attributes are used to configure
3826         a GestureOverlayView from XML. -->
3827    <declare-styleable name="GestureOverlayView">
3828        <!-- Width of the stroke used to draw the gesture. -->
3829        <attr name="gestureStrokeWidth" format="float" />
3830        <!-- Color used to draw a gesture. -->
3831        <attr name="gestureColor" format="color" />
3832        <!-- Color used to draw the user's strokes until we are sure it's a gesture. -->
3833        <attr name="uncertainGestureColor" format="color" />
3834        <!-- Time, in milliseconds, to wait before the gesture fades out after the user
3835             is done drawing it. -->
3836        <attr name="fadeOffset" format="integer" />
3837        <!-- Duration, in milliseconds, of the fade out effect after the user is done
3838             drawing a gesture. -->
3839        <attr name="fadeDuration" format="integer" />
3840        <!-- Defines the type of strokes that define a gesture. -->
3841        <attr name="gestureStrokeType">
3842            <!-- A gesture is made of only one stroke. -->
3843            <enum name="single" value="0" />
3844            <!-- A gesture is made of multiple strokes. -->
3845            <enum name="multiple" value="1" />
3846        </attr>
3847        <!-- Minimum length of a stroke before it is recognized as a gesture. -->
3848        <attr name="gestureStrokeLengthThreshold" format="float" />
3849        <!-- Squareness threshold of a stroke before it is recognized as a gesture. -->
3850        <attr name="gestureStrokeSquarenessThreshold" format="float" />
3851        <!-- Minimum curve angle a stroke must contain before it is recognized as a gesture. -->
3852        <attr name="gestureStrokeAngleThreshold" format="float" />
3853        <!-- Defines whether the overlay should intercept the motion events when a gesture
3854             is recognized. -->
3855        <attr name="eventsInterceptionEnabled" format="boolean" />
3856        <!-- Defines whether the gesture will automatically fade out after being recognized. -->
3857        <attr name="fadeEnabled" format="boolean" />
3858        <!-- Indicates whether horizontal (when the orientation is vertical) or vertical
3859             (when orientation is horizontal) strokes automatically define a gesture. -->
3860        <attr name="orientation" />
3861    </declare-styleable>
3862
3863    <declare-styleable name="QuickContactBadge">
3864        <attr name="quickContactWindowSize">
3865            <enum name="modeSmall" value="1" />
3866            <enum name="modeMedium" value="2" />
3867            <enum name="modeLarge" value="3" />
3868        </attr>
3869    </declare-styleable>
3870
3871    <!-- ======================================= -->
3872    <!-- Widget package parent layout attributes -->
3873    <!-- ======================================= -->
3874    <eat-comment />
3875
3876    <declare-styleable name="AbsoluteLayout_Layout">
3877        <attr name="layout_x" format="dimension" />
3878        <attr name="layout_y" format="dimension" />
3879    </declare-styleable>
3880    <declare-styleable name="LinearLayout_Layout">
3881        <attr name="layout_width" />
3882        <attr name="layout_height" />
3883        <attr name="layout_weight" format="float" />
3884        <attr name="layout_gravity" />
3885    </declare-styleable>
3886    <declare-styleable name="GridLayout_Layout">
3887        <!-- The row boundary delimiting the top of the group of cells
3888        occupied by this view. -->
3889        <attr name="layout_row" format="integer" />
3890        <!-- The row span: the difference between the bottom and top
3891        boundaries delimiting the group of cells occupied by this view.
3892        The default is one.
3893        See {@link android.widget.GridLayout.Spec}. -->
3894        <attr name="layout_rowSpan" format="integer" min="1" />
3895        <!-- The column boundary delimiting the left of the group of cells
3896        occupied by this view. -->
3897        <attr name="layout_column" />
3898        <!-- The column span: the difference between the right and left
3899        boundaries delimiting the group of cells occupied by this view.
3900        The default is one.
3901        See {@link android.widget.GridLayout.Spec}. -->
3902        <attr name="layout_columnSpan" format="integer" min="1" />
3903        <!-- Gravity specifies how a component should be placed in its group of cells.
3904        The default is LEFT | BASELINE.
3905        See {@link android.widget.GridLayout.LayoutParams#setGravity(int)}. -->
3906        <attr name="layout_gravity" />
3907    </declare-styleable>
3908    <declare-styleable name="FrameLayout_Layout">
3909        <attr name="layout_gravity" />
3910    </declare-styleable>
3911    <declare-styleable name="RelativeLayout_Layout">
3912        <!-- Positions the right edge of this view to the left of the given anchor view ID.
3913             Accommodates right margin of this view and left margin of anchor view. -->
3914        <attr name="layout_toLeftOf" format="reference" />
3915        <!-- Positions the left edge of this view to the right of the given anchor view ID.
3916            Accommodates left margin of this view and right margin of anchor view. -->
3917        <attr name="layout_toRightOf" format="reference" />
3918        <!-- Positions the bottom edge of this view above the given anchor view ID.
3919            Accommodates bottom margin of this view and top margin of anchor view. -->
3920        <attr name="layout_above" format="reference" />
3921        <!-- Positions the top edge of this view below the given anchor view ID.
3922            Accommodates top margin of this view and bottom margin of anchor view. -->
3923        <attr name="layout_below" format="reference" />
3924        <!-- Positions the baseline of this view on the baseline of the given anchor view ID. -->
3925        <attr name="layout_alignBaseline" format="reference" />
3926        <!-- Makes the left edge of this view match the left edge of the given anchor view ID.
3927            Accommodates left margin. -->
3928        <attr name="layout_alignLeft" format="reference" />
3929        <!-- Makes the top edge of this view match the top edge of the given anchor view ID.
3930            Accommodates top margin. -->
3931        <attr name="layout_alignTop" format="reference" />
3932        <!-- Makes the right edge of this view match the right edge of the given anchor view ID.
3933            Accommodates right margin. -->
3934        <attr name="layout_alignRight" format="reference" />
3935        <!-- Makes the bottom edge of this view match the bottom edge of the given anchor view ID.
3936            Accommodates bottom margin. -->
3937        <attr name="layout_alignBottom" format="reference" />
3938        <!-- If true, makes the left edge of this view match the left edge of the parent.
3939            Accommodates left margin. -->
3940        <attr name="layout_alignParentLeft" format="boolean" />
3941        <!-- If true, makes the top edge of this view match the top edge of the parent.
3942            Accommodates top margin. -->
3943        <attr name="layout_alignParentTop" format="boolean" />
3944        <!-- If true, makes the right edge of this view match the right edge of the parent.
3945            Accommodates right margin. -->
3946        <attr name="layout_alignParentRight" format="boolean" />
3947        <!-- If true, makes the bottom edge of this view match the bottom edge of the parent.
3948            Accommodates bottom margin. -->
3949        <attr name="layout_alignParentBottom" format="boolean" />
3950        <!-- If true, centers this child horizontally and vertically within its parent. -->
3951        <attr name="layout_centerInParent" format="boolean" />
3952        <!-- If true, centers this child horizontally within its parent. -->
3953        <attr name="layout_centerHorizontal" format="boolean" />
3954        <!-- If true, centers this child vertically within its parent. -->
3955        <attr name="layout_centerVertical" format="boolean" />
3956        <!-- If set to true, the parent will be used as the anchor when the anchor cannot be
3957             be found for layout_toLeftOf, layout_toRightOf, etc. -->
3958        <attr name="layout_alignWithParentIfMissing" format="boolean" />
3959        <!-- Positions the end edge of this view to the start of the given anchor view ID.
3960             Accommodates end margin of this view and start margin of anchor view. -->
3961        <attr name="layout_toStartOf" format="reference" />
3962        <!-- Positions the start edge of this view to the end of the given anchor view ID.
3963             Accommodates start margin of this view and end margin of anchor view. -->
3964        <attr name="layout_toEndOf" format="reference" />
3965        <!-- Makes the start edge of this view match the start edge of the given anchor view ID.
3966            Accommodates start margin. -->
3967        <attr name="layout_alignStart" format="reference" />
3968        <!-- Makes the end edge of this view match the end edge of the given anchor view ID.
3969            Accommodates end margin. -->
3970        <attr name="layout_alignEnd" format="reference" />
3971        <!-- If true, makes the start edge of this view match the start edge of the parent.
3972            Accommodates start margin. -->
3973        <attr name="layout_alignParentStart" format="boolean" />
3974        <!-- If true, makes the end edge of this view match the end edge of the parent.
3975            Accommodates end margin. -->
3976        <attr name="layout_alignParentEnd" format="boolean" />
3977    </declare-styleable>
3978    <declare-styleable name="VerticalSlider_Layout">
3979        <attr name="layout_scale" format="float" />
3980    </declare-styleable>
3981
3982    <!-- attributes for internal rotary widget used in lock screen and phone app
3983      @hide -->
3984    <declare-styleable name="RotarySelector">
3985        <!-- Use "horizontal" or "vertical".  The default is horizontal. -->
3986        <attr name="orientation" />
3987    </declare-styleable>
3988
3989    <!-- @hide -->
3990    <declare-styleable name="WeightedLinearLayout">
3991        <attr name="majorWeightMin" format="float" />
3992        <attr name="minorWeightMin" format="float" />
3993        <attr name="majorWeightMax" format="float" />
3994        <attr name="minorWeightMax" format="float" />
3995    </declare-styleable>
3996
3997    <declare-styleable name="CalendarView">
3998        <!-- The first day of week according to {@link java.util.Calendar}. -->
3999        <attr name="firstDayOfWeek" format="integer" />
4000        <!-- Whether do show week numbers. -->
4001        <attr name="showWeekNumber" format="boolean" />
4002        <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
4003        <attr name="minDate" />
4004        <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
4005        <attr name="maxDate" />
4006        <!-- The number of weeks to be shown. -->
4007        <attr name="shownWeekCount" format="integer"/>
4008        <!-- The background color for the selected week. -->
4009        <attr name="selectedWeekBackgroundColor" format="color|reference" />
4010        <!-- The color for the dates of the focused month. -->
4011        <attr name="focusedMonthDateColor" format="color|reference" />
4012        <!-- The color for the dates of an unfocused month. -->
4013        <attr name="unfocusedMonthDateColor" format="color|reference" />
4014        <!-- The color for the week numbers. -->
4015        <attr name="weekNumberColor" format="color|reference" />
4016        <!-- The color for the separator line between weeks. -->
4017        <attr name="weekSeparatorLineColor" format="color|reference" />
4018        <!-- Drawable for the vertical bar shown at the beginning and at the end of the selected date. -->
4019        <attr name="selectedDateVerticalBar" format="reference" />
4020        <!-- The text appearance for the week day abbreviation of the calendar header. -->
4021        <attr name="weekDayTextAppearance" format="reference" />
4022        <!-- The text appearance for the calendar dates. -->
4023        <attr name="dateTextAppearance" format="reference" />
4024    </declare-styleable>
4025
4026    <declare-styleable name="NumberPicker">
4027        <!-- @hide Color for the solid color background if such for optimized rendering. -->
4028        <attr name="solidColor" format="color|reference" />
4029        <!-- @hide The divider for making the selection area. -->
4030        <attr name="selectionDivider" format="reference" />
4031        <!-- @hide The height of the selection divider. -->
4032        <attr name="selectionDividerHeight" format="dimension" />
4033        <!-- @hide The distance between the two selection dividers. -->
4034        <attr name="selectionDividersDistance" format="dimension" />
4035        <!-- @hide The min height of the NumberPicker. -->
4036        <attr name="internalMinHeight" format="dimension" />
4037        <!-- @hide The max height of the NumberPicker. -->
4038        <attr name="internalMaxHeight" format="dimension" />
4039        <!-- @hide The min width of the NumberPicker. -->
4040        <attr name="internalMinWidth" format="dimension" />
4041        <!-- @hide The max width of the NumberPicker. -->
4042        <attr name="internalMaxWidth" format="dimension" />
4043        <!-- @hide The layout of the number picker. -->
4044        <attr name="internalLayout" />
4045        <!-- @hide The drawable for pressed virtual (increment/decrement) buttons. -->
4046        <attr name="virtualButtonPressedDrawable" format="reference"/>
4047    </declare-styleable>
4048
4049    <declare-styleable name="TimePicker">
4050        <!-- @hide The layout of the time picker. -->
4051        <attr name="internalLayout" />
4052        <!-- @hide The layout of the legacy time picker. -->
4053        <attr name="legacyLayout" format="reference" />
4054        <!-- @hide Enables or disable the use of the legacy layout for the TimePicker. -->
4055        <attr name="legacyMode" format="boolean" />
4056        <!-- @hide The color when the non legacy TimePicker is disabled. -->
4057        <attr name="disabledColor" format="color|reference" />
4058        <!-- @hide The color for selected text of the non legacy TimePicker. -->
4059        <attr name="headerSelectedTextColor" format="color|reference" />
4060        <!-- @hide The color for unselected text of the non legacy TimePicker. -->
4061        <attr name="headerUnselectedTextColor" format="color|reference" />
4062        <!-- @hide The background color for the header of the non legacy TimePicker. -->
4063        <attr name="headerBackgroundColor" format="color|reference" />
4064        <!-- @hide The color for the hours/minutes numbers of the non legacy TimePicker. -->
4065        <attr name="numbersTextColor" format="color|reference" />
4066        <!-- @hide The background color for the hours/minutes numbers of the non legacy TimePicker. -->
4067        <attr name="numbersBackgroundColor" format="color|reference" />
4068        <!-- @hide The color for the AM/PM selectors of the non legacy TimePicker. -->
4069        <attr name="amPmTextColor" format="color|reference" />
4070        <!-- @hide The background color for the AM/PM selectors of the non legacy TimePicker when unselected. -->
4071        <attr name="amPmUnselectedBackgroundColor" format="color|reference" />
4072        <!-- @hide The background color for the AM/PM selectors of the non legacy TimePicker when selected. -->
4073        <attr name="amPmSelectedBackgroundColor" format="color|reference" />
4074        <!-- @hide The color for the hours/minutes selector of the non legacy TimePicker. -->
4075        <attr name="numbersSelectorColor" format="color|reference" />
4076    </declare-styleable>
4077
4078    <!-- ========================= -->
4079    <!-- Drawable class attributes -->
4080    <!-- ========================= -->
4081    <eat-comment />
4082
4083    <!-- Base attributes that are available to all Drawable objects. -->
4084    <declare-styleable name="Drawable">
4085        <!-- Provides initial visibility state of the drawable; the default
4086             value is false.  See
4087             {@link android.graphics.drawable.Drawable#setVisible}. -->
4088        <attr name="visible" format="boolean" />
4089        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4090             RTL (right-to-left).  See
4091             {@link android.graphics.drawable.Drawable#setAutoMirrored}. -->
4092        <attr name="autoMirrored" format="boolean" />
4093        <!-- If set, specifies the color to apply to the drawable as a color filter. By
4094             default, no color filter is applied. -->
4095        <attr name="colorFilterColor" format="color" />
4096        <!-- When a color filter color is set, specifies its Porter-Duff blending mode.
4097             The default value is multiply. -->
4098        <attr name="colorFilterMode">
4099            <!-- [Sa * Da, Sc * Dc] -->
4100            <enum name="multiply" value="14" />
4101            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4102            <enum name="screen" value="15" />
4103            <!-- [Da, Sc * Da + (1 - Sa) * Dc] -->
4104            <enum name="src_atop" value="9" />
4105        </attr>
4106    </declare-styleable>
4107
4108    <!-- Drawable used to render several states. Each state is represented by
4109         a child drawable. -->
4110    <declare-styleable name="StateListDrawable">
4111        <!-- Indicates whether the drawable should be initially visible. -->
4112        <attr name="visible" />
4113        <!-- If true, allows the drawable's padding to change based on the
4114             current state that is selected.  If false, the padding will
4115             stay the same (based on the maximum padding of all the states).
4116             Enabling this feature requires that the owner of the drawable
4117             deal with performing layout when the state changes, which is
4118             often not supported. -->
4119        <attr name="variablePadding" format="boolean" />
4120        <!-- If true, the drawable's reported internal size will remain
4121             constant as the state changes; the size is the maximum of all
4122             of the states.  If false, the size will vary based on the
4123             current state. -->
4124        <attr name="constantSize" format="boolean" />
4125        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
4126             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
4127             an RGB 565 screen). -->
4128        <attr name="dither" format="boolean" />
4129        <!-- Amount of time (in milliseconds) to fade in a new state drawable. -->
4130        <attr name="enterFadeDuration" format="integer" />
4131        <!-- Amount of time (in milliseconds) to fade out an old state drawable. -->
4132        <attr name="exitFadeDuration" format="integer" />
4133        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4134             RTL (right-to-left). -->
4135        <attr name="autoMirrored"/>
4136    </declare-styleable>
4137
4138    <!-- Drawable used to render several animated frames. -->
4139    <declare-styleable name="AnimationDrawable">
4140        <attr name="visible" />
4141        <attr name="variablePadding" />
4142        <!-- If true, the animation will only run a single time and then
4143             stop.  If false (the default), it will continually run,
4144             restarting at the first frame after the last has finished. -->
4145        <attr name="oneshot" format="boolean" />
4146    </declare-styleable>
4147
4148    <!-- Represents a single frame inside an AnimationDrawable. -->
4149    <declare-styleable name="AnimationDrawableItem">
4150        <!-- Amount of time (in milliseconds) to display this frame. -->
4151        <attr name="duration" format="integer" />
4152        <!-- Reference to a drawable resource to use for the frame.  If not
4153             given, the drawable must be defined by the first child tag. -->
4154        <attr name="drawable" format="reference" />
4155    </declare-styleable>
4156
4157    <!-- Drawable used to render a geometric shape, with a gradient or a solid color. -->
4158    <declare-styleable name="GradientDrawable">
4159        <!-- Indicates whether the drawable should intially be visible. -->
4160        <attr name="visible" />
4161        <!-- Enables or disables dithering. -->
4162        <attr name="dither" />
4163        <!-- Indicates what shape to fill with a gradient. -->
4164        <attr name="shape">
4165            <!-- Rectangle shape, with optional rounder corners. -->
4166            <enum name="rectangle" value="0" />
4167            <!-- Oval shape. -->
4168            <enum name="oval" value="1" />
4169            <!-- Line shape. -->
4170            <enum name="line" value="2" />
4171            <!-- Ring shape. -->
4172            <enum name="ring" value="3" />
4173        </attr>
4174        <!-- Inner radius of the ring expressed as a ratio of the ring's width. For instance,
4175             if innerRadiusRatio=9, then the inner radius equals the ring's width divided by 9.
4176             This value is ignored if innerRadius is defined. Default value is 9. -->
4177        <attr name="innerRadiusRatio" format="float" />
4178        <!-- Thickness of the ring expressed as a ratio of the ring's width. For instance,
4179             if thicknessRatio=3, then the thickness equals the ring's width divided by 3.
4180             This value is ignored if innerRadius is defined. Default value is 3. -->
4181        <attr name="thicknessRatio" format="float" />
4182        <!-- Inner radius of the ring. When defined, innerRadiusRatio is ignored. -->
4183        <attr name="innerRadius" format="dimension" />
4184        <!-- Thickness of the ring. When defined, thicknessRatio is ignored. -->
4185        <attr name="thickness" format="dimension" />
4186        <!-- Indicates whether the drawable's level affects the way the gradient is drawn. -->
4187        <attr name="useLevel" />
4188    </declare-styleable>
4189
4190    <!-- Used to specify the size of the shape for GradientDrawable. -->
4191    <declare-styleable name="GradientDrawableSize">
4192        <!-- Width of the gradient shape. -->
4193        <attr name="width" />
4194        <!-- Height of the gradient shape. -->
4195        <attr name="height" />
4196    </declare-styleable>
4197
4198    <!-- Used to describe the gradient used to fill the shape of a GradientDrawable. -->
4199    <declare-styleable name="GradientDrawableGradient">
4200        <!-- Start color of the gradient. -->
4201        <attr name="startColor" format="color" />
4202        <!-- Optional center color. For linear gradients, use centerX or centerY
4203             to place the center color. -->
4204        <attr name="centerColor" format="color" />
4205        <!-- End color of the gradient. -->
4206        <attr name="endColor" format="color" />
4207        <attr name="useLevel" format="boolean" />
4208        <!-- Angle of the gradient. -->
4209        <attr name="angle" format="float" />
4210        <!-- Type of gradient. The default type is linear. -->
4211        <attr name="type">
4212            <!-- Linear gradient. -->
4213            <enum name="linear" value="0" />
4214            <!-- Radial, or circular, gradient. -->
4215            <enum name="radial" value="1" />
4216            <!-- Sweep, or angled or diamond, gradient. -->
4217            <enum name="sweep"  value="2" />
4218        </attr>
4219        <!-- X coordinate of the origin of the gradient within the shape. -->
4220        <attr name="centerX" format="float|fraction" />
4221        <!-- Y coordinate of the origin of the gradient within the shape. -->
4222        <attr name="centerY" format="float|fraction" />
4223        <!-- Radius of the gradient, used only with radial gradient. -->
4224        <attr name="gradientRadius" format="float|fraction" />
4225    </declare-styleable>
4226
4227    <!-- Used to fill the shape of GradientDrawable with a solid color. -->
4228    <declare-styleable name="GradientDrawableSolid">
4229        <!-- Solid color for the gradient shape. -->
4230        <attr name="color" format="color" />
4231    </declare-styleable>
4232
4233    <!-- Used to describe the optional stroke of a GradientDrawable. -->
4234    <declare-styleable name="GradientDrawableStroke">
4235        <!-- Width of the gradient shape's stroke. -->
4236        <attr name="width" />
4237        <!-- Color of the gradient shape's stroke. -->
4238        <attr name="color" />
4239        <!-- Length of a dash in the stroke. -->
4240        <attr name="dashWidth" format="dimension" />
4241        <!-- Gap between dashes in the stroke. -->
4242        <attr name="dashGap" format="dimension" />
4243    </declare-styleable>
4244
4245    <!-- Describes the corners for the rectangle shape of a GradientDrawable.
4246         This can be used to render rounded corners. -->
4247    <declare-styleable name="DrawableCorners">
4248        <!-- Defines the radius of the four corners. -->
4249        <attr name="radius" format="dimension" />
4250        <!-- Radius of the top left corner. -->
4251        <attr name="topLeftRadius" format="dimension" />
4252        <!-- Radius of the top right corner. -->
4253        <attr name="topRightRadius" format="dimension" />
4254        <!-- Radius of the bottom left corner. -->
4255        <attr name="bottomLeftRadius" format="dimension" />
4256        <!-- Radius of the bottom right corner. -->
4257        <attr name="bottomRightRadius" format="dimension" />
4258    </declare-styleable>
4259
4260    <!-- Used to specify the optional padding of a GradientDrawable. -->
4261    <declare-styleable name="GradientDrawablePadding">
4262        <!-- Amount of left padding inside the gradient shape. -->
4263        <attr name="left" format="dimension" />
4264        <!-- Amount of top padding inside the gradient shape. -->
4265        <attr name="top" format="dimension" />
4266        <!-- Amount of right padding inside the gradient shape. -->
4267        <attr name="right" format="dimension" />
4268        <!-- Amount of bottom padding inside the gradient shape. -->
4269        <attr name="bottom" format="dimension" />
4270    </declare-styleable>
4271
4272    <!-- Drawable used to render several drawables stacked on top of each other.
4273         Each child drawable can be controlled individually. -->
4274    <declare-styleable name="LayerDrawable">
4275        <!-- Indicates the opacity of the layer. This can be useful to allow the
4276              system to enable drawing optimizations. The default value is
4277              translucent. -->
4278        <attr name="opacity">
4279            <!-- Indicates that the layer is opaque and contains no transparent
4280                 nor translucent pixels. -->
4281            <enum name="opaque" value="-1" />
4282            <!-- The layer is completely transparent (no pixel will be drawn.) -->
4283            <enum name="transparent" value="-2" />
4284            <!-- The layer has translucent pixels. -->
4285            <enum name="translucent" value="-3" />
4286        </attr>
4287        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4288             RTL (right-to-left). -->
4289        <attr name="autoMirrored" />
4290        <!-- Indicates how layer padding should affect the bounds of subsequent layers.
4291            The default value is nest. -->
4292        <attr name="paddingMode">
4293            <!-- Nest each layer inside the padding of the previous layer. -->
4294            <enum name="nest" value="0" />
4295            <!-- Stack each layer directly atop the previous layer. -->
4296            <enum name="stack" value="1" />
4297        </attr>
4298    </declare-styleable>
4299
4300    <!-- Describes an item (or child) of a LayerDrawable. -->
4301    <declare-styleable name="LayerDrawableItem">
4302        <!-- Left coordinate of the layer. -->
4303        <attr name="left" />
4304        <!-- Top coordinate of the layer. -->
4305        <attr name="top" />
4306        <!-- Right coordinate of the layer. -->
4307        <attr name="right" />
4308        <!-- Bottom coordinate of the layer. -->
4309        <attr name="bottom" />
4310        <!-- Drawable used to render the layer. -->
4311        <attr name="drawable" />
4312        <!-- Identifier of the layer. This can be used to retrieve the layer
4313             from a drawable container. -->
4314        <attr name="id" />
4315    </declare-styleable>
4316
4317    <declare-styleable name="LevelListDrawableItem">
4318        <!-- The minimum level allowed for this item. -->
4319        <attr name="minLevel" format="integer" />
4320        <!-- The maximum level allowed for this item. -->
4321        <attr name="maxLevel" format="integer" />
4322        <attr name="drawable" />
4323    </declare-styleable>
4324
4325    <!-- Drawable used to rotate another drawable. -->
4326    <declare-styleable name="RotateDrawable">
4327        <attr name="visible" />
4328        <attr name="fromDegrees" format="float" />
4329        <attr name="toDegrees" format="float" />
4330        <attr name="pivotX" format="float|fraction" />
4331        <attr name="pivotY" format="float|fraction" />
4332        <attr name="drawable" />
4333    </declare-styleable>
4334
4335    <declare-styleable name="AnimatedRotateDrawable">
4336        <attr name="visible" />
4337        <attr name="frameDuration" format="integer" />
4338        <attr name="framesCount" format="integer" />
4339        <attr name="pivotX" />
4340        <attr name="pivotY" />
4341        <attr name="drawable" />
4342    </declare-styleable>
4343
4344    <declare-styleable name="InsetDrawable">
4345        <attr name="visible" />
4346        <attr name="drawable" />
4347        <attr name="insetLeft" format="dimension" />
4348        <attr name="insetRight" format="dimension" />
4349        <attr name="insetTop" format="dimension" />
4350        <attr name="insetBottom" format="dimension" />
4351    </declare-styleable>
4352
4353    <!-- Drawable used to draw bitmaps. -->
4354    <declare-styleable name="BitmapDrawable">
4355        <!-- Identifier of the bitmap file. This attribute is mandatory. -->
4356        <attr name="src" />
4357        <!-- Enables or disables antialiasing. Antialiasing can be used to smooth the
4358             edges of a bitmap when rotated. Default value is false. -->
4359        <attr name="antialias" format="boolean" />
4360        <!-- Enables or disables bitmap filtering. Filtering is used when the bitmap is
4361             shrunk or stretched to smooth its apperance. Default value is true. -->
4362        <attr name="filter" format="boolean" />
4363        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
4364             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
4365             an RGB 565 screen). Default value is true. -->
4366        <attr name="dither" />
4367        <!-- Defines the gravity for the bitmap. The gravity indicates where to position
4368             the drawable in its container if the bitmap is smaller than the container. -->
4369        <attr name="gravity" />
4370        <!-- Defines the tile mode. When the tile mode is enabled, the bitmap is repeated.
4371             Gravity is ignored when the tile mode is enabled. Default value is "disabled". -->
4372        <attr name="tileMode">
4373            <!-- Do not tile the bitmap. This is the default value. -->
4374            <enum name="disabled" value="-1" />
4375            <!-- Replicates the edge color. -->
4376            <enum name="clamp" value="0" />
4377            <!-- Repeats the bitmap in both direction. -->
4378            <enum name="repeat" value="1" />
4379            <!-- Repeats the shader's image horizontally and vertically, alternating
4380                 mirror images so that adjacent images always seam. -->
4381            <enum name="mirror" value="2" />
4382        </attr>
4383        <!-- Enables or disables the mipmap hint. See
4384            {@link android.graphics.Bitmap#setHasMipMap(boolean)} for more information.
4385            Default value is false. -->
4386        <attr name="mipMap" format="boolean" />
4387        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4388             RTL (right-to-left). -->
4389        <attr name="autoMirrored" />
4390        <attr name="colorFilterColor" />
4391        <attr name="colorFilterMode" />
4392    </declare-styleable>
4393
4394    <!-- Drawable used to draw 9-patches. -->
4395    <declare-styleable name="NinePatchDrawable">
4396        <!-- Identifier of the bitmap file. This attribute is mandatory. -->
4397        <attr name="src" />
4398        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
4399             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
4400             an RGB 565 screen). -->
4401        <attr name="dither" />
4402        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4403             RTL (right-to-left). -->
4404        <attr name="autoMirrored" />
4405        <attr name="colorFilterColor" />
4406        <attr name="colorFilterMode" />
4407    </declare-styleable>
4408
4409    <!-- Drawable used to draw a single color. -->
4410    <declare-styleable name="ColorDrawable">
4411        <!-- The color to use. -->
4412        <attr name="color" />
4413    </declare-styleable>
4414
4415    <declare-styleable name="ScaleDrawable">
4416        <!-- Scale width, expressed as a percentage of the drawable's bound. The value's
4417             format is XX%. For instance: 100%, 12.5%, etc.-->
4418        <attr name="scaleWidth" format="string" />
4419        <!-- Scale height, expressed as a percentage of the drawable's bound. The value's
4420             format is XX%. For instance: 100%, 12.5%, etc.-->
4421        <attr name="scaleHeight" format="string" />
4422        <!-- Specifies where the drawable is positioned after scaling. The default value is
4423             left. -->
4424        <attr name="scaleGravity">
4425            <!-- Push object to the top of its container, not changing its size. -->
4426            <flag name="top" value="0x30" />
4427            <!-- Push object to the bottom of its container, not changing its size. -->
4428            <flag name="bottom" value="0x50" />
4429            <!-- Push object to the left of its container, not changing its size. -->
4430            <flag name="left" value="0x03" />
4431            <!-- Push object to the right of its container, not changing its size. -->
4432            <flag name="right" value="0x05" />
4433            <!-- Place object in the vertical center of its container, not changing its size. -->
4434            <flag name="center_vertical" value="0x10" />
4435            <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
4436            <flag name="fill_vertical" value="0x70" />
4437            <!-- Place object in the horizontal center of its container, not changing its size. -->
4438            <flag name="center_horizontal" value="0x01" />
4439            <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
4440            <flag name="fill_horizontal" value="0x07" />
4441            <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
4442            <flag name="center" value="0x11" />
4443            <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
4444            <flag name="fill" value="0x77" />
4445            <!-- Additional option that can be set to have the top and/or bottom edges of
4446                 the child clipped to its container's bounds.
4447                 The clip will be based on the vertical gravity: a top gravity will clip the bottom
4448                 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
4449            <flag name="clip_vertical" value="0x80" />
4450            <!-- Additional option that can be set to have the left and/or right edges of
4451                 the child clipped to its container's bounds.
4452                 The clip will be based on the horizontal gravity: a left gravity will clip the right
4453                 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
4454            <flag name="clip_horizontal" value="0x08" />
4455            <!-- Push object to the beginning of its container, not changing its size. -->
4456            <flag name="start" value="0x00800003" />
4457            <!-- Push object to the end of its container, not changing its size. -->
4458            <flag name="end" value="0x00800005" />
4459        </attr>
4460        <!-- Reference to a drawable resource to draw with the specified scale. -->
4461        <attr name="drawable" />
4462        <!-- Use the drawable's intrinsic width and height as minimum size values.
4463             Useful if the target drawable is a 9-patch or otherwise should not be scaled
4464             down beyond a minimum size. -->
4465        <attr name="useIntrinsicSizeAsMinimum" format="boolean" />
4466    </declare-styleable>
4467
4468    <declare-styleable name="ClipDrawable">
4469        <!-- The orientation for the clip. -->
4470        <attr name="clipOrientation">
4471            <!-- Clip the drawable horizontally. -->
4472            <flag name="horizontal" value="1" />
4473            <!-- Clip the drawable vertically. -->
4474            <flag name="vertical" value="2" />
4475        </attr>
4476        <!-- Specifies where to clip within the drawable. The default value is
4477             left. -->
4478        <attr name="gravity" />
4479        <!-- Reference to a drawable resource to draw with the specified scale. -->
4480        <attr name="drawable" />
4481    </declare-styleable>
4482
4483    <!-- Defines the padding of a ShapeDrawable. -->
4484    <declare-styleable name="ShapeDrawablePadding">
4485        <!-- Left padding. -->
4486        <attr name="left" />
4487        <!-- Top padding. -->
4488        <attr name="top" />
4489        <!-- Right padding. -->
4490        <attr name="right" />
4491        <!-- Bottom padding. -->
4492        <attr name="bottom" />
4493    </declare-styleable>
4494
4495    <!-- Drawable used to draw shapes. -->
4496    <declare-styleable name="ShapeDrawable">
4497        <!-- Defines the color of the shape. -->
4498        <attr name="color" />
4499        <!-- Defines the width of the shape. -->
4500        <attr name="width" />
4501        <!-- Defines the height of the shape. -->
4502        <attr name="height" />
4503        <!-- Enables or disables dithering. -->
4504        <attr name="dither" />
4505    </declare-styleable>
4506
4507    <!-- ========================== -->
4508    <!-- Animation class attributes -->
4509    <!-- ========================== -->
4510    <eat-comment />
4511
4512    <declare-styleable name="Animation">
4513        <!-- Defines the interpolator used to smooth the animation movement in time. -->
4514        <attr name="interpolator" />
4515        <!-- When set to true, the value of fillBefore is taken into account. -->
4516        <attr name="fillEnabled" format="boolean" />
4517        <!-- When set to true or when fillEnabled is not set to true, the animation transformation
4518             is applied before the animation has started. The default value is true. -->
4519        <attr name="fillBefore" format="boolean" />
4520        <!-- When set to true, the animation transformation is applied after the animation is
4521             over. The default value is false. If fillEnabled is not set to true and the
4522             animation is not set on a View, fillAfter is assumed to be true.-->
4523        <attr name="fillAfter" format="boolean" />
4524        <!-- Amount of time (in milliseconds) for the animation to run. -->
4525        <attr name="duration" />
4526        <!-- Delay in milliseconds before the animation runs, once start time is reached. -->
4527        <attr name="startOffset" format="integer" />
4528        <!-- Defines how many times the animation should repeat. The default value is 0. -->
4529        <attr name="repeatCount" format="integer">
4530            <enum name="infinite" value="-1" />
4531        </attr>
4532        <!-- Defines the animation behavior when it reaches the end and the repeat count is
4533             greater than 0 or infinite. The default value is restart. -->
4534        <attr name="repeatMode">
4535            <!-- The animation starts again from the beginning. -->
4536            <enum name="restart" value="1" />
4537            <!-- The animation plays backward. -->
4538            <enum name="reverse" value="2" />
4539        </attr>
4540        <!-- Allows for an adjustment of the Z ordering of the content being
4541             animated for the duration of the animation.  The default value is normal. -->
4542        <attr name="zAdjustment">
4543            <!-- The content being animated be kept in its current Z order. -->
4544            <enum name="normal" value="0" />
4545            <!-- The content being animated is forced on top of all other
4546                 content for the duration of the animation. -->
4547            <enum name="top" value="1" />
4548            <!-- The content being animated is forced under all other
4549                 content for the duration of the animation. -->
4550            <enum name="bottom" value="-1" />
4551        </attr>
4552        <!-- Special background behind animation.  Only for use with window
4553             animations.  Can only be a color, and only black.  If 0, the
4554             default, there is no background. -->
4555        <attr name="background" />
4556        <!-- Special option for window animations: if this window is on top
4557             of a wallpaper, don't animate the wallpaper with it. -->
4558        <attr name="detachWallpaper" format="boolean" />
4559    </declare-styleable>
4560
4561    <declare-styleable name="AnimationSet">
4562        <attr name="shareInterpolator" format="boolean" />
4563        <attr name="fillBefore" />
4564        <attr name="fillAfter" />
4565        <attr name="duration" />
4566        <attr name="startOffset" />
4567        <attr name="repeatMode" />
4568    </declare-styleable>
4569
4570    <declare-styleable name="RotateAnimation">
4571        <attr name="fromDegrees" />
4572        <attr name="toDegrees" />
4573        <attr name="pivotX" />
4574        <attr name="pivotY" />
4575    </declare-styleable>
4576
4577    <declare-styleable name="ScaleAnimation">
4578        <attr name="fromXScale" format="float|fraction|dimension" />
4579        <attr name="toXScale" format="float|fraction|dimension" />
4580        <attr name="fromYScale" format="float|fraction|dimension" />
4581        <attr name="toYScale" format="float|fraction|dimension" />
4582        <attr name="pivotX" />
4583        <attr name="pivotY" />
4584    </declare-styleable>
4585
4586    <declare-styleable name="TranslateAnimation">
4587        <attr name="fromXDelta" format="float|fraction" />
4588        <attr name="toXDelta" format="float|fraction" />
4589        <attr name="fromYDelta" format="float|fraction" />
4590        <attr name="toYDelta" format="float|fraction" />
4591    </declare-styleable>
4592
4593    <declare-styleable name="AlphaAnimation">
4594        <attr name="fromAlpha" format="float" />
4595        <attr name="toAlpha" format="float" />
4596    </declare-styleable>
4597
4598    <declare-styleable name="LayoutAnimation">
4599        <!-- Fraction of the animation duration used to delay the beginning of
4600         the animation of each child. -->
4601        <attr name="delay" format="float|fraction" />
4602        <!-- Animation to use on each child. -->
4603        <attr name="animation" format="reference" />
4604        <!-- The order in which the animations will be started. -->
4605        <attr name="animationOrder">
4606            <!-- Animations are started in the natural order. -->
4607            <enum name="normal" value="0" />
4608            <!-- Animations are started in the reverse order. -->
4609            <enum name="reverse" value="1" />
4610            <!-- Animations are started randomly. -->
4611            <enum name="random" value="2" />
4612        </attr>
4613        <!-- Interpolator used to interpolate the delay between the start of
4614         each animation. -->
4615        <attr name="interpolator" />
4616    </declare-styleable>
4617
4618    <declare-styleable name="GridLayoutAnimation">
4619        <!-- Fraction of the animation duration used to delay the beginning of
4620         the animation of each column. -->
4621        <attr name="columnDelay" format="float|fraction" />
4622        <!-- Fraction of the animation duration used to delay the beginning of
4623         the animation of each row. -->
4624        <attr name="rowDelay" format="float|fraction" />
4625        <!-- Direction of the animation in the grid. -->
4626        <attr name="direction">
4627            <!-- Animates columns from left to right. -->
4628            <flag name="left_to_right" value="0x0" />
4629            <!-- Animates columns from right to left. -->
4630            <flag name="right_to_left" value="0x1" />
4631            <!-- Animates rows from top to bottom. -->
4632            <flag name="top_to_bottom" value="0x0" />
4633            <!-- Animates rows from bottom to top. -->
4634            <flag name="bottom_to_top" value="0x2" />
4635        </attr>
4636        <!-- Priority of the rows and columns. When the priority is none,
4637         both rows and columns have the same priority. When the priority is
4638         column, the animations will be applied on the columns first. The same
4639         goes for rows. -->
4640        <attr name="directionPriority">
4641            <!-- Rows and columns are animated at the same time. -->
4642            <enum name="none"   value="0" />
4643            <!-- Columns are animated first. -->
4644            <enum name="column" value="1" />
4645            <!-- Rows are animated first. -->
4646            <enum name="row"    value="2" />
4647        </attr>
4648    </declare-styleable>
4649
4650    <declare-styleable name="AccelerateInterpolator">
4651        <!-- This is the amount of deceleration to add when easing in. -->
4652        <attr name="factor" format="float" />
4653    </declare-styleable>
4654
4655    <declare-styleable name="DecelerateInterpolator">
4656        <!-- This is the amount of acceleration to add when easing out. -->
4657        <attr name="factor" />
4658    </declare-styleable>
4659
4660    <declare-styleable name="CycleInterpolator">
4661        <attr name="cycles" format="float" />
4662    </declare-styleable>
4663
4664    <declare-styleable name="AnticipateInterpolator">
4665        <!-- This is the amount of tension. -->
4666        <attr name="tension" format="float" />
4667    </declare-styleable>
4668
4669    <declare-styleable name="OvershootInterpolator">
4670        <!-- This is the amount of tension. -->
4671        <attr name="tension" />
4672    </declare-styleable>
4673
4674    <declare-styleable name="AnticipateOvershootInterpolator">
4675        <!-- This is the amount of tension. -->
4676        <attr name="tension" />
4677        <!-- This is the amount by which to multiply the tension. -->
4678        <attr name="extraTension" format="float" />
4679    </declare-styleable>
4680
4681    <declare-styleable name="PathInterpolator">
4682        <attr name="controlX1" format="float" />
4683        <attr name="controlY1" format="float" />
4684        <attr name="controlX2" format="float" />
4685        <attr name="controlY2" format="float" />
4686    </declare-styleable>
4687
4688    <!-- ========================== -->
4689    <!-- Transition attributes -->
4690    <!-- ========================== -->
4691    <eat-comment />
4692
4693    <!-- Use specific transition subclass names as the root tag of the XML resource that
4694         describes a {@link android.transition.Transition Transition},
4695         such as <code>move</code>, <code>fade</code>, and <code>set</code>. -->
4696    <declare-styleable name="Transition">
4697        <!-- Amount of time (in milliseconds) that the transition should run. -->
4698        <attr name="duration" />
4699        <!-- Delay in milliseconds before the transition starts. -->
4700        <attr name="startDelay" format="integer" />
4701        <!-- Interpolator to be used in the animations spawned by this transition. -->
4702        <attr name="interpolator" />
4703    </declare-styleable>
4704
4705    <!-- Use <code>fade</code>as the root tag of the XML resource that
4706         describes a {@link android.transition.Fade Fade} transition.
4707         The attributes of the {@link android.R.styleable#Transition Transition}
4708         resource are available in addition to the specific attributes of Fade
4709         described here. -->
4710    <declare-styleable name="Fade">
4711        <attr name="fadingMode">
4712            <!-- Fade will only fade appearing items in. -->
4713            <enum name="fade_in" value="1" />
4714            <!-- Fade will only fade disappearing items out. -->
4715            <enum name="fade_out" value="2" />
4716            <!-- Fade will fade appearing items in and disappearing items out. -->
4717            <enum name="fade_in_out" value="3" />
4718        </attr>
4719    </declare-styleable>
4720
4721    <!-- Use <code>target</code> as the root tag of the XML resource that
4722     describes a {@link android.transition.Transition#addTarget(int)
4723     targetId} of a transition. There can be one or more targets inside
4724     a <code>targets</code> tag, which is itself inside an appropriate
4725     {@link android.R.styleable#Transition Transition} tag.
4726     -->
4727    <declare-styleable name="TransitionTarget">
4728        <!-- The id of a target on which this transition will animate changes. -->
4729        <attr name="targetId" format="reference" />
4730    </declare-styleable>
4731
4732    <!-- Use <code>set</code> as the root tag of the XML resource that
4733         describes a {@link android.transition.TransitionSet
4734         TransitionSet} transition. -->
4735    <declare-styleable name="TransitionSet">
4736        <attr name="transitionOrdering">
4737            <!-- child transitions should be played together. -->
4738            <enum name="together" value="0" />
4739            <!-- child transitions should be played sequentially, in the same order
4740            as the xml. -->
4741            <enum name="sequential" value="1" />
4742        </attr>
4743    </declare-styleable>
4744
4745    <!-- Use <code>transitionManager</code> as the root tag of the XML resource that
4746         describes a {@link android.transition.TransitionManager
4747         TransitionManager}. -->
4748    <declare-styleable name="TransitionManager">
4749        <!-- The id of a transition to be used in a particular scene change. -->
4750        <attr name="transition" format="reference" />
4751        <!-- The originating scene in this scene change. -->
4752        <attr name="fromScene" format="reference" />
4753        <!-- The destination scene in this scene change. -->
4754        <attr name="toScene" format="reference" />
4755        <!-- The name of the originating scene in this scene change.
4756             Apps should treat this name as an API in the same sense
4757             that an Intent action or extra key is. -->
4758        <attr name="fromSceneName" format="string" />
4759        <!-- The name of the destination scene in this scene change.
4760             Apps should treat this name as an API in the same sense
4761             that an Intent action or extra key is. -->
4762        <attr name="toSceneName" format="string" />
4763    </declare-styleable>
4764
4765    <!-- ========================== -->
4766    <!-- ValueAnimator class attributes -->
4767    <!-- ========================== -->
4768    <eat-comment />
4769
4770    <declare-styleable name="Animator">
4771        <!-- Defines the interpolator used to smooth the animation movement in time. -->
4772        <attr name="interpolator" />
4773        <!-- Amount of time (in milliseconds) for the animation to run. -->
4774        <attr name="duration" />
4775        <!-- Delay in milliseconds before the animation runs, once start time is reached. -->
4776        <attr name="startOffset"/>
4777        <!-- Defines how many times the animation should repeat. The default value is 0. -->
4778        <attr name="repeatCount"/>
4779        <!-- Defines the animation behavior when it reaches the end and the repeat count is
4780             greater than 0 or infinite. The default value is restart. -->
4781        <attr name="repeatMode"/>
4782        <!-- Value the animation starts from. -->
4783        <attr name="valueFrom" format="float|integer|color|dimension"/>
4784        <!-- Value the animation animates to. -->
4785        <attr name="valueTo" format="float|integer|color|dimension"/>
4786        <!-- The type of valueFrom and valueTo. -->
4787        <attr name="valueType">
4788            <!-- valueFrom and valueTo are floats. This is the default value is valueType is
4789                 unspecified. Note that if either valueFrom or valueTo represent colors
4790                 (beginning with "#"), then this attribute is ignored and the color values are
4791                 interpreted as integers. -->
4792            <enum name="floatType" value="0" />
4793            <!-- valueFrom and valueTo are integers. -->
4794            <enum name="intType"   value="1" />
4795        </attr>
4796    </declare-styleable>
4797
4798    <!-- ========================== -->
4799    <!-- ObjectAnimator class attributes -->
4800    <!-- ========================== -->
4801    <eat-comment />
4802
4803    <declare-styleable name="PropertyAnimator">
4804        <!-- Name of the property being animated. -->
4805        <attr name="propertyName" format="string"/>
4806    </declare-styleable>
4807
4808
4809    <!-- ========================== -->
4810    <!-- AnimatorSet class attributes -->
4811    <!-- ========================== -->
4812    <eat-comment />
4813
4814    <declare-styleable name="AnimatorSet">
4815        <!-- Name of the property being animated. -->
4816        <attr name="ordering">
4817            <!-- child animations should be played together. -->
4818            <enum name="together" value="0" />
4819            <!-- child animations should be played sequentially, in the same order as the xml. -->
4820            <enum name="sequentially" value="1" />
4821        </attr>
4822    </declare-styleable>
4823
4824    <!-- ========================== -->
4825    <!-- State attributes           -->
4826    <!-- ========================== -->
4827    <eat-comment />
4828
4829    <!-- Drawable states.
4830         The mapping of Drawable states to a particular drawables is specified
4831         in the "state" elements of a Widget's "selector" element.
4832         Possible values:
4833         <ul>
4834         <li>"state_focused"
4835         <li>"state_window_focused"
4836         <li>"state_enabled"
4837         <li>"state_checked"
4838         <li>"state_selected"
4839         <li>"state_active"
4840         <li>"state_single"
4841         <li>"state_first"
4842         <li>"state_mid"
4843         <li>"state_last"
4844         <li>"state_only"
4845         <li>"state_pressed"
4846         <li>"state_activated"
4847         <li>"state_error"
4848         <li>"state_circle"
4849         <li>"state_rect"
4850         <li>"state_grow"
4851         <li>"state_move"
4852         <li>"state_hovered"
4853         <li>"state_drag_can_accept"
4854         <li>"state_drag_hovered"
4855         <li>"state_accessibility_focused"
4856         </ul>  -->
4857    <declare-styleable name="DrawableStates">
4858        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
4859             set when a view has input focus. -->
4860        <attr name="state_focused" format="boolean" />
4861        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
4862             set when a view's window has input focus. -->
4863        <attr name="state_window_focused" format="boolean" />
4864        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
4865             set when a view is enabled. -->
4866        <attr name="state_enabled" format="boolean" />
4867        <!-- State identifier indicating that the object <var>may</var> display a check mark.
4868             See {@link R.attr#state_checked} for the identifier that indicates whether it is
4869             actually checked. -->
4870        <attr name="state_checkable" format="boolean"/>
4871        <!-- State identifier indicating that the object is currently checked.  See
4872             {@link R.attr#state_checkable} for an additional identifier that can indicate if
4873             any object may ever display a check, regardless of whether state_checked is
4874             currently set. -->
4875        <attr name="state_checked" format="boolean"/>
4876        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
4877             set when a view (or one of its parents) is currently selected. -->
4878        <attr name="state_selected" format="boolean" />
4879        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
4880             set when the user is pressing down in a view. -->
4881        <attr name="state_pressed" format="boolean" />
4882        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
4883             set when a view or its parent has been "activated" meaning the user has currently
4884             marked it as being of interest.  This is an alternative representation of
4885             state_checked for when the state should be propagated down the view hierarchy. -->
4886        <attr name="state_activated" format="boolean" />
4887        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
4888        <attr name="state_active" format="boolean" />
4889        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
4890        <attr name="state_single" format="boolean" />
4891        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
4892        <attr name="state_first" format="boolean" />
4893        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
4894        <attr name="state_middle" format="boolean" />
4895        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
4896        <attr name="state_last" format="boolean" />
4897        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
4898             indicating that the Drawable is in a view that is hardware accelerated.
4899             This means that the device can at least render a full-screen scaled
4900             bitmap with one layer of text and bitmaps composited on top of it
4901             at 60fps.  When this is set, the colorBackgroundCacheHint will be
4902             ignored even if it specifies a solid color, since that optimization
4903             is not needed. -->
4904        <attr name="state_accelerated" format="boolean" />
4905        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
4906             set when a pointer is hovering over the view. -->
4907        <attr name="state_hovered" format="boolean" />
4908        <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
4909             indicating that the Drawable is in a view that is capable of accepting a drop of
4910             the content currently being manipulated in a drag-and-drop operation. -->
4911        <attr name="state_drag_can_accept" format="boolean" />
4912        <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
4913             indicating that a drag operation (for which the Drawable's view is a valid recipient)
4914             is currently positioned over the Drawable. -->
4915        <attr name="state_drag_hovered" format="boolean" />
4916        <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
4917             indicating that a View has accessibility focus. -->
4918        <attr name="state_accessibility_focused" format="boolean" />
4919    </declare-styleable>
4920    <declare-styleable name="ViewDrawableStates">
4921        <attr name="state_pressed" />
4922        <attr name="state_focused" />
4923        <attr name="state_selected" />
4924        <attr name="state_window_focused" />
4925        <attr name="state_enabled" />
4926        <attr name="state_activated" />
4927        <attr name="state_accelerated" />
4928        <attr name="state_hovered" />
4929        <attr name="state_drag_can_accept" />
4930        <attr name="state_drag_hovered" />
4931    </declare-styleable>
4932    <!-- State array representing a menu item that is currently checked. -->
4933    <declare-styleable name="MenuItemCheckedState">
4934        <attr name="state_checkable" />
4935        <attr name="state_checked" />
4936    </declare-styleable>
4937    <!-- State array representing a menu item that is checkable but is not currently checked. -->
4938    <declare-styleable name="MenuItemUncheckedState">
4939        <attr name="state_checkable" />
4940    </declare-styleable>
4941    <!-- State array representing a menu item that is currently focused and checked. -->
4942    <declare-styleable name="MenuItemCheckedFocusedState">
4943        <attr name="state_checkable" />
4944        <attr name="state_checked" />
4945        <attr name="state_focused" />
4946    </declare-styleable>
4947    <!-- State array representing a menu item that is focused and checkable but is not currently checked. -->
4948    <declare-styleable name="MenuItemUncheckedFocusedState">
4949        <attr name="state_checkable" />
4950        <attr name="state_focused" />
4951    </declare-styleable>
4952    <!-- State array representing an expandable list child's indicator. -->
4953    <declare-styleable name="ExpandableListChildIndicatorState">
4954        <!-- State identifier indicating the child is the last child within its group. -->
4955        <attr name="state_last" />
4956    </declare-styleable>
4957    <!-- State array representing an expandable list group's indicator. -->
4958    <declare-styleable name="ExpandableListGroupIndicatorState">
4959        <!-- State identifier indicating the group is expanded. -->
4960        <attr name="state_expanded" format="boolean" />
4961        <!-- State identifier indicating the group is empty (has no children). -->
4962        <attr name="state_empty" format="boolean" />
4963    </declare-styleable>
4964    <declare-styleable name="PopupWindowBackgroundState">
4965        <!-- State identifier indicating the popup will be above the anchor. -->
4966        <attr name="state_above_anchor" format="boolean" />
4967    </declare-styleable>
4968    <declare-styleable name="TextViewMultiLineBackgroundState">
4969        <!-- State identifier indicating a TextView has a multi-line layout. -->
4970        <attr name="state_multiline" format="boolean" />
4971    </declare-styleable>
4972
4973    <!-- ***************************************************************** -->
4974    <!-- Support for Searchable activities. -->
4975    <!-- ***************************************************************** -->
4976    <eat-comment />
4977
4978    <!-- Searchable activities and applications must provide search configuration information
4979        in an XML file, typically called searchable.xml.  This file is referenced in your manifest.
4980        For a more in-depth discussion of search configuration, please refer to
4981        {@link android.app.SearchManager}. -->
4982    <declare-styleable name="Searchable">
4983          <!--<strong>This is deprecated.</strong><br/>The default
4984              application icon is now always used, so this attribute is
4985              obsolete.-->
4986        <attr name="icon" />
4987        <!-- This is the user-displayed name of the searchable activity.  <i>Required
4988            attribute.</i> -->
4989        <attr name="label" />
4990        <!-- If supplied, this string will be displayed as a hint to the user.  <i>Optional
4991            attribute.</i> -->
4992        <attr name="hint" />
4993        <!-- If supplied, this string will be displayed as the text of the "Search" button.
4994          <i>Optional attribute.</i>
4995          {@deprecated This will create a non-standard UI appearance, because the search bar UI is
4996                       changing to use only icons for its buttons.}-->
4997        <attr name="searchButtonText" format="string" />
4998        <attr name="inputType" />
4999        <attr name="imeOptions" />
5000
5001        <!-- Additional features are controlled by mode bits in this field.  Omitting
5002            this field, or setting to zero, provides default behavior.  <i>Optional attribute.</i>
5003        -->
5004        <attr name="searchMode">
5005          <!-- If set, this flag enables the display of the search target (label) within the
5006               search bar.  If neither bad mode is selected, no badge will be shown. -->
5007          <flag name="showSearchLabelAsBadge" value="0x04" />
5008          <!--<strong>This is deprecated.</strong><br/>The default
5009              application icon is now always used, so this option is
5010              obsolete.-->
5011          <flag name="showSearchIconAsBadge" value="0x08" />
5012          <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to
5013               be considered as the text for suggestion query rewriting.  This should only
5014               be used when the values in SUGGEST_COLUMN_INTENT_DATA are suitable for user
5015               inspection and editing - typically, HTTP/HTTPS Uri's. -->
5016          <flag name="queryRewriteFromData" value="0x10" />
5017          <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_TEXT_1 to
5018               be considered as the text for suggestion query rewriting.  This should be used
5019               for suggestions in which no query text is provided and the SUGGEST_COLUMN_INTENT_DATA
5020               values are not suitable for user inspection and editing. -->
5021          <flag name="queryRewriteFromText" value="0x20" />
5022        </attr>
5023
5024        <!-- Voice search features are controlled by mode bits in this field.  Omitting
5025            this field, or setting to zero, provides default behavior.
5026            If showVoiceSearchButton is set, then launchWebSearch or launchRecognizer must
5027            also be set.  <i>Optional attribute.</i>
5028        -->
5029        <attr name="voiceSearchMode">
5030          <!-- If set, display a voice search button.  This only takes effect if voice search is
5031               available on the device. -->
5032          <flag name="showVoiceSearchButton" value="0x01" />
5033          <!-- If set, the voice search button will take the user directly to a built-in
5034               voice web search activity.  Most applications will not use this flag, as it
5035               will take the user away from the activity in which search was invoked. -->
5036          <flag name="launchWebSearch" value="0x02" />
5037          <!-- If set, the voice search button will take the user directly to a built-in
5038               voice recording activity.  This activity will prompt the user to speak,
5039               transcribe the spoken text, and forward the resulting query
5040               text to the searchable activity, just as if the user had typed it into
5041               the search UI and clicked the search button. -->
5042          <flag name="launchRecognizer" value="0x04" />
5043        </attr>
5044
5045        <!-- If provided, this specifies the language model that should be used by the
5046             voice recognition system.  See
5047             {@link android.speech.RecognizerIntent#EXTRA_LANGUAGE_MODEL } for more information.
5048             If not provided, the default value
5049             {@link android.speech.RecognizerIntent#LANGUAGE_MODEL_FREE_FORM } will be used. -->
5050        <attr name="voiceLanguageModel" format="string" />
5051        <!-- If provided, this specifies a prompt that will be displayed during voice input. -->
5052        <attr name="voicePromptText" format="string" />
5053        <!-- If provided, this specifies the spoken language to be expected, and that it will be
5054             different than the one set in the {@link java.util.Locale#getDefault()}. -->
5055        <attr name="voiceLanguage" format="string" />
5056        <!-- If provided, enforces the maximum number of results to return, including the "best"
5057             result which will always be provided as the SEARCH intent's primary query.  Must be one
5058             or greater.  If not provided, the recognizer will choose how many results to return.
5059             -->
5060        <attr name="voiceMaxResults" format="integer" />
5061
5062        <!-- If provided, this is the trigger indicating that the searchable activity
5063            provides suggestions as well.  The value must be a fully-qualified content provider
5064            authority (e.g. "com.example.android.apis.SuggestionProvider") and should match the
5065            "android:authorities" tag in your content provider's manifest entry.  <i>Optional
5066            attribute.</i> -->
5067        <attr name="searchSuggestAuthority" format="string" />
5068        <!-- If provided, this will be inserted in the suggestions query Uri, after the authority
5069            you have provide but before the standard suggestions path. <i>Optional attribute.</i>
5070            -->
5071        <attr name="searchSuggestPath" format="string" />
5072        <!-- If provided, suggestion queries will be passed into your query function
5073            as the <i>selection</i> parameter.  Typically this will be a WHERE clause for your
5074            database, and will contain a single question mark, which represents the actual query
5075            string that has been typed by the user.  If not provided, then the user query text
5076            will be appended to the query Uri (after an additional "/".)  <i>Optional
5077            attribute.</i> -->
5078        <attr name="searchSuggestSelection" format="string" />
5079
5080        <!-- If provided, and not overridden by an action in the selected suggestion, this
5081            string will be placed in the action field of the {@link android.content.Intent Intent}
5082            when the user clicks a suggestion.  <i>Optional attribute.</i> -->
5083        <attr name="searchSuggestIntentAction" format="string" />
5084        <!-- If provided, and not overridden by an action in the selected suggestion, this
5085            string will be placed in the data field of the {@link android.content.Intent Intent}
5086            when the user clicks a suggestion.  <i>Optional attribute.</i> -->
5087        <attr name="searchSuggestIntentData" format="string" />
5088
5089        <!-- If provided, this is the minimum number of characters needed to trigger
5090             search suggestions. The default value is 0. <i>Optional attribute.</i> -->
5091        <attr name="searchSuggestThreshold" format="integer" />
5092
5093        <!-- If provided and <code>true</code>, this searchable activity will be
5094             included in any global lists of search targets.
5095             The default value is <code>false</code>. <i>Optional attribute.</i>. -->
5096        <attr name="includeInGlobalSearch" format="boolean" />
5097
5098        <!-- If provided and <code>true</code>, this searchable activity will be invoked for all
5099             queries in a particular session. If set to <code>false</code> and the activity
5100             returned zero results for a query, it will not be invoked again in that session for
5101             supersets of that zero-results query. For example, if the activity returned zero
5102             results for "bo", it would not be queried again for "bob".
5103             The default value is <code>false</code>. <i>Optional attribute.</i>. -->
5104        <attr name="queryAfterZeroResults" format="boolean" />
5105        <!-- If provided, this string will be used to describe the searchable item in the
5106             searchable items settings within system search settings. <i>Optional
5107             attribute.</i> -->
5108        <attr name="searchSettingsDescription" format="string" />
5109
5110        <!-- If provided and <code>true</code>, URLs entered in the search dialog while searching
5111             within this activity would be detected and treated as URLs (show a 'go' button in the
5112             keyboard and invoke the browser directly when user launches the URL instead of passing
5113             the URL to the activity). If set to <code>false</code> any URLs entered are treated as
5114             normal query text.
5115             The default value is <code>false</code>. <i>Optional attribute.</i>. -->
5116        <attr name="autoUrlDetect" format="boolean" />
5117
5118    </declare-styleable>
5119
5120    <!-- In order to process special action keys during search, you must define them using
5121            one or more "ActionKey" elements in your Searchable metadata.  For a more in-depth
5122            discussion of action code handling, please refer to {@link android.app.SearchManager}.
5123    -->
5124    <declare-styleable name="SearchableActionKey">
5125        <!-- This attribute denotes the action key you wish to respond to.  Note that not
5126            all action keys are actually supported using this mechanism, as many of them are
5127            used for typing, navigation, or system functions.  This will be added to the
5128            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
5129            searchable activity.  To examine the key code, use
5130            {@link android.content.Intent#getIntExtra getIntExtra(SearchManager.ACTION_KEY)}.
5131            <p>Note, in addition to the keycode, you must also provide one or more of the action
5132            specifier attributes.  <i>Required attribute.</i> -->
5133        <attr name="keycode" />
5134
5135        <!-- If you wish to handle an action key during normal search query entry, you
5136            must define an action string here.  This will be added to the
5137            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
5138            searchable activity.  To examine the string, use
5139            {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}.
5140            <i>Optional attribute.</i> -->
5141        <attr name="queryActionMsg"  format="string" />
5142
5143        <!-- If you wish to handle an action key while a suggestion is being displayed <i>and
5144            selected</i>, there are two ways to handle this.  If <i>all</i> of your suggestions
5145            can handle the action key, you can simply define the action message using this
5146            attribute.  This will be added to the
5147            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
5148            searchable activity.  To examine the string, use
5149            {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}.
5150            <i>Optional attribute.</i> -->
5151        <attr name="suggestActionMsg"  format="string" />
5152
5153        <!-- If you wish to handle an action key while a suggestion is being displayed <i>and
5154            selected</i>, but you do not wish to enable this action key for every suggestion,
5155            then you can use this attribute to control it on a suggestion-by-suggestion basis.
5156            First, you must define a column (and name it here) where your suggestions will include
5157            the action string.  Then, in your content provider, you must provide this column, and
5158            when desired, provide data in this column.
5159            The search manager will look at your suggestion cursor, using the string
5160            provided here in order to select a column, and will use that to select a string from
5161            the cursor.  That string will be added to the
5162            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to
5163            your searchable activity.  To examine the string, use
5164            {@link android.content.Intent#getStringExtra
5165            getStringExtra(SearchManager.ACTION_MSG)}.  <i>If the data does not exist for the
5166            selection suggestion, the action key will be ignored.</i><i>Optional attribute.</i> -->
5167        <attr name="suggestActionMsgColumn" format="string" />
5168
5169    </declare-styleable>
5170
5171    <!-- ***************************************************************** -->
5172    <!-- Support for MapView. -->
5173    <!-- ***************************************************************** -->
5174    <eat-comment />
5175
5176    <!-- The set of attributes for a MapView. -->
5177    <declare-styleable name="MapView">
5178        <!-- Value is a string that specifies the Maps API Key to use. -->
5179        <attr name="apiKey" format="string" />
5180    </declare-styleable>
5181
5182    <!-- **************************************************************** -->
5183    <!-- Menu XML inflation. -->
5184    <!-- **************************************************************** -->
5185    <eat-comment />
5186
5187    <!-- Base attributes that are available to all Menu objects. -->
5188    <declare-styleable name="Menu">
5189    </declare-styleable>
5190
5191    <!-- Base attributes that are available to all groups. -->
5192    <declare-styleable name="MenuGroup">
5193
5194        <!-- The ID of the group. -->
5195        <attr name="id" />
5196
5197        <!-- The category applied to all items within this group.
5198             (This will be or'ed with the orderInCategory attribute.) -->
5199        <attr name="menuCategory">
5200            <!-- Items are part of a container. -->
5201            <enum name="container" value="0x00010000" />
5202            <!-- Items are provided by the system. -->
5203            <enum name="system" value="0x00020000" />
5204            <!-- Items are user-supplied secondary (infrequently used). -->
5205            <enum name="secondary" value="0x00030000" />
5206            <!-- Items are alternative actions. -->
5207            <enum name="alternative" value="0x00040000" />
5208        </attr>
5209
5210        <!-- The order within the category applied to all items within this group.
5211             (This will be or'ed with the category attribute.) -->
5212        <attr name="orderInCategory" format="integer" />
5213
5214        <!-- Whether the items are capable of displaying a check mark. -->
5215        <attr name="checkableBehavior">
5216            <!-- The items are not checkable. -->
5217            <enum name="none" value="0" />
5218            <!-- The items are all checkable. -->
5219            <enum name="all" value="1" />
5220            <!-- The items are checkable and there will only be a single checked item in
5221                 this group. -->
5222            <enum name="single" value="2" />
5223        </attr>
5224
5225        <!-- Whether the items are shown/visible. -->
5226        <attr name="visible" />
5227
5228        <!-- Whether the items are enabled. -->
5229        <attr name="enabled" />
5230
5231    </declare-styleable>
5232
5233    <!-- Base attributes that are available to all Item objects. -->
5234    <declare-styleable name="MenuItem">
5235
5236        <!-- The ID of the item. -->
5237        <attr name="id" />
5238
5239        <!-- The category applied to the item.
5240             (This will be or'ed with the orderInCategory attribute.) -->
5241        <attr name="menuCategory" />
5242
5243        <!-- The order within the category applied to the item.
5244             (This will be or'ed with the category attribute.) -->
5245        <attr name="orderInCategory" />
5246
5247        <!-- The title associated with the item. -->
5248        <attr name="title" format="string" />
5249
5250        <!-- The condensed title associated with the item.  This is used in situations where the
5251             normal title may be too long to be displayed. -->
5252        <attr name="titleCondensed" format="string" />
5253
5254        <!-- The icon associated with this item.  This icon will not always be shown, so
5255             the title should be sufficient in describing this item. -->
5256        <attr name="icon" />
5257
5258        <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
5259             with alphabetic keys. -->
5260        <attr name="alphabeticShortcut" format="string" />
5261
5262        <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
5263             keyboard. -->
5264        <attr name="numericShortcut" format="string" />
5265
5266        <!-- Whether the item is capable of displaying a check mark. -->
5267        <attr name="checkable" format="boolean" />
5268
5269        <!-- Whether the item is checked.  Note that you must first have enabled checking with
5270             the checkable attribute or else the check mark will not appear. -->
5271        <attr name="checked" />
5272
5273        <!-- Whether the item is shown/visible. -->
5274        <attr name="visible" />
5275
5276        <!-- Whether the item is enabled. -->
5277        <attr name="enabled" />
5278
5279        <!-- Name of a method on the Context used to inflate the menu that will be
5280             called when the item is clicked. -->
5281        <attr name="onClick" />
5282
5283        <!-- How this item should display in the Action Bar, if present. -->
5284        <attr name="showAsAction">
5285            <!-- Never show this item in an action bar, show it in the overflow menu instead.
5286                 Mutually exclusive with "ifRoom" and "always". -->
5287            <flag name="never" value="0" />
5288            <!-- Show this item in an action bar if there is room for it as determined
5289                 by the system. Favor this option over "always" where possible.
5290                 Mutually exclusive with "never" and "always". -->
5291            <flag name="ifRoom" value="1" />
5292            <!-- Always show this item in an actionbar, even if it would override
5293                 the system's limits of how much stuff to put there. This may make
5294                 your action bar look bad on some screens. In most cases you should
5295                 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
5296            <flag name="always" value="2" />
5297            <!-- When this item is shown as an action in the action bar, show a text
5298                 label with it even if it has an icon representation. -->
5299            <flag name="withText" value="4" />
5300            <!-- This item's action view collapses to a normal menu
5301                 item. When expanded, the action view takes over a
5302                 larger segment of its container. -->
5303            <flag name="collapseActionView" value="8" />
5304        </attr>
5305
5306        <!-- An optional layout to be used as an action view.
5307             See {@link android.view.MenuItem#setActionView(android.view.View)}
5308             for more info. -->
5309        <attr name="actionLayout" format="reference" />
5310
5311        <!-- The name of an optional View class to instantiate and use as an
5312             action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
5313             for more info. -->
5314        <attr name="actionViewClass" format="string" />
5315
5316        <!-- The name of an optional ActionProvider class to instantiate an action view
5317             and perform operations such as default action for that menu item.
5318             See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
5319             for more info. -->
5320        <attr name="actionProviderClass" format="string" />
5321
5322    </declare-styleable>
5323
5324    <!-- Attrbitutes for a ActvityChooserView. -->
5325    <declare-styleable name="ActivityChooserView">
5326        <!-- The maximal number of items initially shown in the activity list. -->
5327        <attr name="initialActivityCount" format="string" />
5328        <!-- The drawable to show in the button for expanding the activities overflow popup.
5329             <strong>Note:</strong> Clients would like to set this drawable
5330             as a clue about the action the chosen activity will perform. For
5331             example, if share activity is to be chosen the drawable should
5332             give a clue that sharing is to be performed.
5333         -->
5334        <attr name="expandActivityOverflowButtonDrawable" format="reference" />
5335    </declare-styleable>
5336
5337    <!-- **************************************************************** -->
5338    <!-- Preferences framework. -->
5339    <!-- **************************************************************** -->
5340    <eat-comment />
5341
5342    <!-- Base attributes available to PreferenceGroup. -->
5343    <declare-styleable name="PreferenceGroup">
5344        <!-- Whether to order the Preference under this group as they appear in the XML file.
5345             If this is false, the ordering will follow the Preference order attribute and
5346             default to alphabetic for those without the order attribute. -->
5347        <attr name="orderingFromXml" format="boolean" />
5348    </declare-styleable>
5349
5350    <!-- Attribute for a header describing the item shown in the top-level list
5351         from which the selects the set of preference to dig in to. -->
5352    <declare-styleable name="PreferenceHeader">
5353        <!-- Identifier value for the header. -->
5354        <attr name="id" />
5355        <!-- The title of the item that is shown to the user. -->
5356        <attr name="title" />
5357        <!-- The summary for the item. -->
5358        <attr name="summary" format="string" />
5359        <!-- The title for the bread crumb of this item. -->
5360        <attr name="breadCrumbTitle" format="string" />
5361        <!-- The short title for the bread crumb of this item. -->
5362        <attr name="breadCrumbShortTitle" format="string" />
5363        <!-- An icon for the item. -->
5364        <attr name="icon" />
5365        <!-- The fragment that is displayed when the user selects this item. -->
5366        <attr name="fragment" format="string" />
5367    </declare-styleable>
5368
5369    <!-- WARNING:  If adding attributes to Preference, make sure it does not conflict
5370                   with a View's attributes.  Some subclasses (e.g., EditTextPreference)
5371                   proxy all attributes to its EditText widget. -->
5372    <eat-comment />
5373
5374    <!-- Base attributes available to Preference. -->
5375    <declare-styleable name="Preference">
5376        <!-- The optional icon for the preference -->
5377        <attr name="icon" />
5378        <!-- The key to store the Preference value. -->
5379        <attr name="key" format="string" />
5380        <!-- The title for the Preference in a PreferenceActivity screen. -->
5381        <attr name="title" />
5382        <!-- The summary for the Preference in a PreferenceActivity screen. -->
5383        <attr name="summary" />
5384        <!-- The order for the Preference (lower values are to be ordered first). If this is not
5385             specified, the default orderin will be alphabetic. -->
5386        <attr name="order" format="integer" />
5387        <!-- When used inside of a modern PreferenceActivity, this declares
5388             a new PreferenceFragment to be shown when the user selects this item. -->
5389        <attr name="fragment" />
5390        <!-- The layout for the Preference in a PreferenceActivity screen. This should
5391             rarely need to be changed, look at widgetLayout instead. -->
5392        <attr name="layout" />
5393        <!-- The layout for the controllable widget portion of a Preference. This is inflated
5394             into the layout for a Preference and should be used more frequently than
5395             the layout attribute. For example, a checkbox preference would specify
5396             a custom layout (consisting of just the CheckBox) here. -->
5397        <attr name="widgetLayout" format="reference" />
5398        <!-- Whether the Preference is enabled. -->
5399        <attr name="enabled" />
5400        <!-- Whether the Preference is selectable. -->
5401        <attr name="selectable" format="boolean" />
5402        <!-- The key of another Preference that this Preference will depend on.  If the other
5403             Preference is not set or is off, this Preference will be disabled. -->
5404        <attr name="dependency" format="string" />
5405        <!-- Whether the Preference stores its value to the shared preferences. -->
5406        <attr name="persistent" />
5407        <!-- The default value for the preference, which will be set either if persistence
5408             is off or persistence is on and the preference is not found in the persistent
5409             storage.  -->
5410        <attr name="defaultValue" format="string|boolean|integer|reference|float" />
5411        <!-- Whether the view of this Preference should be disabled when
5412             this Preference is disabled. -->
5413        <attr name="shouldDisableView" format="boolean" />
5414    </declare-styleable>
5415
5416    <!-- Base attributes available to CheckBoxPreference. -->
5417    <declare-styleable name="CheckBoxPreference">
5418        <!-- The summary for the Preference in a PreferenceActivity screen when the
5419             CheckBoxPreference is checked. If separate on/off summaries are not
5420             needed, the summary attribute can be used instead. -->
5421        <attr name="summaryOn" format="string" />
5422        <!-- The summary for the Preference in a PreferenceActivity screen when the
5423             CheckBoxPreference is unchecked. If separate on/off summaries are not
5424             needed, the summary attribute can be used instead. -->
5425        <attr name="summaryOff" format="string" />
5426        <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default,
5427             dependents will be disabled when this is unchecked, so the value of this preference is false. -->
5428        <attr name="disableDependentsState" format="boolean" />
5429    </declare-styleable>
5430
5431    <!-- Base attributes available to DialogPreference. -->
5432    <declare-styleable name="DialogPreference">
5433        <!-- The title in the dialog. -->
5434        <attr name="dialogTitle" format="string" />
5435        <!-- The message in the dialog. If a dialogLayout is provided and contains
5436             a TextView with ID android:id/message, this message will be placed in there. -->
5437        <attr name="dialogMessage" format="string" />
5438        <!-- The icon for the dialog. -->
5439        <attr name="dialogIcon" format="reference" />
5440        <!-- The positive button text for the dialog. Set to @null to hide the positive button. -->
5441        <attr name="positiveButtonText" format="string" />
5442        <!-- The negative button text for the dialog. Set to @null to hide the negative button. -->
5443        <attr name="negativeButtonText" format="string" />
5444        <!-- A layout to be used as the content View for the dialog. By default, this shouldn't
5445             be needed. If a custom DialogPreference is required, this should be set. For example,
5446             the EditTextPreference uses a layout with an EditText as this attribute. -->
5447        <attr name="dialogLayout" format="reference" />
5448    </declare-styleable>
5449
5450    <!-- Base attributes available to ListPreference. -->
5451    <declare-styleable name="ListPreference">
5452        <!-- The human-readable array to present as a list. Each entry must have a corresponding
5453             index in entryValues. -->
5454        <attr name="entries" />
5455        <!-- The array to find the value to save for a preference when an entry from
5456             entries is selected. If a user clicks on the second item in entries, the
5457             second item in this array will be saved to the preference. -->
5458        <attr name="entryValues" format="reference" />
5459    </declare-styleable>
5460
5461    <declare-styleable name="MultiSelectListPreference">
5462        <!-- The human-readable array to present as a list. Each entry must have a corresponding
5463             index in entryValues. -->
5464        <attr name="entries" />
5465        <!-- The array to find the value to save for a preference when an entry from
5466             entries is selected. If a user clicks the second item in entries, the
5467             second item in this array will be saved to the preference. -->
5468        <attr name="entryValues" />
5469    </declare-styleable>
5470
5471    <!-- Base attributes available to RingtonePreference. -->
5472    <declare-styleable name="RingtonePreference">
5473        <!-- Which ringtone type(s) to show in the picker. -->
5474        <attr name="ringtoneType">
5475            <!-- Ringtones. -->
5476            <flag name="ringtone" value="1" />
5477            <!-- Notification sounds. -->
5478            <flag name="notification" value="2" />
5479            <!-- Alarm sounds. -->
5480            <flag name="alarm" value="4" />
5481            <!-- All available ringtone sounds. -->
5482            <flag name="all" value="7" />
5483        </attr>
5484        <!-- Whether to show an item for a default sound. -->
5485        <attr name="showDefault" format="boolean" />
5486        <!-- Whether to show an item for 'Silent'. -->
5487        <attr name="showSilent" format="boolean" />
5488    </declare-styleable>
5489
5490    <!-- Base attributes available to VolumePreference. -->
5491    <declare-styleable name="VolumePreference">
5492        <!-- Different audio stream types. -->
5493        <attr name="streamType">
5494            <enum name="voice" value="0" />
5495            <enum name="system" value="1" />
5496            <enum name="ring" value="2" />
5497            <enum name="music" value="3" />
5498            <enum name="alarm" value="4" />
5499        </attr>
5500    </declare-styleable>
5501
5502    <declare-styleable name="InputMethodService">
5503        <!-- Background to use for entire input method when it is being
5504             shown in fullscreen mode with the extract view, to ensure
5505             that it completely covers the application.  This allows,
5506             for example, the candidate view to be hidden
5507             while in fullscreen mode without having the application show through
5508             behind it.-->
5509        <attr name="imeFullscreenBackground" format="reference|color" />
5510        <!-- Animation to use when showing the fullscreen extract UI after
5511             it had previously been hidden. -->
5512        <attr name="imeExtractEnterAnimation" format="reference" />
5513        <!-- Animation to use when hiding the fullscreen extract UI after
5514             it had previously been shown. -->
5515        <attr name="imeExtractExitAnimation" format="reference" />
5516    </declare-styleable>
5517
5518    <declare-styleable name="KeyboardView">
5519        <!-- Default KeyboardView style. -->
5520        <attr name="keyboardViewStyle" format="reference" />
5521
5522        <!-- Image for the key. This image needs to be a StateListDrawable, with the following
5523             possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
5524             checkable+checked+pressed. -->
5525        <attr name="keyBackground" format="reference" />
5526
5527        <!-- Size of the text for character keys. -->
5528        <attr name="keyTextSize" format="dimension" />
5529
5530        <!-- Size of the text for custom keys with some text and no icon. -->
5531        <attr name="labelTextSize" format="dimension" />
5532
5533        <!-- Color to use for the label in a key. -->
5534        <attr name="keyTextColor" format="color" />
5535
5536        <!-- Layout resource for key press feedback.-->
5537        <attr name="keyPreviewLayout" format="reference" />
5538
5539        <!-- Vertical offset of the key press feedback from the key. -->
5540        <attr name="keyPreviewOffset" format="dimension" />
5541
5542        <!-- Height of the key press feedback popup. -->
5543        <attr name="keyPreviewHeight" format="dimension" />
5544
5545        <!-- Amount to offset the touch Y coordinate by, for bias correction. -->
5546        <attr name="verticalCorrection" format="dimension" />
5547
5548        <!-- Layout resource for popup keyboards. -->
5549        <attr name="popupLayout" format="reference" />
5550
5551        <attr name="shadowColor" />
5552        <attr name="shadowRadius" />
5553    </declare-styleable>
5554
5555    <declare-styleable name="KeyboardViewPreviewState">
5556        <!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView}
5557                key preview background. -->
5558        <attr name="state_long_pressable" format="boolean" />
5559    </declare-styleable>
5560
5561    <declare-styleable name="Keyboard">
5562        <!-- Default width of a key, in pixels or percentage of display width. -->
5563        <attr name="keyWidth" format="dimension|fraction" />
5564        <!-- Default height of a key, in pixels or percentage of display width. -->
5565        <attr name="keyHeight" format="dimension|fraction" />
5566        <!-- Default horizontal gap between keys. -->
5567        <attr name="horizontalGap" format="dimension|fraction" />
5568        <!-- Default vertical gap between rows of keys. -->
5569        <attr name="verticalGap" format="dimension|fraction" />
5570    </declare-styleable>
5571
5572    <declare-styleable name="Keyboard_Row">
5573        <!-- Row edge flags. -->
5574        <attr name="rowEdgeFlags">
5575            <!-- Row is anchored to the top of the keyboard. -->
5576            <flag name="top" value="4" />
5577            <!-- Row is anchored to the bottom of the keyboard. -->
5578            <flag name="bottom" value="8" />
5579        </attr>
5580        <!-- Mode of the keyboard. If the mode doesn't match the
5581             requested keyboard mode, the row will be skipped. -->
5582        <attr name="keyboardMode" format="reference" />
5583    </declare-styleable>
5584
5585    <declare-styleable name="Keyboard_Key">
5586        <!-- The unicode value or comma-separated values that this key outputs. -->
5587        <attr name="codes" format="integer|string" />
5588        <!-- The XML keyboard layout of any popup keyboard. -->
5589        <attr name="popupKeyboard" format="reference" />
5590        <!-- The characters to display in the popup keyboard. -->
5591        <attr name="popupCharacters" format="string" />
5592        <!-- Key edge flags. -->
5593        <attr name="keyEdgeFlags">
5594            <!-- Key is anchored to the left of the keyboard. -->
5595            <flag name="left" value="1" />
5596            <!-- Key is anchored to the right of the keyboard. -->
5597            <flag name="right" value="2" />
5598        </attr>
5599        <!-- Whether this is a modifier key such as Alt or Shift. -->
5600        <attr name="isModifier" format="boolean" />
5601        <!-- Whether this is a toggle key. -->
5602        <attr name="isSticky" format="boolean" />
5603        <!-- Whether long-pressing on this key will make it repeat. -->
5604        <attr name="isRepeatable" format="boolean" />
5605        <!-- The icon to show in the popup preview. -->
5606        <attr name="iconPreview" format="reference" />
5607        <!-- The string of characters to output when this key is pressed. -->
5608        <attr name="keyOutputText" format="string" />
5609        <!-- The label to display on the key. -->
5610        <attr name="keyLabel" format="string" />
5611        <!-- The icon to display on the key instead of the label. -->
5612        <attr name="keyIcon" format="reference" />
5613        <!-- Mode of the keyboard. If the mode doesn't match the
5614             requested keyboard mode, the key will be skipped. -->
5615        <attr name="keyboardMode" />
5616    </declare-styleable>
5617
5618    <!-- =============================== -->
5619    <!-- AppWidget package class attributes -->
5620    <!-- =============================== -->
5621    <eat-comment />
5622
5623    <!-- Use <code>appwidget-provider</code> as the root tag of the XML resource that
5624         describes an AppWidget provider.  See {@link android.appwidget android.appwidget}
5625         package for more info.
5626     -->
5627    <declare-styleable name="AppWidgetProviderInfo">
5628        <!-- Minimum width of the AppWidget. -->
5629        <attr name="minWidth"/>
5630        <!-- Minimum height of the AppWidget. -->
5631        <attr name="minHeight"/>
5632        <!-- Minimum width that the AppWidget can be resized to. -->
5633        <attr name="minResizeWidth" format="dimension"/>
5634        <!-- Minimum height that the AppWidget can be resized to. -->
5635        <attr name="minResizeHeight" format="dimension"/>
5636        <!-- Update period in milliseconds, or 0 if the AppWidget will update itself. -->
5637        <attr name="updatePeriodMillis" format="integer" />
5638        <!-- A resource id of a layout. -->
5639        <attr name="initialLayout" format="reference" />
5640        <!-- A resource id of a layout. -->
5641        <attr name="initialKeyguardLayout" format="reference" />
5642        <!-- A class name in the AppWidget's package to be launched to configure.
5643             If not supplied, then no activity will be launched. -->
5644        <attr name="configure" format="string" />
5645        <!-- A preview of what the AppWidget will look like after it's configured.
5646              If not supplied, the AppWidget's icon will be used. -->
5647        <attr name="previewImage" format="reference" />
5648        <!-- The view id of the AppWidget subview which should be auto-advanced.
5649             by the widget's host. -->
5650        <attr name="autoAdvanceViewId" format="reference" />
5651        <!-- Optional parameter which indicates if and how this widget can be
5652             resized. Supports combined values using | operator. -->
5653        <attr name="resizeMode" format="integer">
5654            <flag name="none" value="0x0" />
5655            <flag name="horizontal" value="0x1" />
5656            <flag name="vertical" value="0x2" />
5657        </attr>
5658        <!-- Optional parameter which indicates where this widget can be shown,
5659             ie. home screen, keyguard or both.
5660             resized. Supports combined values using | operator. -->
5661        <attr name="widgetCategory" format="integer">
5662            <flag name="home_screen" value="0x1" />
5663            <flag name="keyguard" value="0x2" />
5664        </attr>
5665    </declare-styleable>
5666
5667    <!-- =============================== -->
5668    <!-- Wallpaper preview attributes    -->
5669    <!-- =============================== -->
5670    <eat-comment />
5671
5672    <!-- Use <code>wallpaper-preview</code> as the root tag of the XML resource that
5673         describes a wallpaper preview. -->
5674    <declare-styleable name="WallpaperPreviewInfo">
5675        <!-- A resource id of a static drawable. -->
5676        <attr name="staticWallpaperPreview" format="reference" />
5677    </declare-styleable>
5678
5679    <!-- =============================== -->
5680    <!-- App package class attributes -->
5681    <!-- =============================== -->
5682    <eat-comment />
5683
5684    <!-- ============================= -->
5685    <!-- View package class attributes -->
5686    <!-- ============================= -->
5687    <eat-comment />
5688
5689    <!-- Attributes that can be used with <code>&lt;fragment&gt;</code>
5690         tags inside of the layout of an Activity.  This instantiates
5691         the given {@link android.app.Fragment} and inserts its content
5692         view into the current location in the layout. -->
5693    <declare-styleable name="Fragment">
5694        <!-- Supply the name of the fragment class to instantiate. -->
5695        <attr name="name" />
5696
5697        <!-- Supply an identifier name for the top-level view, to later retrieve it
5698             with {@link android.view.View#findViewById View.findViewById()} or
5699             {@link android.app.Activity#findViewById Activity.findViewById()}.
5700             This must be a
5701             resource reference; typically you set this using the
5702             <code>@+</code> syntax to create a new ID resources.
5703             For example: <code>android:id="@+id/my_id"</code> which
5704             allows you to later retrieve the view
5705             with <code>findViewById(R.id.my_id)</code>. -->
5706        <attr name="id" />
5707
5708        <!-- Supply a tag for the top-level view containing a String, to be retrieved
5709             later with {@link android.view.View#getTag View.getTag()} or
5710             searched for with {@link android.view.View#findViewWithTag
5711             View.findViewWithTag()}.  It is generally preferable to use
5712             IDs (through the android:id attribute) instead of tags because
5713             they are faster and allow for compile-time type checking. -->
5714        <attr name="tag" />
5715    </declare-styleable>
5716
5717    <!-- Use <code>device-admin</code> as the root tag of the XML resource that
5718         describes a
5719         {@link android.app.admin.DeviceAdminReceiver}, which is
5720         referenced from its
5721         {@link android.app.admin.DeviceAdminReceiver#DEVICE_ADMIN_META_DATA}
5722         meta-data entry.  Described here are the attributes that can be
5723         included in that tag. -->
5724    <declare-styleable name="DeviceAdmin">
5725        <!-- Control whether the admin is visible to the user, even when it
5726             is not enabled.  This is true by default.  You may want to make
5727             it false if your admin does not make sense to be turned on
5728             unless some explicit action happens in your app. -->
5729        <attr name="visible" />
5730    </declare-styleable>
5731
5732    <!-- Use <code>wallpaper</code> as the root tag of the XML resource that
5733         describes an
5734         {@link android.service.wallpaper.WallpaperService}, which is
5735         referenced from its
5736         {@link android.service.wallpaper.WallpaperService#SERVICE_META_DATA}
5737         meta-data entry.  Described here are the attributes that can be
5738         included in that tag. -->
5739    <declare-styleable name="Wallpaper">
5740        <attr name="settingsActivity" />
5741
5742        <!-- Reference to a the wallpaper's thumbnail bitmap. -->
5743        <attr name="thumbnail" format="reference" />
5744
5745        <!-- Name of the author of this component, e.g. Google. -->
5746        <attr name="author" format="reference" />
5747
5748        <!-- Short description of the component's purpose or behavior. -->
5749        <attr name="description" />
5750    </declare-styleable>
5751
5752    <!-- Use <code>dream</code> as the root tag of the XML resource that
5753         describes an
5754         {@link android.service.dreams.DreamService}, which is
5755         referenced from its
5756         {@link android.service.dreams.DreamService#DREAM_META_DATA}
5757         meta-data entry.  Described here are the attributes that can be
5758         included in that tag. -->
5759    <declare-styleable name="Dream">
5760        <!-- Component name of an activity that allows the user to modify
5761             the settings for this dream. -->
5762        <attr name="settingsActivity" />
5763    </declare-styleable>
5764
5765    <!-- =============================== -->
5766    <!-- Accounts package class attributes -->
5767    <!-- =============================== -->
5768    <eat-comment />
5769
5770    <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
5771         describes an account authenticator.
5772     -->
5773    <declare-styleable name="AccountAuthenticator">
5774        <!-- The account type this authenticator handles. -->
5775        <attr name="accountType" format="string"/>
5776        <!-- The user-visible name of the authenticator. -->
5777        <attr name="label"/>
5778        <!-- The icon of the authenticator. -->
5779        <attr name="icon"/>
5780        <!-- Smaller icon of the authenticator. -->
5781        <attr name="smallIcon" format="reference"/>
5782        <!-- A preferences.xml file for authenticator-specific settings. -->
5783        <attr name="accountPreferences" format="reference"/>
5784        <!-- Account handles its own token storage and permissions.
5785             Default to false
5786          -->
5787        <attr name="customTokens" format="boolean"/>
5788    </declare-styleable>
5789
5790    <!-- =============================== -->
5791    <!-- Accounts package class attributes -->
5792    <!-- =============================== -->
5793    <eat-comment />
5794
5795    <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
5796         describes an account authenticator.
5797     -->
5798    <declare-styleable name="SyncAdapter">
5799        <!-- the authority of a content provider. -->
5800        <attr name="contentAuthority" format="string"/>
5801        <attr name="accountType"/>
5802        <attr name="userVisible" format="boolean"/>
5803        <attr name="supportsUploading" format="boolean"/>
5804        <!-- Set to true to tell the SyncManager that this SyncAdapter supports
5805             multiple simultaneous syncs for the same account type and authority.
5806             Otherwise the SyncManager will be sure not to issue a start sync request
5807             to this SyncAdapter if the SyncAdapter is already syncing another account.
5808             Defaults to false.
5809             -->
5810        <attr name="allowParallelSyncs" format="boolean"/>
5811        <!-- Set to true to tell the SyncManager to automatically call setIsSyncable(..., ..., 1)
5812             for the SyncAdapter instead of issuaing an initialization sync to the SyncAdapter.
5813             Defaults to false.
5814             -->
5815        <attr name="isAlwaysSyncable" format="boolean"/>
5816        <!-- If provided, specifies the action of the settings
5817             activity for this SyncAdapter.
5818             -->
5819        <attr name="settingsActivity"/>
5820    </declare-styleable>
5821
5822    <!-- =============================== -->
5823    <!-- Contacts meta-data attributes -->
5824    <!-- =============================== -->
5825    <eat-comment />
5826
5827    <!-- TODO: remove this deprecated styleable. -->
5828    <eat-comment />
5829    <declare-styleable name="Icon">
5830        <attr name="icon" />
5831        <attr name="mimeType" />
5832    </declare-styleable>
5833
5834    <!-- TODO: remove this deprecated styleable -->
5835    <eat-comment />
5836    <declare-styleable name="IconDefault">
5837        <attr name="icon" />
5838    </declare-styleable>
5839
5840    <!-- Maps a specific contact data MIME-type to styling information. -->
5841    <declare-styleable name="ContactsDataKind">
5842        <!-- Mime-type handled by this mapping. -->
5843        <attr name="mimeType" />
5844        <!-- Icon used to represent data of this kind. -->
5845        <attr name="icon" />
5846        <!-- Column in data table that summarizes this data. -->
5847        <attr name="summaryColumn" format="string" />
5848        <!-- Column in data table that contains details for this data. -->
5849        <attr name="detailColumn" format="string" />
5850        <!-- Flag indicating that detail should be built from SocialProvider. -->
5851        <attr name="detailSocialSummary" format="boolean" />
5852        <!-- Resource representing the term "All Contacts" (e.g. "All Friends" or
5853        "All connections"). Optional (Default is "All Contacts"). -->
5854        <attr name="allContactsName" format="string" />
5855    </declare-styleable>
5856
5857    <!-- =============================== -->
5858    <!-- TabSelector class attributes -->
5859    <!-- =============================== -->
5860    <eat-comment />
5861
5862    <declare-styleable name="SlidingTab">
5863        <!-- Use "horizontal" for a row, "vertical" for a column.  The default is horizontal. -->
5864        <attr name="orientation" />
5865    </declare-styleable>
5866
5867    <!-- =============================== -->
5868    <!-- GlowPadView class attributes -->
5869    <!-- =============================== -->
5870    <eat-comment />
5871    <declare-styleable name="GlowPadView">
5872        <!-- Reference to an array resource that be shown as targets around a circle. -->
5873        <attr name="targetDrawables"/>
5874
5875        <!-- Reference to an array resource that be used as description for the targets around the circle. -->
5876        <attr name="targetDescriptions"/>
5877
5878        <!-- Reference to an array resource that be used to announce the directions with targets around the circle. -->
5879        <attr name="directionDescriptions"/>
5880
5881        <!-- Sets a drawable as the center. -->
5882        <attr name="handleDrawable"/>
5883
5884        <!-- Drawable to use for wave ripple animation. -->
5885        <attr name="outerRingDrawable" format="reference"/>
5886
5887        <!-- Drawble used for drawing points -->
5888        <attr name="pointDrawable" format="reference" />
5889
5890        <!-- Inner radius of glow area. -->
5891        <attr name="innerRadius"/>
5892
5893        <!-- Outer radius of glow area. Target icons will be drawn on this circle. -->
5894        <attr name="outerRadius"/>
5895
5896        <!-- Radius of glow under finger. -->
5897        <attr name="glowRadius" format="dimension" />
5898
5899        <!-- Tactile feedback duration for actions. Set to '0' for no vibration. -->
5900        <attr name="vibrationDuration"/>
5901
5902        <!-- How close we need to be before snapping to a target. -->
5903        <attr name="snapMargin"/>
5904
5905        <!-- Number of waves/chevrons to show in animation. -->
5906        <attr name="feedbackCount"/>
5907
5908        <!-- Used when the handle shouldn't wait to be hit before following the finger -->
5909        <attr name="alwaysTrackFinger"/>
5910
5911        <!-- Location along the circle of the first item, in degrees.-->
5912        <attr name="firstItemOffset" format="float" />
5913
5914        <!-- Causes targets to snap to the finger location on activation. -->
5915        <attr name="magneticTargets" format="boolean" />
5916
5917        <attr name="gravity" />
5918
5919        <!-- Determine whether the glow pad is allowed to scale to fit the bounds indicated
5920            by its parent. If this is set to false, no scaling will occur. If this is set to true
5921            scaling will occur to fit for any axis in which gravity is set to center. -->
5922        <attr name="allowScaling" format="boolean" />
5923    </declare-styleable>
5924
5925    <!-- =============================== -->
5926    <!-- MultiWaveView class attributes -->
5927    <!-- =============================== -->
5928    <eat-comment />
5929    <declare-styleable name="MultiWaveView">
5930        <!-- Reference to an array resource that be shown as targets around a circle. -->
5931        <attr name="targetDrawables" format="reference"/>
5932
5933        <!-- Reference to an array resource that be used as description for the targets around the circle. -->
5934        <attr name="targetDescriptions" format="reference"/>
5935
5936        <!-- Reference to an array resource that be used to announce the directions with targets around the circle. -->
5937        <attr name="directionDescriptions" format="reference"/>
5938
5939        <!-- Sets a drawable as the drag center. -->
5940        <attr name="handleDrawable" format="reference" />
5941
5942        <!-- Drawables to use for chevron animations. May be null. -->
5943        <attr name="chevronDrawables" format="reference"/>
5944
5945        <!-- Drawable to use for wave ripple animation. -->
5946        <attr name="waveDrawable" format="reference" />
5947
5948        <!-- Outer radius of target circle. Icons will be drawn on this circle. -->
5949        <attr name="outerRadius" format="dimension" />
5950
5951        <!-- Tactile feedback duration for actions. Set to '0' for no vibration. -->
5952        <attr name="vibrationDuration" format="integer"/>
5953
5954        <!-- How close we need to be before snapping to a target. -->
5955        <attr name="snapMargin" format="dimension" />
5956
5957        <!-- Number of waves/chevrons to show in animation. -->
5958        <attr name="feedbackCount" format="integer" />
5959
5960        <!-- Used when the handle shouldn't wait to be hit before following the finger -->
5961        <attr name="alwaysTrackFinger" format="boolean" />
5962    </declare-styleable>
5963
5964    <!-- =============================== -->
5965    <!-- SizeAdaptiveLayout class attributes -->
5966    <!-- =============================== -->
5967    <eat-comment />
5968    <declare-styleable name="SizeAdaptiveLayout_Layout">
5969      <!-- The maximum valid height for this item. -->
5970      <attr name="layout_maxHeight" format="dimension">
5971        <!-- Indicates that the view may be resized arbitrarily large. -->
5972        <enum name="unbounded" value="-1" />
5973      </attr>
5974      <!-- The minimum valid height for this item. -->
5975      <attr name="layout_minHeight" format="dimension" />
5976    </declare-styleable>
5977    <declare-styleable name="SizeAdaptiveLayout" />
5978
5979    <!-- =============================== -->
5980    <!-- Location package class attributes -->
5981    <!-- =============================== -->
5982    <eat-comment />
5983
5984    <!-- Use <code>injected-location-setting</code> as the root tag of the XML resource that
5985         describes an injected "Location services" setting. Note that the status value (subtitle)
5986         for the setting is specified dynamically by a subclass of SettingInjectorService.
5987     -->
5988    <declare-styleable name="SettingInjectorService">
5989        <!-- The title for the preference. -->
5990        <attr name="title"/>
5991        <!-- The icon for the preference, should refer to all apps covered by the setting. Typically
5992             a generic icon for the developer. -->
5993        <attr name="icon"/>
5994        <!-- The activity to launch when the setting is clicked on. -->
5995        <attr name="settingsActivity"/>
5996    </declare-styleable>
5997
5998    <!-- =============================== -->
5999    <!-- LockPatternView class attributes -->
6000    <!-- =============================== -->
6001    <eat-comment />
6002
6003    <declare-styleable name="LockPatternView">
6004        <!-- Aspect to use when drawing LockPatternView. Choices are "square"(default), "lock_width"
6005             or "lock_height" -->
6006        <attr name="aspect" format="string" />
6007    </declare-styleable>
6008
6009    <!-- Use <code>recognition-service</code> as the root tag of the XML resource that
6010         describes a {@link android.speech.RecognitionService}, which is reference from
6011         its {@link android.speech.RecognitionService#SERVICE_META_DATA} meta-data entry.
6012         Described here are the attributes that can be included in that tag. -->
6013    <declare-styleable name="RecognitionService">
6014        <attr name="settingsActivity" />
6015    </declare-styleable>
6016
6017    <!-- Attributes used to style the Action Bar. -->
6018    <declare-styleable name="ActionBar">
6019        <!-- The type of navigation to use. -->
6020        <attr name="navigationMode">
6021            <!-- Normal static title text -->
6022            <enum name="normal" value="0" />
6023            <!-- The action bar will use a selection list for navigation. -->
6024            <enum name="listMode" value="1" />
6025            <!-- The action bar will use a series of horizontal tabs for navigation. -->
6026            <enum name="tabMode" value="2" />
6027        </attr>
6028        <!-- Options affecting how the action bar is displayed. -->
6029        <attr name="displayOptions">
6030            <flag name="none" value="0" />
6031            <flag name="useLogo" value="0x1" />
6032            <flag name="showHome" value="0x2" />
6033            <flag name="homeAsUp" value="0x4" />
6034            <flag name="showTitle" value="0x8" />
6035            <flag name="showCustom" value="0x10" />
6036            <flag name="disableHome" value="0x20" />
6037        </attr>
6038        <!-- Specifies title text used for navigationMode="normal" -->
6039        <attr name="title" />
6040        <!-- Specifies subtitle text used for navigationMode="normal" -->
6041        <attr name="subtitle" format="string" />
6042        <!-- Specifies a style to use for title text. -->
6043        <attr name="titleTextStyle" format="reference" />
6044        <!-- Specifies a style to use for subtitle text. -->
6045        <attr name="subtitleTextStyle" format="reference" />
6046        <!-- Specifies the drawable used for the application icon. -->
6047        <attr name="icon" />
6048        <!-- Specifies the drawable used for the application logo. -->
6049        <attr name="logo" />
6050        <!-- Specifies the drawable used for item dividers. -->
6051        <attr name="divider" />
6052        <!-- Specifies a background drawable for the action bar. -->
6053        <attr name="background" />
6054        <!-- Specifies a background drawable for a second stacked row of the action bar. -->
6055        <attr name="backgroundStacked" format="reference|color" />
6056        <!-- Specifies a background drawable for the bottom component of a split action bar. -->
6057        <attr name="backgroundSplit" format="reference|color" />
6058        <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
6059        <attr name="customNavigationLayout" format="reference" />
6060        <!-- Specifies a fixed height. -->
6061        <attr name="height" />
6062        <!-- Specifies a layout to use for the "home" section of the action bar. -->
6063        <attr name="homeLayout" format="reference" />
6064        <!-- Specifies a style resource to use for an embedded progress bar. -->
6065        <attr name="progressBarStyle" />
6066        <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
6067        <attr name="indeterminateProgressStyle" format="reference" />
6068        <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
6069        <attr name="progressBarPadding" format="dimension" />
6070        <!-- Specifies padding that should be applied to the left and right sides of
6071             system-provided items in the bar. -->
6072        <attr name="itemPadding" format="dimension" />
6073    </declare-styleable>
6074
6075    <declare-styleable name="ActionMode">
6076        <!-- Specifies a style to use for title text. -->
6077        <attr name="titleTextStyle" />
6078        <!-- Specifies a style to use for subtitle text. -->
6079        <attr name="subtitleTextStyle" />
6080        <!-- Specifies a background for the action mode bar. -->
6081        <attr name="background" />
6082        <!-- Specifies a background for the split action mode bar. -->
6083        <attr name="backgroundSplit" />
6084        <!-- Specifies a fixed height for the action mode bar. -->
6085        <attr name="height" />
6086    </declare-styleable>
6087
6088    <declare-styleable name="SearchView">
6089        <!-- The default state of the SearchView. If true, it will be iconified when not in
6090             use and expanded when clicked. -->
6091        <attr name="iconifiedByDefault" format="boolean"/>
6092        <!-- An optional maximum width of the SearchView. -->
6093        <attr name="maxWidth" />
6094        <!-- An optional query hint string to be displayed in the empty query field. -->
6095        <attr name="queryHint" format="string" />
6096        <!-- The IME options to set on the query text field. -->
6097        <attr name="imeOptions" />
6098        <!-- The input type to set on the query text field. -->
6099        <attr name="inputType" />
6100    </declare-styleable>
6101
6102    <declare-styleable name="ActionBar_LayoutParams">
6103        <attr name="layout_gravity" />
6104    </declare-styleable>
6105
6106    <declare-styleable name="Switch">
6107        <!-- Drawable to use as the "thumb" that switches back and forth. -->
6108        <attr name="thumb" />
6109        <!-- Drawable to use as the "track" that the switch thumb slides within. -->
6110        <attr name="track" format="reference" />
6111        <!-- Text to use when the switch is in the checked/"on" state. -->
6112        <attr name="textOn" />
6113        <!-- Text to use when the switch is in the unchecked/"off" state. -->
6114        <attr name="textOff" />
6115        <!-- Amount of padding on either side of text within the switch thumb. -->
6116        <attr name="thumbTextPadding" format="dimension" />
6117        <!-- TextAppearance style for text displayed on the switch thumb. -->
6118        <attr name="switchTextAppearance" format="reference" />
6119        <!-- Minimum width for the switch component -->
6120        <attr name="switchMinWidth" format="dimension" />
6121        <!-- Minimum space between the switch and caption text -->
6122        <attr name="switchPadding" format="dimension" />
6123    </declare-styleable>
6124
6125    <declare-styleable name="Pointer">
6126        <!-- Reference to a pointer icon drawable with STYLE_ARROW -->
6127        <attr name="pointerIconArrow" format="reference" />
6128        <!-- Reference to a pointer icon drawable with STYLE_SPOT_HOVER -->
6129        <attr name="pointerIconSpotHover" format="reference" />
6130        <!-- Reference to a pointer icon drawable with STYLE_SPOT_TOUCH -->
6131        <attr name="pointerIconSpotTouch" format="reference" />
6132        <!-- Reference to a pointer icon drawable with STYLE_SPOT_ANCHOR -->
6133        <attr name="pointerIconSpotAnchor" format="reference" />
6134    </declare-styleable>
6135
6136    <declare-styleable name="PointerIcon">
6137        <!-- Drawable to use as the icon bitmap. -->
6138        <attr name="bitmap" format="reference" />
6139        <!-- X coordinate of the icon hot spot. -->
6140        <attr name="hotSpotX" format="float" />
6141        <!-- Y coordinate of the icon hot spot. -->
6142        <attr name="hotSpotY" format="float" />
6143    </declare-styleable>
6144
6145    <declare-styleable name="Storage">
6146        <!-- path to mount point for the storage -->
6147        <attr name="mountPoint" format="string" />
6148        <!-- user visible description of the storage -->
6149        <attr name="storageDescription" format="string" />
6150        <!-- true if the storage is the primary external storage -->
6151        <attr name="primary" format="boolean" />
6152        <!-- true if the storage is removable -->
6153        <attr name="removable" format="boolean" />
6154        <!-- true if the storage is emulated via the FUSE sdcard daemon -->
6155        <attr name="emulated" format="boolean" />
6156        <!-- number of megabytes of storage MTP should reserve for free storage
6157             (used for emulated storage that is shared with system's data partition) -->
6158        <attr name="mtpReserve" format="integer" />
6159        <!-- true if the storage can be shared via USB mass storage -->
6160        <attr name="allowMassStorage" format="boolean" />
6161        <!-- maximum file size for the volume in megabytes, zero or unspecified if it is unbounded -->
6162        <attr name="maxFileSize" format="integer" />
6163    </declare-styleable>
6164
6165    <declare-styleable name="SwitchPreference">
6166        <!-- The summary for the Preference in a PreferenceActivity screen when the
6167             SwitchPreference is checked. If separate on/off summaries are not
6168             needed, the summary attribute can be used instead. -->
6169        <attr name="summaryOn" />
6170        <!-- The summary for the Preference in a PreferenceActivity screen when the
6171             SwitchPreference is unchecked. If separate on/off summaries are not
6172             needed, the summary attribute can be used instead. -->
6173        <attr name="summaryOff" />
6174        <!-- The text used on the switch itself when in the "on" state.
6175             This should be a very SHORT string, as it appears in a small space. -->
6176        <attr name="switchTextOn" format="string" />
6177        <!-- The text used on the switch itself when in the "off" state.
6178             This should be a very SHORT string, as it appears in a small space. -->
6179        <attr name="switchTextOff" format="string" />
6180        <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default,
6181             dependents will be disabled when this is unchecked, so the value of this preference is false. -->
6182        <attr name="disableDependentsState" />
6183    </declare-styleable>
6184
6185    <!-- Use <code>tts-engine</code> as the root tag of the XML resource that
6186         describes a text to speech engine implemented as a subclass of
6187         {@link android.speech.tts.TextToSpeechService}.
6188
6189         The XML resource must be referenced from its
6190         {@link android.speech.tts.TextToSpeech.Engine#SERVICE_META_DATA} meta-data
6191         entry. -->
6192    <declare-styleable name="TextToSpeechEngine">
6193        <attr name="settingsActivity" />
6194    </declare-styleable>
6195
6196    <!-- Use <code>keyboard-layouts</code> as the root tag of the XML resource that
6197         describes a collection of keyboard layouts provided by an application.
6198         Each keyboard layout is declared by a <code>keyboard-layout</code> tag
6199         with these attributes.
6200
6201         The XML resource that contains the keyboard layouts must be referenced from its
6202         {@link android.hardware.input.InputManager#META_DATA_KEYBOARD_LAYOUTS}
6203         meta-data entry used with broadcast receivers for
6204         {@link android.hardware.input.InputManager#ACTION_QUERY_KEYBOARD_LAYOUTS}. -->
6205    <declare-styleable name="KeyboardLayout">
6206        <!-- The name of the keyboard layout, must be unique in the receiver. -->
6207        <attr name="name" />
6208        <!-- The display label of the keyboard layout. -->
6209        <attr name="label" />
6210        <!-- The key character map file resource. -->
6211        <attr name="keyboardLayout" format="reference" />
6212    </declare-styleable>
6213
6214    <declare-styleable name="MediaRouteButton">
6215        <!-- This drawable is a state list where the "activated" state
6216             indicates active media routing. Non-activated indicates
6217             that media is playing to the local device only.
6218             @hide -->
6219        <attr name="externalRouteEnabledDrawable" format="reference" />
6220
6221        <!-- The types of media routes the button and its resulting
6222             chooser will filter by. -->
6223        <attr name="mediaRouteTypes" format="integer">
6224            <!-- Allow selection of live audio routes. -->
6225            <enum name="liveAudio" value="0x1" />
6226            <!-- Allow selection of user (app-specified) routes. -->
6227            <enum name="user" value="0x800000" />
6228        </attr>
6229
6230        <attr name="minWidth" />
6231        <attr name="minHeight" />
6232    </declare-styleable>
6233
6234    <!-- PagedView specific attributes. These attributes are used to customize
6235         a PagedView view in XML files. -->
6236    <declare-styleable name="PagedView">
6237        <!-- The space between adjacent pages of the PagedView. -->
6238        <attr name="pageSpacing" format="dimension" />
6239        <!-- The padding for the scroll indicator area -->
6240        <attr name="scrollIndicatorPaddingLeft" format="dimension" />
6241        <attr name="scrollIndicatorPaddingRight" format="dimension" />
6242    </declare-styleable>
6243
6244    <declare-styleable name="KeyguardGlowStripView">
6245        <attr name="dotSize" format="dimension" />
6246        <attr name="numDots" format="integer" />
6247        <attr name="glowDot" format="reference" />
6248        <attr name="leftToRight" format="boolean" />
6249    </declare-styleable>
6250
6251    <!-- Some child types have special behavior. -->
6252    <attr name="layout_childType">
6253        <!-- No special behavior. Layout will proceed as normal. -->
6254        <enum name="none" value="0" />
6255        <!-- Widget container.
6256             This will be resized in response to certain events. -->
6257        <enum name="widget" value="1" />
6258        <!-- Security challenge container.
6259             This will be dismissed/shown in response to certain events,
6260             possibly obscuring widget elements. -->
6261        <enum name="challenge" value="2" />
6262        <!-- User switcher.
6263             This will consume space from the total layout area. -->
6264        <enum name="userSwitcher" value="3" />
6265        <!-- Scrim. This will block access to child views that
6266             come before it in the child list in bouncer mode. -->
6267        <enum name="scrim" value="4" />
6268        <!-- The home for widgets. All widgets will be descendents of this. -->
6269        <enum name="widgets" value="5" />
6270        <!-- This is a handle that is used for expanding the
6271             security challenge container when it is collapsed. -->
6272        <enum name="expandChallengeHandle" value="6" />
6273        <!-- Delete drop target.  This will be the drop target to delete pages. -->
6274        <enum name="pageDeleteDropTarget" value="7" />
6275    </attr>
6276
6277    <declare-styleable name="SlidingChallengeLayout_Layout">
6278        <attr name="layout_childType" />
6279        <attr name="layout_maxHeight" />
6280    </declare-styleable>
6281
6282    <!-- Attributes that can be used with <code>&lt;FragmentBreadCrumbs&gt;</code>
6283    tags. -->
6284    <declare-styleable name="FragmentBreadCrumbs">
6285        <attr name="gravity" />
6286    </declare-styleable>
6287
6288    <declare-styleable name="MultiPaneChallengeLayout">
6289        <!-- Influences how layout_centerWithinArea behaves -->
6290        <attr name="orientation" />
6291    </declare-styleable>
6292
6293    <declare-styleable name="MultiPaneChallengeLayout_Layout">
6294        <!-- Percentage of the screen this child should consume or center within.
6295             If 0/default, the view will be measured by standard rules
6296             as if this were a FrameLayout. -->
6297        <attr name="layout_centerWithinArea" format="float" />
6298        <attr name="layout_childType" />
6299        <attr name="layout_gravity" />
6300        <attr name="layout_maxWidth" format="dimension" />
6301        <attr name="layout_maxHeight" />
6302    </declare-styleable>
6303
6304    <declare-styleable name="KeyguardSecurityViewFlipper_Layout">
6305        <attr name="layout_maxWidth" />
6306        <attr name="layout_maxHeight" />
6307    </declare-styleable>
6308
6309    <declare-styleable name="NumPadKey">
6310        <attr name="digit" format="integer" />
6311        <attr name="textView" format="reference" />
6312    </declare-styleable>
6313
6314</resources>
6315