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