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