attrs.xml revision a3d595e1a67506bfd86298516a95ee75f8a0d5d2
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<resources>
18    <!-- These are the standard attributes that make up a complete theme. -->
19    <declare-styleable name="Theme">
20        <!-- ============== -->
21        <!-- Generic styles -->
22        <!-- ============== -->
23        <eat-comment />
24
25        <!-- Default color of foreground imagery. -->
26        <attr name="colorForeground" format="color" />
27        <!-- Default color of foreground imagery on an inverted background. -->
28        <attr name="colorForegroundInverse" format="color" />
29        <!-- Color that matches (as closely as possible) the window background. -->
30        <attr name="colorBackground" format="color" />
31        <!-- Default disabled alpha for widgets that set enabled/disabled alpha programmatically. -->
32        <attr name="disabledAlpha" format="float" />
33        <!-- Default background dim amount when a menu, dialog, or something similar pops up. -->
34        <attr name="backgroundDimAmount" format="float" />
35        <!-- Control whether dimming behind the window is enabled.  The default
36             theme does not set this value, meaning it is based on whether the
37             window is floating. -->
38        <attr name="backgroundDimEnabled" format="boolean" />
39
40        <!-- =========== -->
41        <!-- Text styles -->
42        <!-- =========== -->
43        <eat-comment />
44
45        <!-- Default appearance of text: color, typeface, size, and style -->
46        <attr name="textAppearance" format="reference" />
47        <!-- Default appearance of text against an inverted background:
48             color, typeface, size, and style -->
49        <attr name="textAppearanceInverse" format="reference" />
50
51        <!-- The most prominent text color, for the  -->
52        <attr name="textColorPrimary" format="reference|color" />
53        <!-- Secondary text color -->
54        <attr name="textColorSecondary" format="reference|color" />
55        <!-- Tertiary text color -->
56        <attr name="textColorTertiary" format="reference|color" />
57
58        <!-- Primary inverse text color, useful for inverted backgrounds -->
59        <attr name="textColorPrimaryInverse" format="reference|color" />
60        <!-- Secondary inverse text color, useful for inverted backgrounds -->
61        <attr name="textColorSecondaryInverse" format="reference|color" />
62        <!-- Tertiary inverse text color, useful for inverted backgrounds -->
63        <attr name="textColorTertiaryInverse" format="reference|color" />
64
65        <!-- Inverse hint text color -->
66        <attr name="textColorHintInverse" format="reference|color" />
67
68        <!-- Bright text color. Only differentiates based on the disabled state. -->
69        <attr name="textColorPrimaryDisableOnly" format="reference|color" />
70
71        <!-- Bright inverse text color. Only differentiates based on the disabled state. -->
72        <attr name="textColorPrimaryInverseDisableOnly" format="reference|color" />
73
74        <!-- Bright text color. This does not differentiate the disabled state. As an example,
75             buttons use this since they display the disabled state via the background and not the
76             foreground text color. -->
77        <attr name="textColorPrimaryNoDisable" format="reference|color" />
78        <!-- Dim text color. This does not differentiate the disabled state. -->
79        <attr name="textColorSecondaryNoDisable" format="reference|color" />
80
81        <!-- Bright inverse text color. This does not differentiate the disabled state. -->
82        <attr name="textColorPrimaryInverseNoDisable" format="reference|color" />
83        <!-- Dim inverse text color. This does not differentiate the disabled state. -->
84        <attr name="textColorSecondaryInverseNoDisable" format="reference|color" />
85
86        <!-- Text color for urls in search suggestions, used by things like global search and the browser. @hide -->
87        <attr name="textColorSearchUrl" format="reference|color" />
88        <!-- Search widget more corpus result item background. -->
89        <attr name="searchWidgetCorpusItemBackground" format="reference|color" />
90
91        <!-- Text color, typeface, size, and style for "large" text. Defaults to primary text color. -->
92        <attr name="textAppearanceLarge" format="reference" />
93        <!-- Text color, typeface, size, and style for "medium" text. Defaults to primary text color. -->
94        <attr name="textAppearanceMedium" format="reference" />
95        <!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. -->
96        <attr name="textAppearanceSmall" format="reference" />
97
98        <!-- Text color, typeface, size, and style for "large" inverse text. Defaults to primary inverse text color. -->
99        <attr name="textAppearanceLargeInverse" format="reference" />
100        <!-- Text color, typeface, size, and style for "medium" inverse text. Defaults to primary inverse text color. -->
101        <attr name="textAppearanceMediumInverse" format="reference" />
102        <!-- Text color, typeface, size, and style for "small" inverse text. Defaults to secondary inverse text color. -->
103        <attr name="textAppearanceSmallInverse" format="reference" />
104
105        <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. @hide -->
106        <attr name="textAppearanceSearchResultTitle" format="reference" />
107        <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. @hide -->
108        <attr name="textAppearanceSearchResultSubtitle" format="reference" />
109
110
111        <!-- Text color, typeface, size, and style for the text inside of a button. -->
112        <attr name="textAppearanceButton" format="reference" />
113
114        <!-- A styled string, specifying the style to be used for showing
115             inline candidate text when composing with an input method.  The
116             text itself will be ignored, but the style spans will be applied
117             to the candidate text as it is edited. -->
118        <attr name="candidatesTextStyleSpans" format="reference|string" />
119
120        <!-- Drawable to use for check marks -->
121        <attr name="textCheckMark" format="reference" />
122        <attr name="textCheckMarkInverse" format="reference" />
123
124        <!-- Drawable to use for multiple choice indicators-->
125        <attr name="listChoiceIndicatorMultiple" format="reference" />
126
127        <!-- Drawable to use for single choice indicators-->
128        <attr name="listChoiceIndicatorSingle" format="reference" />
129
130        <!-- ============= -->
131        <!-- Button styles -->
132        <!-- ============= -->
133        <eat-comment />
134
135        <!-- Normal Button style. -->
136        <attr name="buttonStyle" format="reference" />
137
138        <!-- Small Button style. -->
139        <attr name="buttonStyleSmall" format="reference" />
140
141        <!-- Button style to inset into an EditText. -->
142        <attr name="buttonStyleInset" format="reference" />
143
144        <!-- ToggleButton style. -->
145        <attr name="buttonStyleToggle" format="reference" />
146
147        <!-- ============== -->
148        <!-- Gallery styles -->
149        <!-- ============== -->
150        <eat-comment />
151
152        <!-- The preferred background for gallery items. This should be set
153             as the background of any Views you provide from the Adapter. -->
154        <attr name="galleryItemBackground" format="reference" />
155
156        <!-- =========== -->
157        <!-- List styles -->
158        <!-- =========== -->
159        <eat-comment />
160
161        <!-- The preferred list item height -->
162        <attr name="listPreferredItemHeight" format="dimension" />
163        <!-- The drawable for the list divider -->
164        <!-- The list item height for search results. @hide -->
165        <attr name="searchResultListItemHeight" format="dimension" />
166        <attr name="listDivider" format="reference" />
167        <!-- TextView style for list separators. -->
168        <attr name="listSeparatorTextViewStyle" format="reference" />
169        <!-- The preferred left padding for an expandable list item (for child-specific layouts,
170             use expandableListPreferredChildPaddingLeft). This takes into account
171             the indicator that will be shown to next to the item. -->
172        <attr name="expandableListPreferredItemPaddingLeft" format="dimension" />
173        <!-- The preferred left padding for an expandable list item that is a child.
174             If this is not provided, it defaults to the expandableListPreferredItemPaddingLeft. -->
175        <attr name="expandableListPreferredChildPaddingLeft" format="dimension" />
176        <!-- The preferred left bound for an expandable list item's indicator. For a child-specific
177             indicator, use expandableListPreferredChildIndicatorLeft. -->
178        <attr name="expandableListPreferredItemIndicatorLeft" format="dimension" />
179        <!-- The preferred right bound for an expandable list item's indicator. For a child-specific
180             indicator, use expandableListPreferredChildIndicatorRight. -->
181        <attr name="expandableListPreferredItemIndicatorRight" format="dimension" />
182        <!-- The preferred left bound for an expandable list child's indicator. -->
183        <attr name="expandableListPreferredChildIndicatorLeft" format="dimension" />
184        <!-- The preferred right bound for an expandable list child's indicator. -->
185        <attr name="expandableListPreferredChildIndicatorRight" format="dimension" />
186
187        <!-- ============= -->
188        <!-- Window styles -->
189        <!-- ============= -->
190        <eat-comment />
191
192        <!-- Drawable to use as the overall window background.  There are a
193             few special considerations you should use when settings this
194             drawable:
195             <ul>
196             <li> This information will be used to infer the pixel format
197                  for your window's surface.  If the drawable has any
198                  non-opaque pixels, your window will be translucent
199                  (32 bpp).
200             <li> If you want to draw the entire background
201                  yourself, you should set this drawable to some solid
202                  color that closely matches that background (so the
203                  system's preview of your window will match), and
204                  then in code manually set your window's background to
205                  null so it will not be drawn.
206             </ul> -->
207        <attr name="windowBackground" format="reference" />
208        <!-- Drawable to use as a frame around the window. -->
209        <attr name="windowFrame" format="reference" />
210        <!-- Flag indicating whether there should be no title on this window. -->
211        <attr name="windowNoTitle" format="boolean" />
212        <!-- Flag indicating whether this window should fill the entire screen. -->
213        <attr name="windowFullscreen" format="boolean" />
214        <!-- Flag indicating whether this is a floating window. -->
215        <attr name="windowIsFloating" format="boolean" />
216        <!-- Flag indicating whether this is a translucent window. -->
217        <attr name="windowIsTranslucent" format="boolean" />
218        <!-- This Drawable is overlaid over the foreground of the Window's content area, usually
219             to place a shadow below the title.  -->
220        <attr name="windowContentOverlay" format="reference" />
221        <!-- The style resource to use for a window's title bar height. -->
222        <attr name="windowTitleSize" format="dimension" />
223        <!-- The style resource to use for a window's title text. -->
224        <attr name="windowTitleStyle" format="reference" />
225        <!-- The style resource to use for a window's title area. -->
226        <attr name="windowTitleBackgroundStyle" format="reference" />
227
228        <!-- Reference to a style resource holding
229             the set of window animations to use, which can be
230             any of the attributes defined by
231             {@link android.R.styleable#WindowAnimation}. -->
232        <attr name="windowAnimationStyle" format="reference" />
233
234        <!-- Defines the default soft input state that this window would
235             like when it is displayed. -->
236        <attr name="windowSoftInputMode">
237            <!-- Not specified, use what the system thinks is best.  This
238                 is the default. -->
239            <flag name="stateUnspecified" value="0" />
240            <!-- Leave the soft input window as-is, in whatever state it
241                 last was. -->
242            <flag name="stateUnchanged" value="1" />
243            <!-- Make the soft input area hidden when normally appropriate
244                 (when the user is navigating forward to your window). -->
245            <flag name="stateHidden" value="2" />
246            <!-- Always make the soft input area hidden when this window
247                 has input focus. -->
248            <flag name="stateAlwaysHidden" value="3" />
249            <!-- Make the soft input area visible when normally appropriate
250                 (when the user is navigating forward to your window). -->
251            <flag name="stateVisible" value="4" />
252            <!-- Always make the soft input area visible when this window
253                 has input focus. -->
254            <flag name="stateAlwaysVisible" value="5" />
255
256            <!-- The window resize/pan adjustment has not been specified,
257                 the system will automatically select between resize and pan
258                 modes, depending
259                 on whether the content of the window has any layout views
260                 that can scroll their contents.  If there is such a view,
261                 then the window will be resized, with the assumption being
262                 that the resizeable area can be reduced to make room for
263                 the input UI. -->
264            <flag name="adjustUnspecified" value="0x00" />
265            <!-- Always resize the window: the content area of the window is
266                 reduced to make room for the soft input area. -->
267            <flag name="adjustResize" value="0x10" />
268            <!-- Don't resize the window to make room for the soft input area;
269                 instead pan the contents of the window as focus moves inside
270                 of it so that the user can see what they are typing.  This is
271                 generally less desireable than panning because the user may
272                 need to close the input area to get at and interact with
273                 parts of the window. -->
274            <flag name="adjustPan" value="0x20" />
275        </attr>
276
277        <!-- Flag allowing you to disable the preview animation for a window.
278             The default value is false; if set to true, the system can never
279             use the window's theme to show a preview of it before your
280             actual instance is shown to the user. -->
281        <attr name="windowDisablePreview" format="boolean" />
282
283        <!-- Flag indicating that this window should not be displayed at all.
284             The default value is false; if set to true, and this window is
285             the main window of an Activity, then it will never actually
286             be added to the window manager.  This means that your activity
287             must immediately quit without waiting for user interaction,
288             because there will be no such interaction coming. -->
289        <attr name="windowNoDisplay" format="boolean" />
290
291        <!-- ============ -->
292        <!-- Alert Dialog styles -->
293        <!-- ============ -->
294        <eat-comment />
295        <attr name="alertDialogStyle" format="reference" />
296
297        <!-- ============ -->
298        <!-- Panel styles -->
299        <!-- ============ -->
300        <eat-comment />
301
302        <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
303        <attr name="panelBackground" format="reference|color" />
304        <!-- The background of a panel when it extends to the left and right edges of the screen. -->
305        <attr name="panelFullBackground" format="reference|color" />
306        <!-- Default color of foreground panel imagery. -->
307        <attr name="panelColorForeground" format="reference|color" />
308        <!-- Color that matches (as closely as possible) the panel background. -->
309        <attr name="panelColorBackground" format="reference|color" />
310        <!-- Default appearance of panel text. -->
311        <attr name="panelTextAppearance" format="reference" />
312
313        <!-- =================== -->
314        <!-- Other widget styles -->
315        <!-- =================== -->
316        <eat-comment />
317
318        <!-- Default AbsListView style. -->
319        <attr name="absListViewStyle" format="reference" />
320        <!-- Default AutoCompleteTextView style. -->
321        <attr name="autoCompleteTextViewStyle" format="reference" />
322        <!-- Default Checkbox style. -->
323        <attr name="checkboxStyle" format="reference" />
324        <!-- Default ListView style for drop downs. -->
325        <attr name="dropDownListViewStyle" format="reference" />
326        <!-- Default EditText style. -->
327        <attr name="editTextStyle" format="reference" />
328        <!-- Default ExpandableListView style. -->
329        <attr name="expandableListViewStyle" format="reference" />
330        <!-- Default Gallery style. -->
331        <attr name="galleryStyle" format="reference" />
332        <!-- Default GestureOverlayView style. -->
333        <attr name="gestureOverlayViewStyle" format="reference" />
334        <!-- Default GridView style. -->
335        <attr name="gridViewStyle" format="reference" />
336        <!-- The style resource to use for an ImageButton -->
337        <attr name="imageButtonStyle" format="reference" />
338        <!-- The style resource to use for an ImageButton that is an image well -->
339        <attr name="imageWellStyle" format="reference" />
340        <!-- Default ListView style. -->
341        <attr name="listViewStyle" format="reference" />
342        <!-- ListView with white background. -->
343        <attr name="listViewWhiteStyle" format="reference" />
344        <!-- Default PopupWindow style. -->
345        <attr name="popupWindowStyle" format="reference" />
346        <!-- Default ProgressBar style. This is a medium circular progress bar. -->
347        <attr name="progressBarStyle" format="reference" />
348        <!-- Horizontal ProgressBar style. This is a horizontal progress bar. -->
349        <attr name="progressBarStyleHorizontal" format="reference" />
350        <!-- Small ProgressBar style. This is a small circular progress bar. -->
351        <attr name="progressBarStyleSmall" format="reference" />
352        <!-- Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars. -->
353        <attr name="progressBarStyleSmallTitle" format="reference" />
354        <!-- Large ProgressBar style. This is a large circular progress bar. -->
355        <attr name="progressBarStyleLarge" format="reference" />
356        <!-- Inverse ProgressBar style. This is a medium circular progress bar. -->
357        <attr name="progressBarStyleInverse" format="reference" />
358        <!-- Small inverse ProgressBar style. This is a small circular progress bar. -->
359        <attr name="progressBarStyleSmallInverse" format="reference" />
360        <!-- Large inverse ProgressBar style. This is a large circular progress bar. -->
361        <attr name="progressBarStyleLargeInverse" format="reference" /> 
362        <!-- Default SeekBar style. -->
363        <attr name="seekBarStyle" format="reference" />
364        <!-- Default RatingBar style. -->
365        <attr name="ratingBarStyle" format="reference" />
366        <!-- Indicator RatingBar style. -->
367        <attr name="ratingBarStyleIndicator" format="reference" />
368        <!-- Small indicator RatingBar style. -->
369        <attr name="ratingBarStyleSmall" format="reference" />
370        <!-- Default RadioButton style. -->
371        <attr name="radioButtonStyle" format="reference" />
372        <!-- Default ScrollView style. -->
373        <attr name="scrollViewStyle" format="reference" />
374        <!-- Default HorizontalScrollView style. -->
375        <attr name="horizontalScrollViewStyle" format="reference" />
376        <!-- Default Spinner style. -->
377        <attr name="spinnerStyle" format="reference" />
378        <!-- Default Star style. -->
379        <attr name="starStyle" format="reference" />
380        <!-- Default TabWidget style. -->
381        <attr name="tabWidgetStyle" format="reference" />
382        <!-- Default TextView style. -->
383        <attr name="textViewStyle" format="reference" />
384        <!-- Default WebView style. -->
385        <attr name="webViewStyle" format="reference" />
386        <!-- Default style for drop down items. -->
387        <attr name="dropDownItemStyle" format="reference" />
388         <!-- Default style for spinner drop down items. -->
389        <attr name="spinnerDropDownItemStyle" format="reference" />
390        <!-- Default style for drop down hints. -->
391        <attr name="dropDownHintAppearance" format="reference" />
392        <!-- Default spinner item style. -->
393        <attr name="spinnerItemStyle" format="reference" />
394        <!-- Default MapView style. -->
395        <attr name="mapViewStyle" format="reference" />
396
397        <!-- =================== -->
398        <!-- Preference styles   -->
399        <!-- =================== -->
400        <eat-comment />
401
402        <!-- Default style for PreferenceScreen. -->
403        <attr name="preferenceScreenStyle" format="reference" />
404        <!-- Default style for PreferenceCategory. -->
405        <attr name="preferenceCategoryStyle" format="reference" />
406        <!-- Default style for Preference. -->
407        <attr name="preferenceStyle" format="reference" />
408        <!-- Default style for informational Preference. -->
409        <attr name="preferenceInformationStyle" format="reference" />
410        <!-- Default style for CheckBoxPreference. -->
411        <attr name="checkBoxPreferenceStyle" format="reference" />
412        <!-- Default style for YesNoPreference. -->
413        <attr name="yesNoPreferenceStyle" format="reference" />
414        <!-- Default style for DialogPreference. -->
415        <attr name="dialogPreferenceStyle" format="reference" />
416        <!-- Default style for EditTextPreference. -->
417        <attr name="editTextPreferenceStyle" format="reference" />
418        <!-- Default style for RingtonePreference. -->
419        <attr name="ringtonePreferenceStyle" format="reference" />
420        <!-- The preference layout that has the child/tabbed effect. -->
421        <attr name="preferenceLayoutChild" format="reference" />
422
423    </declare-styleable>
424
425    <!-- **************************************************************** -->
426    <!-- Other non-theme attributes. -->
427    <!-- **************************************************************** -->
428    <eat-comment />
429
430    <!-- Size of text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
431         Supported values include the following:<p/>
432    <ul>
433        <li><b>px</b> Pixels</li>
434        <li><b>sp</b> Scaled pixels (scaled to relative pixel size on screen). See {@link android.util.DisplayMetrics} for more information.</li>
435        <li><b>pt</b> Points</li>
436        <li><b>dip</b> Device independent pixels. See {@link android.util.DisplayMetrics} for more information.</li>
437    </ul>
438        -->
439    <attr name="textSize" format="dimension" />
440
441    <!-- Default text typeface. -->
442    <attr name="typeface">
443        <enum name="normal" value="0" />
444        <enum name="sans" value="1" />
445        <enum name="serif" value="2" />
446        <enum name="monospace" value="3" />
447    </attr>
448
449    <!-- Default text typeface style. -->
450    <attr name="textStyle">
451        <flag name="normal" value="0" />
452        <flag name="bold" value="1" />
453        <flag name="italic" value="2" />
454    </attr>
455
456    <!-- Color of text (usually same as colorForeground). -->
457    <attr name="textColor" format="reference|color" />
458
459    <!-- Color of highlighted text. -->
460    <attr name="textColorHighlight" format="reference|color" />
461
462    <!-- Color of hint text (displayed when the field is empty). -->
463    <attr name="textColorHint" format="reference|color" />
464
465    <!-- Color of link text (URLs). -->
466    <attr name="textColorLink" format="reference|color" />
467
468    <!-- Where to ellipsize text. -->
469    <attr name="ellipsize">
470        <enum name="none" value="0" />
471        <enum name="start" value="1" />
472        <enum name="middle" value="2" />
473        <enum name="end" value="3" />
474        <enum name="marquee" value="4" />
475    </attr>
476
477    <!-- The type of data being placed in a text field, used to help an
478         input method decide how to let the user enter text.  The constants
479         here correspond to those defined by
480         {@link android.text.InputType}.  Generally you can select
481         a single value, though some can be combined together as
482         indicated.  Setting this attribute to anything besides
483         <var>none</var> also implies that the text is editable. -->
484    <attr name="inputType">
485        <!-- There is no content type.  The text is not editable. -->
486        <flag name="none" value="0x00000000" />
487        <!-- Just plain old text.  Corresponds to
488             {@link android.text.InputType#TYPE_CLASS_TEXT} |
489             {@link android.text.InputType#TYPE_TEXT_VARIATION_NORMAL}. -->
490        <flag name="text" value="0x00000001" />
491        <!-- Can be combined with <var>text</var> and its variations to
492             request capitalization of all characters.  Corresponds to
493             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_CHARACTERS}. -->
494        <flag name="textCapCharacters" value="0x00001001" />
495        <!-- Can be combined with <var>text</var> and its variations to
496             request capitalization of the first character of every word.  Corresponds to
497             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_WORDS}. -->
498        <flag name="textCapWords" value="0x00002001" />
499        <!-- Can be combined with <var>text</var> and its variations to
500             request capitalization of the first character of every sentence.  Corresponds to
501             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_SENTENCES}. -->
502        <flag name="textCapSentences" value="0x00004001" />
503        <!-- Can be combined with <var>text</var> and its variations to
504             request auto-correction of text being input.  Corresponds to
505             {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_CORRECT}. -->
506        <flag name="textAutoCorrect" value="0x00008001" />
507        <!-- Can be combined with <var>text</var> and its variations to
508             specify that this field will be doing its own auto-completion and
509             talking with the input method appropriately.  Corresponds to
510             {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_COMPLETE}. -->
511        <flag name="textAutoComplete" value="0x00010001" />
512        <!-- Can be combined with <var>text</var> and its variations to
513             allow multiple lines of text in the field.  If this flag is not set,
514             the text field will be constrained to a single line.  Corresponds to
515             {@link android.text.InputType#TYPE_TEXT_FLAG_MULTI_LINE}. -->
516        <flag name="textMultiLine" value="0x00020001" />
517        <!-- Can be combined with <var>text</var> and its variations to
518             indicate that though the regular text view should not be multiple
519             lines, the IME should provide multiple lines if it can.  Corresponds to
520             {@link android.text.InputType#TYPE_TEXT_FLAG_IME_MULTI_LINE}. -->
521        <flag name="textImeMultiLine" value="0x00040001" />
522        <!-- Text that will be used as a URI.  Corresponds to
523             {@link android.text.InputType#TYPE_CLASS_TEXT} |
524             {@link android.text.InputType#TYPE_TEXT_VARIATION_URI}. -->
525        <flag name="textUri" value="0x00000011" />
526        <!-- Text that will be used as an e-mail address.  Corresponds to
527             {@link android.text.InputType#TYPE_CLASS_TEXT} |
528             {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_ADDRESS}. -->
529        <flag name="textEmailAddress" value="0x00000021" />
530        <!-- Text that is being supplied as the subject of an e-mail.  Corresponds to
531             {@link android.text.InputType#TYPE_CLASS_TEXT} |
532             {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_SUBJECT}. -->
533        <flag name="textEmailSubject" value="0x00000031" />
534        <!-- Text that is the content of a short message.  Corresponds to
535             {@link android.text.InputType#TYPE_CLASS_TEXT} |
536             {@link android.text.InputType#TYPE_TEXT_VARIATION_SHORT_MESSAGE}. -->
537        <flag name="textShortMessage" value="0x00000041" />
538        <!-- Text that is the content of a long message.  Corresponds to
539             {@link android.text.InputType#TYPE_CLASS_TEXT} |
540             {@link android.text.InputType#TYPE_TEXT_VARIATION_LONG_MESSAGE}. -->
541        <flag name="textLongMessage" value="0x00000051" />
542        <!-- Text that is the name of a person.  Corresponds to
543             {@link android.text.InputType#TYPE_CLASS_TEXT} |
544             {@link android.text.InputType#TYPE_TEXT_VARIATION_PERSON_NAME}. -->
545        <flag name="textPersonName" value="0x00000061" />
546        <!-- Text that is being supplied as a postal mailing address.  Corresponds to
547             {@link android.text.InputType#TYPE_CLASS_TEXT} |
548             {@link android.text.InputType#TYPE_TEXT_VARIATION_POSTAL_ADDRESS}. -->
549        <flag name="textPostalAddress" value="0x00000071" />
550        <!-- Text that is a password.  Corresponds to
551             {@link android.text.InputType#TYPE_CLASS_TEXT} |
552             {@link android.text.InputType#TYPE_TEXT_VARIATION_PASSWORD}. -->
553        <flag name="textPassword" value="0x00000081" />
554        <!-- Text that is a password that should be visible.  Corresponds to
555             {@link android.text.InputType#TYPE_CLASS_TEXT} |
556             {@link android.text.InputType#TYPE_TEXT_VARIATION_VISIBLE_PASSWORD}. -->
557        <flag name="textVisiblePassword" value="0x00000091" />
558        <!-- Text that is being supplied as text in a web form.  Corresponds to
559             {@link android.text.InputType#TYPE_CLASS_TEXT} |
560             {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EDIT_TEXT}. -->
561        <flag name="textWebEditText" value="0x000000a1" />
562        <!-- Text that is filtering some other data.  Corresponds to
563             {@link android.text.InputType#TYPE_CLASS_TEXT} |
564             {@link android.text.InputType#TYPE_TEXT_VARIATION_FILTER}. -->
565        <flag name="textFilter" value="0x000000b1" />
566        <!-- Text that is for phonetic pronunciation, such as a phonetic name
567             field in a contact entry.  Corresponds to
568             {@link android.text.InputType#TYPE_CLASS_TEXT} |
569             {@link android.text.InputType#TYPE_TEXT_VARIATION_PHONETIC}. -->
570        <flag name="textPhonetic" value="0x000000c1" />
571        <!-- A numeric only field.  Corresponds to
572             {@link android.text.InputType#TYPE_CLASS_NUMBER}. -->
573        <flag name="number" value="0x00000002" />
574        <!-- Can be combined with <var>number</var> and its other options to
575             allow a signed number.  Corresponds to
576             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
577             {@link android.text.InputType#TYPE_NUMBER_FLAG_SIGNED}. -->
578        <flag name="numberSigned" value="0x00001002" />
579        <!-- Can be combined with <var>number</var> and its other options to
580             allow a decimal (fractional) number.  Corresponds to
581             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
582             {@link android.text.InputType#TYPE_NUMBER_FLAG_DECIMAL}. -->
583        <flag name="numberDecimal" value="0x00002002" />
584        <!-- For entering a phone number.  Corresponds to
585             {@link android.text.InputType#TYPE_CLASS_PHONE}. -->
586        <flag name="phone" value="0x00000003" />
587        <!-- For entering a date and time.  Corresponds to
588             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
589             {@link android.text.InputType#TYPE_DATETIME_VARIATION_NORMAL}. -->
590        <flag name="datetime" value="0x00000004" />
591        <!-- For entering a date.  Corresponds to
592             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
593             {@link android.text.InputType#TYPE_DATETIME_VARIATION_DATE}. -->
594        <flag name="date" value="0x00000014" />
595        <!-- For entering a time.  Corresponds to
596             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
597             {@link android.text.InputType#TYPE_DATETIME_VARIATION_TIME}. -->
598        <flag name="time" value="0x00000024" />
599    </attr>
600
601    <!-- Additional features you can enable in an IME associated with an editor
602         to improve the integration with your application.  The constants
603         here correspond to those defined by
604         {@link android.view.inputmethod.EditorInfo#imeOptions}. -->
605    <attr name="imeOptions">
606        <!-- There are no special semantics associated with this editor. -->
607        <flag name="normal" value="0x00000000" />
608        <!-- There is no specific action associated with this editor, let the
609             editor come up with its own if it can.
610             Corresponds to
611             {@link android.view.inputmethod.EditorInfo#IME_NULL}. -->
612        <flag name="actionUnspecified" value="0x00000000" />
613        <!-- This editor has no action associated with it.
614             Corresponds to
615             {@link android.view.inputmethod.EditorInfo#IME_ACTION_NONE}. -->
616        <flag name="actionNone" value="0x00000001" />
617        <!-- The action key performs a "go"
618             operation to take the user to the target of the text they typed.
619             Typically used, for example, when entering a URL.
620             Corresponds to
621             {@link android.view.inputmethod.EditorInfo#IME_ACTION_GO}. -->
622        <flag name="actionGo" value="0x00000002" />
623        <!-- The action key performs a "search"
624             operation, taking the user to the results of searching for the text
625             the have typed (in whatever context is appropriate).
626             Corresponds to
627             {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEARCH}. -->
628        <flag name="actionSearch" value="0x00000003" />
629        <!-- The action key performs a "send"
630             operation, delivering the text to its target.  This is typically used
631             when composing a message.
632             Corresponds to
633             {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEND}. -->
634        <flag name="actionSend" value="0x00000004" />
635        <!-- The action key performs a "next"
636             operation, taking the user to the next field that will accept text.
637             Corresponds to
638             {@link android.view.inputmethod.EditorInfo#IME_ACTION_NEXT}. -->
639        <flag name="actionNext" value="0x00000005" />
640        <!-- The action key performs a "done"
641             operation, closing the soft input method.
642             Corresponds to
643             {@link android.view.inputmethod.EditorInfo#IME_ACTION_DONE}. -->
644        <flag name="actionDone" value="0x00000006" />
645        <!-- Used to specify that the IME does not need
646             to show its extracted text UI.  For input methods that may be fullscreen,
647             often when in landscape mode, this allows them to be smaller and let part
648             of the application be shown behind.  Though there will likely be limited
649             access to the application available from the user, it can make the
650             experience of a (mostly) fullscreen IME less jarring.  Note that when
651             this flag is specified the IME may <em>not</em> be set up to be able
652             to display text, so it should only be used in situations where this is
653             not needed.
654             <p>Corresponds to
655             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_EXTRACT_UI}. -->
656        <flag name="flagNoExtractUi" value="0x10000000" />
657        <!-- Used in conjunction with a custom action, this indicates that the
658             action should not be available as an accessory button when the
659             input method is full-screen.
660             Note that by setting this flag, there can be cases where the action
661             is simply never available to the user.  Setting this generally means
662             that you think showing text being edited is more important than the
663             action you have supplied.
664             <p>Corresponds to
665             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ACCESSORY_ACTION}. -->
666        <flag name="flagNoAccessoryAction" value="0x20000000" />
667        <!-- Used in conjunction with a custom action,
668             this indicates that the action should not be available in-line as
669             a replacement for the "enter" key.  Typically this is
670             because the action has such a significant impact or is not recoverable
671             enough that accidentally hitting it should be avoided, such as sending
672             a message.    Note that {@link android.widget.TextView} will
673             automatically set this flag for you on multi-line text views.
674             <p>Corresponds to
675             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ENTER_ACTION}. -->
676        <flag name="flagNoEnterAction" value="0x40000000" />
677    </attr>
678
679    <!-- A coordinate in the X dimension. -->
680    <attr name="x" format="dimension" />
681    <!-- A coordinate in the Y dimension. -->
682    <attr name="y" format="dimension" />
683
684    <!-- Specifies how to place the content of an object, both
685         on the x- and y-axis, within the object itself. -->
686    <attr name="gravity">
687        <!-- Push object to the top of its container, not changing its size. -->
688        <flag name="top" value="0x30" />
689        <!-- Push object to the bottom of its container, not changing its size. -->
690        <flag name="bottom" value="0x50" />
691        <!-- Push object to the left of its container, not changing its size. -->
692        <flag name="left" value="0x03" />
693        <!-- Push object to the right of its container, not changing its size. -->
694        <flag name="right" value="0x05" />
695        <!-- Place object in the vertical center of its container, not changing its size. -->
696        <flag name="center_vertical" value="0x10" />
697        <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
698        <flag name="fill_vertical" value="0x70" />
699        <!-- Place object in the horizontal center of its container, not changing its size. -->
700        <flag name="center_horizontal" value="0x01" />
701        <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
702        <flag name="fill_horizontal" value="0x07" />
703        <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
704        <flag name="center" value="0x11" />
705        <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
706        <flag name="fill" value="0x77" />
707        <!-- Additional option that can be set to have the top and/or bottom edges of
708             the child clipped to its container's bounds.
709             The clip will be based on the vertical gravity: a top gravity will clip the bottom
710             edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
711        <flag name="clip_vertical" value="0x80" />
712        <!-- Additional option that can be set to have the left and/or right edges of
713             the child clipped to its container's bounds.
714             The clip will be based on the horizontal gravity: a left gravity will clip the right
715             edge, a right gravity will clip the left edge, and neither will clip both edges. -->
716        <flag name="clip_horizontal" value="0x08" />
717    </attr>
718
719    <!-- Controls whether links such as urls and email addresses are
720         automatically found and converted to clickable links.  The default
721         value is "none", disabling this feature. -->
722    <attr name="autoLink">
723        <!-- Match no patterns (default) -->
724        <flag name="none" value="0x00" />
725        <!-- Match Web URLs -->
726        <flag name="web" value="0x01" />
727        <!-- Match email addresses -->
728        <flag name="email" value="0x02" />
729        <!-- Match phone numbers -->
730        <flag name="phone" value="0x04" />
731        <!-- Match map addresses -->
732        <flag name="map" value="0x08" />
733        <!-- Match all patterns (equivalent to web|email|phone|map) -->
734        <flag name="all" value="0x0f" />
735    </attr>
736
737    <!-- Reference to an array resource that will populate a list/adapter -->
738    <attr name="entries" format="reference" />
739
740    <!-- Standard gravity constant that a child can supply to its parent.
741         Defines how to place the view, both its x- and y-axis, within its parent view group. -->
742    <attr name="layout_gravity">
743        <!-- Push object to the top of its container, not changing its size. -->
744        <flag name="top" value="0x30" />
745        <!-- Push object to the bottom of its container, not changing its size. -->
746        <flag name="bottom" value="0x50" />
747        <!-- Push object to the left of its container, not changing its size. -->
748        <flag name="left" value="0x03" />
749        <!-- Push object to the right of its container, not changing its size. -->
750        <flag name="right" value="0x05" />
751        <!-- Place object in the vertical center of its container, not changing its size. -->
752        <flag name="center_vertical" value="0x10" />
753        <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
754        <flag name="fill_vertical" value="0x70" />
755        <!-- Place object in the horizontal center of its container, not changing its size. -->
756        <flag name="center_horizontal" value="0x01" />
757        <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
758        <flag name="fill_horizontal" value="0x07" />
759        <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
760        <flag name="center" value="0x11" />
761        <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
762        <flag name="fill" value="0x77" />
763        <!-- Additional option that can be set to have the top and/or bottom edges of
764             the child clipped to its container's bounds.
765             The clip will be based on the vertical gravity: a top gravity will clip the bottom
766             edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
767        <flag name="clip_vertical" value="0x80" />
768        <!-- Additional option that can be set to have the left and/or right edges of
769             the child clipped to its container's bounds.
770             The clip will be based on the horizontal gravity: a left gravity will clip the right
771             edge, a right gravity will clip the left edge, and neither will clip both edges. -->
772        <flag name="clip_horizontal" value="0x08" />
773    </attr>
774
775    <!-- Standard orientation constant. -->
776    <attr name="orientation">
777        <!-- Defines an horizontal widget. -->
778        <enum name="horizontal" value="0" />
779        <!-- Defines a vertical widget. -->
780        <enum name="vertical" value="1" />
781    </attr>
782
783    <!-- ========================== -->
784    <!-- Key Codes                  -->
785    <!-- ========================== -->
786    <eat-comment />
787
788    <!-- This enum provides the same keycode values as can be found in
789        {@link android.view.KeyEvent} -->
790    <attr name="keycode">
791        <enum name="KEYCODE_UNKNOWN" value="0" />
792        <enum name="KEYCODE_SOFT_LEFT" value="1" />
793        <enum name="KEYCODE_SOFT_RIGHT" value="2" />
794        <enum name="KEYCODE_HOME" value="3" />
795        <enum name="KEYCODE_BACK" value="4" />
796        <enum name="KEYCODE_CALL" value="5" />
797        <enum name="KEYCODE_ENDCALL" value="6" />
798        <enum name="KEYCODE_0" value="7" />
799        <enum name="KEYCODE_1" value="8" />
800        <enum name="KEYCODE_2" value="9" />
801        <enum name="KEYCODE_3" value="10" />
802        <enum name="KEYCODE_4" value="11" />
803        <enum name="KEYCODE_5" value="12" />
804        <enum name="KEYCODE_6" value="13" />
805        <enum name="KEYCODE_7" value="14" />
806        <enum name="KEYCODE_8" value="15" />
807        <enum name="KEYCODE_9" value="16" />
808        <enum name="KEYCODE_STAR" value="17" />
809        <enum name="KEYCODE_POUND" value="18" />
810        <enum name="KEYCODE_DPAD_UP" value="19" />
811        <enum name="KEYCODE_DPAD_DOWN" value="20" />
812        <enum name="KEYCODE_DPAD_LEFT" value="21" />
813        <enum name="KEYCODE_DPAD_RIGHT" value="22" />
814        <enum name="KEYCODE_DPAD_CENTER" value="23" />
815        <enum name="KEYCODE_VOLUME_UP" value="24" />
816        <enum name="KEYCODE_VOLUME_DOWN" value="25" />
817        <enum name="KEYCODE_POWER" value="26" />
818        <enum name="KEYCODE_CAMERA" value="27" />
819        <enum name="KEYCODE_CLEAR" value="28" />
820        <enum name="KEYCODE_A" value="29" />
821        <enum name="KEYCODE_B" value="30" />
822        <enum name="KEYCODE_C" value="31" />
823        <enum name="KEYCODE_D" value="32" />
824        <enum name="KEYCODE_E" value="33" />
825        <enum name="KEYCODE_F" value="34" />
826        <enum name="KEYCODE_G" value="35" />
827        <enum name="KEYCODE_H" value="36" />
828        <enum name="KEYCODE_I" value="37" />
829        <enum name="KEYCODE_J" value="38" />
830        <enum name="KEYCODE_K" value="39" />
831        <enum name="KEYCODE_L" value="40" />
832        <enum name="KEYCODE_M" value="41" />
833        <enum name="KEYCODE_N" value="42" />
834        <enum name="KEYCODE_O" value="43" />
835        <enum name="KEYCODE_P" value="44" />
836        <enum name="KEYCODE_Q" value="45" />
837        <enum name="KEYCODE_R" value="46" />
838        <enum name="KEYCODE_S" value="47" />
839        <enum name="KEYCODE_T" value="48" />
840        <enum name="KEYCODE_U" value="49" />
841        <enum name="KEYCODE_V" value="50" />
842        <enum name="KEYCODE_W" value="51" />
843        <enum name="KEYCODE_X" value="52" />
844        <enum name="KEYCODE_Y" value="53" />
845        <enum name="KEYCODE_Z" value="54" />
846        <enum name="KEYCODE_COMMA" value="55" />
847        <enum name="KEYCODE_PERIOD" value="56" />
848        <enum name="KEYCODE_ALT_LEFT" value="57" />
849        <enum name="KEYCODE_ALT_RIGHT" value="58" />
850        <enum name="KEYCODE_SHIFT_LEFT" value="59" />
851        <enum name="KEYCODE_SHIFT_RIGHT" value="60" />
852        <enum name="KEYCODE_TAB" value="61" />
853        <enum name="KEYCODE_SPACE" value="62" />
854        <enum name="KEYCODE_SYM" value="63" />
855        <enum name="KEYCODE_EXPLORER" value="64" />
856        <enum name="KEYCODE_ENVELOPE" value="65" />
857        <enum name="KEYCODE_ENTER" value="66" />
858        <enum name="KEYCODE_DEL" value="67" />
859        <enum name="KEYCODE_GRAVE" value="68" />
860        <enum name="KEYCODE_MINUS" value="69" />
861        <enum name="KEYCODE_EQUALS" value="70" />
862        <enum name="KEYCODE_LEFT_BRACKET" value="71" />
863        <enum name="KEYCODE_RIGHT_BRACKET" value="72" />
864        <enum name="KEYCODE_BACKSLASH" value="73" />
865        <enum name="KEYCODE_SEMICOLON" value="74" />
866        <enum name="KEYCODE_APOSTROPHE" value="75" />
867        <enum name="KEYCODE_SLASH" value="76" />
868        <enum name="KEYCODE_AT" value="77" />
869        <enum name="KEYCODE_NUM" value="78" />
870        <enum name="KEYCODE_HEADSETHOOK" value="79" />
871        <enum name="KEYCODE_FOCUS" value="80" />
872        <enum name="KEYCODE_PLUS" value="81" />
873        <enum name="KEYCODE_MENU" value="82" />
874        <enum name="KEYCODE_NOTIFICATION" value="83" />
875        <enum name="KEYCODE_SEARCH" value="84" />
876        <enum name="KEYCODE_MEDIA_PLAY_PAUSE" value="85" />
877        <enum name="KEYCODE_MEDIA_STOP" value="86" />
878        <enum name="KEYCODE_MEDIA_NEXT" value="87" />
879        <enum name="KEYCODE_MEDIA_PREVIOUS" value="88" />
880        <enum name="KEYCODE_MEDIA_REWIND" value="89" />
881        <enum name="KEYCODE_MEDIA_FAST_FORWARD" value="90" />
882        <enum name="KEYCODE_MUTE" value="91" />
883    </attr>
884
885    <!-- ***************************************************************** -->
886    <!-- These define collections of attributes that can are with classes. -->
887    <!-- ***************************************************************** -->
888
889    <!-- ========================== -->
890    <!-- Special attribute classes. -->
891    <!-- ========================== -->
892    <eat-comment />
893
894    <!-- The set of attributes that describe a Windows's theme. -->
895    <declare-styleable name="Window">
896        <attr name="windowBackground" />
897        <attr name="windowContentOverlay" />
898        <attr name="windowFrame" />
899        <attr name="windowNoTitle" />
900        <attr name="windowFullscreen" />
901        <attr name="windowIsFloating" />
902        <attr name="windowIsTranslucent" />
903        <attr name="windowAnimationStyle" />
904        <attr name="windowSoftInputMode" />
905        <attr name="windowDisablePreview" />
906        <attr name="windowNoDisplay" />
907        <attr name="textColor" />
908        <attr name="backgroundDimEnabled" />
909        <attr name="backgroundDimAmount" />
910    </declare-styleable>
911
912    <!-- The set of attributes that describe a AlertDialog's theme. -->
913    <declare-styleable name="AlertDialog">
914        <attr name="fullDark" format="reference|color" />
915        <attr name="topDark" format="reference|color" />
916        <attr name="centerDark" format="reference|color" />
917        <attr name="bottomDark" format="reference|color" />
918        <attr name="fullBright" format="reference|color" />
919        <attr name="topBright" format="reference|color" />
920        <attr name="centerBright" format="reference|color" />
921        <attr name="bottomBright" format="reference|color" />
922        <attr name="bottomMedium" format="reference|color" />
923        <attr name="centerMedium" format="reference|color" />
924    </declare-styleable>
925
926    <!-- Window animation class attributes. -->
927    <declare-styleable name="WindowAnimation">
928        <!-- The animation used when a window is being added. -->
929        <attr name="windowEnterAnimation" format="reference" />
930        <!-- The animation used when a window is being removed. -->
931        <attr name="windowExitAnimation" format="reference" />
932        <!-- The animation used when a window is going from INVISIBLE to VISIBLE. -->
933        <attr name="windowShowAnimation" format="reference" />
934        <!-- The animation used when a window is going from VISIBLE to INVISIBLE. -->
935        <attr name="windowHideAnimation" format="reference" />
936        <attr name="activityOpenEnterAnimation" format="reference" />
937        <attr name="activityOpenExitAnimation" format="reference" />
938        <attr name="activityCloseEnterAnimation" format="reference" />
939        <attr name="activityCloseExitAnimation" format="reference" />
940        <attr name="taskOpenEnterAnimation" format="reference" />
941        <attr name="taskOpenExitAnimation" format="reference" />
942        <attr name="taskCloseEnterAnimation" format="reference" />
943        <attr name="taskCloseExitAnimation" format="reference" />
944        <attr name="taskToFrontEnterAnimation" format="reference" />
945        <attr name="taskToFrontExitAnimation" format="reference" />
946        <attr name="taskToBackEnterAnimation" format="reference" />
947        <attr name="taskToBackExitAnimation" format="reference" />
948    </declare-styleable>
949
950    <!-- ============================= -->
951    <!-- View package class attributes -->
952    <!-- ============================= -->
953    <eat-comment />
954
955    <!-- Attributes that can be used with {@link android.view.View} or
956         any of its subclasses.  Also see {@link #ViewGroup_Layout} for
957         attributes that are processed by the view's parent. -->
958    <declare-styleable name="View">
959        <!-- Supply an identifier name for this view, to later retrieve it
960             with {@link android.view.View#findViewById View.findViewById()} or
961             {@link android.app.Activity#findViewById Activity.findViewById()}.
962             This must be a
963             resource reference; typically you set this using the
964             <code>@+</code> syntax to create a new ID resources.
965             For example: <code>android:id="@+id/my_id"</code> which
966             allows you to later retrieve the view
967             with <code>findViewById(R.id.my_id)</code>. -->
968        <attr name="id" format="reference" />
969
970        <!-- Supply a tag for this view containing a String, to be retrieved
971             later with {@link android.view.View#getTag View.getTag()} or
972             searched for with {@link android.view.View#findViewWithTag
973             View.findViewWithTag()}.  It is generally preferable to use
974             IDs (through the android:id attribute) instead of tags because
975             they are faster and allow for compile-time type checking. -->
976        <attr name="tag" format="string" />
977
978        <!-- The initial horizontal scroll offset, in pixels.-->
979        <attr name="scrollX" format="dimension" />
980
981        <!-- The initial vertical scroll offset, in pixels. -->
982        <attr name="scrollY" format="dimension" />
983
984        <!-- A drawable to use as the background.  This can be either a reference
985             to a full drawable resource (such as a PNG image, 9-patch,
986             XML state list description, etc), or a solid color such as "#ff000000"
987            (black). -->
988        <attr name="background" format="reference|color" />
989
990        <!-- Sets the padding, in pixels, of all four edges.  Padding is defined as
991             space between the edges of the view and the view's content. A views size
992             will include it's padding.  If a {@link android.R.attr#background}
993             is provided, the padding will initially be set to that (0 if the
994             drawable does not have padding).  Explicitly setting a padding value
995             will override the corresponding padding found in the background. -->
996        <attr name="padding" format="dimension" />
997        <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. -->
998        <attr name="paddingLeft" format="dimension" />
999        <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. -->
1000        <attr name="paddingTop" format="dimension" />
1001        <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. -->
1002        <attr name="paddingRight" format="dimension" />
1003        <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. -->
1004        <attr name="paddingBottom" format="dimension" />
1005
1006        <!-- Boolean that controls whether a view can take focus.  By default the user can not
1007             move focus to a view; by setting this attribute to true the view is
1008             allowed to take focus.  This value does not impact the behavior of
1009             directly calling {@link android.view.View#requestFocus}, which will
1010             always request focus regardless of this view.  It only impacts where
1011             focus navigation will try to move focus. -->
1012        <attr name="focusable" format="boolean" />
1013
1014        <!-- Boolean that controls whether a view can take focus while in touch mode.
1015             If this is true for a view, that view can gain focus when clicked on, and can keep
1016             focus if another view is clicked on that doesn't have this attribute set to true. -->
1017        <attr name="focusableInTouchMode" format="boolean" />
1018
1019        <!-- Controls the initial visibility of the view.  -->
1020        <attr name="visibility">
1021            <!-- Visible on screen; the default value. -->
1022            <enum name="visible" value="0" />
1023            <!-- Not displayed, but taken into account during layout (space is left for it). -->
1024            <enum name="invisible" value="1" />
1025            <!-- Completely hidden, as if the view had not been added. -->
1026            <enum name="gone" value="2" />
1027        </attr>
1028
1029        <!-- Boolean internal attribute to adjust view layout based on
1030             system windows such as the status bar.
1031             If true, adjusts the padding of this view to leave space for the system windows.
1032             Will only take effect if this view is in a non-embedded activity. -->
1033        <attr name="fitsSystemWindows" format="boolean" />
1034
1035        <!-- Defines which scrollbars should be displayed on scrolling or not. -->
1036        <attr name="scrollbars">
1037            <!-- No scrollbar is displayed. -->
1038            <flag name="none" value="0x00000000" />
1039            <!-- Displays horizontal scrollbar only. -->
1040            <flag name="horizontal" value="0x00000100" />
1041            <!-- Displays vertical scrollbar only. -->
1042            <flag name="vertical" value="0x00000200" />
1043        </attr>
1044
1045        <!-- Controls the scrollbar style and position. The scrollbars can be overlaid or
1046             inset. When inset, they add to the padding of the view. And the
1047             scrollbars can be drawn inside the padding area or on the edge of
1048             the view. For example, if a view has a background drawable and you
1049             want to draw the scrollbars inside the padding specified by the
1050             drawable, you can use insideOverlay or insideInset. If you want them
1051             to appear at the edge of the view, ignoring the padding, then you can
1052             use outsideOverlay or outsideInset.-->
1053        <attr name="scrollbarStyle">
1054            <!-- Inside the padding and overlaid -->
1055            <enum name="insideOverlay" value="0x0" />
1056            <!-- Inside the padding and inset -->
1057            <enum name="insideInset" value="0x01000000" />
1058            <!-- Edge of the view and overlaid -->
1059            <enum name="outsideOverlay" value="0x02000000" />
1060            <!-- Edge of the view and inset -->
1061            <enum name="outsideInset" value="0x03000000" />
1062        </attr>
1063
1064        <!-- Set this if the view will serve as a scrolling container, meaing
1065             that it can be resized to shrink its overall window so that there
1066             will be space for an input method.  If not set, the default
1067             value will be true if "scrollbars" has the vertical scrollbar
1068             set, else it will be false. -->
1069        <attr name="isScrollContainer" format="boolean" />
1070
1071        <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. -->
1072        <attr name="scrollbarSize" format="dimension" />
1073        <!-- Defines the horizontal scrollbar thumb drawable. -->
1074        <attr name="scrollbarThumbHorizontal" format="reference" />
1075        <!-- Defines the vertical scrollbar thumb drawable. -->
1076        <attr name="scrollbarThumbVertical" format="reference" />
1077        <!-- Defines the horizontal scrollbar track drawable. -->
1078        <attr name="scrollbarTrackHorizontal" format="reference" />
1079        <!-- Defines the vertical scrollbar track drawable. -->
1080        <attr name="scrollbarTrackVertical" format="reference" />
1081        <!-- Defines whether the horizontal scrollbar track should always be drawn. -->
1082        <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" />
1083        <!-- Defines whether the vertical scrollbar track should always be drawn -->
1084        <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" />
1085
1086        <!-- Defines which edges should be fadeded on scrolling. -->
1087        <attr name="fadingEdge">
1088            <!-- No edge is faded. -->
1089            <flag name="none" value="0x00000000" />
1090            <!-- Fades horizontal edges only. -->
1091            <flag name="horizontal" value="0x00001000" />
1092            <!-- Fades vertical edges only. -->
1093            <flag name="vertical" value="0x00002000" />
1094        </attr>
1095        <!-- Defines the length of the fading edges. -->
1096        <attr name="fadingEdgeLength" format="dimension" />
1097
1098        <!-- Defines the next view to give focus to when the next focus is
1099             {@link android.view.View#FOCUS_LEFT}.
1100
1101             If the reference refers to a view that does not exist or is part
1102             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1103             will result when the reference is accessed.-->
1104        <attr name="nextFocusLeft" format="reference"/>
1105
1106        <!-- Defines the next view to give focus to when the next focus is
1107             {@link android.view.View#FOCUS_RIGHT}
1108
1109             If the reference refers to a view that does not exist or is part
1110             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1111             will result when the reference is accessed.-->
1112        <attr name="nextFocusRight" format="reference"/>
1113
1114        <!-- Defines the next view to give focus to when the next focus is
1115             {@link android.view.View#FOCUS_UP}
1116
1117             If the reference refers to a view that does not exist or is part
1118             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1119             will result when the reference is accessed.-->
1120        <attr name="nextFocusUp" format="reference"/>
1121
1122        <!-- Defines the next view to give focus to when the next focus is
1123             {@link android.view.View#FOCUS_DOWN}
1124
1125             If the reference refers to a view that does not exist or is part
1126             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
1127             will result when the reference is accessed.-->
1128        <attr name="nextFocusDown" format="reference"/>
1129
1130        <!-- Defines whether this view reacts to click events. -->
1131        <attr name="clickable" format="boolean" />
1132
1133        <!-- Defines whether this view reacts to long click events. -->
1134        <attr name="longClickable" format="boolean" />
1135
1136        <!-- If unset, no state will be saved for this view when it is being
1137             frozen. The default is true, allowing the view to be saved
1138             (however it also must have an ID assigned to it for its
1139             state to be saved).  Setting this to false only disables the
1140             state for this view, not for its children which may still
1141             be saved. -->
1142        <attr name="saveEnabled" format="boolean" />
1143
1144        <!-- Defines the quality of translucent drawing caches. This property is used
1145             only when the drawing cache is enabled and translucent. The default value is auto. -->
1146        <attr name="drawingCacheQuality">
1147            <!-- Lets the framework decide what quality level should be used
1148                 for the drawing cache. -->
1149            <enum name="auto" value="0" />
1150            <!-- Low quality. When set to low quality, the drawing cache uses a lower color
1151                 depth, thus losing precision in rendering gradients, but uses less memory. -->
1152            <enum name="low" value="1" />
1153            <!-- High quality. When set to high quality, the drawing cache uses a higher
1154                 color depth but uses more memory. -->
1155            <enum name="high" value="2" />
1156        </attr>
1157
1158        <!-- Controls whether the view's window should keep the screen on
1159             while visible. -->
1160        <attr name="keepScreenOn" format="boolean" />
1161
1162        <!-- When this attribute is set to true, the view gets its drawable state
1163             (focused, pressed, etc.) from its direct parent rather than from itself. -->
1164        <attr name="duplicateParentState" format="boolean" />
1165
1166        <!-- Defines the minimum height of the view. It is not guaranteed
1167             the view will be able to achieve this minimum height (for example,
1168             if its parent layout constrains it with less available height). -->
1169        <attr name="minHeight" />
1170
1171        <!-- Defines the minimum width of the view. It is not guaranteed
1172             the view will be able to achieve this minimum width (for example,
1173             if its parent layout constrains it with less available width). -->
1174        <attr name="minWidth" />
1175
1176        <!-- Boolean that controls whether a view should have sound effects
1177             enabled for events such as clicking and touching. -->
1178        <attr name="soundEffectsEnabled" format="boolean" />
1179
1180        <!-- Boolean that controls whether a view should have haptic feedback
1181             enabled for events such as long presses. -->
1182        <attr name="hapticFeedbackEnabled" format="boolean" />
1183
1184        <!-- Defines text that briefly describes content of the view. This property is used
1185             primarily for accessibility. Since some views do not have textual
1186             representation this attribute can be used for providing such. -->
1187        <attr name="contentDescription" format="string" localization="suggested" />
1188
1189        <!-- Name of the method in this View's context to invoke when the view is
1190             clicked. This name must correspond to a public method that takes
1191             exactly one parameter of type View. For instance, if you specify
1192             <code>android:onClick="sayHello"</code>, you must declare a
1193             <code>public void sayHello(View v)</code> method of your context
1194             (typically, your Activity.)-->
1195        <attr name="onClick" format="string" />
1196    </declare-styleable>
1197
1198    <!-- Attributes that can be used with a {@link android.view.ViewGroup} or any
1199         of its subclasses.  Also see {@link #ViewGroup_Layout} for
1200         attributes that this class processes in its children. -->
1201    <declare-styleable name="ViewGroup">
1202        <!-- Defines whether a child is limited to draw inside of its bounds or not.
1203             This is useful with animations that scale the size of the children to more
1204             than 100% for instance. In such a case, this property should be set to false
1205             to allow the children to draw outside of their bounds. The default value of
1206             this property is true. -->
1207        <attr name="clipChildren" format="boolean" />
1208        <!-- Defines whether the ViewGroup will clip its drawing surface so as to exclude
1209             the padding area. This property is set to true by default. -->
1210        <attr name="clipToPadding" format="boolean" />
1211        <!-- Defines the layout animation to use the first time the ViewGroup is laid out.
1212             Layout animations can also be started manually after the first layout. -->
1213        <attr name="layoutAnimation" format="reference" />
1214        <!-- Defines whether layout animations should create a drawing cache for their
1215             children. Enabling the animation cache consumes more memory and requires
1216             a longer initialization but provides better performance. The animation
1217             cache is enabled by default. -->
1218        <attr name="animationCache" format="boolean" />
1219        <!-- Defines the persistence of the drawing cache. The drawing cache might be
1220             enabled by a ViewGroup for all its children in specific situations (for
1221             instance during a scrolling.) This property lets you persist the cache
1222             in memory after its initial usage. Persisting the cache consumes more
1223             memory but may prevent frequent garbage collection is the cache is created
1224             over and over again. By default the persistence is set to scrolling. -->
1225        <attr name="persistentDrawingCache">
1226            <!-- The drawing cache is not persisted after use. -->
1227            <flag name="none" value="0x0" />
1228            <!-- The drawing cache is persisted after a layout animation. -->
1229            <flag name="animation" value="0x1" />
1230            <!-- The drawing cache is persisted after a scroll. -->
1231            <flag name="scrolling" value="0x2" />
1232            <!-- The drawing cache is always persisted. -->
1233            <flag name="all" value="0x3" />
1234        </attr>
1235        <!-- Defines whether the ViewGroup should always draw its children using their
1236             drawing cache or not. The default value is true. -->
1237        <attr name="alwaysDrawnWithCache" format="boolean" />
1238        <!-- Sets whether this ViewGroup's drawable states also include
1239             its children's drawable states.  This is used, for example, to
1240             make a group appear to be focused when its child EditText or button
1241             is focused. -->
1242        <attr name="addStatesFromChildren" format="boolean" />
1243
1244        <!-- Defines the relationship between the ViewGroup and its descendants
1245             when looking for a View to take focus. -->
1246        <attr name="descendantFocusability">
1247            <!-- The ViewGroup will get focus before any of its descendants. -->
1248            <enum name="beforeDescendants" value="0" />
1249            <!-- The ViewGroup will get focus only if none of its descendants want it. -->
1250            <enum name="afterDescendants" value="1" />
1251            <!-- The ViewGroup will block its descendants from receiving focus. -->
1252            <enum name="blocksDescendants" value="2" />
1253        </attr>
1254
1255    </declare-styleable>
1256
1257    <!-- A {@link android.view.ViewStub} lets you lazily include other XML layouts
1258         inside your application at runtime. -->
1259    <declare-styleable name="ViewStub">
1260        <!-- Supply an identifier for the layout resource to inflate when the ViewStub
1261             becomes visible or when forced to do so. The layout resource must be a
1262             valid reference to a layout. -->
1263        <attr name="layout" format="reference" />
1264        <!-- Overrides the id of the inflated View with this value. -->
1265        <attr name="inflatedId" format="reference" />
1266    </declare-styleable>
1267
1268    <!-- ===================================== -->
1269    <!-- View package parent layout attributes -->
1270    <!-- ===================================== -->
1271    <eat-comment />
1272
1273    <!-- This is the basic set of layout attributes that are common to all
1274         layout managers.  These attributes are specified with the rest of
1275         a view's normal attributes (such as {@link android.R.attr#background},
1276         but will be parsed by the view's parent and ignored by the child.
1277        <p>The values defined here correspond to the base layout attribute
1278        class {@link android.view.ViewGroup.LayoutParams}. -->
1279    <declare-styleable name="ViewGroup_Layout">
1280        <!-- Specifies the basic width of the view.  This is a required attribute
1281             for any view inside of a containing layout manager.  Its value may
1282             be a dimension (such as "12dip") for a constant width or one of
1283             the special constants. -->
1284        <attr name="layout_width" format="dimension">
1285            <!-- The view should be as big as its parent (minus padding). -->
1286            <enum name="fill_parent" value="-1" />
1287            <!-- The view should be only big enough to enclose its content (plus padding). -->
1288            <enum name="wrap_content" value="-2" />
1289        </attr>
1290
1291        <!-- Specifies the basic height of the view.  This is a required attribute
1292             for any view inside of a containing layout manager.  Its value may
1293             be a dimension (such as "12dip") for a constant height or one of
1294             the special constants. -->
1295        <attr name="layout_height" format="dimension">
1296            <!-- The view should be as big as its parent (minus padding). -->
1297            <enum name="fill_parent" value="-1" />
1298            <!-- The view should be only big enough to enclose its content (plus padding). -->
1299            <enum name="wrap_content" value="-2" />
1300        </attr>
1301    </declare-styleable>
1302
1303    <!-- This is the basic set of layout attributes for layout managers that
1304         wish to place margins around their child views.
1305         These attributes are specified with the rest of
1306         a view's normal attributes (such as {@link android.R.attr#background},
1307         but will be parsed by the view's parent and ignored by the child.
1308        <p>The values defined here correspond to the base layout attribute
1309        class {@link android.view.ViewGroup.MarginLayoutParams}. -->
1310    <declare-styleable name="ViewGroup_MarginLayout">
1311        <attr name="layout_width" />
1312        <attr name="layout_height" />
1313        <!--  Specifies extra space on the left, top, right and bottom
1314              sides of this view. This space is outside this view's bounds. -->
1315        <attr name="layout_margin" format="dimension"  />
1316        <!--  Specifies extra space on the left side of this view.
1317              This space is outside this view's bounds. -->
1318        <attr name="layout_marginLeft" format="dimension"  />
1319        <!--  Specifies extra space on the top side of this view.
1320              This space is outside this view's bounds. -->
1321        <attr name="layout_marginTop" format="dimension" />
1322        <!--  Specifies extra space on the right side of this view.
1323              This space is outside this view's bounds. -->
1324        <attr name="layout_marginRight" format="dimension"  />
1325        <!--  Specifies extra space on the bottom side of this view.
1326              This space is outside this view's bounds. -->
1327        <attr name="layout_marginBottom" format="dimension"  />
1328    </declare-styleable>
1329
1330    <!-- Use <code>input-method</code> as the root tag of the XML resource that
1331         describes an
1332         {@link android.view.inputmethod.InputMethod} service, which is
1333         referenced from its
1334         {@link android.view.inputmethod.InputMethod#SERVICE_META_DATA}
1335         meta-data entry.  Described here are the attributes that can be
1336         included in that tag. -->
1337    <declare-styleable name="InputMethod">
1338        <!-- Component name of an activity that allows the user to modify
1339             the settings for this input method. -->
1340        <attr name="settingsActivity" format="string" />
1341        <!-- Set to true in all of the configurations for which this input
1342             method should be considered an option as the default. -->
1343        <attr name="isDefault" format="boolean" />
1344    </declare-styleable>
1345
1346    <!-- =============================== -->
1347    <!-- Widget package class attributes -->
1348    <!-- =============================== -->
1349    <eat-comment />
1350
1351    <declare-styleable name="AbsListView">
1352         <!-- Drawable used to indicate the currently selected item in the list. -->
1353        <attr name="listSelector" format="color|reference" />
1354        <!-- When set to true, the selector will be drawn over the selected item.
1355             Otherwise the selector is drawn behind the selected item. The default
1356             value is false. -->
1357        <attr name="drawSelectorOnTop" format="boolean" />
1358        <!-- Used by ListView and GridView to stack their content from the bottom. -->
1359        <attr name="stackFromBottom" format="boolean" />
1360        <!-- When set to true, the list uses a drawing cache during scrolling.
1361             This makes the rendering faster but uses more memory. The default
1362             value is true. -->
1363        <attr name="scrollingCache" format="boolean" />
1364        <!-- When set to true, the list will filter results as the user types. The
1365             List's adapter must support the Filterable interface for this to work -->
1366        <attr name="textFilterEnabled" format="boolean" />
1367        <!-- Sets the transcript mode for the list. In transcript mode, the list
1368             scrolls to the bottom to make new items visible when they are added. -->
1369        <attr name="transcriptMode">
1370            <!-- Disables transcript mode. This is the default value. -->
1371            <enum name="disabled" value="0"/>
1372            <!-- The list will automatically scroll to the bottom when
1373                 a data set change notification is received and only if the last item is
1374                 already visible on screen. -->
1375            <enum name="normal" value="1" />
1376            <!-- The list will automatically scroll to the bottom, no matter what items
1377                 are currently visible. -->
1378            <enum name="alwaysScroll" value="2" />
1379        </attr>
1380        <!-- Indicates that this list will always be drawn on top of solid, single-color
1381             opaque background. This allows the list to optimize drawing. -->
1382        <attr name="cacheColorHint" format="color" />
1383        <!-- Enables the fast scroll thumb that can be dragged to quickly scroll through
1384             the list. -->
1385        <attr name="fastScrollEnabled" format="boolean" />
1386        <!-- When set to true, the list will use a more refined calculation
1387             method based on the pixels height of the items visible on screen. This
1388             property is set to true by default but should be set to false if your adapter
1389             will display items of varying heights. When this property is set to true and
1390             your adapter displays items of varying heights, the scrollbar thumb will
1391             change size as the user scrolls through the list. When set to fale, the list
1392             will use only the number of items in the adapter and the number of items visible
1393             on screen to determine the scrollbar's properties. -->
1394        <attr name="smoothScrollbar" format="boolean" />
1395    </declare-styleable>
1396    <declare-styleable name="AbsSpinner">
1397        <!-- Reference to an array resource that will populate the Spinner.  For static content,
1398             this is simpler than populating the Spinner programmatically. -->
1399        <attr name="entries" />
1400    </declare-styleable>
1401    <declare-styleable name="AnalogClock">
1402        <attr name="dial" format="reference"/>
1403        <attr name="hand_hour" format="reference"/>
1404        <attr name="hand_minute" format="reference"/>
1405    </declare-styleable>
1406    <declare-styleable name="Button">
1407    </declare-styleable>
1408    <declare-styleable name="Chronometer">
1409        <!-- Format string: if specified, the Chronometer will display this
1410             string, with the first "%s" replaced by the current timer value
1411             in "MM:SS" or "H:MM:SS" form.
1412             If no format string is specified, the Chronometer will simply display
1413             "MM:SS" or "H:MM:SS". -->
1414        <attr name="format" format="string" localization="suggested" />
1415    </declare-styleable>
1416    <declare-styleable name="CompoundButton">
1417        <!-- Indicates the initial checked state of this button -->
1418        <attr name="checked" format="boolean" />
1419        <!-- Drawable used for the button graphic (e.g. checkbox, radio button, etc). -->
1420        <attr name="button" format="reference"/>
1421    </declare-styleable>
1422    <declare-styleable name="CheckedTextView">
1423        <!-- Indicates the initial checked state of this text -->
1424        <attr name="checked" />
1425        <!-- Drawable used for the check mark graphic -->
1426        <attr name="checkMark" format="reference"/>
1427    </declare-styleable>
1428    <declare-styleable name="EditText">
1429    </declare-styleable>
1430    <declare-styleable name="FrameLayout">
1431        <!-- Defines the drawable to draw over the content. This can be used as an overlay.
1432             The foreground drawable participates in the padding of the content if the gravity
1433             is set to fill. -->
1434        <attr name="foreground" format="reference|color" />
1435        <!-- Defines the gravity to apply to the foreground drawable. The gravity defaults
1436             to fill. -->
1437        <attr name="foregroundGravity">
1438            <!-- Push object to the top of its container, not changing its size. -->
1439            <flag name="top" value="0x30" />
1440            <!-- Push object to the bottom of its container, not changing its size. -->
1441            <flag name="bottom" value="0x50" />
1442            <!-- Push object to the left of its container, not changing its size. -->
1443            <flag name="left" value="0x03" />
1444            <!-- Push object to the right of its container, not changing its size. -->
1445            <flag name="right" value="0x05" />
1446            <!-- Place object in the vertical center of its container, not changing its size. -->
1447            <flag name="center_vertical" value="0x10" />
1448            <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
1449            <flag name="fill_vertical" value="0x70" />
1450            <!-- Place object in the horizontal center of its container, not changing its size. -->
1451            <flag name="center_horizontal" value="0x01" />
1452            <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
1453            <flag name="fill_horizontal" value="0x07" />
1454            <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
1455            <flag name="center" value="0x11" />
1456            <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
1457            <flag name="fill" value="0x77" />
1458            <!-- Additional option that can be set to have the top and/or bottom edges of
1459                 the child clipped to its container's bounds.
1460                 The clip will be based on the vertical gravity: a top gravity will clip the bottom
1461                 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
1462            <flag name="clip_vertical" value="0x80" />
1463            <!-- Additional option that can be set to have the left and/or right edges of
1464                 the child clipped to its container's bounds.
1465                 The clip will be based on the horizontal gravity: a left gravity will clip the right
1466                 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
1467            <flag name="clip_horizontal" value="0x08" />
1468        </attr>
1469        <!-- Defines whether the foreground drawable should be drawn inside the padding.
1470             This property is turned on by default. -->
1471        <attr name="foregroundInsidePadding" format="boolean" />
1472        <!-- Determines whether to measure all children or just those in
1473             the VISIBLE or INVISIBLE state when measuring. Defaults to false. -->
1474        <attr name="measureAllChildren" format="boolean" />
1475    </declare-styleable>
1476    <declare-styleable name="ExpandableListView">
1477        <!-- Indicator shown beside the group View. This can be a stateful Drawable. -->
1478        <attr name="groupIndicator" format="reference" />
1479        <!-- Indicator shown beside the child View. This can be a stateful Drawable. -->
1480        <attr name="childIndicator" format="reference" />
1481        <!-- The left bound for an item's indicator. To specify a left bound specific to children,
1482             use childIndicatorLeft. -->
1483        <attr name="indicatorLeft" format="dimension" />
1484        <!-- The right bound for an item's indicator. To specify a right bound specific to children,
1485             use childIndicatorRight. -->
1486        <attr name="indicatorRight" format="dimension" />
1487        <!-- The left bound for a child's indicator. -->
1488        <attr name="childIndicatorLeft" format="dimension" />
1489        <!-- The right bound for a child's indicator. -->
1490        <attr name="childIndicatorRight" format="dimension" />
1491        <!-- Drawable or color that is used as a divider for children. (It will drawn
1492             below and above child items.) The height of this will be the same as
1493             the height of the normal list item divider. -->
1494        <attr name="childDivider" format="reference|color" />
1495    </declare-styleable>
1496    <declare-styleable name="Gallery">
1497        <attr name="gravity" />
1498        <!-- Sets how long a transition animation should run (in milliseconds)
1499             when layout has changed.  Only relevant if animation is turned on. -->
1500        <attr name="animationDuration" format="integer" min="0" />
1501        <attr name="spacing" format="dimension" />
1502        <!-- Sets the alpha on the items that are not selected. -->
1503        <attr name="unselectedAlpha" format="float" />
1504    </declare-styleable>
1505    <declare-styleable name="GridView">
1506        <attr name="horizontalSpacing" format="dimension" />
1507        <attr name="verticalSpacing" format="dimension" />
1508        <attr name="stretchMode">
1509            <enum name="none" value="0"/>
1510            <enum name="spacingWidth" value="1" />
1511            <enum name="columnWidth" value="2" />
1512            <enum name="spacingWidthUniform" value="3" />
1513        </attr>
1514        <attr name="columnWidth" format="dimension" />
1515        <attr name="numColumns" format="integer" min="0">
1516            <enum name="auto_fit" value="-1" />
1517        </attr>
1518        <attr name="gravity" />
1519    </declare-styleable>
1520    <declare-styleable name="ImageSwitcher">
1521    </declare-styleable>
1522    <declare-styleable name="ImageView">
1523        <!-- Sets a drawable as the content of this ImageView. -->
1524        <attr name="src" format="reference|color" />
1525        <!-- Controls how the image should be resized or moved to match the size
1526             of this ImageView. -->
1527        <attr name="scaleType">
1528            <enum name="matrix" value="0" />
1529            <enum name="fitXY" value="1" />
1530            <enum name="fitStart" value="2" />
1531            <enum name="fitCenter" value="3" />
1532            <enum name="fitEnd" value="4" />
1533            <enum name="center" value="5" />
1534            <enum name="centerCrop" value="6" />
1535            <enum name="centerInside" value="7" />
1536        </attr>
1537        <!-- Set this to true if you want the ImageView to adjust its bounds
1538             to preserve the aspect ratio of its drawable. -->
1539        <attr name="adjustViewBounds" format="boolean" />
1540        <!-- An optional argument to supply a maximum width for this view.
1541             See {see android.widget.ImageView#setMaxWidth} for details. -->
1542        <attr name="maxWidth" format="dimension" />
1543        <!-- An optional argument to supply a maximum height for this view.
1544             See {see android.widget.ImageView#setMaxHeight} for details. -->
1545        <attr name="maxHeight" format="dimension" />
1546        <!-- Set a tinting color for the image -->
1547        <attr name="tint" format="color" />
1548        <!-- If true, the image view will be baseline aligned with based on its
1549             bottom edge -->
1550        <attr name="baselineAlignBottom" format="boolean" />
1551         <!-- If true, the image will be cropped to fit within its padding -->
1552        <attr name="cropToPadding" format="boolean" />
1553    </declare-styleable>
1554    <declare-styleable name="ToggleButton">
1555        <!-- The text for the button when it is checked. -->
1556        <attr name="textOn" format="string" />
1557        <!-- The text for the button when it is not checked. -->
1558        <attr name="textOff" format="string" />
1559        <!-- The alpha to apply to the indicator when disabled. -->
1560        <attr name="disabledAlpha" />
1561    </declare-styleable>
1562    <declare-styleable name="RelativeLayout">
1563        <attr name="gravity" />
1564        <!-- Indicates what view should not be affected by gravity. -->
1565        <attr name="ignoreGravity" format="reference" />
1566    </declare-styleable>
1567    <declare-styleable name="LinearLayout">
1568        <!-- Should the layout be a column or a row?  Use "horizontal"
1569             for a row, "vertical" for a column.  The default is
1570             horizontal. -->
1571        <attr name="orientation" />
1572        <attr name="gravity" />
1573        <!-- When set to false, prevents the layout from aligning its children's
1574             baselines. This attribute is particularly useful when the children
1575             use different values for gravity. The default value is true. -->
1576        <attr name="baselineAligned" format="boolean" />
1577        <!-- When a linear layout is part of another layout that is baseline
1578          aligned, it can specify which of its children to baseline align to
1579          (i.e which child TextView).-->
1580        <attr name="baselineAlignedChildIndex" format="integer" min="0"/>
1581        <!-- Defines the maximum weight sum. If unspecified, the sum is computed
1582             by adding the layout_weight of all of the children. This can be
1583             used for instance to give a single child 50% of the total available
1584             space by giving it a layout_weight of 0.5 and setting the weightSum
1585             to 1.0. -->
1586        <attr name="weightSum" format="float" />
1587    </declare-styleable>
1588    <declare-styleable name="ListView">
1589        <!-- Reference to an array resource that will populate the ListView.  For static content,
1590             this is simpler than populating the ListView programmatically. -->
1591        <attr name="entries" />
1592        <!-- Drawable or color to draw between list items. -->
1593        <attr name="divider" format="reference|color" />
1594        <!-- Height of the divider. Will use the intrinsic height of the divider if this
1595             is not specified. -->
1596        <attr name="dividerHeight" format="dimension" />
1597        <!-- Defines the choice behavior for the ListView. By default, lists do not have
1598             any choice behavior. By setting the choiceMode to singleChoice, the List
1599             allows up to one item to be in a chosen state. By setting the choiceMode to
1600             multipleChoice, the list allows any number of items to be chosen. -->
1601        <attr name="choiceMode">
1602            <!-- Normal list that does not indicate choices -->
1603            <enum name="none" value="0" />
1604            <!-- The list allows up to one choice -->
1605            <enum name="singleChoice" value="1" />
1606            <!-- The list allows multiple choices -->
1607            <enum name="multipleChoice" value="2" />
1608        </attr>
1609        <!-- When set to false, the ListView will not draw the divider after each header view.
1610             The default value is true. -->
1611        <attr name="headerDividersEnabled" format="boolean" />
1612        <!-- When set to false, the ListView will not draw the divider before each footer view.
1613             The default value is true. -->
1614        <attr name="footerDividersEnabled" format="boolean" />
1615    </declare-styleable>
1616    <declare-styleable name="MenuView">
1617        <!-- Default appearance of menu item text. -->
1618        <attr name="itemTextAppearance" format="reference" />
1619        <!-- Default horizontal divider between rows of menu items. -->
1620        <attr name="horizontalDivider" format="reference" />
1621        <!-- Default vertical divider between menu items. -->
1622        <attr name="verticalDivider" format="reference" />
1623        <!-- Default background for the menu header. -->
1624        <attr name="headerBackground" format="color|reference" />
1625        <!-- Default background for each menu item. -->
1626        <attr name="itemBackground" format="color|reference" />
1627        <!-- Default animations for the menu -->
1628        <attr name="windowAnimationStyle" />
1629        <!-- Default disabled icon alpha for each menu item that shows an icon. -->
1630        <attr name="itemIconDisabledAlpha" format="float" />
1631    </declare-styleable>
1632    <declare-styleable name="IconMenuView">
1633        <!-- Defines the height of each row. -->
1634        <attr name="rowHeight" format="dimension" />
1635        <!-- Defines the maximum number of rows displayed. -->
1636        <attr name="maxRows" format="integer" />
1637        <!-- Defines the maximum number of items per row. -->
1638        <attr name="maxItemsPerRow" format="integer" />
1639        <!-- Defines the maximum number of items to show. -->
1640        <attr name="maxItems" format="integer" />
1641        <!-- 'More' icon -->
1642        <attr name="moreIcon" format="reference" />
1643    </declare-styleable>
1644
1645    <declare-styleable name="ProgressBar">
1646        <!-- Defines the maximum value the progress can take. -->
1647        <attr name="max" format="integer" />
1648        <!-- Defines the default progress value, between 0 and max. -->
1649        <attr name="progress" format="integer" />
1650        <!-- Defines the secondary progress value, between 0 and max. This progress is drawn between
1651             the primary progress and the background.  It can be ideal for media scenarios such as
1652             showing the buffering progress while the default progress shows the play progress. -->
1653        <attr name="secondaryProgress" format="integer" />
1654        <!-- Allows to enable the indeterminate mode. In this mode the progress
1655         bar plays an infinite looping animation. -->
1656        <attr name="indeterminate" format="boolean" />
1657        <!-- Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). -->
1658        <attr name="indeterminateOnly" format="boolean" />
1659        <!-- Drawable used for the indeterminate mode. -->
1660        <attr name="indeterminateDrawable" format="reference" />
1661        <!-- Drawable used for the progress mode. -->
1662        <attr name="progressDrawable" format="reference" />
1663        <!-- Duration of the indeterminate animation. -->
1664        <attr name="indeterminateDuration" format="integer" min="1" />
1665        <!-- Defines how the indeterminate mode should behave when the progress
1666        reaches max. -->
1667        <attr name="indeterminateBehavior">
1668            <!-- Progress starts over from 0. -->
1669            <enum name="repeat" value="1" />
1670            <!-- Progress keeps the current value and goes back to 0. -->
1671            <enum name="cycle" value="2" />
1672        </attr>
1673        <attr name="minWidth" format="dimension" />
1674        <attr name="maxWidth" />
1675        <attr name="minHeight" format="dimension" />
1676        <attr name="maxHeight" />
1677        <attr name="interpolator" format="reference" />
1678    </declare-styleable>
1679
1680    <declare-styleable name="SeekBar">
1681        <!-- Draws the thumb on a seekbar -->
1682        <attr name="thumb" format="reference" />
1683        <!-- An offset for the thumb that allows it to extend out of the range of the track. -->
1684        <attr name="thumbOffset" format="dimension" />
1685    </declare-styleable>
1686
1687    <declare-styleable name="RatingBar">
1688        <!-- The number of stars (or rating items) to show. -->
1689        <attr name="numStars" format="integer" />
1690        <!-- The rating to set by default. -->
1691        <attr name="rating" format="float" />
1692        <!-- The step size of the rating. -->
1693        <attr name="stepSize" format="float" />
1694        <!-- Whether this rating bar is an indicator (and non-changeable by the user). -->
1695        <attr name="isIndicator" format="boolean" />
1696    </declare-styleable>
1697
1698    <declare-styleable name="RadioGroup">
1699        <!-- The id of the child radio button that should be checked by default
1700             within this radio group. -->
1701        <attr name="checkedButton" format="integer" />
1702        <!-- Should the radio group be a column or a row?  Use "horizontal"
1703             for a row, "vertical" for a column.  The default is
1704             vertical. -->
1705        <attr name="orientation" />
1706    </declare-styleable>
1707    <declare-styleable name="TableLayout">
1708        <!-- The 0 based index of the columns to stretch. The column indices
1709             must be separated by a comma: 1, 2, 5. Illegal and duplicate
1710             indices are ignored. You can stretch all columns by using the
1711             value "*" instead. Note that a column can be marked stretchable
1712             and shrinkable at the same time. -->
1713        <attr name="stretchColumns" format="string" />
1714       <!-- The 0 based index of the columns to shrink. The column indices
1715             must be separated by a comma: 1, 2, 5. Illegal and duplicate
1716             indices are ignored. You can shrink all columns by using the
1717             value "*" instead. Note that a column can be marked stretchable
1718             and shrinkable at the same time. -->
1719        <attr name="shrinkColumns" format="string" />
1720        <!-- The 0 based index of the columns to collapse. The column indices
1721             must be separated by a comma: 1, 2, 5. Illegal and duplicate
1722             indices are ignored. -->
1723        <attr name="collapseColumns" format="string" />
1724    </declare-styleable>
1725    <declare-styleable name="TableRow">
1726
1727    </declare-styleable>
1728    <declare-styleable name="TableRow_Cell">
1729        <!-- The index of the column in which this child should be. -->
1730        <attr name="layout_column" format="integer" />
1731        <!-- Defines how many columns this child should span.  Must be >= 1.-->
1732        <attr name="layout_span" format="integer" />
1733    </declare-styleable>
1734    <declare-styleable name="TabWidget">
1735    </declare-styleable>
1736    <declare-styleable name="TextAppearance">
1737        <!-- Text color. -->
1738        <attr name="textColor" />
1739        <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
1740        <attr name="textSize" />
1741        <!-- Style (bold, italic, bolditalic) for the text. -->
1742        <attr name="textStyle" />
1743        <!-- Typeface (normal, sans, serif, monospace) for the text. -->
1744        <attr name="typeface" />
1745        <!-- Color of the text selection highlight. -->
1746        <attr name="textColorHighlight" />
1747        <!-- Color of the hint text. -->
1748        <attr name="textColorHint" />
1749        <!-- Color of the links. -->
1750        <attr name="textColorLink" />
1751    </declare-styleable>
1752    <declare-styleable name="TextSwitcher">
1753    </declare-styleable>
1754    <declare-styleable name="TextView">
1755        <!-- Determines the minimum type that getText() will return.
1756             The default is "normal".
1757             Note that EditText and LogTextBox always return Editable,
1758             even if you specify something less powerful here. -->
1759        <attr name="bufferType">
1760            <!-- Can return any CharSequence, possibly a
1761             Spanned one if the source text was Spanned. -->
1762            <enum name="normal" value="0" />
1763            <!-- Can only return Spannable. -->
1764            <enum name="spannable" value="1" />
1765            <!-- Can only return Spannable and Editable. -->
1766            <enum name="editable" value="2" />
1767        </attr>
1768        <!-- Text to display. -->
1769        <attr name="text" format="string" localization="suggested" />
1770        <!-- Hint text to display when the text is empty. -->
1771        <attr name="hint" format="string" />
1772        <!-- Text color. -->
1773        <attr name="textColor" />
1774        <!-- Color of the text selection highlight. -->
1775        <attr name="textColorHighlight" />
1776        <!-- Color of the hint text. -->
1777        <attr name="textColorHint" />
1778        <!-- Base text color, typeface, size, and style. -->
1779        <attr name="textAppearance" />
1780        <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
1781        <attr name="textSize" />
1782        <!-- Sets the horizontal scaling factor for the text -->
1783        <attr name="textScaleX" format="float" />
1784        <!-- Typeface (normal, sans, serif, monospace) for the text. -->
1785        <attr name="typeface" />
1786        <!-- Style (bold, italic, bolditalic) for the text. -->
1787        <attr name="textStyle" />
1788        <!-- Text color for links. -->
1789        <attr name="textColorLink" />
1790        <!-- Makes the cursor visible (the default) or invisible -->
1791        <attr name="cursorVisible" format="boolean" />
1792        <!-- Makes the TextView be at most this many lines tall -->
1793        <attr name="maxLines" format="integer" min="0" />
1794        <!-- Makes the TextView be at most this many pixels tall -->
1795        <attr name="maxHeight" />
1796        <!-- Makes the TextView be exactly this many lines tall -->
1797        <attr name="lines" format="integer" min="0" />
1798        <!-- Makes the TextView be exactly this many pixels tall.
1799             You could get the same effect by specifying this number in the
1800             layout parameters. -->
1801        <attr name="height" format="dimension" />
1802        <!-- Makes the TextView be at least this many lines tall -->
1803        <attr name="minLines" format="integer" min="0" />
1804        <!-- Makes the TextView be at least this many pixels tall -->
1805        <attr name="minHeight" />
1806        <!-- Makes the TextView be at most this many ems wide -->
1807        <attr name="maxEms" format="integer" min="0" />
1808        <!-- Makes the TextView be at most this many pixels wide -->
1809        <attr name="maxWidth" />
1810        <!-- Makes the TextView be exactly this many ems wide -->
1811        <attr name="ems" format="integer" min="0" />
1812        <!-- Makes the TextView be exactly this many pixels wide.
1813             You could get the same effect by specifying this number in the
1814             layout parameters. -->
1815        <attr name="width" format="dimension" />
1816        <!-- Makes the TextView be at least this many ems wide -->
1817        <attr name="minEms" format="integer" min="0" />
1818        <!-- Makes the TextView be at least this many pixels wide -->
1819        <attr name="minWidth" />
1820        <!-- Specifies how to align the text by the view's x- and/or y-axis
1821             when the text is smaller than the view. -->
1822        <attr name="gravity" />
1823        <!-- Whether the text is allowed to be wider than the view (and
1824             therefore can be scrolled horizontally). -->
1825        <attr name="scrollHorizontally" format="boolean" />
1826        <!-- Whether the characters of the field are displayed as
1827             password dots instead of themselves.
1828             {@deprecated Use inputType instead.} -->
1829        <attr name="password" format="boolean" />
1830        <!-- Constrains the text to a single horizontally scrolling line
1831             instead of letting it wrap onto multiple lines, and advances
1832             focus instead of inserting a newline when you press the
1833             enter key.  Note: for editable text views, it is better
1834             to control this using the textMultiLine flag in the inputType
1835             attribute.  (If both singleLine and inputType are supplied,
1836             the inputType flags will override the value of singleLine.)
1837             {@deprecated This attribute is deprecated and is replaced by the textMultiLine flag
1838             in the inputType attribute.  Use caution when altering existing layouts, as the
1839             default value of singeLine is false (multi-line mode), but if you specify any
1840             value for inputType, the default is single-line mode.  (If both singleLine and
1841             inputType attributes are found,  the inputType flags will override the value of
1842             singleLine.) } -->
1843        <attr name="singleLine" format="boolean" />
1844        <!-- {@deprecated Use state_enabled instead.} -->
1845        <attr name="enabled" format="boolean" />
1846        <!-- If the text is selectable, select it all when the view takes
1847             focus instead of moving the cursor to the start or end. -->
1848        <attr name="selectAllOnFocus" format="boolean" />
1849        <!-- Leave enough room for ascenders and descenders instead of
1850             using the font ascent and descent strictly.  (Normally true). -->
1851        <attr name="includeFontPadding" format="boolean" />
1852        <!-- Set an input filter to constrain the text length to the
1853             specified number. -->
1854        <attr name="maxLength" format="integer" min="0" />
1855        <!-- Place a shadow of the specified color behind the text. -->
1856        <attr name="shadowColor" format="color" />
1857        <!-- Horizontal offset of the shadow. -->
1858        <attr name="shadowDx" format="float" />
1859        <!-- Vertical offset of the shadow. -->
1860        <attr name="shadowDy" format="float" />
1861        <!-- Radius of the shadow. -->
1862        <attr name="shadowRadius" format="float" />
1863        <attr name="autoLink" />
1864        <!-- If set to false, keeps the movement method from being set
1865             to the link movement method even if autoLink causes links
1866             to be found. -->
1867        <attr name="linksClickable" format="boolean" />
1868        <!-- If set, specifies that this TextView has a numeric input method.
1869             The default is false.
1870             {@deprecated Use inputType instead.} -->
1871        <attr name="numeric">
1872            <!-- Input is numeric. -->
1873            <flag name="integer" value="0x01" />
1874            <!-- Input is numeric, with sign allowed. -->
1875            <flag name="signed" value="0x003" />
1876            <!-- Input is numeric, with decimals allowed. -->
1877            <flag name="decimal" value="0x05" />
1878        </attr>
1879        <!-- If set, specifies that this TextView has a numeric input method
1880             and that these specific characters are the ones that it will
1881             accept.
1882             If this is set, numeric is implied to be true.
1883             The default is false. -->
1884        <attr name="digits" format="string" />
1885        <!-- If set, specifies that this TextView has a phone number input
1886             method. The default is false.
1887             {@deprecated Use inputType instead.} -->
1888        <attr name="phoneNumber" format="boolean" />
1889        <!-- If set, specifies that this TextView should use the specified
1890             input method (specified by fully-qualified class name).
1891             {@deprecated Use inputType instead.} -->
1892        <attr name="inputMethod" format="string" />
1893        <!-- If set, specifies that this TextView has a textual input method
1894             and should automatically capitalize what the user types.
1895             The default is "none".
1896             {@deprecated Use inputType instead.} -->
1897        <attr name="capitalize">
1898            <!-- Don't automatically capitalize anything. -->
1899            <enum name="none" value="0" />
1900            <!-- Capitalize the first word of each sentence. -->
1901            <enum name="sentences" value="1" />
1902            <!-- Capitalize the first letter of every word. -->
1903            <enum name="words" value="2" />
1904            <!-- Capitalize every character. -->
1905            <enum name="characters" value="3" />
1906        </attr>
1907        <!-- If set, specifies that this TextView has a textual input method
1908             and automatically corrects some common spelling errors.
1909             The default is "false".
1910             {@deprecated Use inputType instead.} -->
1911        <attr name="autoText" format="boolean" />
1912        <!-- If set, specifies that this TextView has an input method.
1913             It will be a textual one unless it has otherwise been specified.
1914             For TextView, this is false by default.  For EditText, it is
1915             true by default.
1916             {@deprecated Use inputType instead.} -->
1917        <attr name="editable" format="boolean" />
1918        <!-- If set, the text view will include its current complete text
1919             inside of its frozen icicle in addition to meta-data such as
1920             the current cursor position.  By default this is disabled;
1921             it can be useful when the contents of a text view is not stored
1922             in a persistent place such as a content provider. -->
1923        <attr name="freezesText" format="boolean" />
1924        <!-- If set, causes words that are longer than the view is wide
1925             to be ellipsized instead of broken in the middle.
1926             You will often also want to set scrollHorizontally or singleLine
1927             as well so that the text as a whole is also constrained to
1928             a single line instead of still allowed to be broken onto
1929             multiple lines. -->
1930        <attr name="ellipsize" />
1931        <!-- The drawable to be drawn above the text. -->
1932        <attr name="drawableTop" format="reference|color" />
1933        <!-- The drawable to be drawn below the text. -->
1934        <attr name="drawableBottom" format="reference|color" />
1935        <!-- The drawable to be drawn to the left of the text. -->
1936        <attr name="drawableLeft" format="reference|color" />
1937        <!-- The drawable to be drawn to the right of the text. -->
1938        <attr name="drawableRight" format="reference|color" />
1939        <!-- The padding between the drawables and the text. -->
1940        <attr name="drawablePadding" format="dimension" />
1941        <!-- Extra spacing between lines of text. -->
1942        <attr name="lineSpacingExtra" format="dimension" />
1943        <!-- Extra spacing between lines of text, as a multiplier. -->
1944        <attr name="lineSpacingMultiplier" format="float" />
1945        <!-- The number of times to repeat the marquee animation. Only applied if the
1946             TextView has marquee enabled. -->
1947        <attr name="marqueeRepeatLimit" format="integer">
1948            <!-- Indicates that marquee should repeat indefinitely  -->
1949            <enum name="marquee_forever" value="-1" />
1950        </attr>
1951        <attr name="inputType" />
1952        <attr name="imeOptions" />
1953        <!-- An addition content type description to supply to the input
1954             method attached to the text view, which is private to the
1955             implementation of the input method.  This simply fills in
1956             the {@link android.view.inputmethod.EditorInfo#privateImeOptions
1957             EditorInfo.privateImeOptions} field when the input
1958             method is connected. -->
1959        <attr name="privateImeOptions" format="string" />
1960        <!-- Supply a value for
1961             {@link android.view.inputmethod.EditorInfo#actionLabel EditorInfo.actionLabel}
1962             used when an input method is connected to the text view. -->
1963        <attr name="imeActionLabel" format="string" />
1964        <!-- Supply a value for
1965             {@link android.view.inputmethod.EditorInfo#actionId EditorInfo.actionId}
1966             used when an input method is connected to the text view. -->
1967        <attr name="imeActionId" format="integer" />
1968        <!-- Reference to an
1969             {@link android.R.styleable#InputExtras &lt;input-extras&gt;}
1970             XML resource containing additional data to
1971             supply to an input method, which is private to the implementation
1972             of the input method.  This simply fills in
1973             the {@link android.view.inputmethod.EditorInfo#extras
1974             EditorInfo.extras} field when the input
1975             method is connected. -->
1976        <attr name="editorExtras" format="reference" />
1977    </declare-styleable>
1978    <!-- An <code>input-extras</code> is a container for extra data to supply to
1979         an input method.  Contains
1980         one more more {@link #Extra <extra>} tags.  -->
1981    <declare-styleable name="InputExtras">
1982    </declare-styleable>
1983    <declare-styleable name="AutoCompleteTextView">
1984        <!-- Defines the hint displayed in the drop down menu. -->
1985        <attr name="completionHint" format="string" />
1986        <!-- Defines the hint view displayed in the drop down menu. -->
1987        <attr name="completionHintView" format="reference" />
1988        <!-- Defines the number of characters that the user must type before
1989         completion suggestions are displayed in a drop down menu. -->
1990        <attr name="completionThreshold" format="integer" min="1" />
1991        <!-- Selector in a drop down list. -->
1992        <attr name="dropDownSelector" format="reference|color" />
1993        <!-- Amount of pixels by which the drop down should be offset vertically. -->
1994        <attr name="dropDownVerticalOffset" format="dimension" />
1995        <!-- Amount of pixels by which the drop down should be offset horizontally. -->
1996        <attr name="dropDownHorizontalOffset" format="dimension" />
1997        <!-- View to anchor the auto-complete dropdown to. If not specified, the text view itself
1998             is used. -->
1999        <attr name="dropDownAnchor" format="reference" />
2000        <!-- Specifies the basic width of the dropdown. Its value may
2001             be a dimension (such as "12dip") for a constant width, fill_parent
2002             to fill the width of the screen, or wrap_content to match the width
2003             of the anchored view. -->
2004        <attr name="dropDownWidth" format="dimension">
2005            <!-- The dropdown should fill the width of the screen. -->
2006            <enum name="fill_parent" value="-1" />
2007            <!-- The dropdown should fit the width of its anchor. -->
2008            <enum name="wrap_content" value="-2" />
2009        </attr>
2010        <!-- Specifies the basic width of the dropdown. Its value may
2011             be a dimension (such as "12dip") for a constant width, fill_parent
2012             to fill the width of the screen, or wrap_content to match the height of
2013             the content of the drop down. -->
2014        <attr name="dropDownHeight" format="dimension">
2015            <!-- The dropdown should fill the width of the screen. -->
2016            <enum name="fill_parent" value="-1" />
2017            <!-- The dropdown should fit the width of its anchor. -->
2018            <enum name="wrap_content" value="-2" />
2019        </attr>
2020        <attr name="inputType" />
2021    </declare-styleable>
2022    <declare-styleable name="PopupWindow">
2023        <attr name="popupBackground" format="reference|color" />
2024    </declare-styleable>
2025    <declare-styleable name="ViewAnimator">
2026        <attr name="inAnimation" format="reference" />
2027        <attr name="outAnimation" format="reference" />
2028    </declare-styleable>
2029    <declare-styleable name="ViewFlipper">
2030        <attr name="flipInterval" format="integer" min="0" />
2031    </declare-styleable>
2032    <declare-styleable name="ViewSwitcher">
2033    </declare-styleable>
2034    <declare-styleable name="ScrollView">
2035        <!-- Defines whether the scrollview should stretch its content to fill the viewport. -->
2036        <attr name="fillViewport" format="boolean" />
2037    </declare-styleable>
2038    <declare-styleable name="HorizontalScrollView">
2039        <!-- Defines whether the scrollview should stretch its content to fill the viewport. -->
2040        <attr name="fillViewport" />
2041    </declare-styleable>
2042    <declare-styleable name="Spinner">
2043        <!-- The prompt to display when the spinner's dialog is shown. -->
2044        <attr name="prompt" format="reference" />
2045    </declare-styleable>
2046    <declare-styleable name="DatePicker">
2047        <!-- The first year (inclusive) i.e. 1940 -->
2048        <attr name="startYear" format="integer" />
2049        <!-- The last year (inclusive) i.e. 2010 -->
2050        <attr name="endYear" format="integer" />
2051    </declare-styleable>
2052
2053    <declare-styleable name="TwoLineListItem">
2054        <attr name="mode">
2055            <!-- Always show only the first line. -->
2056            <enum name="oneLine" value="1" />
2057            <!-- When selected show both lines, otherwise show only the first line.
2058                 This is the default mode-->
2059            <enum name="collapsing" value="2" />
2060            <!-- Always show both lines. -->
2061            <enum name="twoLine" value="3" />
2062        </attr>
2063    </declare-styleable>
2064
2065    <!-- SlidingDrawer specific attributes. These attributes are used to configure
2066         a SlidingDrawer from XML. -->
2067    <declare-styleable name="SlidingDrawer">
2068        <!-- Identifier for the child that represents the drawer's handle. -->
2069        <attr name="handle" format="reference" />
2070        <!-- Identifier for the child that represents the drawer's content. -->
2071        <attr name="content" format="reference" />
2072        <!-- Orientation of the SlidingDrawer. -->
2073        <attr name="orientation" />
2074        <!-- Extra offset for the handle at the bottom of the SlidingDrawer. -->
2075        <attr name="bottomOffset" format="dimension"  />
2076        <!-- Extra offset for the handle at the top of the SlidingDrawer. -->
2077        <attr name="topOffset" format="dimension"  />
2078        <!-- Indicates whether the drawer can be opened/closed by a single tap
2079             on the handle.  (If false, the user must drag or fling, or click
2080             using the trackball, to open/close the drawer.)  Default is true. -->
2081        <attr name="allowSingleTap" format="boolean" />
2082        <!-- Indicates whether the drawer should be opened/closed with an animation
2083             when the user clicks the handle. Default is true. -->
2084        <attr name="animateOnClick" format="boolean" />
2085    </declare-styleable>
2086
2087    <!-- GestureOverlayView specific attributes. These attributes are used to configure
2088         a GestureOverlayView from XML. -->
2089    <declare-styleable name="GestureOverlayView">
2090        <!-- Width of the stroke used to draw the gesture. -->
2091        <attr name="gestureStrokeWidth" format="float" />
2092        <!-- Color used to draw a gesture. -->
2093        <attr name="gestureColor" format="color" />
2094        <!-- Color used to draw the user's strokes until we are sure it's a gesture. -->
2095        <attr name="uncertainGestureColor" format="color" />
2096        <!-- Time, in milliseconds, to wait before the gesture fades out after the user
2097             is done drawing it. -->
2098        <attr name="fadeOffset" format="integer" />
2099        <!-- Duration, in milliseconds, of the fade out effect after the user is done
2100             drawing a gesture. -->
2101        <attr name="fadeDuration" format="integer" />
2102        <!-- Defines the type of strokes that define a gesture. -->
2103        <attr name="gestureStrokeType">
2104            <!-- A gesture is made of only one stroke. -->
2105            <enum name="single" value="0" />
2106            <!-- A gesture is made of multiple strokes. -->
2107            <enum name="multiple" value="1" />
2108        </attr>
2109        <!-- Minimum length of a stroke before it is recognized as a gesture. -->
2110        <attr name="gestureStrokeLengthThreshold" format="float" />
2111        <!-- Squareness threshold of a stroke before it is recognized as a gesture. -->
2112        <attr name="gestureStrokeSquarenessThreshold" format="float" />
2113        <!-- Minimum curve angle a stroke must contain before it is recognized as a gesture. -->
2114        <attr name="gestureStrokeAngleThreshold" format="float" />
2115        <!-- Defines whether the overlay should intercept the motion events when a gesture
2116             is recognized. -->
2117        <attr name="eventsInterceptionEnabled" format="boolean" />
2118        <!-- Defines whether the gesture will automatically fade out after being recognized. -->
2119        <attr name="fadeEnabled" format="boolean" />
2120        <!-- Indicates whether horizontal (when the orientation is vertical) or vertical
2121             (when orientation is horizontal) strokes automatically define a gesture. -->
2122        <attr name="orientation" />
2123    </declare-styleable>
2124
2125    <!-- ======================================= -->
2126    <!-- Widget package parent layout attributes -->
2127    <!-- ======================================= -->
2128    <eat-comment />
2129
2130    <declare-styleable name="AbsoluteLayout_Layout">
2131        <attr name="layout_x" format="dimension" />
2132        <attr name="layout_y" format="dimension" />
2133    </declare-styleable>
2134    <declare-styleable name="LinearLayout_Layout">
2135        <attr name="layout_width" />
2136        <attr name="layout_height" />
2137        <attr name="layout_weight" format="float" />
2138        <attr name="layout_gravity" />
2139    </declare-styleable>
2140    <declare-styleable name="FrameLayout_Layout">
2141        <attr name="layout_gravity" />
2142    </declare-styleable>
2143    <declare-styleable name="RelativeLayout_Layout">
2144        <!-- Positions the right edge of this view to the left of the given anchor view ID.
2145             Accommodates right margin of this view and left margin of anchor view. -->
2146        <attr name="layout_toLeftOf" format="reference" />
2147        <!-- Positions the left edge of this view to the right of the given anchor view ID.
2148            Accommodates left margin of this view and right margin of anchor view. -->
2149        <attr name="layout_toRightOf" format="reference" />
2150        <!-- Positions the bottom edge of this view above the given anchor view ID.
2151            Accommodates bottom margin of this view and top margin of anchor view. -->
2152        <attr name="layout_above" format="reference" />
2153        <!-- Positions the top edge of this view below the given anchor view ID.
2154            Accommodates top margin of this view and bottom margin of anchor view. -->
2155        <attr name="layout_below" format="reference" />
2156        <!-- Positions the baseline of this view on the baseline of the given anchor view ID. -->
2157        <attr name="layout_alignBaseline" format="reference" />
2158        <!-- Makes the left edge of this view match the left edge of the given anchor view ID.
2159            Accommodates left margin. -->
2160        <attr name="layout_alignLeft" format="reference" />
2161        <!-- Makes the top edge of this view match the top edge of the given anchor view ID.
2162            Accommodates top margin. -->
2163        <attr name="layout_alignTop" format="reference" />
2164        <!-- Makes the right edge of this view match the right edge of the given anchor view ID.
2165            Accommodates right margin. -->
2166        <attr name="layout_alignRight" format="reference" />
2167        <!-- Makes the bottom edge of this view match the bottom edge of the given anchor view ID.
2168            Accommodates bottom margin. -->
2169        <attr name="layout_alignBottom" format="reference" />
2170        <!-- If true, makes the left edge of this view match the left edge of the parent.
2171            Accommodates left margin. -->
2172        <attr name="layout_alignParentLeft" format="boolean" />
2173        <!-- If true, makes the top edge of this view match the top edge of the parent.
2174            Accommodates top margin. -->
2175        <attr name="layout_alignParentTop" format="boolean" />
2176        <!-- If true, makes the right edge of this view match the right edge of the parent.
2177            Accommodates right margin. -->
2178        <attr name="layout_alignParentRight" format="boolean" />
2179        <!-- If true, makes the bottom edge of this view match the bottom edge of the parent.
2180            Accommodates bottom margin. -->
2181        <attr name="layout_alignParentBottom" format="boolean" />
2182        <!-- If true, centers this child horizontally and vertically within its parent. -->
2183        <attr name="layout_centerInParent" format="boolean" />
2184        <!-- If true, centers this child horizontally within its parent. -->
2185        <attr name="layout_centerHorizontal" format="boolean" />
2186        <!-- If true, centers this child vertically within its parent. -->
2187        <attr name="layout_centerVertical" format="boolean" />
2188        <!-- If set to true, the parent will be used as the anchor when the anchor cannot be
2189             be found for layout_toLeftOf, layout_toRightOf, etc. -->
2190        <attr name="layout_alignWithParentIfMissing" format="boolean" />
2191    </declare-styleable>
2192    <declare-styleable name="VerticalSlider_Layout">
2193        <attr name="layout_scale" format="float" />
2194    </declare-styleable>
2195
2196    <!-- ========================= -->
2197    <!-- Drawable class attributes -->
2198    <!-- ========================= -->
2199    <eat-comment />
2200
2201    <!-- Base attributes that are available to all Drawable objects. -->
2202    <declare-styleable name="Drawable">
2203        <!-- Provides initial visibility state of the drawable; the default
2204             value is false.  See
2205             {@link android.graphics.drawable.Drawable#setVisible} -->
2206        <attr name="visible" format="boolean" />
2207    </declare-styleable>
2208
2209    <declare-styleable name="StateListDrawable">
2210        <attr name="visible" />
2211        <!-- If true, allows the drawable's padding to change based on the
2212             current state that is selected.  If false, the padding will
2213             stay the same (based on the maximum padding of all the states).
2214             Enabling this feature requires that the owner of the drawable
2215             deal with performing layout when the state changes, which is
2216             often not supported. -->
2217        <attr name="variablePadding" format="boolean" />
2218        <!-- If true, the drawable's reported internal size will remain
2219             constant as the state changes; the size is the maximum of all
2220             of the states.  If false, the size will vary based on the
2221             current state. -->
2222        <attr name="constantSize" format="boolean" />
2223    </declare-styleable>
2224
2225    <declare-styleable name="AnimationDrawable">
2226        <attr name="visible" />
2227        <attr name="variablePadding" />
2228        <!-- If true, the animation will only run a single time and then
2229             stop.  If false (the default), it will continually run,
2230             restarting at the first frame after the last has finished. -->
2231        <attr name="oneshot" format="boolean" />
2232    </declare-styleable>
2233
2234    <declare-styleable name="AnimationDrawableItem">
2235        <!-- Amount of time (in milliseconds) to display this frame. -->
2236        <attr name="duration" format="integer" />
2237        <!-- Reference to a drawable resource to use for the frame.  If not
2238             given, the drawable must be defined by the first child tag. -->
2239        <attr name="drawable" format="reference" />
2240    </declare-styleable>
2241
2242    <declare-styleable name="GradientDrawable">
2243        <attr name="visible" />
2244        <attr name="shape">
2245            <enum name="rectangle" value="0" />
2246            <enum name="oval" value="1" />
2247            <enum name="line" value="2" />
2248            <enum name="ring" value="3" />
2249        </attr>
2250        <!-- Inner radius of the ring expressed as a ratio of the ring's width. For instance,
2251             if innerRadiusRatio=9, then the inner radius equals the ring's width divided by 9.
2252             This value is ignored if innerRadius is defined. Default value is 9. -->
2253        <attr name="innerRadiusRatio" format="float" />
2254        <!-- Thickness of the ring expressed as a ratio of the ring's width. For instance,
2255             if thicknessRatio=3, then the thickness equals the ring's width divided by 3.
2256             This value is ignored if innerRadius is defined. Default value is 3. -->
2257        <attr name="thicknessRatio" format="float" />
2258        <!-- Inner radius of the ring. When defined, innerRadiusRatio is ignored. -->
2259        <attr name="innerRadius" format="dimension" />
2260        <!-- Thickness of the ring. When defined, thicknessRatio is ignored. -->
2261        <attr name="thickness" format="dimension" />
2262        <attr name="useLevel" />
2263    </declare-styleable>
2264
2265    <declare-styleable name="GradientDrawableSize">
2266        <attr name="width" />
2267        <attr name="height" />
2268    </declare-styleable>
2269
2270    <declare-styleable name="GradientDrawableGradient">
2271        <attr name="startColor" format="color" />
2272        <!-- Optional center color. For linear gradients, use centerX or centerY to place the center color. -->
2273        <attr name="centerColor" format="color" />
2274        <attr name="endColor" format="color" />
2275        <attr name="useLevel" format="boolean" />
2276        <attr name="angle" format="float" />
2277        <attr name="type">
2278            <enum name="linear" value="0" />
2279            <enum name="radial" value="1" />
2280            <enum name="sweep"  value="2" />
2281        </attr>
2282        <attr name="centerX" format="float|fraction" />
2283        <attr name="centerY" format="float|fraction" />
2284        <attr name="gradientRadius" format="float|fraction" />
2285    </declare-styleable>
2286
2287    <declare-styleable name="GradientDrawableSolid">
2288        <attr name="color" format="color" />
2289    </declare-styleable>
2290
2291    <declare-styleable name="GradientDrawableStroke">
2292        <attr name="width" />
2293        <attr name="color" />
2294        <attr name="dashWidth" format="dimension" />
2295        <attr name="dashGap" format="dimension" />
2296    </declare-styleable>
2297
2298    <declare-styleable name="DrawableCorners">
2299        <attr name="radius" format="dimension" />
2300        <attr name="topLeftRadius" format="dimension" />
2301        <attr name="topRightRadius" format="dimension" />
2302        <attr name="bottomLeftRadius" format="dimension" />
2303        <attr name="bottomRightRadius" format="dimension" />
2304    </declare-styleable>
2305
2306    <declare-styleable name="GradientDrawablePadding">
2307        <attr name="left" format="dimension" />
2308        <attr name="top" format="dimension" />
2309        <attr name="right" format="dimension" />
2310        <attr name="bottom" format="dimension" />
2311    </declare-styleable>
2312
2313    <declare-styleable name="LayerDrawableItem">
2314        <attr name="left" />
2315        <attr name="top" />
2316        <attr name="right" />
2317        <attr name="bottom" />
2318        <attr name="drawable" />
2319        <attr name="id" />
2320    </declare-styleable>
2321
2322    <declare-styleable name="LevelListDrawableItem">
2323        <!-- The minimum level allowed for this item. -->
2324        <attr name="minLevel" format="integer" />
2325        <!-- The maximum level allowed for this item. -->
2326        <attr name="maxLevel" format="integer" />
2327        <attr name="drawable" />
2328    </declare-styleable>
2329
2330    <declare-styleable name="RotateDrawable">
2331        <attr name="visible" />
2332        <attr name="fromDegrees" format="float" />
2333        <attr name="toDegrees" format="float" />
2334        <attr name="pivotX" format="float|fraction" />
2335        <attr name="pivotY" format="float|fraction" />
2336        <attr name="drawable" />
2337    </declare-styleable>
2338
2339    <declare-styleable name="AnimatedRotateDrawable">
2340        <attr name="visible" />
2341        <attr name="frameDuration" format="integer" />
2342        <attr name="framesCount" format="integer" />
2343        <attr name="pivotX" />
2344        <attr name="pivotY" />
2345        <attr name="drawable" />
2346    </declare-styleable>
2347    
2348    <declare-styleable name="InsetDrawable">
2349        <attr name="visible" />
2350        <attr name="drawable" />
2351        <attr name="insetLeft" format="dimension" />
2352        <attr name="insetRight" format="dimension" />
2353        <attr name="insetTop" format="dimension" />
2354        <attr name="insetBottom" format="dimension" />
2355    </declare-styleable>
2356
2357    <!-- Drawable used to draw bitmaps. -->
2358    <declare-styleable name="BitmapDrawable">
2359        <!-- Identifier of the bitmap file. This attribute is mandatory. -->
2360        <attr name="src" />
2361        <!-- Enables or disables antialiasing. -->
2362        <attr name="antialias" format="boolean" />
2363        <!-- Enables or disables bitmap filtering. Filtering is used when the bitmap is
2364             shrunk or stretched to smooth its apperance. -->
2365        <attr name="filter" format="boolean" />
2366        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
2367             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
2368             an RGB 565 screen.) -->
2369        <attr name="dither" format="boolean" />
2370        <!-- Defines the gravity for the bitmap. The gravity indicates where to position
2371             the drawable in its container if the bitmap is smaller than the container. -->
2372        <attr name="gravity" />
2373        <!-- Defines the tile mode. When the tile mode is enabled, the bitmap is repeated.
2374             Gravity is ignored when the tile mode is enabled. -->
2375        <attr name="tileMode">
2376            <!-- Do not tile the bitmap. This is the default value. -->
2377            <enum name="disabled" value="-1" />
2378            <!-- Replicates the edge color. -->
2379            <enum name="clamp" value="0" />
2380            <!-- Repeats the bitmap in both direction. -->
2381            <enum name="repeat" value="1" />
2382            <!-- Repeats the shader's image horizontally and vertically, alternating
2383                 mirror images so that adjacent images always seam. -->
2384            <enum name="mirror" value="2" />
2385        </attr>
2386    </declare-styleable>
2387
2388    <!-- Drawable used to draw 9-patches. -->
2389    <declare-styleable name="NinePatchDrawable">
2390        <!-- Identifier of the bitmap file. This attribute is mandatory. -->
2391        <attr name="src" />
2392        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
2393             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
2394             an RGB 565 screen.) -->
2395        <attr name="dither" />
2396    </declare-styleable>
2397
2398    <!-- Drawable used to draw a single color. -->
2399    <declare-styleable name="ColorDrawable">
2400        <!-- The color to use. -->
2401        <attr name="color" />
2402    </declare-styleable>
2403
2404    <declare-styleable name="ScaleDrawable">
2405        <!-- Scale width, expressed as a percentage of the drawable's bound. The value's
2406             format is XX%. For instance: 100%, 12.5%, etc.-->
2407        <attr name="scaleWidth" format="string" />
2408        <!-- Scale height, expressed as a percentage of the drawable's bound. The value's
2409             format is XX%. For instance: 100%, 12.5%, etc.-->
2410        <attr name="scaleHeight" format="string" />
2411        <!-- Specifies where the drawable is positioned after scaling. The default value is
2412             left. -->
2413        <attr name="scaleGravity">
2414            <!-- Push object to the top of its container, not changing its size. -->
2415            <flag name="top" value="0x30" />
2416            <!-- Push object to the bottom of its container, not changing its size. -->
2417            <flag name="bottom" value="0x50" />
2418            <!-- Push object to the left of its container, not changing its size. -->
2419            <flag name="left" value="0x03" />
2420            <!-- Push object to the right of its container, not changing its size. -->
2421            <flag name="right" value="0x05" />
2422            <!-- Place object in the vertical center of its container, not changing its size. -->
2423            <flag name="center_vertical" value="0x10" />
2424            <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
2425            <flag name="fill_vertical" value="0x70" />
2426            <!-- Place object in the horizontal center of its container, not changing its size. -->
2427            <flag name="center_horizontal" value="0x01" />
2428            <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
2429            <flag name="fill_horizontal" value="0x07" />
2430            <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
2431            <flag name="center" value="0x11" />
2432            <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
2433            <flag name="fill" value="0x77" />
2434            <!-- Additional option that can be set to have the top and/or bottom edges of
2435                 the child clipped to its container's bounds.
2436                 The clip will be based on the vertical gravity: a top gravity will clip the bottom
2437                 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
2438            <flag name="clip_vertical" value="0x80" />
2439            <!-- Additional option that can be set to have the left and/or right edges of
2440                 the child clipped to its container's bounds.
2441                 The clip will be based on the horizontal gravity: a left gravity will clip the right
2442                 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
2443            <flag name="clip_horizontal" value="0x08" />
2444        </attr>
2445        <!-- Reference to a drawable resource to draw with the specified scale. -->
2446        <attr name="drawable" />
2447    </declare-styleable>
2448
2449    <declare-styleable name="ClipDrawable">
2450        <!-- The orientation for the clip. -->
2451        <attr name="clipOrientation">
2452            <!-- Clip the drawable horizontally. -->
2453            <flag name="horizontal" value="1" />
2454            <!-- Clip the drawable vertically. -->
2455            <flag name="vertical" value="2" />
2456        </attr>
2457        <!-- Specifies where to clip within the drawable. The default value is
2458             left. -->
2459        <attr name="gravity" />
2460        <!-- Reference to a drawable resource to draw with the specified scale. -->
2461        <attr name="drawable" />
2462    </declare-styleable>
2463
2464    <!-- Defines the padding of a ShapeDrawable. -->
2465    <declare-styleable name="ShapeDrawablePadding">
2466        <!-- Left padding. -->
2467        <attr name="left" />
2468        <!-- Top padding. -->
2469        <attr name="top" />
2470        <!-- Right padding. -->
2471        <attr name="right" />
2472        <!-- Bottom padding. -->
2473        <attr name="bottom" />
2474    </declare-styleable>
2475
2476    <!-- Drawable used to draw shapes. -->
2477    <declare-styleable name="ShapeDrawable">
2478        <!-- Defines the color of the shape. -->
2479        <attr name="color" />
2480        <!-- Defines the width of the shape. -->
2481        <attr name="width" />
2482        <!-- Defines the height of the shape. -->
2483        <attr name="height" />
2484    </declare-styleable>
2485
2486    <!-- ========================== -->
2487    <!-- Animation class attributes -->
2488    <!-- ========================== -->
2489    <eat-comment />
2490
2491    <declare-styleable name="AnimationSet">
2492        <attr name="shareInterpolator" format="boolean" />
2493    </declare-styleable>
2494
2495    <declare-styleable name="Animation">
2496        <!-- Defines the interpolator used to smooth the animation movement in time. -->
2497        <attr name="interpolator" />
2498        <!-- When set to true, fillAfter is taken into account. -->
2499        <attr name="fillEnabled" format="boolean" />
2500        <!-- When set to true, the animation transformation is applied before the animation has
2501             started. The default value is true. If fillEnabled is not set to true, fillBefore
2502             is assumed to be true. -->
2503        <attr name="fillBefore" format="boolean" />
2504        <!-- When set to true, the animation transformation is applied after the animation is
2505             over. The default value is false. If fillEnabled is not set to true and the animation
2506             is not set on a View, fillAfter is assumed to be true. -->
2507        <attr name="fillAfter" format="boolean" />
2508        <!-- Amount of time (in milliseconds) for the animation to run. -->
2509        <attr name="duration" />
2510        <!-- Delay in milliseconds before the animation runs, once start time is reached. -->
2511        <attr name="startOffset" format="integer" />
2512        <!-- Defines how many times the animation should repeat. The default value is 0. -->
2513        <attr name="repeatCount" format="integer">
2514            <enum name="infinite" value="-1" />
2515        </attr>
2516        <!-- Defines the animation behavior when it reaches the end and the repeat count is
2517             greater than 0 or infinite. The default value is restart. -->
2518        <attr name="repeatMode">
2519            <!-- The animation starts again from the beginning. -->
2520            <enum name="restart" value="1" />
2521            <!-- The animation plays backward. -->
2522            <enum name="reverse" value="2" />
2523        </attr>
2524        <!-- Allows for an adjustment of the Z ordering of the content being
2525             animated for the duration of the animation.  The default value is normal. -->
2526        <attr name="zAdjustment">
2527            <!-- The content being animated be kept in its current Z order. -->
2528            <enum name="normal" value="0" />
2529            <!-- The content being animated is forced on top of all other
2530                 content for the duration of the animation. -->
2531            <enum name="top" value="1" />
2532            <!-- The content being animated is forced under all other
2533                 content for the duration of the animation. -->
2534            <enum name="bottom" value="-1" />
2535        </attr>
2536    </declare-styleable>
2537
2538    <declare-styleable name="RotateAnimation">
2539        <attr name="fromDegrees" />
2540        <attr name="toDegrees" />
2541        <attr name="pivotX" />
2542        <attr name="pivotY" />
2543    </declare-styleable>
2544
2545    <declare-styleable name="ScaleAnimation">
2546        <attr name="fromXScale" format="float" />
2547        <attr name="toXScale" format="float" />
2548        <attr name="fromYScale" format="float" />
2549        <attr name="toYScale" format="float" />
2550        <attr name="pivotX" />
2551        <attr name="pivotY" />
2552    </declare-styleable>
2553
2554    <declare-styleable name="TranslateAnimation">
2555        <attr name="fromXDelta" format="float|fraction" />
2556        <attr name="toXDelta" format="float|fraction" />
2557        <attr name="fromYDelta" format="float|fraction" />
2558        <attr name="toYDelta" format="float|fraction" />
2559    </declare-styleable>
2560
2561    <declare-styleable name="AlphaAnimation">
2562        <attr name="fromAlpha" format="float" />
2563        <attr name="toAlpha" format="float" />
2564    </declare-styleable>
2565
2566    <declare-styleable name="LayoutAnimation">
2567        <!-- Fraction of the animation duration used to delay the beginning of
2568         the animation of each child. -->
2569        <attr name="delay" format="float|fraction" />
2570        <!-- Animation to use on each child. -->
2571        <attr name="animation" format="reference" />
2572        <!-- The order in which the animations will be started. -->
2573        <attr name="animationOrder">
2574            <!-- Animations are started in the natural order. -->
2575            <enum name="normal" value="0" />
2576            <!-- Animations are started in the reverse order. -->
2577            <enum name="reverse" value="1" />
2578            <!-- Animations are started randomly. -->
2579            <enum name="random" value="2" />
2580        </attr>
2581        <!-- Interpolator used to interpolate the delay between the start of
2582         each animation. -->
2583        <attr name="interpolator" />
2584    </declare-styleable>
2585
2586    <declare-styleable name="GridLayoutAnimation">
2587        <!-- Fraction of the animation duration used to delay the beginning of
2588         the animation of each column. -->
2589        <attr name="columnDelay" format="float|fraction" />
2590        <!-- Fraction of the animation duration used to delay the beginning of
2591         the animation of each row. -->
2592        <attr name="rowDelay" format="float|fraction" />
2593        <!-- Direction of the animation in the grid. -->
2594        <attr name="direction">
2595            <!-- Animates columns from left to right. -->
2596            <flag name="left_to_right" value="0x0" />
2597            <!-- Animates columns from right to left. -->
2598            <flag name="right_to_left" value="0x1" />
2599            <!-- Animates rows from top to bottom. -->
2600            <flag name="top_to_bottom" value="0x0" />
2601            <!-- Animates rows from bottom to top. -->
2602            <flag name="bottom_to_top" value="0x2" />
2603        </attr>
2604        <!-- Priority of the rows and columns. When the priority is none,
2605         both rows and columns have the same priority. When the priority is
2606         column, the animations will be applied on the columns first. The same
2607         goes for rows. -->
2608        <attr name="directionPriority">
2609            <!-- Rows and columns are animated at the same time. -->
2610            <enum name="none"   value="0" />
2611            <!-- Columns are animated first. -->
2612            <enum name="column" value="1" />
2613            <!-- Rows are animated first. -->
2614            <enum name="row"    value="2" />
2615        </attr>
2616    </declare-styleable>
2617
2618    <declare-styleable name="AccelerateInterpolator">
2619        <!-- This is the amount of deceleration to add when easing in. -->
2620        <attr name="factor" format="float" />
2621    </declare-styleable>
2622
2623    <declare-styleable name="DecelerateInterpolator">
2624        <!-- This is the amount of acceleration to add when easing out. -->
2625        <attr name="factor" />
2626    </declare-styleable>
2627
2628    <declare-styleable name="CycleInterpolator">
2629        <attr name="cycles" format="float" />
2630    </declare-styleable>
2631
2632    <declare-styleable name="AnticipateInterpolator">
2633        <!-- This is the amount of tension. -->
2634        <attr name="tension" format="float" />
2635    </declare-styleable>
2636
2637    <declare-styleable name="OvershootInterpolator">
2638        <!-- This is the amount of tension. -->
2639        <attr name="tension" />
2640    </declare-styleable>
2641
2642    <declare-styleable name="AnticipateOvershootInterpolator">
2643        <!-- This is the amount of tension. -->
2644        <attr name="tension" />
2645        <!-- This is the amount by which to multiply the tension. -->
2646        <attr name="extraTension" format="float" />
2647    </declare-styleable>
2648
2649    <!-- ========================== -->
2650    <!-- State attributes           -->
2651    <!-- ========================== -->
2652    <eat-comment />
2653
2654    <!-- Drawable states.
2655         The mapping of Drawable states to a particular drawables is specified
2656         in the "state" elements of a Widget's "selector" element.
2657         Possible values:
2658         <ul>
2659         <li>"state_focused"
2660         <li>"state_window_focused"
2661         <li>"state_enabled"
2662         <li>"state_checked"
2663         <li>"state_selected"
2664         <li>"state_active"
2665         <li>"state_single"
2666         <li>"state_first"
2667         <li>"state_mid"
2668         <li>"state_last"
2669         <li>"state_only"
2670         <li>"state_pressed"
2671         <li>"state_error"
2672         <li>"state_circle"
2673         <li>"state_rect"
2674         <li>"state_grow"
2675         <li>"state_move"
2676         </ul>  -->
2677    <declare-styleable name="DrawableStates">
2678        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2679        <attr name="state_focused" format="boolean" />
2680        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2681        <attr name="state_window_focused" format="boolean" />
2682        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2683        <attr name="state_enabled" format="boolean" />
2684        <!--  State identifier indicating that the object <var>may</var> display a check mark.
2685              See {@link R.attr#state_checked} for the identifier that indicates whether it is
2686              actually checked. -->
2687        <attr name="state_checkable" format="boolean"/>
2688        <!--  State identifier indicating that the object is currently checked.  See
2689              {@link R.attr#state_checkable} for an additional identifier that can indicate if
2690              any object may ever display a check, regardless of whether state_checked is
2691              currently set. -->
2692        <attr name="state_checked" format="boolean"/>
2693        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2694        <attr name="state_selected" format="boolean" />
2695        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2696        <attr name="state_active" format="boolean" />
2697        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2698        <attr name="state_single" format="boolean" />
2699        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2700        <attr name="state_first" format="boolean" />
2701        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2702        <attr name="state_middle" format="boolean" />
2703        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2704        <attr name="state_last" format="boolean" />
2705        <!--  State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
2706        <attr name="state_pressed" format="boolean" />
2707    </declare-styleable>
2708    <declare-styleable name="ViewDrawableStates">
2709        <attr name="state_pressed" />
2710        <attr name="state_focused" />
2711        <attr name="state_selected" />
2712        <attr name="state_window_focused" />
2713        <attr name="state_enabled" />
2714    </declare-styleable>
2715    <!-- State array representing a menu item that is currently checked. -->
2716    <declare-styleable name="MenuItemCheckedState">
2717        <attr name="state_checkable" />
2718        <attr name="state_checked" />
2719    </declare-styleable>
2720    <!-- State array representing a menu item that is checkable but is not currently checked. -->
2721    <declare-styleable name="MenuItemUncheckedState">
2722        <attr name="state_checkable" />
2723    </declare-styleable>
2724    <!-- State array representing a menu item that is currently focused and checked. -->
2725    <declare-styleable name="MenuItemCheckedFocusedState">
2726        <attr name="state_checkable" />
2727        <attr name="state_checked" />
2728        <attr name="state_focused" />
2729    </declare-styleable>
2730    <!-- State array representing a menu item that is focused and checkable but is not currently checked. -->
2731    <declare-styleable name="MenuItemUncheckedFocusedState">
2732        <attr name="state_checkable" />
2733        <attr name="state_focused" />
2734    </declare-styleable>
2735    <!-- State array representing an expandable list child's indicator. -->
2736    <declare-styleable name="ExpandableListChildIndicatorState">
2737        <!-- State identifier indicating the child is the last child within its group. -->
2738        <attr name="state_last" />
2739    </declare-styleable>
2740    <!-- State array representing an expandable list group's indicator. -->
2741    <declare-styleable name="ExpandableListGroupIndicatorState">
2742        <!-- State identifier indicating the group is expanded. -->
2743        <attr name="state_expanded" format="boolean" />
2744        <!-- State identifier indicating the group is empty (has no children). -->
2745        <attr name="state_empty" format="boolean" />
2746    </declare-styleable>
2747    <declare-styleable name="PopupWindowBackgroundState">
2748        <!-- State identifier indicating the popup will be above the anchor. -->
2749        <attr name="state_above_anchor" format="boolean" />
2750    </declare-styleable>
2751
2752    <!-- ***************************************************************** -->
2753    <!-- Support for Searchable activities. -->
2754    <!-- ***************************************************************** -->
2755    <eat-comment />
2756
2757    <!-- Searchable activities and applications must provide search configuration information
2758        in an XML file, typically called searchable.xml.  This file is referenced in your manifest.
2759        For a more in-depth discussion of search configuration, please refer to
2760        {@link android.app.SearchManager}. -->
2761    <declare-styleable name="Searchable">
2762        <!-- If provided, this icon will be shown in place of the label.  It is typically used
2763             in order to identify a searchable application via a logo or branding, instead of
2764             plain text.  This is a reference to a drawable (icon) resource.
2765             <i>Optional attribute.</i> -->
2766        <attr name="icon" />
2767        <!-- This is the user-displayed name of the searchable activity.  <i>Required
2768            attribute.</i> -->
2769        <attr name="label" />
2770        <!-- If supplied, this string will be displayed as a hint to the user.  <i>Optional
2771            attribute.</i> -->
2772        <attr name="hint" />
2773        <!-- If supplied, this string will be displayed as the text of the "Search" button.
2774          <i>Optional attribute.</i>
2775          {@deprecated This will create a non-standard UI appearance, because the search bar UI is
2776                       changing to use only icons for its buttons.}-->
2777        <attr name="searchButtonText" format="string" />
2778        <attr name="inputType" />
2779        <attr name="imeOptions" />
2780
2781        <!-- Additional features are controlled by mode bits in this field.  Omitting
2782            this field, or setting to zero, provides default behavior.  <i>Optional attribute.</i>
2783        -->
2784        <attr name="searchMode">
2785          <!-- If set, this flag enables the display of the search target (label) within the
2786               search bar.  If neither bad mode is selected, no badge will be shown. -->
2787          <flag name="showSearchLabelAsBadge" value="0x04" />
2788          <!-- If set, this flag enables the display of the search target (icon) within the
2789               search bar.  (Note, overrides showSearchLabel)  If neither bad mode is selected,
2790               no badge will be shown.-->
2791          <flag name="showSearchIconAsBadge" value="0x08" />
2792          <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to
2793               be considered as the text for suggestion query rewriting.  This should only
2794               be used when the values in SUGGEST_COLUMN_INTENT_DATA are suitable for user
2795               inspection and editing - typically, HTTP/HTTPS Uri's. -->
2796          <flag name="queryRewriteFromData" value="0x10" />
2797          <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_TEXT_1 to
2798               be considered as the text for suggestion query rewriting.  This should be used
2799               for suggestions in which no query text is provided and the SUGGEST_COLUMN_INTENT_DATA
2800               values are not suitable for user inspection and editing. -->
2801          <flag name="queryRewriteFromText" value="0x20" />
2802        </attr>
2803
2804        <!-- Voice search features are controlled by mode bits in this field.  Omitting
2805            this field, or setting to zero, provides default behavior.
2806            If showVoiceSearchButton is set, then launchWebSearch or launchRecognizer must
2807            also be set.  <i>Optional attribute.</i>
2808        -->
2809        <attr name="voiceSearchMode">
2810          <!-- If set, display a voice search button.  This only takes effect if voice search is
2811               available on the device. -->
2812          <flag name="showVoiceSearchButton" value="0x01" />
2813          <!-- If set, the voice search button will take the user directly to a built-in
2814               voice web search activity.  Most applications will not use this flag, as it
2815               will take the user away from the activity in which search was invoked. -->
2816          <flag name="launchWebSearch" value="0x02" />
2817          <!-- If set, the voice search button will take the user directly to a built-in
2818               voice recording activity.  This activity will prompt the user to speak,
2819               transcribe the spoken text, and forward the resulting query
2820               text to the searchable activity, just as if the user had typed it into
2821               the search UI and clicked the search button. -->
2822          <flag name="launchRecognizer" value="0x04" />
2823        </attr>
2824
2825        <!-- If provided, this specifies the language model that should be used by the
2826             voice recognition system.  See
2827             {@link android.speech.RecognizerIntent#EXTRA_LANGUAGE_MODEL } for more information.
2828             If not provided, the default value
2829             {@link android.speech.RecognizerIntent#LANGUAGE_MODEL_FREE_FORM } will be used. -->
2830        <attr name="voiceLanguageModel" format="string" />
2831        <!-- If provided, this specifies a prompt that will be displayed during voice input. -->
2832        <attr name="voicePromptText" format="string" />
2833        <!-- If provided, this specifies the spoken language to be expected, and that it will be
2834             different than the one set in the {@link java.util.Locale#getDefault()}. -->
2835        <attr name="voiceLanguage" format="string" />
2836        <!-- If provided, enforces the maximum number of results to return, including the "best"
2837             result which will always be provided as the SEARCH intent's primary query.  Must be one
2838             or greater.  If not provided, the recognizer will choose how many results to return.
2839             -->
2840        <attr name="voiceMaxResults" format="integer" />
2841
2842        <!-- If provided, this is the trigger indicating that the searchable activity
2843            provides suggestions as well.  The value must be a fully-qualified content provider
2844            authority (e.g. "com.example.android.apis.SuggestionProvider") and should match the
2845            "android:authorities" tag in your content provider's manifest entry.  <i>Optional
2846            attribute.</i> -->
2847        <attr name="searchSuggestAuthority" format="string" />
2848        <!-- If provided, this will be inserted in the suggestions query Uri, after the authority
2849            you have provide but before the standard suggestions path. <i>Optional attribute.</i>
2850            -->
2851        <attr name="searchSuggestPath" format="string" />
2852        <!-- If provided, suggestion queries will be passed into your query function
2853            as the <i>selection</i> parameter.  Typically this will be a WHERE clause for your
2854            database, and will contain a single question mark, which represents the actual query
2855            string that has been typed by the user.  If not provided, then the user query text
2856            will be appended to the query Uri (after an additional "/".)  <i>Optional
2857            attribute.</i> -->
2858        <attr name="searchSuggestSelection" format="string" />
2859
2860        <!-- If provided, and not overridden by an action in the selected suggestion, this
2861            string will be placed in the action field of the {@link android.content.Intent Intent}
2862            when the user clicks a suggestion.  <i>Optional attribute.</i> -->
2863        <attr name="searchSuggestIntentAction" format="string" />
2864        <!-- If provided, and not overridden by an action in the selected suggestion, this
2865            string will be placed in the data field of the {@link android.content.Intent Intent}
2866            when the user clicks a suggestion.  <i>Optional attribute.</i> -->
2867        <attr name="searchSuggestIntentData" format="string" />
2868
2869        <!-- If provided, this is the minimum number of characters needed to trigger
2870             search suggestions. The default value is 0. <i>Optional attribute.</i> -->
2871        <attr name="searchSuggestThreshold" format="integer" />
2872
2873        <!-- If provided and <code>true</code>, this searchable activity will be
2874             included in any global lists of search targets.
2875             The default value is <code>false</code>. <i>Optional attribute.</i>. -->
2876        <attr name="includeInGlobalSearch" format="boolean" />
2877
2878        <!-- If provided and <code>true</code>, this searchable activity will be invoked for all
2879             queries in a particular session. If set to <code>false</code> and the activity
2880             returned zero results for a query, it will not be invoked again in that session for
2881             supersets of that zero-results query. For example, if the activity returned zero
2882             results for "bo", it would not be queried again for "bob".
2883             The default value is <code>false</code>. <i>Optional attribute.</i>. -->
2884        <attr name="queryAfterZeroResults" format="boolean" />
2885        
2886        <!-- If provided, this string will be used to describe the searchable item in the
2887             searchable items settings within system search settings. <i>Optional
2888             attribute.</i> -->
2889        <attr name="searchSettingsDescription" format="string" />
2890
2891    </declare-styleable>
2892
2893    <!-- In order to process special action keys during search, you must define them using
2894            one or more "ActionKey" elements in your Searchable metadata.  For a more in-depth
2895            discussion of action code handling, please refer to {@link android.app.SearchManager}.
2896    -->
2897    <declare-styleable name="SearchableActionKey">
2898        <!-- This attribute denotes the action key you wish to respond to.  Note that not
2899            all action keys are actually supported using this mechanism, as many of them are
2900            used for typing, navigation, or system functions.  This will be added to the
2901            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
2902            searchable activity.  To examine the key code, use
2903            {@link android.content.Intent#getIntExtra getIntExtra(SearchManager.ACTION_KEY)}.
2904            <p>Note, in addition to the keycode, you must also provide one or more of the action
2905            specifier attributes.  <i>Required attribute.</i> -->
2906        <attr name="keycode" />
2907
2908        <!-- If you wish to handle an action key during normal search query entry, you
2909            must define an action string here.  This will be added to the
2910            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
2911            searchable activity.  To examine the string, use
2912            {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}.
2913            <i>Optional attribute.</i> -->
2914        <attr name="queryActionMsg"  format="string" />
2915
2916        <!-- If you wish to handle an action key while a suggestion is being displayed <i>and
2917            selected</i>, there are two ways to handle this.  If <i>all</i> of your suggestions
2918            can handle the action key, you can simply define the action message using this
2919            attribute.  This will be added to the
2920            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
2921            searchable activity.  To examine the string, use
2922            {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}.
2923            <i>Optional attribute.</i> -->
2924        <attr name="suggestActionMsg"  format="string" />
2925
2926        <!-- If you wish to handle an action key while a suggestion is being displayed <i>and
2927            selected</i>, but you do not wish to enable this action key for every suggestion,
2928            then you can use this attribute to control it on a suggestion-by-suggestion basis.
2929            First, you must define a column (and name it here) where your suggestions will include
2930            the action string.  Then, in your content provider, you must provide this column, and
2931            when desired, provide data in this column.
2932            The search manager will look at your suggestion cursor, using the string
2933            provided here in order to select a column, and will use that to select a string from
2934            the cursor.  That string will be added to the
2935            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to
2936            your searchable activity.  To examine the string, use
2937            {@link android.content.Intent#getStringExtra
2938            getStringExtra(SearchManager.ACTION_MSG)}.  <i>If the data does not exist for the
2939            selection suggestion, the action key will be ignored.</i><i>Optional attribute.</i> -->
2940        <attr name="suggestActionMsgColumn" format="string" />
2941
2942    </declare-styleable>
2943
2944    <!-- ***************************************************************** -->
2945    <!-- Support for MapView. -->
2946    <!-- ***************************************************************** -->
2947    <eat-comment />
2948
2949    <!-- The set of attributes for a MapView. -->
2950    <declare-styleable name="MapView">
2951        <!-- Value is a string that specifies the Maps API Key to use. -->
2952        <attr name="apiKey" format="string" />
2953    </declare-styleable>
2954
2955    <!-- **************************************************************** -->
2956    <!-- Menu XML inflation. -->
2957    <!-- **************************************************************** -->
2958    <eat-comment />
2959
2960    <!-- Base attributes that are available to all Menu objects. -->
2961    <declare-styleable name="Menu">
2962    </declare-styleable>
2963
2964    <!-- Base attributes that are available to all groups. -->
2965    <declare-styleable name="MenuGroup">
2966
2967        <!-- The ID of the group. -->
2968        <attr name="id" />
2969
2970        <!-- The category applied to all items within this group.
2971             (This will be or'ed with the orderInCategory attribute.) -->
2972        <attr name="menuCategory">
2973            <!-- Items are part of a container. -->
2974            <enum name="container" value="0x00010000" />
2975            <!-- Items are provided by the system. -->
2976            <enum name="system" value="0x00020000" />
2977            <!-- Items are user-supplied secondary (infrequently used). -->
2978            <enum name="secondary" value="0x00030000" />
2979            <!-- Items are alternative actions. -->
2980            <enum name="alternative" value="0x00040000" />
2981        </attr>
2982
2983        <!-- The order within the category applied to all items within this group.
2984             (This will be or'ed with the category attribute.) -->
2985        <attr name="orderInCategory" format="integer" />
2986
2987        <!-- Whether the items are capable of displaying a check mark. -->
2988        <attr name="checkableBehavior">
2989            <!-- The items are not checkable. -->
2990            <enum name="none" value="0" />
2991            <!-- The items are all checkable. -->
2992            <enum name="all" value="1" />
2993            <!-- The items are checkable and there will only be a single checked item in
2994                 this group. -->
2995            <enum name="single" value="2" />
2996        </attr>
2997
2998        <!-- Whether the items are shown/visible. -->
2999        <attr name="visible" />
3000
3001        <!-- Whether the items are enabled. -->
3002        <attr name="enabled" />
3003
3004    </declare-styleable>
3005
3006    <!-- Base attributes that are available to all Item objects. -->
3007    <declare-styleable name="MenuItem">
3008
3009        <!-- The ID of the item. -->
3010        <attr name="id" />
3011
3012        <!-- The category applied to the item.
3013             (This will be or'ed with the orderInCategory attribute.) -->
3014        <attr name="menuCategory" />
3015
3016        <!-- The order within the category applied to the item.
3017             (This will be or'ed with the category attribute.) -->
3018        <attr name="orderInCategory" />
3019
3020        <!-- The title associated with the item. -->
3021        <attr name="title" format="string" />
3022
3023        <!-- The condensed title associated with the item.  This is used in situations where the
3024             normal title may be too long to be displayed. -->
3025        <attr name="titleCondensed" format="string" />
3026
3027        <!-- The icon associated with this item.  This icon will not always be shown, so
3028             the title should be sufficient in describing this item. -->
3029        <attr name="icon" />
3030
3031        <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
3032             with alphabetic keys. -->
3033        <attr name="alphabeticShortcut" format="string" />
3034
3035        <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
3036             keyboard. -->
3037        <attr name="numericShortcut" format="string" />
3038
3039        <!-- Whether the item is capable of displaying a check mark. -->
3040        <attr name="checkable" format="boolean" />
3041
3042        <!-- Whether the item is checked.  Note that you must first have enabled checking with
3043             the checkable attribute or else the check mark will not appear. -->
3044        <attr name="checked" />
3045
3046        <!-- Whether the item is shown/visible. -->
3047        <attr name="visible" />
3048
3049        <!-- Whether the item is enabled. -->
3050        <attr name="enabled" />
3051
3052    </declare-styleable>
3053
3054    <!-- **************************************************************** -->
3055    <!-- Preferences framework. -->
3056    <!-- **************************************************************** -->
3057    <eat-comment />
3058
3059    <!-- Base attributes available to PreferenceGroup. -->
3060    <declare-styleable name="PreferenceGroup">
3061        <!-- Whether to order the Preference under this group as they appear in the XML file.
3062             If this is false, the ordering will follow the Preference order attribute and
3063             default to alphabetic for those without the order attribute. -->
3064        <attr name="orderingFromXml" format="boolean" />
3065    </declare-styleable>
3066
3067    <!-- WARNING:  If adding attributes to Preference, make sure it does not conflict
3068                   with a View's attributes.  Some subclasses (e.g., EditTextPreference)
3069                   proxy all attributes to its EditText widget. -->
3070    <eat-comment />
3071
3072    <!-- Base attributes available to Preference. -->
3073    <declare-styleable name="Preference">
3074        <!-- The key to store the Preference value. -->
3075        <attr name="key" format="string" />
3076        <!-- The title for the Preference in a PreferenceActivity screen. -->
3077        <attr name="title" />
3078        <!-- The summary for the Preference in a PreferenceActivity screen. -->
3079        <attr name="summary" format="string" />
3080        <!-- The order for the Preference (lower values are to be ordered first). If this is not
3081             specified, the default orderin will be alphabetic. -->
3082        <attr name="order" format="integer" />
3083        <!-- The layout for the Preference in a PreferenceActivity screen. This should
3084             rarely need to be changed, look at widgetLayout instead. -->
3085        <attr name="layout" />
3086        <!-- The layout for the controllable widget portion of a Preference. This is inflated
3087             into the layout for a Preference and should be used more frequently than
3088             the layout attribute. For example, a checkbox preference would specify
3089             a custom layout (consisting of just the CheckBox) here. -->
3090        <attr name="widgetLayout" format="reference" />
3091        <!-- Whether the Preference is enabled. -->
3092        <attr name="enabled" />
3093        <!-- Whether the Preference is selectable. -->
3094        <attr name="selectable" format="boolean" />
3095        <!-- The key of another Preference that this Preference will depend on.  If the other
3096             Preference is not set or is off, this Preference will be disabled. -->
3097        <attr name="dependency" format="string" />
3098        <!-- Whether the Preference stores its value to the shared preferences. -->
3099        <attr name="persistent" />
3100        <!-- The default value for the preference, which will be set either if persistence
3101             is off or persistence is on and the preference is not found in the persistent
3102             storage.  -->
3103        <attr name="defaultValue" format="string|boolean|integer|reference|float" />
3104        <!-- Whether the view of this Preference should be disabled when
3105             this Preference is disabled. -->
3106        <attr name="shouldDisableView" format="boolean" />
3107    </declare-styleable>
3108
3109    <!-- Base attributes available to CheckBoxPreference. -->
3110    <declare-styleable name="CheckBoxPreference">
3111        <!-- The summary for the Preference in a PreferenceActivity screen when the
3112             CheckBoxPreference is checked. If separate on/off summaries are not
3113             needed, the summary attribute can be used instead. -->
3114        <attr name="summaryOn" format="string" />
3115        <!-- The summary for the Preference in a PreferenceActivity screen when the
3116             CheckBoxPreference is unchecked. If separate on/off summaries are not
3117             needed, the summary attribute can be used instead. -->
3118        <attr name="summaryOff" format="string" />
3119        <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default,
3120             dependents will be disabled when this is unchecked, so the value of this preference is false. -->
3121        <attr name="disableDependentsState" format="boolean" />
3122    </declare-styleable>
3123
3124    <!-- Base attributes available to DialogPreference. -->
3125    <declare-styleable name="DialogPreference">
3126        <!-- The title in the dialog. -->
3127        <attr name="dialogTitle" format="string" />
3128        <!-- The message in the dialog. If a dialogLayout is provided and contains
3129             a TextView with ID android:id/message, this message will be placed in there. -->
3130        <attr name="dialogMessage" format="string" />
3131        <!-- The icon for the dialog. -->
3132        <attr name="dialogIcon" format="reference" />
3133        <!-- The positive button text for the dialog. Set to @null to hide the positive button. -->
3134        <attr name="positiveButtonText" format="string" />
3135        <!-- The negative button text for the dialog. Set to @null to hide the negative button. -->
3136        <attr name="negativeButtonText" format="string" />
3137        <!-- A layout to be used as the content View for the dialog. By default, this shouldn't
3138             be needed. If a custom DialogPreference is required, this should be set. For example,
3139             the EditTextPreference uses a layout with an EditText as this attribute. -->
3140        <attr name="dialogLayout" format="reference" />
3141    </declare-styleable>
3142
3143    <!-- Base attributes available to ListPreference. -->
3144    <declare-styleable name="ListPreference">
3145        <!-- The human-readable array to present as a list. Each entry must have a corresponding
3146             index in entryValues. -->
3147        <attr name="entries" />
3148        <!-- The array to find the value to save for a preference when an entry from
3149             entries is selected. If a user clicks on the second item in entries, the
3150             second item in this array will be saved to the preference. -->
3151        <attr name="entryValues" format="reference" />
3152    </declare-styleable>
3153
3154    <!-- Base attributes available to RingtonePreference. -->
3155    <declare-styleable name="RingtonePreference">
3156        <!-- Which ringtone type(s) to show in the picker. -->
3157        <attr name="ringtoneType">
3158            <!-- Ringtones. -->
3159            <flag name="ringtone" value="1" />
3160            <!-- Notification sounds. -->
3161            <flag name="notification" value="2" />
3162            <!-- Alarm sounds. -->
3163            <flag name="alarm" value="4" />
3164            <!-- All available ringtone sounds. -->
3165            <flag name="all" value="7" />
3166        </attr>
3167        <!-- Whether to show an item for a default sound. -->
3168        <attr name="showDefault" format="boolean" />
3169        <!-- Whether to show an item for 'Silent'. -->
3170        <attr name="showSilent" format="boolean" />
3171    </declare-styleable>
3172
3173    <!-- Base attributes available to VolumePreference. -->
3174    <declare-styleable name="VolumePreference">
3175        <!-- Different audio stream types. -->
3176        <attr name="streamType">
3177            <enum name="voice" value="0" />
3178            <enum name="system" value="1" />
3179            <enum name="ring" value="2" />
3180            <enum name="music" value="3" />
3181            <enum name="alarm" value="4" />
3182        </attr>
3183    </declare-styleable>
3184
3185    <declare-styleable name="InputMethodService">
3186        <!-- Background to use for entire input method when it is being
3187             shown in fullscreen mode with the extract view, to ensure
3188             that it completely covers the application.  This allows,
3189             for example, the candidate view to be hidden
3190             while in fullscreen mode without having the application show through
3191             behind it.-->
3192        <attr name="imeFullscreenBackground" format="reference|color" />
3193        <!-- Animation to use when showing the fullscreen extract UI after
3194             it had previously been hidden. -->
3195        <attr name="imeExtractEnterAnimation" format="reference" />
3196        <!-- Animation to use when hiding the fullscreen extract UI after
3197             it had previously been shown. -->
3198        <attr name="imeExtractExitAnimation" format="reference" />
3199    </declare-styleable>
3200
3201    <declare-styleable name="KeyboardView">
3202        <!-- Default KeyboardView style. -->
3203        <attr name="keyboardViewStyle" format="reference" />
3204
3205        <!-- Image for the key. This image needs to be a StateListDrawable, with the following
3206             possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
3207             checkable+checked+pressed. -->
3208        <attr name="keyBackground" format="reference" />
3209
3210        <!-- Size of the text for character keys. -->
3211        <attr name="keyTextSize" format="dimension" />
3212
3213        <!-- Size of the text for custom keys with some text and no icon. -->
3214        <attr name="labelTextSize" format="dimension" />
3215
3216        <!-- Color to use for the label in a key -->
3217        <attr name="keyTextColor" format="color" />
3218
3219        <!-- Layout resource for key press feedback.-->
3220        <attr name="keyPreviewLayout" format="reference" />
3221
3222        <!-- Vertical offset of the key press feedback from the key. -->
3223        <attr name="keyPreviewOffset" format="dimension" />
3224
3225        <!-- Height of the key press feedback popup. -->
3226        <attr name="keyPreviewHeight" format="dimension" />
3227
3228        <!-- Amount to offset the touch Y coordinate by, for bias correction. -->
3229        <attr name="verticalCorrection" format="dimension" />
3230
3231        <!-- Layout resource for popup keyboards -->
3232        <attr name="popupLayout" format="reference" />
3233
3234        <attr name="shadowColor" />
3235        <attr name="shadowRadius" />
3236    </declare-styleable>
3237
3238    <declare-styleable name="KeyboardViewPreviewState">
3239        <!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView}
3240                key preview background -->
3241        <attr name="state_long_pressable" format="boolean" />
3242    </declare-styleable>
3243
3244    <declare-styleable name="Keyboard">
3245        <!-- Default width of a key, in pixels or percentage of display width -->
3246        <attr name="keyWidth" format="dimension|fraction" />
3247        <!-- Default height of a key, in pixels or percentage of display width -->
3248        <attr name="keyHeight" format="dimension|fraction" />
3249        <!-- Default horizontal gap between keys -->
3250        <attr name="horizontalGap" format="dimension|fraction" />
3251        <!-- Default vertical gap between rows of keys -->
3252        <attr name="verticalGap" format="dimension|fraction" />
3253    </declare-styleable>
3254
3255    <declare-styleable name="Keyboard_Row">
3256        <!-- Row edge flags-->
3257        <attr name="rowEdgeFlags">
3258            <!-- Row is anchored to the top of the keyboard -->
3259            <flag name="top" value="4" />
3260            <!-- Row is anchored to the bottom of the keyboard -->
3261            <flag name="bottom" value="8" />
3262        </attr>
3263        <!-- Mode of the keyboard. If the mode doesn't match the
3264             requested keyboard mode, the row will be skipped -->
3265        <attr name="keyboardMode" format="reference" />
3266    </declare-styleable>
3267
3268    <declare-styleable name="Keyboard_Key">
3269        <!-- The unicode value or comma-separated values that this key outputs -->
3270        <attr name="codes" format="integer|string" />
3271        <!-- The XML keyboard layout of any popup keyboard -->
3272        <attr name="popupKeyboard" format="reference" />
3273        <!-- The characters to display in the popup keyboard -->
3274        <attr name="popupCharacters" format="string" />
3275        <!-- Key edge flags -->
3276        <attr name="keyEdgeFlags">
3277            <!-- Key is anchored to the left of the keyboard -->
3278            <flag name="left" value="1" />
3279            <!-- Key is anchored to the right of the keyboard -->
3280            <flag name="right" value="2" />
3281        </attr>
3282        <!-- Whether this is a modifier key such as Alt or Shift -->
3283        <attr name="isModifier" format="boolean" />
3284        <!-- Whether this is a toggle key -->
3285        <attr name="isSticky" format="boolean" />
3286        <!-- Whether long-pressing on this key will make it repeat -->
3287        <attr name="isRepeatable" format="boolean" />
3288        <!-- The icon to show in the popup preview -->
3289        <attr name="iconPreview" format="reference" />
3290        <!-- The string of characters to output when this key is pressed -->
3291        <attr name="keyOutputText" format="string" />
3292        <!-- The label to display on the key -->
3293        <attr name="keyLabel" format="string" />
3294        <!-- The icon to display on the key instead of the label -->
3295        <attr name="keyIcon" format="reference" />
3296        <!-- Mode of the keyboard. If the mode doesn't match the
3297             requested keyboard mode, the key will be skipped -->
3298        <attr name="keyboardMode" />
3299    </declare-styleable>
3300
3301    <!-- =============================== -->
3302    <!-- AppWidget package class attributes -->
3303    <!-- =============================== -->
3304
3305    <!-- Use <code>appwidget-provider</code> as the root tag of the XML resource that
3306         describes an AppWidget provider.  See TODO android.appwidget package
3307         for more info.
3308     -->
3309    <declare-styleable name="AppWidgetProviderInfo">
3310        <!-- Minimum width of the AppWidget. -->
3311        <attr name="minWidth"/>
3312        <!-- Minimum height of the AppWidget. -->
3313        <attr name="minHeight"/>
3314        <!-- Update period in milliseconds, or 0 if the AppWidget will update itself. -->
3315        <attr name="updatePeriodMillis" format="integer" />
3316        <!-- A resource id of a layout. -->
3317        <attr name="initialLayout" format="reference" />
3318        <!-- A class name in the AppWidget's package to be launched to configure.
3319             If not supplied, then no activity will be launched. -->
3320        <attr name="configure" format="string" />
3321    </declare-styleable>
3322
3323    <!-- =============================== -->
3324    <!-- Accounts package class attributes -->
3325    <!-- =============================== -->
3326
3327    <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
3328         describes an account authenticator.
3329     -->
3330    <declare-styleable name="AccountAuthenticator">
3331        <!-- the account type this authenticator handles. -->
3332        <attr name="accountType" format="string"/>
3333        <!-- the user-visible name of the authenticator. -->
3334        <attr name="label"/>
3335        <!-- the icon of the authenticator. -->
3336        <attr name="icon"/>
3337    </declare-styleable>
3338
3339    <!-- =============================== -->
3340    <!-- Accounts package class attributes -->
3341    <!-- =============================== -->
3342
3343    <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
3344         describes an account authenticator.
3345     -->
3346    <declare-styleable name="SyncAdapter">
3347        <!-- the authority of a content provider. -->
3348        <attr name="contentAuthority" format="string"/>
3349        <attr name="accountType"/>
3350    </declare-styleable>
3351
3352    <!-- =============================== -->
3353    <!-- Contacts meta-data attributes -->
3354    <!-- =============================== -->
3355
3356    <declare-styleable name="Icon">
3357        <attr name="icon" />
3358        <attr name="mimeType" />
3359    </declare-styleable>
3360
3361    <declare-styleable name="IconDefault">
3362        <attr name="icon" />
3363    </declare-styleable>
3364
3365</resources>
3366
3367