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