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