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