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