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