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