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