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