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