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