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