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