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