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