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