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