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