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