attrs.xml revision e2337588f04f12ffe6de87797e99eeb56bd17277
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
44        <!-- Default highlight color for items that are pressed. -->
45        <attr name="colorPressedHighlight" format="color" />
46        <!-- Default highlight color for items that are long-pressed. -->
47        <attr name="colorLongPressedHighlight" format="color" />
48        <!-- Default highlight color for items that are
49             focused. (Focused meaning cursor-based selection.) -->
50        <attr name="colorFocusedHighlight" format="color" />
51        <!-- Default highlight color for items that are
52             activated. (Activated meaning persistent selection.) -->
53        <attr name="colorActivatedHighlight" format="color" />
54        <!-- Default highlight color for items in multiple selection
55             mode. -->
56        <attr name="colorMultiSelectHighlight" format="color" />
57
58        <!-- Default disabled alpha for widgets that set enabled/disabled alpha programmatically. -->
59        <attr name="disabledAlpha" format="float" />
60        <!-- Default background dim amount when a menu, dialog, or something similar pops up. -->
61        <attr name="backgroundDimAmount" format="float" />
62        <!-- Control whether dimming behind the window is enabled.  The default
63             theme does not set this value, meaning it is based on whether the
64             window is floating. -->
65        <attr name="backgroundDimEnabled" format="boolean" />
66
67        <!-- =========== -->
68        <!-- Text styles -->
69        <!-- =========== -->
70        <eat-comment />
71
72        <!-- Default appearance of text: color, typeface, size, and style. -->
73        <attr name="textAppearance" format="reference" />
74        <!-- Default appearance of text against an inverted background:
75             color, typeface, size, and style. -->
76        <attr name="textAppearanceInverse" format="reference" />
77
78        <!-- The most prominent text color.  -->
79        <attr name="textColorPrimary" format="reference|color" />
80        <!-- Secondary text color. -->
81        <attr name="textColorSecondary" format="reference|color" />
82        <!-- Tertiary text color. -->
83        <attr name="textColorTertiary" format="reference|color" />
84
85        <!-- Primary inverse text color, useful for inverted backgrounds. -->
86        <attr name="textColorPrimaryInverse" format="reference|color" />
87        <!-- Secondary inverse text color, useful for inverted backgrounds. -->
88        <attr name="textColorSecondaryInverse" format="reference|color" />
89        <!-- Tertiary inverse text color, useful for inverted backgrounds. -->
90        <attr name="textColorTertiaryInverse" format="reference|color" />
91
92        <!-- Inverse hint text color. -->
93        <attr name="textColorHintInverse" format="reference|color" />
94
95        <!-- Bright text color. Only differentiates based on the disabled state. -->
96        <attr name="textColorPrimaryDisableOnly" format="reference|color" />
97
98        <!-- Bright inverse text color. Only differentiates based on the disabled state. -->
99        <attr name="textColorPrimaryInverseDisableOnly" format="reference|color" />
100
101        <!-- Bright text color. This does not differentiate the disabled state. As an example,
102             buttons use this since they display the disabled state via the background and not the
103             foreground text color. -->
104        <attr name="textColorPrimaryNoDisable" format="reference|color" />
105        <!-- Dim text color. This does not differentiate the disabled state. -->
106        <attr name="textColorSecondaryNoDisable" format="reference|color" />
107
108        <!-- Bright inverse text color. This does not differentiate the disabled state. -->
109        <attr name="textColorPrimaryInverseNoDisable" format="reference|color" />
110        <!-- Dim inverse text color. This does not differentiate the disabled state. -->
111        <attr name="textColorSecondaryInverseNoDisable" format="reference|color" />
112
113        <!-- Text color for urls in search suggestions, used by things like global search and the browser. @hide -->
114        <attr name="textColorSearchUrl" format="reference|color" />
115
116        <!-- Color of highlighted text, when used in a light theme. -->
117        <attr name="textColorHighlightInverse" format="reference|color" />
118        <!-- Color of link text (URLs), when used in a light theme. -->
119        <attr name="textColorLinkInverse" format="reference|color" />
120
121        <!-- Color of list item text in alert dialogs. -->
122        <attr name="textColorAlertDialogListItem" format="reference|color" />
123
124        <!-- Search widget more corpus result item background. -->
125        <attr name="searchWidgetCorpusItemBackground" format="reference|color" />
126
127        <!-- Text color, typeface, size, and style for "large" text. Defaults to primary text color. -->
128        <attr name="textAppearanceLarge" format="reference" />
129        <!-- Text color, typeface, size, and style for "medium" text. Defaults to primary text color. -->
130        <attr name="textAppearanceMedium" format="reference" />
131        <!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. -->
132        <attr name="textAppearanceSmall" format="reference" />
133
134        <!-- Text color, typeface, size, and style for "large" inverse text. Defaults to primary inverse text color. -->
135        <attr name="textAppearanceLargeInverse" format="reference" />
136        <!-- Text color, typeface, size, and style for "medium" inverse text. Defaults to primary inverse text color. -->
137        <attr name="textAppearanceMediumInverse" format="reference" />
138        <!-- Text color, typeface, size, and style for "small" inverse text. Defaults to secondary inverse text color. -->
139        <attr name="textAppearanceSmallInverse" format="reference" />
140
141        <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
142        <attr name="textAppearanceSearchResultTitle" format="reference" />
143        <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
144        <attr name="textAppearanceSearchResultSubtitle" format="reference" />
145
146        <!-- Text color, typeface, size, and style for the text inside of a button. -->
147        <attr name="textAppearanceButton" format="reference" />
148
149        <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
150        <attr name="textAppearanceLargePopupMenu" format="reference" />
151
152        <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
153        <attr name="textAppearanceSmallPopupMenu" format="reference" />
154
155        <!-- The underline color and thickness for easy correct suggestion -->
156        <attr name="textAppearanceEasyCorrectSuggestion" format="reference" />
157
158        <!-- The underline color and thickness for misspelled suggestion -->
159        <attr name="textAppearanceMisspelledSuggestion" format="reference" />
160
161        <!-- The underline color and thickness for auto correction suggestion -->
162        <attr name="textAppearanceAutoCorrectionSuggestion" format="reference" />
163
164        <!--  The underline color -->
165        <attr name="textUnderlineColor" format="reference|color" />
166        <!--  The underline thickness -->
167        <attr name="textUnderlineThickness" format="reference|dimension" />
168
169        <!-- EditText text foreground color. -->
170        <attr name="editTextColor" format="reference|color" />
171        <!-- EditText background drawable. -->
172        <attr name="editTextBackground" format="reference" />
173
174        <!-- Popup text displayed in TextView when setError is used. -->
175        <attr name="errorMessageBackground" format="reference" />
176        <!-- Background used instead of errorMessageBackground when the popup has to be above. -->
177        <attr name="errorMessageAboveBackground" format="reference" />
178
179        <!-- A styled string, specifying the style to be used for showing
180             inline candidate text when composing with an input method.  The
181             text itself will be ignored, but the style spans will be applied
182             to the candidate text as it is edited. -->
183        <attr name="candidatesTextStyleSpans" format="reference|string" />
184
185        <!-- Drawable to use for check marks. -->
186        <attr name="textCheckMark" format="reference" />
187        <attr name="textCheckMarkInverse" format="reference" />
188
189        <!-- Drawable to use for multiple choice indicators. -->
190        <attr name="listChoiceIndicatorMultiple" format="reference" />
191
192        <!-- Drawable to use for single choice indicators. -->
193        <attr name="listChoiceIndicatorSingle" format="reference" />
194
195        <!-- Drawable used as a background for selected list items. -->
196        <attr name="listChoiceBackgroundIndicator" format="reference" />
197
198        <!-- Drawable used as a background for activated items. -->
199        <attr name="activatedBackgroundIndicator" format="reference" />
200
201        <!-- ============= -->
202        <!-- Button styles -->
203        <!-- ============= -->
204        <eat-comment />
205
206        <!-- Normal Button style. -->
207        <attr name="buttonStyle" format="reference" />
208
209        <!-- Small Button style. -->
210        <attr name="buttonStyleSmall" format="reference" />
211
212        <!-- Button style to inset into an EditText. -->
213        <attr name="buttonStyleInset" format="reference" />
214
215        <!-- ToggleButton style. -->
216        <attr name="buttonStyleToggle" format="reference" />
217
218        <!-- ============== -->
219        <!-- Gallery styles -->
220        <!-- ============== -->
221        <eat-comment />
222
223        <!-- The preferred background for gallery items. This should be set
224             as the background of any Views you provide from the Adapter. -->
225        <attr name="galleryItemBackground" format="reference" />
226
227        <!-- =========== -->
228        <!-- List styles -->
229        <!-- =========== -->
230        <eat-comment />
231
232        <!-- The preferred list item height. -->
233        <attr name="listPreferredItemHeight" format="dimension" />
234        <!-- A smaller, sleeker list item height. -->
235        <attr name="listPreferredItemHeightSmall" format="dimension" />
236        <!-- A larger, more robust list item height. -->
237        <attr name="listPreferredItemHeightLarge" format="dimension" />
238        <!-- The list item height for search results. @hide -->
239        <attr name="searchResultListItemHeight" format="dimension" />
240
241        <!-- The preferred padding along the left edge of list items. -->
242        <attr name="listPreferredItemPaddingLeft" format="dimension" />
243        <!-- The preferred padding along the right edge of list items. -->
244        <attr name="listPreferredItemPaddingRight" format="dimension" />
245
246        <!-- The preferred TextAppearance for the primary text of list items. -->
247        <attr name="textAppearanceListItem" format="reference" />
248        <!-- The preferred TextAppearance for the secondary text of list items. -->
249        <attr name="textAppearanceListItemSecondary" format="reference" />
250        <!-- The preferred TextAppearance for the primary text of small list items. -->
251        <attr name="textAppearanceListItemSmall" format="reference" />
252
253        <!-- The drawable for the list divider. -->
254        <attr name="listDivider" format="reference" />
255        <!-- The list divider used in alert dialogs. -->
256        <attr name="listDividerAlertDialog" format="reference" />
257        <!-- TextView style for list separators. -->
258        <attr name="listSeparatorTextViewStyle" format="reference" />
259        <!-- The preferred left padding for an expandable list item (for child-specific layouts,
260             use expandableListPreferredChildPaddingLeft). This takes into account
261             the indicator that will be shown to next to the item. -->
262        <attr name="expandableListPreferredItemPaddingLeft" format="dimension" />
263        <!-- The preferred left padding for an expandable list item that is a child.
264             If this is not provided, it defaults to the expandableListPreferredItemPaddingLeft. -->
265        <attr name="expandableListPreferredChildPaddingLeft" format="dimension" />
266        <!-- The preferred left bound for an expandable list item's indicator. For a child-specific
267             indicator, use expandableListPreferredChildIndicatorLeft. -->
268        <attr name="expandableListPreferredItemIndicatorLeft" format="dimension" />
269        <!-- The preferred right bound for an expandable list item's indicator. For a child-specific
270             indicator, use expandableListPreferredChildIndicatorRight. -->
271        <attr name="expandableListPreferredItemIndicatorRight" format="dimension" />
272        <!-- The preferred left bound for an expandable list child's indicator. -->
273        <attr name="expandableListPreferredChildIndicatorLeft" format="dimension" />
274        <!-- The preferred right bound for an expandable list child's indicator. -->
275        <attr name="expandableListPreferredChildIndicatorRight" format="dimension" />
276
277        <!-- The preferred item height for dropdown lists. -->
278        <attr name="dropdownListPreferredItemHeight" format="dimension" />
279
280        <!-- The preferred padding along the start edge of list items. -->
281        <attr name="listPreferredItemPaddingStart" format="dimension" />
282        <!-- The preferred padding along the end edge of list items. -->
283        <attr name="listPreferredItemPaddingEnd" format="dimension" />
284
285        <!-- ============= -->
286        <!-- Window styles -->
287        <!-- ============= -->
288        <eat-comment />
289
290        <!-- Drawable to use as the overall window background.  As of
291             {@link android.os.Build.VERSION_CODES#HONEYCOMB}, this may
292             be a selector that uses state_accelerated to pick a non-solid
293             color when running on devices that can draw such a bitmap
294             with complex compositing on top at 60fps.
295
296             <p>There are a few special considerations to use when setting this
297             drawable:
298             <ul>
299             <li> This information will be used to infer the pixel format
300                  for your window's surface.  If the drawable has any
301                  non-opaque pixels, your window will be translucent
302                  (32 bpp).
303             <li> If you want to draw the entire background
304                  yourself, you should set this drawable to some solid
305                  color that closely matches that background (so the
306                  system's preview of your window will match), and
307                  then in code manually set your window's background to
308                  null so it will not be drawn.
309             </ul> -->
310        <attr name="windowBackground" format="reference" />
311        <!-- Drawable to use as a frame around the window. -->
312        <attr name="windowFrame" format="reference" />
313        <!-- Flag indicating whether there should be no title on this window. -->
314        <attr name="windowNoTitle" format="boolean" />
315        <!-- Flag indicating whether this window should fill the entire screen.  Corresponds
316             to {@link android.view.WindowManager.LayoutParams#FLAG_FULLSCREEN}. -->
317        <attr name="windowFullscreen" format="boolean" />
318        <!-- Flag indicating whether this window should extend into overscan region.  Corresponds
319             to {@link android.view.WindowManager.LayoutParams#FLAG_LAYOUT_IN_OVERSCAN}. -->
320        <attr name="windowOverscan" format="boolean" />
321        <!-- Flag indicating whether this is a floating window. -->
322        <attr name="windowIsFloating" format="boolean" />
323        <!-- Flag indicating whether this is a translucent window. -->
324        <attr name="windowIsTranslucent" format="boolean" />
325        <!-- Flag indicating that this window's background should be the
326             user's current wallpaper.  Corresponds
327             to {@link android.view.WindowManager.LayoutParams#FLAG_SHOW_WALLPAPER}. -->
328        <attr name="windowShowWallpaper" format="boolean" />
329        <!-- This Drawable is overlaid over the foreground of the Window's content area, usually
330             to place a shadow below the title.  -->
331        <attr name="windowContentOverlay" format="reference" />
332        <!-- The style resource to use for a window's title bar height. -->
333        <attr name="windowTitleSize" format="dimension" />
334        <!-- The style resource to use for a window's title text. -->
335        <attr name="windowTitleStyle" format="reference" />
336        <!-- The style resource to use for a window's title area. -->
337        <attr name="windowTitleBackgroundStyle" format="reference" />
338
339        <!-- Reference to a style resource holding
340             the set of window animations to use, which can be
341             any of the attributes defined by
342             {@link android.R.styleable#WindowAnimation}. -->
343        <attr name="windowAnimationStyle" format="reference" />
344
345        <!-- Flag indicating whether this window should have an Action Bar
346             in place of the usual title bar. -->
347        <attr name="windowActionBar" format="boolean" />
348
349        <!-- Flag indicating whether this window's Action Bar should overlay
350             application content. Does nothing if the window would not
351             have an Action Bar. -->
352        <attr name="windowActionBarOverlay" format="boolean" />
353
354        <!-- Flag indicating whether action modes should overlay window content
355             when there is not reserved space for their UI (such as an Action Bar). -->
356        <attr name="windowActionModeOverlay" format="boolean" />
357
358        <!-- Flag indicating that the action bar should be split to provide more
359             room for elements. -->
360        <attr name="windowSplitActionBar" format="boolean" />
361
362        <!-- Defines the default soft input state that this window would
363             like when it is displayed.  Corresponds
364             to {@link android.view.WindowManager.LayoutParams#softInputMode}. -->
365        <attr name="windowSoftInputMode">
366            <!-- Not specified, use what the system thinks is best.  This
367                 is the default. -->
368            <flag name="stateUnspecified" value="0" />
369            <!-- Leave the soft input window as-is, in whatever state it
370                 last was. -->
371            <flag name="stateUnchanged" value="1" />
372            <!-- Make the soft input area hidden when normally appropriate
373                 (when the user is navigating forward to your window). -->
374            <flag name="stateHidden" value="2" />
375            <!-- Always make the soft input area hidden when this window
376                 has input focus. -->
377            <flag name="stateAlwaysHidden" value="3" />
378            <!-- Make the soft input area visible when normally appropriate
379                 (when the user is navigating forward to your window). -->
380            <flag name="stateVisible" value="4" />
381            <!-- Always make the soft input area visible when this window
382                 has input focus. -->
383            <flag name="stateAlwaysVisible" value="5" />
384
385            <!-- The window resize/pan adjustment has not been specified,
386                 the system will automatically select between resize and pan
387                 modes, depending
388                 on whether the content of the window has any layout views
389                 that can scroll their contents.  If there is such a view,
390                 then the window will be resized, with the assumption being
391                 that the resizeable area can be reduced to make room for
392                 the input UI. -->
393            <flag name="adjustUnspecified" value="0x00" />
394            <!-- Always resize the window: the content area of the window is
395                 reduced to make room for the soft input area. -->
396            <flag name="adjustResize" value="0x10" />
397            <!-- Don't resize the window to make room for the soft input area;
398                 instead pan the contents of the window as focus moves inside
399                 of it so that the user can see what they are typing.  This is
400                 generally less desireable than panning because the user may
401                 need to close the input area to get at and interact with
402                 parts of the window. -->
403            <flag name="adjustPan" value="0x20" />
404            <!-- Don't resize <em>or</em> pan the window to make room for the
405                 soft input area; the window is never adjusted for it. -->
406            <flag name="adjustNothing" value="0x30" />
407        </attr>
408
409        <!-- Flag allowing you to disable the preview animation for a window.
410             The default value is false; if set to true, the system can never
411             use the window's theme to show a preview of it before your
412             actual instance is shown to the user. -->
413        <attr name="windowDisablePreview" format="boolean" />
414
415        <!-- Flag indicating that this window should not be displayed at all.
416             The default value is false; if set to true, and this window is
417             the main window of an Activity, then it will never actually
418             be added to the window manager.  This means that your activity
419             must immediately quit without waiting for user interaction,
420             because there will be no such interaction coming. -->
421        <attr name="windowNoDisplay" format="boolean" />
422
423        <!-- Flag indicating that this window should allow touches to be split
424             across other windows that also support split touch.
425             The default value is true for applications with a targetSdkVersion
426             of Honeycomb or newer; false otherwise.
427             When this flag is false, the first pointer that goes down determines
428             the window to which all subsequent touches go until all pointers go up.
429             When this flag is true, each pointer (not necessarily the first) that
430             goes down determines the window to which all subsequent touches of that
431             pointer will go until that pointers go up thereby enabling touches
432             with multiple pointers to be split across multiple windows. -->
433        <attr name="windowEnableSplitTouch" format="boolean" />
434
435        <!-- Control whether a container should automatically close itself if
436             the user touches outside of it.  This only applies to activities
437             and dialogs.
438
439             <p>Note: this attribute will only be respected for applications
440             that are targeting {@link android.os.Build.VERSION_CODES#HONEYCOMB}
441             or later. -->
442        <attr name="windowCloseOnTouchOutside" format="boolean" />
443
444        <!-- Flag indicating whether this window requests a translucent status bar.  Corresponds
445             to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_STATUS}. -->
446        <attr name="windowTranslucentStatus" format="boolean" />
447
448        <!-- Flag indicating whether this window requests a translucent navigation bar.  Corresponds
449             to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_NAVIGATION}. -->
450        <attr name="windowTranslucentNavigation" format="boolean" />
451
452        <!-- Flag to indicate that a window can be swiped away to be dismissed.
453             Corresponds to {@link android.view.Window#FEATURE_SWIPE_TO_DISMISS} -->
454        <attr name="windowSwipeToDismiss" format="boolean" />
455
456        <!-- Flag indicating whether this window requests that content changes be performed
457             as scene changes with transitions. Corresponds to
458             {@link android.view.Window#FEATURE_CONTENT_TRANSITIONS}. -->
459        <attr name="windowContentTransitions" format="boolean" />
460
461        <!-- Reference to a TransitionManager XML resource defining the desired
462             transitions between different window content. -->
463        <attr name="windowContentTransitionManager" format="reference" />
464
465        <!-- Reference to a Transition XML resource defining the desired Transition
466             used to move Views into the initial Window's content Scene. Corresponds to
467             {@link android.view.Window#setEnterTransition(android.transition.Transition)}. -->
468        <attr name="windowEnterTransition" format="reference"/>
469
470        <!-- Reference to a Transition XML resource defining the desired Transition
471             used to move Views out of the Window's content Scene when launching a new Activity.
472             Corresponds to
473             {@link android.view.Window#setExitTransition(android.transition.Transition)}. -->
474        <attr name="windowExitTransition" format="reference"/>
475
476        <!-- Reference to a Transition XML resource defining the desired Transition
477             used to move shared elements transferred into the Window's initial content Scene.
478             Corresponds to {@link android.view.Window#setSharedElementEnterTransition(
479             android.transition.Transition)}. -->
480        <attr name="windowSharedElementEnterTransition" format="reference"/>
481
482        <!-- Reference to a Transition XML resource defining the desired Transition
483             used when starting a new Activity to move shared elements prior to transferring
484             to the called Activity.
485             Corresponds to {@link android.view.Window#setSharedElementExitTransition(
486             android.transition.Transition)}. -->
487        <attr name="windowSharedElementExitTransition" format="reference"/>
488
489        <!-- Flag indicating whether this Window's transition should overlap with
490             the exiting transition of the calling Activity. Corresponds to
491             {@link android.view.Window#setAllowEnterTransitionOverlap(boolean)}. -->
492        <attr name="windowAllowEnterTransitionOverlap" format="boolean"/>
493
494        <!-- Flag indicating whether this Window's transition should overlap with
495             the exiting transition of the called Activity when the called Activity
496             finishes. Corresponds to
497             {@link android.view.Window#setAllowExitTransitionOverlap(boolean)}. -->
498        <attr name="windowAllowExitTransitionOverlap" format="boolean"/>
499
500        <!-- ============ -->
501        <!-- Alert Dialog styles -->
502        <!-- ============ -->
503        <eat-comment />
504        <attr name="alertDialogStyle" format="reference" />
505        <attr name="alertDialogButtonGroupStyle" format="reference" />
506        <attr name="alertDialogCenterButtons" format="boolean" />
507
508        <!-- ============== -->
509        <!-- Image elements -->
510        <!-- ============== -->
511        <eat-comment />
512
513        <!-- Background that can be used behind parts of a UI that provide
514             details on data the user is selecting.  For example, this is
515             the background element of PreferenceActivity's embedded
516             preference fragment. -->
517        <attr name="detailsElementBackground" format="reference" />
518
519        <!-- ============ -->
520        <!-- Panel styles -->
521        <!-- ============ -->
522        <eat-comment />
523
524        <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
525        <attr name="panelBackground" format="reference|color" />
526        <!-- The background of a panel when it extends to the left and right edges of the screen. -->
527        <attr name="panelFullBackground" format="reference|color" />
528        <!-- Default color of foreground panel imagery. -->
529        <attr name="panelColorForeground" format="reference|color" />
530        <!-- Color that matches (as closely as possible) the panel background. -->
531        <attr name="panelColorBackground" format="reference|color" />
532        <!-- Default appearance of panel text. -->
533        <attr name="panelTextAppearance" format="reference" />
534
535        <attr name="panelMenuIsCompact" format="boolean" />
536        <attr name="panelMenuListWidth" format="dimension" />
537        <attr name="panelMenuListTheme" format="reference" />
538
539        <!-- =================== -->
540        <!-- Other widget styles -->
541        <!-- =================== -->
542        <eat-comment />
543
544        <!-- Default AbsListView style. -->
545        <attr name="absListViewStyle" format="reference" />
546        <!-- Default AutoCompleteTextView style. -->
547        <attr name="autoCompleteTextViewStyle" format="reference" />
548        <!-- Default Checkbox style. -->
549        <attr name="checkboxStyle" format="reference" />
550        <!-- Default CheckedTextView style. -->
551        <attr name="checkedTextViewStyle" format="reference" />
552        <!-- Default ListView style for drop downs. -->
553        <attr name="dropDownListViewStyle" format="reference" />
554        <!-- Default EditText style. -->
555        <attr name="editTextStyle" format="reference" />
556        <!-- Default ExpandableListView style. -->
557        <attr name="expandableListViewStyle" format="reference" />
558        <!-- ExpandableListView with white background. -->
559        <attr name="expandableListViewWhiteStyle" format="reference" />
560        <!-- Default Gallery style. -->
561        <attr name="galleryStyle" format="reference" />
562        <!-- Default GestureOverlayView style. -->
563        <attr name="gestureOverlayViewStyle" format="reference" />
564        <!-- Default GridView style. -->
565        <attr name="gridViewStyle" format="reference" />
566        <!-- The style resource to use for an ImageButton. -->
567        <attr name="imageButtonStyle" format="reference" />
568        <!-- The style resource to use for an ImageButton that is an image well. -->
569        <attr name="imageWellStyle" format="reference" />
570        <!-- Default ListView style. -->
571        <attr name="listViewStyle" format="reference" />
572        <!-- ListView with white background. -->
573        <attr name="listViewWhiteStyle" format="reference" />
574        <!-- Default PopupWindow style. -->
575        <attr name="popupWindowStyle" format="reference" />
576        <!-- Default ProgressBar style. This is a medium circular progress bar. -->
577        <attr name="progressBarStyle" format="reference" />
578        <!-- Horizontal ProgressBar style. This is a horizontal progress bar. -->
579        <attr name="progressBarStyleHorizontal" format="reference" />
580        <!-- Small ProgressBar style. This is a small circular progress bar. -->
581        <attr name="progressBarStyleSmall" format="reference" />
582        <!-- Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars. -->
583        <attr name="progressBarStyleSmallTitle" format="reference" />
584        <!-- Large ProgressBar style. This is a large circular progress bar. -->
585        <attr name="progressBarStyleLarge" format="reference" />
586        <!-- Inverse ProgressBar style. This is a medium circular progress bar. -->
587        <attr name="progressBarStyleInverse" format="reference" />
588        <!-- Small inverse ProgressBar style. This is a small circular progress bar. -->
589        <attr name="progressBarStyleSmallInverse" format="reference" />
590        <!-- Large inverse ProgressBar style. This is a large circular progress bar. -->
591        <attr name="progressBarStyleLargeInverse" format="reference" />
592        <!-- Default SeekBar style. -->
593        <attr name="seekBarStyle" format="reference" />
594        <!-- Default RatingBar style. -->
595        <attr name="ratingBarStyle" format="reference" />
596        <!-- Indicator RatingBar style. -->
597        <attr name="ratingBarStyleIndicator" format="reference" />
598        <!-- Small indicator RatingBar style. -->
599        <attr name="ratingBarStyleSmall" format="reference" />
600        <!-- Default RadioButton style. -->
601        <attr name="radioButtonStyle" format="reference" />
602        <!-- Default ScrollView style. -->
603        <attr name="scrollViewStyle" format="reference" />
604        <!-- Default HorizontalScrollView style. -->
605        <attr name="horizontalScrollViewStyle" format="reference" />
606        <!-- Default Spinner style. -->
607        <attr name="spinnerStyle" format="reference" />
608        <!-- Default dropdown Spinner style. -->
609        <attr name="dropDownSpinnerStyle" format="reference" />
610        <!-- Default ActionBar dropdown style. -->
611        <attr name="actionDropDownStyle" format="reference" />
612        <!-- Default action button style. -->
613        <attr name="actionButtonStyle" format="reference" />
614        <!-- Default Star style. -->
615        <attr name="starStyle" format="reference" />
616        <!-- Default TabWidget style. -->
617        <attr name="tabWidgetStyle" format="reference" />
618        <!-- Default TextView style. -->
619        <attr name="textViewStyle" format="reference" />
620        <!-- Default WebTextView style. -->
621        <attr name="webTextViewStyle" format="reference" />
622        <!-- Default WebView style. -->
623        <attr name="webViewStyle" format="reference" />
624        <!-- Default style for drop down items. -->
625        <attr name="dropDownItemStyle" format="reference" />
626         <!-- Default style for spinner drop down items. -->
627        <attr name="spinnerDropDownItemStyle" format="reference" />
628        <!-- Default style for drop down hints. -->
629        <attr name="dropDownHintAppearance" format="reference" />
630        <!-- Default spinner item style. -->
631        <attr name="spinnerItemStyle" format="reference" />
632        <!-- Default MapView style. -->
633        <attr name="mapViewStyle" format="reference" />
634        <!-- Drawable used as an overlay on top of quickcontact photos. -->
635        <attr name="quickContactBadgeOverlay" format="reference" />
636        <!-- Default quickcontact badge style with small quickcontact window. -->
637        <attr name="quickContactBadgeStyleWindowSmall" format="reference" />
638        <!-- Default quickcontact badge style with medium quickcontact window. -->
639        <attr name="quickContactBadgeStyleWindowMedium" format="reference" />
640        <!-- Default quickcontact badge style with large quickcontact window. -->
641        <attr name="quickContactBadgeStyleWindowLarge" format="reference" />
642        <!-- Default quickcontact badge style with small quickcontact window. -->
643        <attr name="quickContactBadgeStyleSmallWindowSmall" format="reference" />
644        <!-- Default quickcontact badge style with medium quickcontact window. -->
645        <attr name="quickContactBadgeStyleSmallWindowMedium" format="reference" />
646        <!-- Default quickcontact badge style with large quickcontact window. -->
647        <attr name="quickContactBadgeStyleSmallWindowLarge" format="reference" />
648        <!-- Reference to a style that will be used for the window containing a text
649             selection anchor. -->
650        <attr name="textSelectHandleWindowStyle" format="reference" />
651        <!-- Reference to a style that will be used for the window containing a list of possible
652             text suggestions in an EditText. -->
653        <attr name="textSuggestionsWindowStyle" format="reference" />
654        <!-- Default ListPopupWindow style. -->
655        <attr name="listPopupWindowStyle" format="reference" />
656        <!-- Default PopupMenu style. -->
657        <attr name="popupMenuStyle" format="reference" />
658        <!-- Default StackView style. -->
659        <attr name="stackViewStyle" format="reference" />
660        <!-- Default style for the FragmentBreadCrumbs widget. -->
661        <attr name="fragmentBreadCrumbsStyle" format="reference" />
662
663        <!-- NumberPicker style. -->
664        <attr name="numberPickerStyle" format="reference" />
665
666        <!-- The CalendarView style. -->
667        <attr name="calendarViewStyle" format="reference" />
668
669        <!-- The TimePicker style. -->
670        <attr name="timePickerStyle" format="reference" />
671
672        <!-- The TimePicker Header background color . -->
673        <attr name="timePickerHeaderBackgroundColor" format="reference" />
674
675        <!-- The TimePicker Header time label text appearance -->
676        <attr name="timePickerHeaderTimeLabelTextAppearance" format="reference" />
677
678        <!-- TimePicker Header am pm label text appearance -->
679        <attr name="timePickerHeaderAmPmLabelTextAppearance" format="reference" />
680
681        <!-- The TimePicker dialog theme. -->
682        <attr name="timePickerDialogTheme" format="reference" />
683
684        <!-- The DatePicker style. -->
685        <attr name="datePickerStyle" format="reference" />
686
687        <!-- Default ActivityChooserView style. -->
688        <attr name="activityChooserViewStyle" format="reference" />
689
690        <attr name="toolbarStyle" format="reference" />
691
692        <!-- Fast scroller styles -->
693        <eat-comment />
694
695        <!-- Drawable to use as the fast scroll thumb. -->
696        <attr name="fastScrollThumbDrawable" format="reference" />
697        <!-- Drawable to use as the fast scroll index preview window background
698             when shown on the right. -->
699        <attr name="fastScrollPreviewBackgroundRight" format="reference" />
700        <!-- Drawable to use as the fast scroll index preview window background
701             when shown on the left. -->
702        <attr name="fastScrollPreviewBackgroundLeft" format="reference" />
703        <!-- Drawable to use as the track for the fast scroll thumb.
704             This may be null. -->
705        <attr name="fastScrollTrackDrawable" format="reference" />
706        <!-- Position of the fast scroll index overlay window. -->
707        <attr name="fastScrollOverlayPosition">
708            <enum name="floating" value="0" />
709            <enum name="atThumb" value="1" />
710        </attr>
711        <!-- Text color for the fast scroll index overlay. Make sure it
712             plays nicely with fastScrollPreviewBackground[Left|Right]. -->
713        <attr name="fastScrollTextColor" format="color" />
714
715        <!-- =================== -->
716        <!-- Action bar styles   -->
717        <!-- =================== -->
718        <eat-comment />
719        <!-- Default style for tabs within an action bar -->
720        <attr name="actionBarTabStyle" format="reference" />
721        <attr name="actionBarTabBarStyle" format="reference" />
722        <attr name="actionBarTabTextStyle" format="reference" />
723        <attr name="actionOverflowButtonStyle" format="reference" />
724        <attr name="actionOverflowMenuStyle" format="reference" />
725        <!-- Reference to a style for the Action Bar -->
726        <attr name="actionBarStyle" format="reference" />
727        <!-- Reference to a style for the split Action Bar. This style
728             controls the split component that holds the menu/action
729             buttons. actionBarStyle is still used for the primary
730             bar. -->
731        <attr name="actionBarSplitStyle" format="reference" />
732        <!-- Reference to a theme that should be used to inflate the
733             action bar. This will be inherited by any widget inflated
734             into the action bar. -->
735        <attr name="actionBarTheme" format="reference" />
736        <!-- Reference to a theme that should be used to inflate widgets
737             and layouts destined for the action bar. Most of the time
738             this will be a reference to the current theme, but when
739             the action bar has a significantly different contrast
740             profile than the rest of the activity the difference
741             can become important. If this is set to @null the current
742             theme will be used.-->
743        <attr name="actionBarWidgetTheme" format="reference" />
744        <!-- Size of the Action Bar, including the contextual
745             bar used to present Action Modes. -->
746        <attr name="actionBarSize" format="dimension" >
747            <enum name="wrap_content" value="0" />
748        </attr>
749        <!-- Custom divider drawable to use for elements in the action bar. -->
750        <attr name="actionBarDivider" format="reference" />
751        <!-- Custom item state list drawable background for action bar items. -->
752        <attr name="actionBarItemBackground" format="reference" />
753        <!-- TextAppearance style that will be applied to text that
754             appears within action menu items. -->
755        <attr name="actionMenuTextAppearance" format="reference" />
756        <!-- Color for text that appears within action menu items. -->
757        <attr name="actionMenuTextColor" format="color|reference" />
758
759        <!-- =================== -->
760        <!-- Action mode styles  -->
761        <!-- =================== -->
762        <eat-comment />
763        <attr name="actionModeStyle" format="reference" />
764        <attr name="actionModeCloseButtonStyle" format="reference" />
765        <!-- Background drawable to use for action mode UI -->
766        <attr name="actionModeBackground" format="reference" />
767        <!-- Background drawable to use for action mode UI in the lower split bar -->
768        <attr name="actionModeSplitBackground" format="reference" />
769        <!-- Drawable to use for the close action mode button -->
770        <attr name="actionModeCloseDrawable" format="reference" />
771
772        <!-- Drawable to use for the Cut action button in Contextual Action Bar -->
773        <attr name="actionModeCutDrawable" format="reference" />
774        <!-- Drawable to use for the Copy action button in Contextual Action Bar -->
775        <attr name="actionModeCopyDrawable" format="reference" />
776        <!-- Drawable to use for the Paste action button in Contextual Action Bar -->
777        <attr name="actionModePasteDrawable" format="reference" />
778        <!-- Drawable to use for the Select all action button in Contextual Action Bar -->
779        <attr name="actionModeSelectAllDrawable" format="reference" />
780        <!-- Drawable to use for the Share action button in WebView selection action modes -->
781        <attr name="actionModeShareDrawable" format="reference" />
782        <!-- Drawable to use for the Find action button in WebView selection action modes -->
783        <attr name="actionModeFindDrawable" format="reference" />
784        <!-- Drawable to use for the Web Search action button in WebView selection action modes -->
785        <attr name="actionModeWebSearchDrawable" format="reference" />
786
787        <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
788        <attr name="actionModePopupWindowStyle" format="reference" />
789
790        <!-- =================== -->
791        <!-- Preference styles   -->
792        <!-- =================== -->
793        <eat-comment />
794
795        <!-- Default style for PreferenceScreen. -->
796        <attr name="preferenceScreenStyle" format="reference" />
797        <!-- Default style for Headers pane in PreferenceActivity. -->
798        <attr name="preferenceFragmentStyle" format="reference" />
799        <!-- Default style for PreferenceCategory. -->
800        <attr name="preferenceCategoryStyle" format="reference" />
801        <!-- Default style for Preference. -->
802        <attr name="preferenceStyle" format="reference" />
803        <!-- Default style for informational Preference. -->
804        <attr name="preferenceInformationStyle" format="reference" />
805        <!-- Default style for CheckBoxPreference. -->
806        <attr name="checkBoxPreferenceStyle" format="reference" />
807        <!-- Default style for YesNoPreference. -->
808        <attr name="yesNoPreferenceStyle" format="reference" />
809        <!-- Default style for DialogPreference. -->
810        <attr name="dialogPreferenceStyle" format="reference" />
811        <!-- Default style for EditTextPreference. -->
812        <attr name="editTextPreferenceStyle" format="reference" />
813        <!-- Default style for RingtonePreference. -->
814        <attr name="ringtonePreferenceStyle" format="reference" />
815        <!-- The preference layout that has the child/tabbed effect. -->
816        <attr name="preferenceLayoutChild" format="reference" />
817        <!-- Preference panel style -->
818        <attr name="preferencePanelStyle" format="reference" />
819        <!-- Preference headers panel style -->
820        <attr name="preferenceHeaderPanelStyle" format="reference" />
821        <!-- Preference list style -->
822        <attr name="preferenceListStyle" format="reference" />
823        <!-- Preference fragment list style -->
824        <attr name="preferenceFragmentListStyle" format="reference" />
825        <!-- Preference fragment padding side -->
826        <attr name="preferenceFragmentPaddingSide" format="dimension" />
827        <!-- Default style for switch preferences. -->
828        <attr name="switchPreferenceStyle" format="reference" />
829
830        <!-- ============================ -->
831        <!-- Text selection handle styles -->
832        <!-- ============================ -->
833        <eat-comment />
834
835        <!-- Reference to a drawable that will be used to display a text selection
836             anchor on the left side of a selection region. -->
837        <attr name="textSelectHandleLeft" format="reference" />
838        <!-- Reference to a drawable that will be used to display a text selection
839             anchor on the right side of a selection region. -->
840        <attr name="textSelectHandleRight" format="reference" />
841        <!-- Reference to a drawable that will be used to display a text selection
842             anchor for positioning the cursor within text. -->
843        <attr name="textSelectHandle" format="reference" />
844        <!-- The layout of the view that is displayed on top of the cursor to paste inside a
845             TextEdit field. -->
846        <attr name="textEditPasteWindowLayout" format="reference" />
847        <!-- Variation of textEditPasteWindowLayout displayed when the clipboard is empty. -->
848        <attr name="textEditNoPasteWindowLayout" format="reference" />
849        <!-- Used instead of textEditPasteWindowLayout when the window is moved on the side of the
850             insertion cursor because it would be clipped if it were positioned on top. -->
851        <attr name="textEditSidePasteWindowLayout" format="reference" />
852        <!-- Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. -->
853        <attr name="textEditSideNoPasteWindowLayout" format="reference" />
854
855        <!-- Layout of the TextView item that will populate the suggestion popup window. -->
856        <attr name="textEditSuggestionItemLayout" format="reference" />
857
858        <!-- Theme to use for dialogs spawned from this theme. -->
859        <attr name="dialogTheme" format="reference" />
860        <!-- Window decor layout to use in dialog mode with icons -->
861        <attr name="dialogTitleIconsDecorLayout" format="reference" />
862        <!-- Window decor layout to use in dialog mode with custom titles -->
863        <attr name="dialogCustomTitleDecorLayout" format="reference" />
864        <!-- Window decor layout to use in dialog mode with title only -->
865        <attr name="dialogTitleDecorLayout" format="reference" />
866
867        <!-- Theme to use for alert dialogs spawned from this theme. -->
868        <attr name="alertDialogTheme" format="reference" />
869        <!-- Icon drawable to use for alerts -->
870        <attr name="alertDialogIcon" format="reference" />
871
872        <!-- Theme to use for presentations spawned from this theme. -->
873        <attr name="presentationTheme" format="reference" />
874
875        <!-- Drawable to use for generic vertical dividers. -->
876        <attr name="dividerVertical" format="reference" />
877
878        <!-- Drawable to use for generic horizontal dividers. -->
879        <attr name="dividerHorizontal" format="reference" />
880
881        <!-- Style for button bars -->
882        <attr name="buttonBarStyle" format="reference" />
883
884        <!-- Style for buttons within button bars -->
885        <attr name="buttonBarButtonStyle" format="reference" />
886
887        <!-- Style for segmented buttons - a container that houses several buttons
888             with the appearance of a singel button broken into segments. -->
889        <attr name="segmentedButtonStyle" format="reference" />
890
891        <!-- Background drawable for standalone items that need focus/pressed states. -->
892        <attr name="selectableItemBackground" format="reference" />
893
894        <!-- Style for buttons without an explicit border, often used in groups. -->
895        <attr name="borderlessButtonStyle" format="reference" />
896
897        <!-- Background to use for toasts -->
898        <attr name="toastFrameBackground" format="reference" />
899
900        <!-- ============================ -->
901        <!-- SearchView styles and assets -->
902        <!-- ============================ -->
903        <eat-comment />
904        <!-- SearchView dropdown background -->
905        <attr name="searchDropdownBackground" format="reference" />
906        <!-- SearchView close button icon -->
907        <attr name="searchViewCloseIcon" format="reference" />
908        <!-- SearchView Go button icon -->
909        <attr name="searchViewGoIcon" format="reference" />
910        <!-- SearchView Search icon -->
911        <attr name="searchViewSearchIcon" format="reference" />
912        <!-- SearchView Voice button icon -->
913        <attr name="searchViewVoiceIcon" format="reference" />
914        <!-- SearchView query refinement icon -->
915        <attr name="searchViewEditQuery" format="reference" />
916        <!-- SearchView query refinement icon background -->
917        <attr name="searchViewEditQueryBackground" format="reference" />
918        <!-- SearchView text field background for the left section -->
919        <attr name="searchViewTextField" format="reference" />
920        <!-- SearchView text field background for the right section -->
921        <attr name="searchViewTextFieldRight" format="reference" />
922
923        <!-- Theme to use for Search Dialogs -->
924        <attr name="searchDialogTheme" format="reference" />
925
926        <!-- Specifies a drawable to use for the 'home as up' indicator. -->
927        <attr name="homeAsUpIndicator" format="reference" />
928
929        <!-- Preference frame layout styles. -->
930        <attr name="preferenceFrameLayoutStyle" format="reference" />
931
932        <!-- Default style for the Switch widget. -->
933        <attr name="switchStyle" format="reference" />
934
935        <!-- Default style for the MediaRouteButton widget. -->
936        <attr name="mediaRouteButtonStyle" format="reference" />
937
938        <!-- ============== -->
939        <!-- Pointer styles -->
940        <!-- ============== -->
941        <eat-comment />
942
943        <!-- Reference to the Pointer style -->
944        <attr name="pointerStyle" format="reference" />
945
946        <!-- The drawable for accessibility focused views. -->
947        <attr name="accessibilityFocusedDrawable" format="reference" />
948
949        <!-- Drawable for WebView find-on-page dialogue's "next" button. @hide -->
950        <attr name="findOnPageNextDrawable" format="reference" />
951
952        <!-- Drawable for WebView find-on-page dialogue's "previous" button. @hide -->
953        <attr name="findOnPagePreviousDrawable" format="reference" />
954
955        <!-- ============= -->
956        <!-- Color palette -->
957        <!-- ============= -->
958        <eat-comment />
959
960        <!-- The primary branding color for the app. By default, this is the color applied to the
961             action bar background and framework controls (via colorControlActivated). -->
962        <attr name="colorPrimary" format="color" />
963
964        <!-- Dark variant of the primary branding color. By default, this is the color applied to
965             the status bar (via statusBarColor) and navigation bar (via navigationBarColor). -->
966        <attr name="colorPrimaryDark" format="color" />
967
968        <!-- Light variant of the primary branding color. TODO: Not used? -->
969        <attr name="colorPrimaryLight" format="color" />
970
971        <!-- Bright complement to the primary branding color. TODO: Not used? -->
972        <attr name="colorAccent" format="color" />
973
974        <!-- The color applied to framework controls in their normal state. -->
975        <attr name="colorControlNormal" format="color" />
976
977        <!-- The color applied to framework controls in their activated (ex. checked) state. -->
978        <attr name="colorControlActivated" format="color" />
979
980        <!-- The color applied to framework buttons in their normal state. -->
981        <attr name="colorButtonNormal" format="color" />
982
983        <!-- The color applied to framework buttons in their pressed state. -->
984        <attr name="colorButtonPressed" format="color" />
985    </declare-styleable>
986
987    <!-- **************************************************************** -->
988    <!-- Other non-theme attributes. -->
989    <!-- **************************************************************** -->
990    <eat-comment />
991
992    <!-- Size of text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
993         Supported values include the following:<p/>
994    <ul>
995        <li><b>px</b> Pixels</li>
996        <li><b>sp</b> Scaled pixels (scaled to relative pixel size on screen). See {@link android.util.DisplayMetrics} for more information.</li>
997        <li><b>pt</b> Points</li>
998        <li><b>dip</b> Device independent pixels. See {@link android.util.DisplayMetrics} for more information.</li>
999    </ul>
1000        -->
1001    <attr name="textSize" format="dimension" />
1002
1003    <!-- Default font family. -->
1004    <attr name="fontFamily" format="string" />
1005
1006    <!-- Default text typeface. -->
1007    <attr name="typeface">
1008        <enum name="normal" value="0" />
1009        <enum name="sans" value="1" />
1010        <enum name="serif" value="2" />
1011        <enum name="monospace" value="3" />
1012    </attr>
1013
1014    <!-- Default text typeface style. -->
1015    <attr name="textStyle">
1016        <flag name="normal" value="0" />
1017        <flag name="bold" value="1" />
1018        <flag name="italic" value="2" />
1019    </attr>
1020
1021    <!-- Color of text (usually same as colorForeground). -->
1022    <attr name="textColor" format="reference|color" />
1023
1024    <!-- Color of highlighted text. -->
1025    <attr name="textColorHighlight" format="reference|color" />
1026
1027    <!-- Color of hint text (displayed when the field is empty). -->
1028    <attr name="textColorHint" format="reference|color" />
1029
1030    <!-- Color of link text (URLs). -->
1031    <attr name="textColorLink" format="reference|color" />
1032
1033    <!-- Reference to a drawable that will be drawn under the insertion cursor. -->
1034    <attr name="textCursorDrawable" format="reference" />
1035
1036    <!-- Indicates that the content of a non-editable TextView can be selected.
1037     Default value is false. EditText content is always selectable. -->
1038    <attr name="textIsSelectable" format="boolean" />
1039
1040    <!-- Where to ellipsize text. -->
1041    <attr name="ellipsize">
1042        <enum name="none" value="0" />
1043        <enum name="start" value="1" />
1044        <enum name="middle" value="2" />
1045        <enum name="end" value="3" />
1046        <enum name="marquee" value="4" />
1047    </attr>
1048
1049    <!-- The type of data being placed in a text field, used to help an
1050         input method decide how to let the user enter text.  The constants
1051         here correspond to those defined by
1052         {@link android.text.InputType}.  Generally you can select
1053         a single value, though some can be combined together as
1054         indicated.  Setting this attribute to anything besides
1055         <var>none</var> also implies that the text is editable. -->
1056    <attr name="inputType">
1057        <!-- There is no content type.  The text is not editable. -->
1058        <flag name="none" value="0x00000000" />
1059        <!-- Just plain old text.  Corresponds to
1060             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1061             {@link android.text.InputType#TYPE_TEXT_VARIATION_NORMAL}. -->
1062        <flag name="text" value="0x00000001" />
1063        <!-- Can be combined with <var>text</var> and its variations to
1064             request capitalization of all characters.  Corresponds to
1065             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_CHARACTERS}. -->
1066        <flag name="textCapCharacters" value="0x00001001" />
1067        <!-- Can be combined with <var>text</var> and its variations to
1068             request capitalization of the first character of every word.  Corresponds to
1069             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_WORDS}. -->
1070        <flag name="textCapWords" value="0x00002001" />
1071        <!-- Can be combined with <var>text</var> and its variations to
1072             request capitalization of the first character of every sentence.  Corresponds to
1073             {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_SENTENCES}. -->
1074        <flag name="textCapSentences" value="0x00004001" />
1075        <!-- Can be combined with <var>text</var> and its variations to
1076             request auto-correction of text being input.  Corresponds to
1077             {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_CORRECT}. -->
1078        <flag name="textAutoCorrect" value="0x00008001" />
1079        <!-- Can be combined with <var>text</var> and its variations to
1080             specify that this field will be doing its own auto-completion and
1081             talking with the input method appropriately.  Corresponds to
1082             {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_COMPLETE}. -->
1083        <flag name="textAutoComplete" value="0x00010001" />
1084        <!-- Can be combined with <var>text</var> and its variations to
1085             allow multiple lines of text in the field.  If this flag is not set,
1086             the text field will be constrained to a single line.  Corresponds to
1087             {@link android.text.InputType#TYPE_TEXT_FLAG_MULTI_LINE}. -->
1088        <flag name="textMultiLine" value="0x00020001" />
1089        <!-- Can be combined with <var>text</var> and its variations to
1090             indicate that though the regular text view should not be multiple
1091             lines, the IME should provide multiple lines if it can.  Corresponds to
1092             {@link android.text.InputType#TYPE_TEXT_FLAG_IME_MULTI_LINE}. -->
1093        <flag name="textImeMultiLine" value="0x00040001" />
1094        <!-- Can be combined with <var>text</var> and its variations to
1095             indicate that the IME should not show any
1096             dictionary-based word suggestions.  Corresponds to
1097             {@link android.text.InputType#TYPE_TEXT_FLAG_NO_SUGGESTIONS}. -->
1098        <flag name="textNoSuggestions" value="0x00080001" />
1099        <!-- Text that will be used as a URI.  Corresponds to
1100             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1101             {@link android.text.InputType#TYPE_TEXT_VARIATION_URI}. -->
1102        <flag name="textUri" value="0x00000011" />
1103        <!-- Text that will be used as an e-mail address.  Corresponds to
1104             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1105             {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_ADDRESS}. -->
1106        <flag name="textEmailAddress" value="0x00000021" />
1107        <!-- Text that is being supplied as the subject of an e-mail.  Corresponds to
1108             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1109             {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_SUBJECT}. -->
1110        <flag name="textEmailSubject" value="0x00000031" />
1111        <!-- Text that is the content of a short message.  Corresponds to
1112             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1113             {@link android.text.InputType#TYPE_TEXT_VARIATION_SHORT_MESSAGE}. -->
1114        <flag name="textShortMessage" value="0x00000041" />
1115        <!-- Text that is the content of a long message.  Corresponds to
1116             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1117             {@link android.text.InputType#TYPE_TEXT_VARIATION_LONG_MESSAGE}. -->
1118        <flag name="textLongMessage" value="0x00000051" />
1119        <!-- Text that is the name of a person.  Corresponds to
1120             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1121             {@link android.text.InputType#TYPE_TEXT_VARIATION_PERSON_NAME}. -->
1122        <flag name="textPersonName" value="0x00000061" />
1123        <!-- Text that is being supplied as a postal mailing address.  Corresponds to
1124             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1125             {@link android.text.InputType#TYPE_TEXT_VARIATION_POSTAL_ADDRESS}. -->
1126        <flag name="textPostalAddress" value="0x00000071" />
1127        <!-- Text that is a password.  Corresponds to
1128             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1129             {@link android.text.InputType#TYPE_TEXT_VARIATION_PASSWORD}. -->
1130        <flag name="textPassword" value="0x00000081" />
1131        <!-- Text that is a password that should be visible.  Corresponds to
1132             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1133             {@link android.text.InputType#TYPE_TEXT_VARIATION_VISIBLE_PASSWORD}. -->
1134        <flag name="textVisiblePassword" value="0x00000091" />
1135        <!-- Text that is being supplied as text in a web form.  Corresponds to
1136             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1137             {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EDIT_TEXT}. -->
1138        <flag name="textWebEditText" value="0x000000a1" />
1139        <!-- Text that is filtering some other data.  Corresponds to
1140             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1141             {@link android.text.InputType#TYPE_TEXT_VARIATION_FILTER}. -->
1142        <flag name="textFilter" value="0x000000b1" />
1143        <!-- Text that is for phonetic pronunciation, such as a phonetic name
1144             field in a contact entry.  Corresponds to
1145             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1146             {@link android.text.InputType#TYPE_TEXT_VARIATION_PHONETIC}. -->
1147        <flag name="textPhonetic" value="0x000000c1" />
1148        <!-- Text that will be used as an e-mail address on a web form.  Corresponds to
1149             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1150             {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS}. -->
1151        <flag name="textWebEmailAddress" value="0x000000d1" />
1152        <!-- Text that will be used as a password on a web form.  Corresponds to
1153             {@link android.text.InputType#TYPE_CLASS_TEXT} |
1154             {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_PASSWORD}. -->
1155        <flag name="textWebPassword" value="0x000000e1" />
1156        <!-- A numeric only field.  Corresponds to
1157             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1158             {@link android.text.InputType#TYPE_NUMBER_VARIATION_NORMAL}. -->
1159        <flag name="number" value="0x00000002" />
1160        <!-- Can be combined with <var>number</var> and its other options to
1161             allow a signed number.  Corresponds to
1162             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1163             {@link android.text.InputType#TYPE_NUMBER_FLAG_SIGNED}. -->
1164        <flag name="numberSigned" value="0x00001002" />
1165        <!-- Can be combined with <var>number</var> and its other options to
1166             allow a decimal (fractional) number.  Corresponds to
1167             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1168             {@link android.text.InputType#TYPE_NUMBER_FLAG_DECIMAL}. -->
1169        <flag name="numberDecimal" value="0x00002002" />
1170        <!-- A numeric password field.  Corresponds to
1171             {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1172             {@link android.text.InputType#TYPE_NUMBER_VARIATION_PASSWORD}. -->
1173        <flag name="numberPassword" value="0x00000012" />
1174        <!-- For entering a phone number.  Corresponds to
1175             {@link android.text.InputType#TYPE_CLASS_PHONE}. -->
1176        <flag name="phone" value="0x00000003" />
1177        <!-- For entering a date and time.  Corresponds to
1178             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1179             {@link android.text.InputType#TYPE_DATETIME_VARIATION_NORMAL}. -->
1180        <flag name="datetime" value="0x00000004" />
1181        <!-- For entering a date.  Corresponds to
1182             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1183             {@link android.text.InputType#TYPE_DATETIME_VARIATION_DATE}. -->
1184        <flag name="date" value="0x00000014" />
1185        <!-- For entering a time.  Corresponds to
1186             {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1187             {@link android.text.InputType#TYPE_DATETIME_VARIATION_TIME}. -->
1188        <flag name="time" value="0x00000024" />
1189    </attr>
1190
1191    <!-- Additional features you can enable in an IME associated with an editor
1192         to improve the integration with your application.  The constants
1193         here correspond to those defined by
1194         {@link android.view.inputmethod.EditorInfo#imeOptions}. -->
1195    <attr name="imeOptions">
1196        <!-- There are no special semantics associated with this editor. -->
1197        <flag name="normal" value="0x00000000" />
1198        <!-- There is no specific action associated with this editor, let the
1199             editor come up with its own if it can.
1200             Corresponds to
1201             {@link android.view.inputmethod.EditorInfo#IME_NULL}. -->
1202        <flag name="actionUnspecified" value="0x00000000" />
1203        <!-- This editor has no action associated with it.
1204             Corresponds to
1205             {@link android.view.inputmethod.EditorInfo#IME_ACTION_NONE}. -->
1206        <flag name="actionNone" value="0x00000001" />
1207        <!-- The action key performs a "go"
1208             operation to take the user to the target of the text they typed.
1209             Typically used, for example, when entering a URL.
1210             Corresponds to
1211             {@link android.view.inputmethod.EditorInfo#IME_ACTION_GO}. -->
1212        <flag name="actionGo" value="0x00000002" />
1213        <!-- The action key performs a "search"
1214             operation, taking the user to the results of searching for the text
1215             the have typed (in whatever context is appropriate).
1216             Corresponds to
1217             {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEARCH}. -->
1218        <flag name="actionSearch" value="0x00000003" />
1219        <!-- The action key performs a "send"
1220             operation, delivering the text to its target.  This is typically used
1221             when composing a message.
1222             Corresponds to
1223             {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEND}. -->
1224        <flag name="actionSend" value="0x00000004" />
1225        <!-- The action key performs a "next"
1226             operation, taking the user to the next field that will accept text.
1227             Corresponds to
1228             {@link android.view.inputmethod.EditorInfo#IME_ACTION_NEXT}. -->
1229        <flag name="actionNext" value="0x00000005" />
1230        <!-- The action key performs a "done"
1231             operation, closing the soft input method.
1232             Corresponds to
1233             {@link android.view.inputmethod.EditorInfo#IME_ACTION_DONE}. -->
1234        <flag name="actionDone" value="0x00000006" />
1235        <!-- The action key performs a "previous"
1236             operation, taking the user to the previous field that will accept text.
1237             Corresponds to
1238             {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. -->
1239        <flag name="actionPrevious" value="0x00000007" />
1240        <!-- Used to request that the IME never go
1241             into fullscreen mode.  Applications need to be aware that the flag is not
1242             a guarantee, and not all IMEs will respect it.
1243             <p>Corresponds to
1244             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_FULLSCREEN}. -->
1245        <flag name="flagNoFullscreen" value="0x2000000" />
1246        <!-- Like flagNavigateNext, but
1247             specifies there is something interesting that a backward navigation
1248             can focus on.  If the user selects the IME's facility to backward
1249             navigate, this will show up in the application as an actionPrevious
1250             at {@link android.view.inputmethod.InputConnection#performEditorAction(int)
1251             InputConnection.performEditorAction(int)}.
1252             <p>Corresponds to
1253             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_FULLSCREEN}. -->
1254        <flag name="flagNavigatePrevious" value="0x4000000" />
1255        <!-- Used to specify that there is something
1256             interesting that a forward navigation can focus on. This is like using
1257             actionNext, except allows the IME to be multiline (with
1258             an enter key) as well as provide forward navigation.  Note that some
1259             IMEs may not be able to do this, especially when running on a small
1260             screen where there is little space.  In that case it does not need to
1261             present a UI for this option.  Like actionNext, if the
1262             user selects the IME's facility to forward navigate, this will show up
1263             in the application at
1264             {@link android.view.inputmethod.InputConnection#performEditorAction(int)
1265             InputConnection.performEditorAction(int)}.
1266             <p>Corresponds to
1267             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NAVIGATE_NEXT}. -->
1268        <flag name="flagNavigateNext" value="0x8000000" />
1269        <!-- Used to specify that the IME does not need
1270             to show its extracted text UI.  For input methods that may be fullscreen,
1271             often when in landscape mode, this allows them to be smaller and let part
1272             of the application be shown behind.  Though there will likely be limited
1273             access to the application available from the user, it can make the
1274             experience of a (mostly) fullscreen IME less jarring.  Note that when
1275             this flag is specified the IME may <em>not</em> be set up to be able
1276             to display text, so it should only be used in situations where this is
1277             not needed.
1278             <p>Corresponds to
1279             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_EXTRACT_UI}. -->
1280        <flag name="flagNoExtractUi" value="0x10000000" />
1281        <!-- Used in conjunction with a custom action, this indicates that the
1282             action should not be available as an accessory button when the
1283             input method is full-screen.
1284             Note that by setting this flag, there can be cases where the action
1285             is simply never available to the user.  Setting this generally means
1286             that you think showing text being edited is more important than the
1287             action you have supplied.
1288             <p>Corresponds to
1289             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ACCESSORY_ACTION}. -->
1290        <flag name="flagNoAccessoryAction" value="0x20000000" />
1291        <!-- Used in conjunction with a custom action,
1292             this indicates that the action should not be available in-line as
1293             a replacement for the "enter" key.  Typically this is
1294             because the action has such a significant impact or is not recoverable
1295             enough that accidentally hitting it should be avoided, such as sending
1296             a message.    Note that {@link android.widget.TextView} will
1297             automatically set this flag for you on multi-line text views.
1298             <p>Corresponds to
1299             {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ENTER_ACTION}. -->
1300        <flag name="flagNoEnterAction" value="0x40000000" />
1301        <!-- Used to request that the IME should be capable of inputting ASCII
1302             characters.  The intention of this flag is to ensure that the user
1303             can type Roman alphabet characters in a {@link android.widget.TextView}
1304             used for, typically, account ID or password input.  It is expected that IMEs
1305             normally are able to input ASCII even without being told so (such IMEs
1306             already respect this flag in a sense), but there could be some cases they
1307             aren't when, for instance, only non-ASCII input languagaes like Arabic,
1308             Greek, Hebrew, Russian are enabled in the IME.  Applications need to be
1309             aware that the flag is not a guarantee, and not all IMEs will respect it.
1310             However, it is strongly recommended for IME authors to respect this flag
1311             especially when their IME could end up with a state that has only non-ASCII
1312             input languages enabled.
1313             <p>Corresponds to
1314             {@link android.view.inputmethod.EditorInfo#IME_FLAG_FORCE_ASCII}. -->
1315        <flag name="flagForceAscii" value="0x80000000" />
1316    </attr>
1317
1318    <!-- A coordinate in the X dimension. -->
1319    <attr name="x" format="dimension" />
1320    <!-- A coordinate in the Y dimension. -->
1321    <attr name="y" format="dimension" />
1322
1323    <!-- Specifies how an object should position its content, on both the X and Y axes,
1324         within its own bounds.  -->
1325    <attr name="gravity">
1326        <!-- Push object to the top of its container, not changing its size. -->
1327        <flag name="top" value="0x30" />
1328        <!-- Push object to the bottom of its container, not changing its size. -->
1329        <flag name="bottom" value="0x50" />
1330        <!-- Push object to the left of its container, not changing its size. -->
1331        <flag name="left" value="0x03" />
1332        <!-- Push object to the right of its container, not changing its size. -->
1333        <flag name="right" value="0x05" />
1334        <!-- Place object in the vertical center of its container, not changing its size. -->
1335        <flag name="center_vertical" value="0x10" />
1336        <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
1337        <flag name="fill_vertical" value="0x70" />
1338        <!-- Place object in the horizontal center of its container, not changing its size. -->
1339        <flag name="center_horizontal" value="0x01" />
1340        <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
1341        <flag name="fill_horizontal" value="0x07" />
1342        <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
1343        <flag name="center" value="0x11" />
1344        <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
1345        <flag name="fill" value="0x77" />
1346        <!-- Additional option that can be set to have the top and/or bottom edges of
1347             the child clipped to its container's bounds.
1348             The clip will be based on the vertical gravity: a top gravity will clip the bottom
1349             edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
1350        <flag name="clip_vertical" value="0x80" />
1351        <!-- Additional option that can be set to have the left and/or right edges of
1352             the child clipped to its container's bounds.
1353             The clip will be based on the horizontal gravity: a left gravity will clip the right
1354             edge, a right gravity will clip the left edge, and neither will clip both edges. -->
1355        <flag name="clip_horizontal" value="0x08" />
1356        <!-- Push object to the beginning of its container, not changing its size. -->
1357        <flag name="start" value="0x00800003" />
1358        <!-- Push object to the end of its container, not changing its size. -->
1359        <flag name="end" value="0x00800005" />
1360    </attr>
1361
1362    <!-- Controls whether links such as urls and email addresses are
1363         automatically found and converted to clickable links.  The default
1364         value is "none", disabling this feature. -->
1365    <attr name="autoLink">
1366        <!-- Match no patterns (default). -->
1367        <flag name="none" value="0x00" />
1368        <!-- Match Web URLs. -->
1369        <flag name="web" value="0x01" />
1370        <!-- Match email addresses. -->
1371        <flag name="email" value="0x02" />
1372        <!-- Match phone numbers. -->
1373        <flag name="phone" value="0x04" />
1374        <!-- Match map addresses. -->
1375        <flag name="map" value="0x08" />
1376        <!-- Match all patterns (equivalent to web|email|phone|map). -->
1377        <flag name="all" value="0x0f" />
1378    </attr>
1379
1380    <!-- Reference to an array resource that will populate a list/adapter. -->
1381    <attr name="entries" format="reference" />
1382
1383    <!-- Standard gravity constant that a child supplies to its parent.
1384         Defines how the child view should be positioned, on both the X and Y axes, within its enclosing layout. -->
1385    <attr name="layout_gravity">
1386        <!-- Push object to the top of its container, not changing its size. -->
1387        <flag name="top" value="0x30" />
1388        <!-- Push object to the bottom of its container, not changing its size. -->
1389        <flag name="bottom" value="0x50" />
1390        <!-- Push object to the left of its container, not changing its size. -->
1391        <flag name="left" value="0x03" />
1392        <!-- Push object to the right of its container, not changing its size. -->
1393        <flag name="right" value="0x05" />
1394        <!-- Place object in the vertical center of its container, not changing its size. -->
1395        <flag name="center_vertical" value="0x10" />
1396        <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
1397        <flag name="fill_vertical" value="0x70" />
1398        <!-- Place object in the horizontal center of its container, not changing its size. -->
1399        <flag name="center_horizontal" value="0x01" />
1400        <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
1401        <flag name="fill_horizontal" value="0x07" />
1402        <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
1403        <flag name="center" value="0x11" />
1404        <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
1405        <flag name="fill" value="0x77" />
1406        <!-- Additional option that can be set to have the top and/or bottom edges of
1407             the child clipped to its container's bounds.
1408             The clip will be based on the vertical gravity: a top gravity will clip the bottom
1409             edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
1410        <flag name="clip_vertical" value="0x80" />
1411        <!-- Additional option that can be set to have the left and/or right edges of
1412             the child clipped to its container's bounds.
1413             The clip will be based on the horizontal gravity: a left gravity will clip the right
1414             edge, a right gravity will clip the left edge, and neither will clip both edges. -->
1415        <flag name="clip_horizontal" value="0x08" />
1416        <!-- Push object to the beginning of its container, not changing its size. -->
1417        <flag name="start" value="0x00800003" />
1418        <!-- Push object to the end of its container, not changing its size. -->
1419        <flag name="end" value="0x00800005" />
1420    </attr>
1421
1422    <!-- Standard orientation constant. -->
1423    <attr name="orientation">
1424        <!-- Defines an horizontal widget. -->
1425        <enum name="horizontal" value="0" />
1426        <!-- Defines a vertical widget. -->
1427        <enum name="vertical" value="1" />
1428    </attr>
1429
1430    <!-- Alignment constants. -->
1431    <attr name="alignmentMode">
1432        <!-- Align the bounds of the children.
1433        See {@link android.widget.GridLayout#ALIGN_BOUNDS}. -->
1434        <enum name="alignBounds" value="0" />
1435        <!-- Align the margins of the children.
1436        See {@link android.widget.GridLayout#ALIGN_MARGINS}. -->
1437        <enum name="alignMargins" value="1" />
1438    </attr>
1439
1440    <!-- ========================== -->
1441    <!-- Key Codes                  -->
1442    <!-- ========================== -->
1443    <eat-comment />
1444
1445    <!-- This enum provides the same keycode values as can be found in
1446        {@link android.view.KeyEvent}. -->
1447    <attr name="keycode">
1448        <enum name="KEYCODE_UNKNOWN" value="0" />
1449        <enum name="KEYCODE_SOFT_LEFT" value="1" />
1450        <enum name="KEYCODE_SOFT_RIGHT" value="2" />
1451        <enum name="KEYCODE_HOME" value="3" />
1452        <enum name="KEYCODE_BACK" value="4" />
1453        <enum name="KEYCODE_CALL" value="5" />
1454        <enum name="KEYCODE_ENDCALL" value="6" />
1455        <enum name="KEYCODE_0" value="7" />
1456        <enum name="KEYCODE_1" value="8" />
1457        <enum name="KEYCODE_2" value="9" />
1458        <enum name="KEYCODE_3" value="10" />
1459        <enum name="KEYCODE_4" value="11" />
1460        <enum name="KEYCODE_5" value="12" />
1461        <enum name="KEYCODE_6" value="13" />
1462        <enum name="KEYCODE_7" value="14" />
1463        <enum name="KEYCODE_8" value="15" />
1464        <enum name="KEYCODE_9" value="16" />
1465        <enum name="KEYCODE_STAR" value="17" />
1466        <enum name="KEYCODE_POUND" value="18" />
1467        <enum name="KEYCODE_DPAD_UP" value="19" />
1468        <enum name="KEYCODE_DPAD_DOWN" value="20" />
1469        <enum name="KEYCODE_DPAD_LEFT" value="21" />
1470        <enum name="KEYCODE_DPAD_RIGHT" value="22" />
1471        <enum name="KEYCODE_DPAD_CENTER" value="23" />
1472        <enum name="KEYCODE_VOLUME_UP" value="24" />
1473        <enum name="KEYCODE_VOLUME_DOWN" value="25" />
1474        <enum name="KEYCODE_POWER" value="26" />
1475        <enum name="KEYCODE_CAMERA" value="27" />
1476        <enum name="KEYCODE_CLEAR" value="28" />
1477        <enum name="KEYCODE_A" value="29" />
1478        <enum name="KEYCODE_B" value="30" />
1479        <enum name="KEYCODE_C" value="31" />
1480        <enum name="KEYCODE_D" value="32" />
1481        <enum name="KEYCODE_E" value="33" />
1482        <enum name="KEYCODE_F" value="34" />
1483        <enum name="KEYCODE_G" value="35" />
1484        <enum name="KEYCODE_H" value="36" />
1485        <enum name="KEYCODE_I" value="37" />
1486        <enum name="KEYCODE_J" value="38" />
1487        <enum name="KEYCODE_K" value="39" />
1488        <enum name="KEYCODE_L" value="40" />
1489        <enum name="KEYCODE_M" value="41" />
1490        <enum name="KEYCODE_N" value="42" />
1491        <enum name="KEYCODE_O" value="43" />
1492        <enum name="KEYCODE_P" value="44" />
1493        <enum name="KEYCODE_Q" value="45" />
1494        <enum name="KEYCODE_R" value="46" />
1495        <enum name="KEYCODE_S" value="47" />
1496        <enum name="KEYCODE_T" value="48" />
1497        <enum name="KEYCODE_U" value="49" />
1498        <enum name="KEYCODE_V" value="50" />
1499        <enum name="KEYCODE_W" value="51" />
1500        <enum name="KEYCODE_X" value="52" />
1501        <enum name="KEYCODE_Y" value="53" />
1502        <enum name="KEYCODE_Z" value="54" />
1503        <enum name="KEYCODE_COMMA" value="55" />
1504        <enum name="KEYCODE_PERIOD" value="56" />
1505        <enum name="KEYCODE_ALT_LEFT" value="57" />
1506        <enum name="KEYCODE_ALT_RIGHT" value="58" />
1507        <enum name="KEYCODE_SHIFT_LEFT" value="59" />
1508        <enum name="KEYCODE_SHIFT_RIGHT" value="60" />
1509        <enum name="KEYCODE_TAB" value="61" />
1510        <enum name="KEYCODE_SPACE" value="62" />
1511        <enum name="KEYCODE_SYM" value="63" />
1512        <enum name="KEYCODE_EXPLORER" value="64" />
1513        <enum name="KEYCODE_ENVELOPE" value="65" />
1514        <enum name="KEYCODE_ENTER" value="66" />
1515        <enum name="KEYCODE_DEL" value="67" />
1516        <enum name="KEYCODE_GRAVE" value="68" />
1517        <enum name="KEYCODE_MINUS" value="69" />
1518        <enum name="KEYCODE_EQUALS" value="70" />
1519        <enum name="KEYCODE_LEFT_BRACKET" value="71" />
1520        <enum name="KEYCODE_RIGHT_BRACKET" value="72" />
1521        <enum name="KEYCODE_BACKSLASH" value="73" />
1522        <enum name="KEYCODE_SEMICOLON" value="74" />
1523        <enum name="KEYCODE_APOSTROPHE" value="75" />
1524        <enum name="KEYCODE_SLASH" value="76" />
1525        <enum name="KEYCODE_AT" value="77" />
1526        <enum name="KEYCODE_NUM" value="78" />
1527        <enum name="KEYCODE_HEADSETHOOK" value="79" />
1528        <enum name="KEYCODE_FOCUS" value="80" />
1529        <enum name="KEYCODE_PLUS" value="81" />
1530        <enum name="KEYCODE_MENU" value="82" />
1531        <enum name="KEYCODE_NOTIFICATION" value="83" />
1532        <enum name="KEYCODE_SEARCH" value="84" />
1533        <enum name="KEYCODE_MEDIA_PLAY_PAUSE" value="85" />
1534        <enum name="KEYCODE_MEDIA_STOP" value="86" />
1535        <enum name="KEYCODE_MEDIA_NEXT" value="87" />
1536        <enum name="KEYCODE_MEDIA_PREVIOUS" value="88" />
1537        <enum name="KEYCODE_MEDIA_REWIND" value="89" />
1538        <enum name="KEYCODE_MEDIA_FAST_FORWARD" value="90" />
1539        <enum name="KEYCODE_MUTE" value="91" />
1540        <enum name="KEYCODE_PAGE_UP" value="92" />
1541        <enum name="KEYCODE_PAGE_DOWN" value="93" />
1542        <enum name="KEYCODE_PICTSYMBOLS" value="94" />
1543        <enum name="KEYCODE_SWITCH_CHARSET" value="95" />
1544        <enum name="KEYCODE_BUTTON_A" value="96" />
1545        <enum name="KEYCODE_BUTTON_B" value="97" />
1546        <enum name="KEYCODE_BUTTON_C" value="98" />
1547        <enum name="KEYCODE_BUTTON_X" value="99" />
1548        <enum name="KEYCODE_BUTTON_Y" value="100" />
1549        <enum name="KEYCODE_BUTTON_Z" value="101" />
1550        <enum name="KEYCODE_BUTTON_L1" value="102" />
1551        <enum name="KEYCODE_BUTTON_R1" value="103" />
1552        <enum name="KEYCODE_BUTTON_L2" value="104" />
1553        <enum name="KEYCODE_BUTTON_R2" value="105" />
1554        <enum name="KEYCODE_BUTTON_THUMBL" value="106" />
1555        <enum name="KEYCODE_BUTTON_THUMBR" value="107" />
1556        <enum name="KEYCODE_BUTTON_START" value="108" />
1557        <enum name="KEYCODE_BUTTON_SELECT" value="109" />
1558        <enum name="KEYCODE_BUTTON_MODE" value="110" />
1559        <enum name="KEYCODE_ESCAPE" value="111" />
1560        <enum name="KEYCODE_FORWARD_DEL" value="112" />
1561        <enum name="KEYCODE_CTRL_LEFT" value="113" />
1562        <enum name="KEYCODE_CTRL_RIGHT" value="114" />
1563        <enum name="KEYCODE_CAPS_LOCK" value="115" />
1564        <enum name="KEYCODE_SCROLL_LOCK" value="116" />
1565        <enum name="KEYCODE_META_LEFT" value="117" />
1566        <enum name="KEYCODE_META_RIGHT" value="118" />
1567        <enum name="KEYCODE_FUNCTION" value="119" />
1568        <enum name="KEYCODE_SYSRQ" value="120" />
1569        <enum name="KEYCODE_BREAK" value="121" />
1570        <enum name="KEYCODE_MOVE_HOME" value="122" />
1571        <enum name="KEYCODE_MOVE_END" value="123" />
1572        <enum name="KEYCODE_INSERT" value="124" />
1573        <enum name="KEYCODE_FORWARD" value="125" />
1574        <enum name="KEYCODE_MEDIA_PLAY" value="126" />
1575        <enum name="KEYCODE_MEDIA_PAUSE" value="127" />
1576        <enum name="KEYCODE_MEDIA_CLOSE" value="128" />
1577        <enum name="KEYCODE_MEDIA_EJECT" value="129" />
1578        <enum name="KEYCODE_MEDIA_RECORD" value="130" />
1579        <enum name="KEYCODE_F1" value="131" />
1580        <enum name="KEYCODE_F2" value="132" />
1581        <enum name="KEYCODE_F3" value="133" />
1582        <enum name="KEYCODE_F4" value="134" />
1583        <enum name="KEYCODE_F5" value="135" />
1584        <enum name="KEYCODE_F6" value="136" />
1585        <enum name="KEYCODE_F7" value="137" />
1586        <enum name="KEYCODE_F8" value="138" />
1587        <enum name="KEYCODE_F9" value="139" />
1588        <enum name="KEYCODE_F10" value="140" />
1589        <enum name="KEYCODE_F11" value="141" />
1590        <enum name="KEYCODE_F12" value="142" />
1591        <enum name="KEYCODE_NUM_LOCK" value="143" />
1592        <enum name="KEYCODE_NUMPAD_0" value="144" />
1593        <enum name="KEYCODE_NUMPAD_1" value="145" />
1594        <enum name="KEYCODE_NUMPAD_2" value="146" />
1595        <enum name="KEYCODE_NUMPAD_3" value="147" />
1596        <enum name="KEYCODE_NUMPAD_4" value="148" />
1597        <enum name="KEYCODE_NUMPAD_5" value="149" />
1598        <enum name="KEYCODE_NUMPAD_6" value="150" />
1599        <enum name="KEYCODE_NUMPAD_7" value="151" />
1600        <enum name="KEYCODE_NUMPAD_8" value="152" />
1601        <enum name="KEYCODE_NUMPAD_9" value="153" />
1602        <enum name="KEYCODE_NUMPAD_DIVIDE" value="154" />
1603        <enum name="KEYCODE_NUMPAD_MULTIPLY" value="155" />
1604        <enum name="KEYCODE_NUMPAD_SUBTRACT" value="156" />
1605        <enum name="KEYCODE_NUMPAD_ADD" value="157" />
1606        <enum name="KEYCODE_NUMPAD_DOT" value="158" />
1607        <enum name="KEYCODE_NUMPAD_COMMA" value="159" />
1608        <enum name="KEYCODE_NUMPAD_ENTER" value="160" />
1609        <enum name="KEYCODE_NUMPAD_EQUALS" value="161" />
1610        <enum name="KEYCODE_NUMPAD_LEFT_PAREN" value="162" />
1611        <enum name="KEYCODE_NUMPAD_RIGHT_PAREN" value="163" />
1612        <enum name="KEYCODE_VOLUME_MUTE" value="164" />
1613        <enum name="KEYCODE_INFO" value="165" />
1614        <enum name="KEYCODE_CHANNEL_UP" value="166" />
1615        <enum name="KEYCODE_CHANNEL_DOWN" value="167" />
1616        <enum name="KEYCODE_ZOOM_IN" value="168" />
1617        <enum name="KEYCODE_ZOOM_OUT" value="169" />
1618        <enum name="KEYCODE_TV" value="170" />
1619        <enum name="KEYCODE_WINDOW" value="171" />
1620        <enum name="KEYCODE_GUIDE" value="172" />
1621        <enum name="KEYCODE_DVR" value="173" />
1622        <enum name="KEYCODE_BOOKMARK" value="174" />
1623        <enum name="KEYCODE_CAPTIONS" value="175" />
1624        <enum name="KEYCODE_SETTINGS" value="176" />
1625        <enum name="KEYCODE_TV_POWER" value="177" />
1626        <enum name="KEYCODE_TV_INPUT" value="178" />
1627        <enum name="KEYCODE_STB_POWER" value="179" />
1628        <enum name="KEYCODE_STB_INPUT" value="180" />
1629        <enum name="KEYCODE_AVR_POWER" value="181" />
1630        <enum name="KEYCODE_AVR_INPUT" value="182" />
1631        <enum name="KEYCODE_PROG_GRED" value="183" />
1632        <enum name="KEYCODE_PROG_GREEN" value="184" />
1633        <enum name="KEYCODE_PROG_YELLOW" value="185" />
1634        <enum name="KEYCODE_PROG_BLUE" value="186" />
1635        <enum name="KEYCODE_APP_SWITCH" value="187" />
1636        <enum name="KEYCODE_BUTTON_1" value="188" />
1637        <enum name="KEYCODE_BUTTON_2" value="189" />
1638        <enum name="KEYCODE_BUTTON_3" value="190" />
1639        <enum name="KEYCODE_BUTTON_4" value="191" />
1640        <enum name="KEYCODE_BUTTON_5" value="192" />
1641        <enum name="KEYCODE_BUTTON_6" value="193" />
1642        <enum name="KEYCODE_BUTTON_7" value="194" />
1643        <enum name="KEYCODE_BUTTON_8" value="195" />
1644        <enum name="KEYCODE_BUTTON_9" value="196" />
1645        <enum name="KEYCODE_BUTTON_10" value="197" />
1646        <enum name="KEYCODE_BUTTON_11" value="198" />
1647        <enum name="KEYCODE_BUTTON_12" value="199" />
1648        <enum name="KEYCODE_BUTTON_13" value="200" />
1649        <enum name="KEYCODE_BUTTON_14" value="201" />
1650        <enum name="KEYCODE_BUTTON_15" value="202" />
1651        <enum name="KEYCODE_BUTTON_16" value="203" />
1652        <enum name="KEYCODE_LANGUAGE_SWITCH" value="204" />
1653        <enum name="KEYCODE_MANNER_MODE" value="205" />
1654        <enum name="KEYCODE_3D_MODE" value="206" />
1655        <enum name="KEYCODE_CONTACTS" value="207" />
1656        <enum name="KEYCODE_CALENDAR" value="208" />
1657        <enum name="KEYCODE_MUSIC" value="209" />
1658        <enum name="KEYCODE_CALCULATOR" value="210" />
1659        <enum name="KEYCODE_ZENKAKU_HANKAKU" value="211" />
1660        <enum name="KEYCODE_EISU" value="212" />
1661        <enum name="KEYCODE_MUHENKAN" value="213" />
1662        <enum name="KEYCODE_HENKAN" value="214" />
1663        <enum name="KEYCODE_KATAKANA_HIRAGANA" value="215" />
1664        <enum name="KEYCODE_YEN" value="216" />
1665        <enum name="KEYCODE_RO" value="217" />
1666        <enum name="KEYCODE_KANA" value="218" />
1667        <enum name="KEYCODE_ASSIST" value="219" />
1668        <enum name="KEYCODE_BRIGHTNESS_DOWN" value="220" />
1669        <enum name="KEYCODE_BRIGHTNESS_UP" value="221" />
1670        <enum name="KEYCODE_MEDIA_AUDIO_TRACK" value="222" />
1671        <enum name="KEYCODE_MEDIA_SLEEP" value="223" />
1672        <enum name="KEYCODE_MEDIA_WAKEUP" value="224" />
1673    </attr>
1674
1675    <!-- ***************************************************************** -->
1676    <!-- These define collections of attributes that can are with classes. -->
1677    <!-- ***************************************************************** -->
1678
1679    <!-- ========================== -->
1680    <!-- Special attribute classes. -->
1681    <!-- ========================== -->
1682    <eat-comment />
1683
1684    <!-- The set of attributes that describe a Windows's theme. -->
1685    <declare-styleable name="Window">
1686        <attr name="windowBackground" />
1687        <attr name="windowContentOverlay" />
1688        <attr name="windowFrame" />
1689        <attr name="windowNoTitle" />
1690        <attr name="windowFullscreen" />
1691        <attr name="windowOverscan" />
1692        <attr name="windowIsFloating" />
1693        <attr name="windowIsTranslucent" />
1694        <attr name="windowShowWallpaper" />
1695        <attr name="windowAnimationStyle" />
1696        <attr name="windowSoftInputMode" />
1697        <attr name="windowDisablePreview" />
1698        <attr name="windowNoDisplay" />
1699        <attr name="textColor" />
1700        <attr name="backgroundDimEnabled" />
1701        <attr name="backgroundDimAmount" />
1702        <attr name="windowActionBar" />
1703        <attr name="windowActionModeOverlay" />
1704        <attr name="windowActionBarOverlay" />
1705        <attr name="windowSplitActionBar" />
1706        <attr name="windowEnableSplitTouch" />
1707        <attr name="windowCloseOnTouchOutside" />
1708        <attr name="windowTranslucentStatus" />
1709        <attr name="windowTranslucentNavigation" />
1710        <attr name="windowSwipeToDismiss" />
1711        <attr name="windowContentTransitions" />
1712        <attr name="windowContentTransitionManager" />
1713
1714        <!-- The minimum width the window is allowed to be, along the major
1715             axis of the screen.  That is, when in landscape.  Can be either
1716             an absolute dimension or a fraction of the screen size in that
1717             dimension. -->
1718        <attr name="windowMinWidthMajor" format="dimension|fraction" />
1719        <!-- The minimum width the window is allowed to be, along the minor
1720             axis of the screen.  That is, when in portrait.  Can be either
1721             an absolute dimension or a fraction of the screen size in that
1722             dimension. -->
1723        <attr name="windowMinWidthMinor" format="dimension|fraction" />
1724
1725        <!-- A fixed width for the window along the major axis of the screen,
1726             that is, when in landscape. Can be either an absolute dimension
1727             or a fraction of the screen size in that dimension. -->
1728        <attr name="windowFixedWidthMajor" format="dimension|fraction" />
1729        <!-- A fixed height for the window along the minor axis of the screen,
1730             that is, when in landscape. Can be either an absolute dimension
1731             or a fraction of the screen size in that dimension. -->
1732        <attr name="windowFixedHeightMinor" format="dimension|fraction" />
1733
1734        <!-- A fixed width for the window along the minor axis of the screen,
1735             that is, when in portrait. Can be either an absolute dimension
1736             or a fraction of the screen size in that dimension. -->
1737        <attr name="windowFixedWidthMinor" format="dimension|fraction" />
1738        <!-- A fixed height for the window along the major axis of the screen,
1739             that is, when in portrait. Can be either an absolute dimension
1740             or a fraction of the screen size in that dimension. -->
1741        <attr name="windowFixedHeightMajor" format="dimension|fraction" />
1742        <attr name="windowOutsetBottom" format="dimension" />
1743        <!-- Reference to a TransitionManager XML resource defining the desired Transition
1744             used to move Views into the initial Window's content Scene. Corresponds to
1745             {@link android.view.Window#setEnterTransition(android.transition.Transition)}. -->
1746        <attr name="windowEnterTransition"/>
1747
1748        <!-- Reference to a TransitionManager XML resource defining the desired Transition
1749             used to move Views out of the Window's content Scene when launching a new Activity.
1750             Corresponds to
1751             {@link android.view.Window#setExitTransition(android.transition.Transition)}. -->
1752        <attr name="windowExitTransition"/>
1753
1754        <!-- Reference to a TransitionManager XML resource defining the desired Transition
1755             used to move shared elements transferred into the Window's initial content Scene.
1756             Corresponds to {@link android.view.Window#setSharedElementEnterTransition(
1757             android.transition.Transition)}. -->
1758        <attr name="windowSharedElementEnterTransition"/>
1759
1760        <!-- Reference to a TransitionManager XML resource defining the desired Transition
1761             used when starting a new Activity to move shared elements prior to transferring
1762             to the called Activity.
1763             Corresponds to {@link android.view.Window#setSharedElementExitTransition(
1764             android.transition.Transition)}. -->
1765        <attr name="windowSharedElementExitTransition"/>
1766
1767
1768        <!-- Flag indicating whether this Window's transition should overlap with
1769             the exiting transition of the calling Activity. Corresponds to
1770             {@link android.view.Window#setAllowEnterTransitionOverlap(boolean)}. -->
1771        <attr name="windowAllowEnterTransitionOverlap"/>
1772
1773        <!-- Flag indicating whether this Window's transition should overlap with
1774             the exiting transition of the called Activity when the called Activity
1775             finishes. Corresponds to
1776             {@link android.view.Window#setAllowExitTransitionOverlap(boolean)}. -->
1777        <attr name="windowAllowExitTransitionOverlap"/>
1778    </declare-styleable>
1779
1780    <!-- The set of attributes that describe a AlertDialog's theme. -->
1781    <declare-styleable name="AlertDialog">
1782        <attr name="fullDark" format="reference|color" />
1783        <attr name="topDark" format="reference|color" />
1784        <attr name="centerDark" format="reference|color" />
1785        <attr name="bottomDark" format="reference|color" />
1786        <attr name="fullBright" format="reference|color" />
1787        <attr name="topBright" format="reference|color" />
1788        <attr name="centerBright" format="reference|color" />
1789        <attr name="bottomBright" format="reference|color" />
1790        <attr name="bottomMedium" format="reference|color" />
1791        <attr name="centerMedium" format="reference|color" />
1792        <attr name="layout" />
1793        <attr name="buttonPanelSideLayout" format="reference" />
1794        <attr name="listLayout" format="reference" />
1795        <attr name="multiChoiceItemLayout" format="reference" />
1796        <attr name="singleChoiceItemLayout" format="reference" />
1797        <attr name="listItemLayout" format="reference" />
1798        <attr name="progressLayout" format="reference" />
1799        <attr name="horizontalProgressLayout" format="reference" />
1800    </declare-styleable>
1801
1802    <!-- Fragment animation class attributes. -->
1803    <declare-styleable name="FragmentAnimation">
1804        <attr name="fragmentOpenEnterAnimation" format="reference" />
1805        <attr name="fragmentOpenExitAnimation" format="reference" />
1806        <attr name="fragmentCloseEnterAnimation" format="reference" />
1807        <attr name="fragmentCloseExitAnimation" format="reference" />
1808        <attr name="fragmentFadeEnterAnimation" format="reference" />
1809        <attr name="fragmentFadeExitAnimation" format="reference" />
1810    </declare-styleable>
1811
1812    <!-- Window animation class attributes. -->
1813    <declare-styleable name="WindowAnimation">
1814        <!-- The animation used when a window is being added. -->
1815        <attr name="windowEnterAnimation" format="reference" />
1816        <!-- The animation used when a window is being removed. -->
1817        <attr name="windowExitAnimation" format="reference" />
1818        <!-- The animation used when a window is going from INVISIBLE to VISIBLE. -->
1819        <attr name="windowShowAnimation" format="reference" />
1820        <!-- The animation used when a window is going from VISIBLE to INVISIBLE. -->
1821        <attr name="windowHideAnimation" format="reference" />
1822
1823        <!--  When opening a new activity, this is the animation that is
1824              run on the next activity (which is entering the screen). -->
1825        <attr name="activityOpenEnterAnimation" format="reference" />
1826        <!--  When opening a new activity, this is the animation that is
1827              run on the previous activity (which is exiting the screen). -->
1828        <attr name="activityOpenExitAnimation" format="reference" />
1829        <!--  When closing the current activity, this is the animation that is
1830              run on the next activity (which is entering the screen). -->
1831        <attr name="activityCloseEnterAnimation" format="reference" />
1832        <!--  When closing the current activity, this is the animation that is
1833              run on the current activity (which is exiting the screen). -->
1834        <attr name="activityCloseExitAnimation" format="reference" />
1835        <!--  When opening an activity in a new task, this is the animation that is
1836              run on the activity of the new task (which is entering the screen). -->
1837        <attr name="taskOpenEnterAnimation" format="reference" />
1838        <!--  When opening an activity in a new task, this is the animation that is
1839              run on the activity of the old task (which is exiting the screen). -->
1840        <attr name="taskOpenExitAnimation" format="reference" />
1841        <!--  When closing the last activity of a task, this is the animation that is
1842              run on the activity of the next task (which is entering the screen). -->
1843        <attr name="taskCloseEnterAnimation" format="reference" />
1844        <!--  When opening an activity in a new task, this is the animation that is
1845              run on the activity of the old task (which is exiting the screen). -->
1846        <attr name="taskCloseExitAnimation" format="reference" />
1847        <!--  When bringing an existing task to the foreground, this is the
1848              animation that is run on the top activity of the task being brought
1849              to the foreground (which is entering the screen). -->
1850        <attr name="taskToFrontEnterAnimation" format="reference" />
1851        <!--  When bringing an existing task to the foreground, this is the
1852              animation that is run on the current foreground activity
1853              (which is exiting the screen). -->
1854        <attr name="taskToFrontExitAnimation" format="reference" />
1855        <!--  When sending the current task to the background, this is the
1856              animation that is run on the top activity of the task behind
1857              it (which is entering the screen). -->
1858        <attr name="taskToBackEnterAnimation" format="reference" />
1859        <!--  When sending the current task to the background, this is the
1860              animation that is run on the top activity of the current task
1861              (which is exiting the screen). -->
1862        <attr name="taskToBackExitAnimation" format="reference" />
1863
1864        <!--  When opening a new activity that shows the wallpaper, while
1865              currently not showing the wallpaper, this is the animation that
1866              is run on the new wallpaper activity (which is entering the screen). -->
1867        <attr name="wallpaperOpenEnterAnimation" format="reference" />
1868        <!--  When opening a new activity that shows the wallpaper, while
1869              currently not showing the wallpaper, this is the animation that
1870              is run on the current activity (which is exiting the screen). -->
1871        <attr name="wallpaperOpenExitAnimation" format="reference" />
1872        <!--  When opening a new activity that hides the wallpaper, while
1873              currently showing the wallpaper, this is the animation that
1874              is run on the new activity (which is entering the screen). -->
1875        <attr name="wallpaperCloseEnterAnimation" format="reference" />
1876        <!--  When opening a new activity that hides the wallpaper, while
1877              currently showing the wallpaper, this is the animation that
1878              is run on the old wallpaper activity (which is exiting the screen). -->
1879        <attr name="wallpaperCloseExitAnimation" format="reference" />
1880
1881        <!--  When opening a new activity that is on top of the wallpaper
1882              when the current activity is also on top of the wallpaper,
1883              this is the animation that is run on the new activity
1884              (which is entering the screen).  The wallpaper remains
1885              static behind the animation. -->
1886        <attr name="wallpaperIntraOpenEnterAnimation" format="reference" />
1887        <!--  When opening a new activity that is on top of the wallpaper
1888              when the current activity is also on top of the wallpaper,
1889              this is the animation that is run on the current activity
1890              (which is exiting the screen).  The wallpaper remains
1891              static behind the animation. -->
1892        <attr name="wallpaperIntraOpenExitAnimation" format="reference" />
1893        <!--  When closing a foreround activity that is on top of the wallpaper
1894              when the previous activity is also on top of the wallpaper,
1895              this is the animation that is run on the previous activity
1896              (which is entering the screen).  The wallpaper remains
1897              static behind the animation. -->
1898        <attr name="wallpaperIntraCloseEnterAnimation" format="reference" />
1899        <!--  When closing a foreround activity that is on top of the wallpaper
1900              when the previous activity is also on top of the wallpaper,
1901              this is the animation that is run on the current activity
1902              (which is exiting the screen).  The wallpaper remains
1903              static behind the animation. -->
1904        <attr name="wallpaperIntraCloseExitAnimation" format="reference" />
1905    </declare-styleable>
1906
1907    <!-- ============================= -->
1908    <!-- View package class attributes -->
1909    <!-- ============================= -->
1910    <eat-comment />
1911
1912    <!-- Attributes that can be used with {@link android.view.View} or
1913         any of its subclasses.  Also see {@link #ViewGroup_Layout} for
1914         attributes that are processed by the view's parent. -->
1915    <declare-styleable name="View">
1916        <!-- Supply an identifier name for this view, to later retrieve it
1917             with {@link android.view.View#findViewById View.findViewById()} or
1918             {@link android.app.Activity#findViewById Activity.findViewById()}.
1919             This must be a
1920             resource reference; typically you set this using the
1921             <code>@+</code> syntax to create a new ID resources.
1922             For example: <code>android:id="@+id/my_id"</code> which
1923             allows you to later retrieve the view
1924             with <code>findViewById(R.id.my_id)</code>. -->
1925        <attr name="id" format="reference" />
1926
1927        <!-- Supply a tag for this view containing a String, to be retrieved
1928             later with {@link android.view.View#getTag View.getTag()} or
1929             searched for with {@link android.view.View#findViewWithTag
1930             View.findViewWithTag()}.  It is generally preferable to use
1931             IDs (through the android:id attribute) instead of tags because
1932             they are faster and allow for compile-time type checking. -->
1933        <attr name="tag" format="string" />
1934
1935        <!-- The initial horizontal scroll offset, in pixels.-->
1936        <attr name="scrollX" format="dimension" />
1937
1938        <!-- The initial vertical scroll offset, in pixels. -->
1939        <attr name="scrollY" format="dimension" />
1940
1941        <!-- A drawable to use as the background.  This can be either a reference
1942             to a full drawable resource (such as a PNG image, 9-patch,
1943             XML state list description, etc), or a solid color such as "#ff000000"
1944            (black). -->
1945        <attr name="background" format="reference|color" />
1946
1947        <!-- Sets the padding, in pixels, of all four edges.  Padding is defined as
1948             space between the edges of the view and the view's content. A views size
1949             will include it's padding.  If a {@link android.R.attr#background}
1950             is provided, the padding will initially be set to that (0 if the
1951             drawable does not have padding).  Explicitly setting a padding value
1952             will override the corresponding padding found in the background. -->
1953        <attr name="padding" format="dimension" />
1954        <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. -->
1955        <attr name="paddingLeft" format="dimension" />
1956        <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. -->
1957        <attr name="paddingTop" format="dimension" />
1958        <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. -->
1959        <attr name="paddingRight" format="dimension" />
1960        <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. -->
1961        <attr name="paddingBottom" format="dimension" />
1962        <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
1963        <attr name="paddingStart" format="dimension" />
1964        <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
1965        <attr name="paddingEnd" format="dimension" />
1966
1967        <!-- Boolean that controls whether a view can take focus.  By default the user can not
1968             move focus to a view; by setting this attribute to true the view is
1969             allowed to take focus.  This value does not impact the behavior of
1970             directly calling {@link android.view.View#requestFocus}, which will
1971             always request focus regardless of this view.  It only impacts where
1972             focus navigation will try to move focus. -->
1973        <attr name="focusable" format="boolean" />
1974
1975        <!-- Boolean that controls whether a view can take focus while in touch mode.
1976             If this is true for a view, that view can gain focus when clicked on, and can keep
1977             focus if another view is clicked on that doesn't have this attribute set to true. -->
1978        <attr name="focusableInTouchMode" format="boolean" />
1979
1980        <!-- Controls the initial visibility of the view.  -->
1981        <attr name="visibility">
1982            <!-- Visible on screen; the default value. -->
1983            <enum name="visible" value="0" />
1984            <!-- Not displayed, but taken into account during layout (space is left for it). -->
1985            <enum name="invisible" value="1" />
1986            <!-- Completely hidden, as if the view had not been added. -->
1987            <enum name="gone" value="2" />
1988        </attr>
1989
1990        <!-- Boolean internal attribute to adjust view layout based on
1991             system windows such as the status bar.
1992             If true, adjusts the padding of this view to leave space for the system windows.
1993             Will only take effect if this view is in a non-embedded activity. -->
1994        <attr name="fitsSystemWindows" format="boolean" />
1995
1996        <!-- Defines which scrollbars should be displayed on scrolling or not. -->
1997        <attr name="scrollbars">
1998            <!-- No scrollbar is displayed. -->
1999            <flag name="none" value="0x00000000" />
2000            <!-- Displays horizontal scrollbar only. -->
2001            <flag name="horizontal" value="0x00000100" />
2002            <!-- Displays vertical scrollbar only. -->
2003            <flag name="vertical" value="0x00000200" />
2004        </attr>
2005
2006        <!-- Controls the scrollbar style and position. The scrollbars can be overlaid or
2007             inset. When inset, they add to the padding of the view. And the
2008             scrollbars can be drawn inside the padding area or on the edge of
2009             the view. For example, if a view has a background drawable and you
2010             want to draw the scrollbars inside the padding specified by the
2011             drawable, you can use insideOverlay or insideInset. If you want them
2012             to appear at the edge of the view, ignoring the padding, then you can
2013             use outsideOverlay or outsideInset.-->
2014        <attr name="scrollbarStyle">
2015            <!-- Inside the padding and overlaid -->
2016            <enum name="insideOverlay" value="0x0" />
2017            <!-- Inside the padding and inset -->
2018            <enum name="insideInset" value="0x01000000" />
2019            <!-- Edge of the view and overlaid -->
2020            <enum name="outsideOverlay" value="0x02000000" />
2021            <!-- Edge of the view and inset -->
2022            <enum name="outsideInset" value="0x03000000" />
2023        </attr>
2024
2025        <!-- Set this if the view will serve as a scrolling container, meaing
2026             that it can be resized to shrink its overall window so that there
2027             will be space for an input method.  If not set, the default
2028             value will be true if "scrollbars" has the vertical scrollbar
2029             set, else it will be false. -->
2030        <attr name="isScrollContainer" format="boolean" />
2031
2032          <!-- Defines whether to fade out scrollbars when they are not in use. -->
2033         <attr name="fadeScrollbars" format="boolean" />
2034         <!-- Defines the delay in milliseconds that a scrollbar takes to fade out. -->
2035         <attr name="scrollbarFadeDuration" format="integer" />
2036         <!-- Defines the delay in milliseconds that a scrollbar waits before fade out. -->
2037        <attr name="scrollbarDefaultDelayBeforeFade" format="integer" />
2038        <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. -->
2039        <attr name="scrollbarSize" format="dimension" />
2040        <!-- Defines the horizontal scrollbar thumb drawable. -->
2041        <attr name="scrollbarThumbHorizontal" format="reference" />
2042        <!-- Defines the vertical scrollbar thumb drawable. -->
2043        <attr name="scrollbarThumbVertical" format="reference" />
2044        <!-- Defines the horizontal scrollbar track drawable. -->
2045        <attr name="scrollbarTrackHorizontal" format="reference" />
2046        <!-- Defines the vertical scrollbar track drawable. -->
2047        <attr name="scrollbarTrackVertical" format="reference" />
2048        <!-- Defines whether the horizontal scrollbar track should always be drawn. -->
2049        <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" />
2050        <!-- Defines whether the vertical scrollbar track should always be drawn. -->
2051        <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" />
2052
2053        <!-- This attribute is deprecated and will be ignored as of
2054             API level 14 ({@link android.os.Build.VERSION_CODES#ICE_CREAM_SANDWICH}).
2055             Using fading edges may introduce noticeable performance
2056             degradations and should be used only when required by the application's
2057             visual design. To request fading edges with API level 14 and above,
2058             use the <code>android:requiresFadingEdge</code> attribute instead. -->
2059        <attr name="fadingEdge">
2060            <!-- No edge is faded. -->
2061            <flag name="none" value="0x00000000" />
2062            <!-- Fades horizontal edges only. -->
2063            <flag name="horizontal" value="0x00001000" />
2064            <!-- Fades vertical edges only. -->
2065            <flag name="vertical" value="0x00002000" />
2066        </attr>
2067        <!-- Defines which edges should be faded on scrolling. -->
2068        <attr name="requiresFadingEdge">
2069            <!-- No edge is faded. -->
2070            <flag name="none" value="0x00000000" />
2071            <!-- Fades horizontal edges only. -->
2072            <flag name="horizontal" value="0x00001000" />
2073            <!-- Fades vertical edges only. -->
2074            <flag name="vertical" value="0x00002000" />
2075        </attr>
2076        <!-- Defines the length of the fading edges. -->
2077        <attr name="fadingEdgeLength" format="dimension" />
2078
2079        <!-- Defines the next view to give focus to when the next focus is
2080             {@link android.view.View#FOCUS_LEFT}.
2081
2082             If the reference refers to a view that does not exist or is part
2083             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2084             will result when the reference is accessed.-->
2085        <attr name="nextFocusLeft" format="reference"/>
2086
2087        <!-- Defines the next view to give focus to when the next focus is
2088             {@link android.view.View#FOCUS_RIGHT}
2089
2090             If the reference refers to a view that does not exist or is part
2091             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2092             will result when the reference is accessed.-->
2093        <attr name="nextFocusRight" format="reference"/>
2094
2095        <!-- Defines the next view to give focus to when the next focus is
2096             {@link android.view.View#FOCUS_UP}
2097
2098             If the reference refers to a view that does not exist or is part
2099             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2100             will result when the reference is accessed.-->
2101        <attr name="nextFocusUp" format="reference"/>
2102
2103        <!-- Defines the next view to give focus to when the next focus is
2104             {@link android.view.View#FOCUS_DOWN}
2105
2106             If the reference refers to a view that does not exist or is part
2107             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2108             will result when the reference is accessed.-->
2109        <attr name="nextFocusDown" format="reference"/>
2110
2111        <!-- Defines the next view to give focus to when the next focus is
2112             {@link android.view.View#FOCUS_FORWARD}
2113
2114             If the reference refers to a view that does not exist or is part
2115             of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2116             will result when the reference is accessed.-->
2117        <attr name="nextFocusForward" format="reference"/>
2118
2119        <!-- Defines whether this view reacts to click events. -->
2120        <attr name="clickable" format="boolean" />
2121
2122        <!-- Defines whether this view reacts to long click events. -->
2123        <attr name="longClickable" format="boolean" />
2124
2125        <!-- If unset, no state will be saved for this view when it is being
2126             frozen. The default is true, allowing the view to be saved
2127             (however it also must have an ID assigned to it for its
2128             state to be saved).  Setting this to false only disables the
2129             state for this view, not for its children which may still
2130             be saved. -->
2131        <attr name="saveEnabled" format="boolean" />
2132
2133        <!-- Specifies whether to filter touches when the view's window is obscured by
2134             another visible window.  When set to true, the view will not receive touches
2135             whenever a toast, dialog or other window appears above the view's window.
2136             Refer to the {@link android.view.View} security documentation for more details. -->
2137        <attr name="filterTouchesWhenObscured" format="boolean" />
2138
2139        <!-- Defines the quality of translucent drawing caches. This property is used
2140             only when the drawing cache is enabled and translucent. The default value is auto. -->
2141        <attr name="drawingCacheQuality">
2142            <!-- Lets the framework decide what quality level should be used
2143                 for the drawing cache. -->
2144            <enum name="auto" value="0" />
2145            <!-- Low quality. When set to low quality, the drawing cache uses a lower color
2146                 depth, thus losing precision in rendering gradients, but uses less memory. -->
2147            <enum name="low" value="1" />
2148            <!-- High quality. When set to high quality, the drawing cache uses a higher
2149                 color depth but uses more memory. -->
2150            <enum name="high" value="2" />
2151        </attr>
2152
2153        <!-- Controls whether the view's window should keep the screen on
2154             while visible. -->
2155        <attr name="keepScreenOn" format="boolean" />
2156
2157        <!-- When this attribute is set to true, the view gets its drawable state
2158             (focused, pressed, etc.) from its direct parent rather than from itself. -->
2159        <attr name="duplicateParentState" format="boolean" />
2160
2161        <!-- Defines the minimum height of the view. It is not guaranteed
2162             the view will be able to achieve this minimum height (for example,
2163             if its parent layout constrains it with less available height). -->
2164        <attr name="minHeight" />
2165
2166        <!-- Defines the minimum width of the view. It is not guaranteed
2167             the view will be able to achieve this minimum width (for example,
2168             if its parent layout constrains it with less available width). -->
2169        <attr name="minWidth" />
2170
2171        <!-- Boolean that controls whether a view should have sound effects
2172             enabled for events such as clicking and touching. -->
2173        <attr name="soundEffectsEnabled" format="boolean" />
2174
2175        <!-- Boolean that controls whether a view should have haptic feedback
2176             enabled for events such as long presses. -->
2177        <attr name="hapticFeedbackEnabled" format="boolean" />
2178
2179        <!-- Defines text that briefly describes content of the view. This property is used
2180             primarily for accessibility. Since some views do not have textual
2181             representation this attribute can be used for providing such. -->
2182        <attr name="contentDescription" format="string" localization="suggested" />
2183
2184        <!-- Name of the method in this View's context to invoke when the view is
2185             clicked. This name must correspond to a public method that takes
2186             exactly one parameter of type View. For instance, if you specify
2187             <code>android:onClick="sayHello"</code>, you must declare a
2188             <code>public void sayHello(View v)</code> method of your context
2189             (typically, your Activity). -->
2190        <attr name="onClick" format="string" />
2191
2192        <!-- Defines over-scrolling behavior. This property is used only if the
2193             View is scrollable. Over-scrolling is the ability for the user to
2194             receive feedback when attempting to scroll beyond meaningful content. -->
2195        <attr name="overScrollMode">
2196            <!-- Always show over-scroll effects, even if the content fits entirely
2197                 within the available space. -->
2198            <enum name="always" value="0" />
2199            <!-- Only show over-scroll effects if the content is large
2200                 enough to meaningfully scroll. -->
2201            <enum name="ifContentScrolls" value="1" />
2202            <!-- Never show over-scroll effects. -->
2203            <enum name="never" value="2" />
2204        </attr>
2205
2206        <!-- alpha property of the view, as a value between 0 (completely transparent) and 1
2207             (completely opaque). -->
2208        <attr name="alpha" format="float" />
2209
2210        <!-- base z depth of the view -->
2211        <attr name="elevation" format="dimension" />
2212
2213        <!-- translation in x of the view. This value is added post-layout to the left
2214             property of the view, which is set by its layout. -->
2215        <attr name="translationX" format="dimension" />
2216
2217        <!-- translation in y of the view. This value is added post-layout to the top
2218             property of the view, which is set by its layout. -->
2219        <attr name="translationY" format="dimension" />
2220
2221        <!-- translation in z of the view. This value is added to its elevation. -->
2222        <attr name="translationZ" format="dimension" />
2223
2224        <!-- x location of the pivot point around which the view will rotate and scale.
2225             This xml attribute sets the pivotX property of the View. -->
2226        <attr name="transformPivotX" format="dimension" />
2227
2228        <!-- y location of the pivot point around which the view will rotate and scale.
2229             This xml attribute sets the pivotY property of the View. -->
2230        <attr name="transformPivotY" format="dimension" />
2231
2232        <!-- rotation of the view, in degrees. -->
2233        <attr name="rotation" format="float" />
2234
2235        <!-- rotation of the view around the x axis, in degrees. -->
2236        <attr name="rotationX" format="float" />
2237
2238        <!-- rotation of the view around the y axis, in degrees. -->
2239        <attr name="rotationY" format="float" />
2240
2241        <!-- scale of the view in the x direction. -->
2242        <attr name="scaleX" format="float" />
2243
2244        <!-- scale of the view in the y direction. -->
2245        <attr name="scaleY" format="float" />
2246
2247        <!-- Determines which side the vertical scroll bar should be placed on. -->
2248        <attr name="verticalScrollbarPosition">
2249            <!-- Place the scroll bar wherever the system default determines. -->
2250            <enum name="defaultPosition" value="0" />
2251            <!-- Place the scroll bar on the left. -->
2252            <enum name="left" value="1" />
2253            <!-- Place the scroll bar on the right. -->
2254            <enum name="right" value="2" />
2255        </attr>
2256
2257        <!-- Specifies the type of layer backing this view. The default value is none.
2258             Refer to {@link android.view.View#setLayerType(int, android.graphics.Paint)}
2259             for more information.-->
2260        <attr name="layerType">
2261            <!-- Don't use a layer. -->
2262            <enum name="none" value="0" />
2263            <!-- Use a software layer. Refer to
2264                 {@link android.view.View#setLayerType(int, android.graphics.Paint)} for
2265                 more information. -->
2266            <enum name="software" value="1" />
2267            <!-- Use a hardware layer. Refer to
2268                 {@link android.view.View#setLayerType(int, android.graphics.Paint)} for
2269                 more information. -->
2270            <enum name="hardware" value="2" />
2271        </attr>
2272
2273        <!-- Defines the direction of layout drawing. This typically is associated with writing
2274             direction of the language script used. The possible values are "ltr" for Left-to-Right,
2275             "rtl" for Right-to-Left, "locale" and "inherit" from parent view. If there is nothing
2276             to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction
2277             used in "en-US". The default for this attribute is "inherit". -->
2278        <attr name="layoutDirection">
2279            <!-- Left-to-Right -->
2280            <enum name="ltr" value="0" />
2281            <!-- Right-to-Left -->
2282            <enum name="rtl" value="1" />
2283            <!-- Inherit from parent -->
2284            <enum name="inherit" value="2" />
2285            <!-- Locale -->
2286            <enum name="locale" value="3" />
2287        </attr>
2288
2289        <!-- Defines the direction of the text. A heuristic is used to determine the resolved text
2290              direction of paragraphs. -->
2291         <attr name="textDirection" format="integer">
2292            <!-- Default -->
2293            <enum name="inherit" value="0" />
2294            <!-- Default for the root view. The first strong directional character determines the
2295                 paragraph direction.  If there is no strong directional character, the paragraph
2296                 direction is the view’s resolved layout direction. -->
2297            <enum name="firstStrong" value="1" />
2298            <!-- The paragraph direction is RTL if it contains any strong RTL character, otherwise
2299                 it is LTR if it contains any strong LTR characters.  If there are neither, the
2300                 paragraph direction is the view’s resolved layout direction. -->
2301            <enum name="anyRtl" value="2" />
2302            <!-- The paragraph direction is left to right. -->
2303            <enum name="ltr" value="3" />
2304            <!-- The paragraph direction is right to left. -->
2305            <enum name="rtl" value="4" />
2306            <!-- The paragraph direction is coming from the system Locale. -->
2307            <enum name="locale" value="5" />
2308        </attr>
2309
2310        <!-- Defines the alignment of the text. A heuristic is used to determine the resolved
2311            text alignment. -->
2312        <attr name="textAlignment" format="integer">
2313            <!-- Default -->
2314            <enum name="inherit" value="0" />
2315            <!-- Default for the root view. The gravity determines the alignment, ALIGN_NORMAL,
2316                ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s
2317                text direction -->
2318            <enum name="gravity" value="1" />
2319            <!-- Align to the start of the paragraph, e.g. ALIGN_NORMAL. -->
2320            <enum name="textStart" value="2" />
2321            <!-- Align to the end of the paragraph, e.g. ALIGN_OPPOSITE. -->
2322            <enum name="textEnd" value="3" />
2323            <!-- Center the paragraph, e.g. ALIGN_CENTER. -->
2324            <enum name="center" value="4" />
2325            <!-- Align to the start of the view, which is ALIGN_LEFT if the view’s resolved
2326                layoutDirection is LTR, and ALIGN_RIGHT otherwise. -->
2327            <enum name="viewStart" value="5" />
2328            <!-- Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved
2329                layoutDirection is LTR, and ALIGN_LEFT otherwise -->
2330            <enum name="viewEnd" value="6" />
2331        </attr>
2332
2333        <!-- Controls how this View is important for accessibility which is if it fires
2334             accessibility events and if it is reported to accessibility services that
2335             query the screen. Note: While not recommended, an accessibility service may
2336             decide to ignore this attribute and operate on all views in the view tree. -->
2337        <attr name="importantForAccessibility" format="integer">
2338            <!-- The system determines whether the view is important for accessibility - default
2339                 (recommended). -->
2340            <enum name="auto" value="0" />
2341            <!-- The view is important for accessibility. -->
2342            <enum name="yes" value="1" />
2343            <!-- The view is not important for accessibility. -->
2344            <enum name="no" value="2" />
2345            <!-- The view is not important for accessibility, nor are any of its descendant
2346                 views. -->
2347            <enum name="noHideDescendants" value="4" />
2348        </attr>
2349
2350        <!-- Indicates to accessibility services whether the user should be notified when
2351             this view changes. -->
2352        <attr name="accessibilityLiveRegion" format="integer">
2353            <!-- Accessibility services should not announce changes to this view. -->
2354            <enum name="none" value="0" />
2355            <!-- Accessibility services should announce changes to this view. -->
2356            <enum name="polite" value="1" />
2357            <!-- Accessibility services should interrupt ongoing speech to immediately
2358                 announce changes to this view. -->
2359            <enum name="assertive" value="2" />
2360        </attr>
2361
2362        <!-- Specifies the id of a view for which this view serves as a label for
2363             accessibility purposes. For example, a TextView before an EditText in
2364             the UI usually specifies what infomation is contained in the EditText.
2365             Hence, the TextView is a label for the EditText. -->
2366        <attr name="labelFor" format="integer" />
2367
2368        <!-- Specifies a theme override for a view. When a theme override is set, the
2369             view will be inflated using a {@link android.content.Context} themed with
2370             the specified resource. During XML inflation, any child views under the
2371             view with a theme override will inherit the themed context. -->
2372        <attr name="theme" />
2373
2374        <!-- Names a View such that it can be identified for Transitions. Names should be
2375             unique in the View hierarchy. -->
2376        <attr name="viewName" format="string" />
2377
2378        <!-- Specifies that this view should permit nested scrolling within a compatible
2379             ancestor view. -->
2380        <attr name="nestedScrollingEnabled" format="boolean" />
2381
2382        <!-- Sets the state-based animator for the View. -->
2383        <attr name="stateListAnimator" format="reference"/>
2384    </declare-styleable>
2385
2386    <!-- Attributes that can be assigned to a tag for a particular View. -->
2387    <declare-styleable name="ViewTag">
2388        <!-- Specifies the key identifying a tag. This must be a resource reference. -->
2389        <attr name="id" />
2390        <!-- Specifies the value with which to tag the view. -->
2391        <attr name="value" />
2392    </declare-styleable>
2393
2394    <!-- Attributes that can be used with a {@link android.view.ViewGroup} or any
2395         of its subclasses.  Also see {@link #ViewGroup_Layout} for
2396         attributes that this class processes in its children. -->
2397    <declare-styleable name="ViewGroup">
2398        <!-- Defines whether changes in layout (caused by adding and removing items) should
2399             cause a LayoutTransition to run. When this flag is set to true, a default
2400             LayoutTransition object will be set on the ViewGroup container and default
2401             animations will run when these layout changes occur.-->
2402        <attr name="animateLayoutChanges" format="boolean" />
2403        <!-- Defines whether a child is limited to draw inside of its bounds or not.
2404             This is useful with animations that scale the size of the children to more
2405             than 100% for instance. In such a case, this property should be set to false
2406             to allow the children to draw outside of their bounds. The default value of
2407             this property is true. -->
2408        <attr name="clipChildren" format="boolean" />
2409        <!-- Defines whether the ViewGroup will clip its drawing surface so as to exclude
2410             the padding area. This property is set to true by default. -->
2411        <attr name="clipToPadding" format="boolean" />
2412        <!-- Defines the layout animation to use the first time the ViewGroup is laid out.
2413             Layout animations can also be started manually after the first layout. -->
2414        <attr name="layoutAnimation" format="reference" />
2415        <!-- Defines whether layout animations should create a drawing cache for their
2416             children. Enabling the animation cache consumes more memory and requires
2417             a longer initialization but provides better performance. The animation
2418             cache is enabled by default. -->
2419        <attr name="animationCache" format="boolean" />
2420        <!-- Defines the persistence of the drawing cache. The drawing cache might be
2421             enabled by a ViewGroup for all its children in specific situations (for
2422             instance during a scrolling.) This property lets you persist the cache
2423             in memory after its initial usage. Persisting the cache consumes more
2424             memory but may prevent frequent garbage collection is the cache is created
2425             over and over again. By default the persistence is set to scrolling. -->
2426        <attr name="persistentDrawingCache">
2427            <!-- The drawing cache is not persisted after use. -->
2428            <flag name="none" value="0x0" />
2429            <!-- The drawing cache is persisted after a layout animation. -->
2430            <flag name="animation" value="0x1" />
2431            <!-- The drawing cache is persisted after a scroll. -->
2432            <flag name="scrolling" value="0x2" />
2433            <!-- The drawing cache is always persisted. -->
2434            <flag name="all" value="0x3" />
2435        </attr>
2436        <!-- Defines whether the ViewGroup should always draw its children using their
2437             drawing cache or not. The default value is true. -->
2438        <attr name="alwaysDrawnWithCache" format="boolean" />
2439        <!-- Sets whether this ViewGroup's drawable states also include
2440             its children's drawable states.  This is used, for example, to
2441             make a group appear to be focused when its child EditText or button
2442             is focused. -->
2443        <attr name="addStatesFromChildren" format="boolean" />
2444
2445        <!-- Defines the relationship between the ViewGroup and its descendants
2446             when looking for a View to take focus. -->
2447        <attr name="descendantFocusability">
2448            <!-- The ViewGroup will get focus before any of its descendants. -->
2449            <enum name="beforeDescendants" value="0" />
2450            <!-- The ViewGroup will get focus only if none of its descendants want it. -->
2451            <enum name="afterDescendants" value="1" />
2452            <!-- The ViewGroup will block its descendants from receiving focus. -->
2453            <enum name="blocksDescendants" value="2" />
2454        </attr>
2455
2456        <!-- Sets whether this ViewGroup should split MotionEvents
2457             to separate child views during touch event dispatch.
2458             If false (default), touch events will be dispatched to
2459             the child view where the first pointer went down until
2460             the last pointer goes up.
2461             If true, touch events may be dispatched to multiple children.
2462             MotionEvents for each pointer will be dispatched to the child
2463             view where the initial ACTION_DOWN event happened.
2464             See {@link android.view.ViewGroup#setMotionEventSplittingEnabled(boolean)}
2465             for more information. -->
2466        <attr name="splitMotionEvents" format="boolean" />
2467
2468        <!-- Defines the layout mode of this ViewGroup. -->
2469        <attr name="layoutMode">
2470            <!-- Use the children's clip bounds when laying out this container. -->
2471            <enum name="clipBounds" value="0" />
2472            <!-- Use the children's optical bounds when laying out this container. -->
2473            <enum name="opticalBounds" value="1" />
2474        </attr>
2475
2476        <!-- Sets whether or not this ViewGroup should be treated as a single entity
2477             when doing an Activity transition. Typically, the elements inside a
2478             ViewGroup are each transitioned from the scene individually. The default
2479             for a ViewGroup is false unless it has a background. See
2480             {@link android.app.ActivityOptions#makeSceneTransitionAnimation(android.view.Window,
2481             android.view.View, String)} for more information. Corresponds to
2482             {@link android.view.ViewGroup#setTransitionGroup(boolean)}.-->
2483        <attr name="transitionGroup" format="boolean" />
2484    </declare-styleable>
2485
2486    <!-- A {@link android.view.ViewStub} lets you lazily include other XML layouts
2487         inside your application at runtime. -->
2488    <declare-styleable name="ViewStub">
2489        <!-- Supply an identifier for the layout resource to inflate when the ViewStub
2490             becomes visible or when forced to do so. The layout resource must be a
2491             valid reference to a layout. -->
2492        <attr name="layout" format="reference" />
2493        <!-- Overrides the id of the inflated View with this value. -->
2494        <attr name="inflatedId" format="reference" />
2495    </declare-styleable>
2496
2497    <!-- ===================================== -->
2498    <!-- View package parent layout attributes -->
2499    <!-- ===================================== -->
2500    <eat-comment />
2501
2502    <!-- This is the basic set of layout attributes that are common to all
2503         layout managers.  These attributes are specified with the rest of
2504         a view's normal attributes (such as {@link android.R.attr#background},
2505         but will be parsed by the view's parent and ignored by the child.
2506        <p>The values defined here correspond to the base layout attribute
2507        class {@link android.view.ViewGroup.LayoutParams}. -->
2508    <declare-styleable name="ViewGroup_Layout">
2509        <!-- Specifies the basic width of the view.  This is a required attribute
2510             for any view inside of a containing layout manager.  Its value may
2511             be a dimension (such as "12dip") for a constant width or one of
2512             the special constants. -->
2513        <attr name="layout_width" format="dimension">
2514            <!-- The view should be as big as its parent (minus padding).
2515                 This constant is deprecated starting from API Level 8 and
2516                 is replaced by {@code match_parent}. -->
2517            <enum name="fill_parent" value="-1" />
2518            <!-- The view should be as big as its parent (minus padding).
2519                 Introduced in API Level 8. -->
2520            <enum name="match_parent" value="-1" />
2521            <!-- The view should be only big enough to enclose its content (plus padding). -->
2522            <enum name="wrap_content" value="-2" />
2523        </attr>
2524
2525        <!-- Specifies the basic height of the view.  This is a required attribute
2526             for any view inside of a containing layout manager.  Its value may
2527             be a dimension (such as "12dip") for a constant height or one of
2528             the special constants. -->
2529        <attr name="layout_height" format="dimension">
2530            <!-- The view should be as big as its parent (minus padding).
2531                 This constant is deprecated starting from API Level 8 and
2532                 is replaced by {@code match_parent}. -->
2533            <enum name="fill_parent" value="-1" />
2534            <!-- The view should be as big as its parent (minus padding).
2535                 Introduced in API Level 8. -->
2536            <enum name="match_parent" value="-1" />
2537            <!-- The view should be only big enough to enclose its content (plus padding). -->
2538            <enum name="wrap_content" value="-2" />
2539        </attr>
2540    </declare-styleable>
2541
2542    <!-- This is the basic set of layout attributes for layout managers that
2543         wish to place margins around their child views.
2544         These attributes are specified with the rest of
2545         a view's normal attributes (such as {@link android.R.attr#background},
2546         but will be parsed by the view's parent and ignored by the child.
2547        <p>The values defined here correspond to the base layout attribute
2548        class {@link android.view.ViewGroup.MarginLayoutParams}. -->
2549    <declare-styleable name="ViewGroup_MarginLayout">
2550        <attr name="layout_width" />
2551        <attr name="layout_height" />
2552        <!--  Specifies extra space on the left, top, right and bottom
2553              sides of this view. This space is outside this view's bounds. -->
2554        <attr name="layout_margin" format="dimension"  />
2555        <!--  Specifies extra space on the left side of this view.
2556              This space is outside this view's bounds. -->
2557        <attr name="layout_marginLeft" format="dimension"  />
2558        <!--  Specifies extra space on the top side of this view.
2559              This space is outside this view's bounds. -->
2560        <attr name="layout_marginTop" format="dimension" />
2561        <!--  Specifies extra space on the right side of this view.
2562              This space is outside this view's bounds. -->
2563        <attr name="layout_marginRight" format="dimension"  />
2564        <!--  Specifies extra space on the bottom side of this view.
2565              This space is outside this view's bounds. -->
2566        <attr name="layout_marginBottom" format="dimension"  />
2567        <!--  Specifies extra space on the start side of this view.
2568              This space is outside this view's bounds. -->
2569        <attr name="layout_marginStart" format="dimension"  />
2570        <!--  Specifies extra space on the end side of this view.
2571              This space is outside this view's bounds. -->
2572        <attr name="layout_marginEnd" format="dimension"  />
2573    </declare-styleable>
2574
2575    <!-- Use <code>input-method</code> as the root tag of the XML resource that
2576         describes an
2577         {@link android.view.inputmethod.InputMethod} service, which is
2578         referenced from its
2579         {@link android.view.inputmethod.InputMethod#SERVICE_META_DATA}
2580         meta-data entry.  Described here are the attributes that can be
2581         included in that tag. -->
2582    <declare-styleable name="InputMethod">
2583        <!-- Component name of an activity that allows the user to modify
2584             the settings for this service. -->
2585        <attr name="settingsActivity" format="string" />
2586        <!-- Set to true in all of the configurations for which this input
2587             method should be considered an option as the default. -->
2588        <attr name="isDefault" format="boolean" />
2589        <!-- Set to true if this input method supports ways to switch to
2590             a next input method (e.g. a globe key.). When this is true and
2591             InputMethodManager#shouldOfferSwitchingToNextInputMethod() returns true,
2592             the IME has to offer ways to invoke InputMethodManager#switchToNextInputMethod()
2593             accordingly.
2594             <p> Note that the system determines the most appropriate next input method
2595             and subtype in order to provide the consistent user experience in switching
2596             between IMEs and subtypes. -->
2597        <attr name="supportsSwitchingToNextInputMethod" format="boolean" />
2598    </declare-styleable>
2599
2600    <!-- This is the subtype of InputMethod. Subtype can describe locales (e.g. en_US, fr_FR...)
2601         and modes (e.g. voice, keyboard...), and is used for IME switch. This subtype allows
2602         the system to call the specified subtype of the IME directly. -->
2603    <declare-styleable name="InputMethod_Subtype">
2604        <!-- The name of the subtype. -->
2605        <attr name="label" />
2606        <!-- The icon of the subtype. -->
2607        <attr name="icon" />
2608        <!-- The locale of the subtype. This string should be a locale (e.g. en_US, fr_FR...)
2609             and will be passed to the IME when the framework calls the IME
2610             with the subtype. This is also used by the framework to know the supported locales
2611             of the IME.  -->
2612        <attr name="imeSubtypeLocale" format="string" />
2613        <!-- The mode of the subtype. This string can be a mode (e.g. voice, keyboard...) and this
2614             string will be passed to the IME when the framework calls the IME with the
2615             subtype.  -->
2616        <attr name="imeSubtypeMode" format="string" />
2617        <!-- Set true if the subtype is auxiliary.  An auxiliary subtype won't be shown in the
2618             input method selection list in the settings app.
2619             InputMethodManager#switchToLastInputMethod will ignore auxiliary subtypes when it
2620             chooses a target subtype. -->
2621        <attr name="isAuxiliary" format="boolean" />
2622        <!-- Set true when this subtype should be selected by default if no other subtypes are
2623             selected explicitly. Note that a subtype with this parameter being true will
2624             not be shown in the subtypes list. -->
2625        <attr name="overridesImplicitlyEnabledSubtype" format="boolean" />
2626        <!-- The extra value of the subtype. This string can be any string and will be passed to
2627             the IME when the framework calls the IME with the subtype.  -->
2628        <attr name="imeSubtypeExtraValue" format="string" />
2629        <!-- The unique id for the subtype. The input method framework keeps track of enabled
2630             subtypes by ID. When the IME package gets upgraded, enabled IDs will stay enabled even
2631             if other attributes are different. If the ID is unspecified (by calling the other
2632             constructor or 0. Arrays.hashCode(new Object[] {locale, mode, extraValue,
2633             isAuxiliary, overridesImplicitlyEnabledSubtype}) will be used instead. -->
2634        <attr name="subtypeId" format="integer"/>
2635        <!-- Set to true if this subtype is ASCII capable. If the subtype is ASCII
2636             capable, it should guarantee that the user can input ASCII characters with
2637             this subtype. This is important because many password fields only allow
2638             ASCII-characters. -->
2639        <attr name="isAsciiCapable" format="boolean" />
2640    </declare-styleable>
2641
2642    <!-- Use <code>spell-checker</code> as the root tag of the XML resource that
2643         describes an
2644         {@link android.service.textservice.SpellCheckerService} service, which is
2645         referenced from its
2646         {@link android.view.textservice.SpellCheckerSession#SERVICE_META_DATA}
2647         meta-data entry.  Described here are the attributes that can be
2648         included in that tag. -->
2649    <declare-styleable name="SpellChecker">
2650        <!-- The name of the spell checker. -->
2651        <attr name="label" />
2652        <!-- Component name of an activity that allows the user to modify
2653             the settings for this service. -->
2654        <attr name="settingsActivity"/>
2655    </declare-styleable>
2656
2657    <!-- This is the subtype of the spell checker. Subtype can describe locales (e.g. en_US, fr_FR...) -->
2658    <declare-styleable name="SpellChecker_Subtype">
2659        <!-- The name of the subtype. -->
2660        <attr name="label" />
2661        <!-- The locale of the subtype. This string should be a locale (e.g. en_US, fr_FR...)
2662             This is also used by the framework to know the supported locales
2663             of the spell checker.  -->
2664        <attr name="subtypeLocale" format="string" />
2665        <!-- The extra value of the subtype. This string can be any string and will be passed to
2666             the SpellChecker.  -->
2667        <attr name="subtypeExtraValue" format="string" />
2668    </declare-styleable>
2669
2670    <!-- Use <code>accessibility-service</code> as the root tag of the XML resource that
2671         describes an {@link android.accessibilityservice.AccessibilityService} service,
2672         which is referenced from its
2673         {@link android.accessibilityservice.AccessibilityService#SERVICE_META_DATA}
2674         meta-data entry. -->
2675    <declare-styleable name="AccessibilityService">
2676        <!-- The event types this serivce would like to receive as specified in
2677             {@link android.view.accessibility.AccessibilityEvent}. This setting
2678             can be changed at runtime by calling
2679             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2680             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2681        <attr name="accessibilityEventTypes">
2682            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_CLICKED} events.-->
2683            <flag name="typeViewClicked" value="0x00000001" />
2684            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_LONG_CLICKED} events. -->
2685            <flag name="typeViewLongClicked" value="0x00000002" />
2686            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_SELECTED} events. -->
2687            <flag name="typeViewSelected" value="0x00000004" />
2688            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_FOCUSED} events. -->
2689            <flag name="typeViewFocused" value="0x00000008" />
2690            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED} events. -->
2691            <flag name="typeViewTextChanged" value="0x00000010" />
2692            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED} events. -->
2693            <flag name="typeWindowStateChanged" value="0x00000020" />
2694            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED} events. -->
2695            <flag name="typeNotificationStateChanged" value="0x00000040" />
2696            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_HOVER_ENTER} events. -->
2697            <flag name="typeViewHoverEnter" value="0x00000080" />
2698            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_HOVER_EXIT} events. -->
2699            <flag name="typeViewHoverExit" value="0x00000100" />
2700            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START} events. -->
2701            <flag name="typeTouchExplorationGestureStart" value="0x00000200" />
2702            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END} events. -->
2703            <flag name="typeTouchExplorationGestureEnd" value="0x00000400" />
2704            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED} events. -->
2705            <flag name="typeWindowContentChanged" value="0x00000800" />
2706            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_SCROLLED} events. -->
2707            <flag name="typeViewScrolled" value="0x000001000" />
2708            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED} events. -->
2709            <flag name="typeViewTextSelectionChanged" value="0x000002000" />
2710            <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPES_ALL_MASK} i.e. all events. -->
2711            <flag name="typeAllMask" value="0xffffffff" />
2712        </attr>
2713        <!-- Comma separated package names from which this serivce would like to receive events (leave out for all packages).
2714             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2715             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2716        <attr name="packageNames" format="string" />
2717        <!-- The feedback types this serivce provides as specified in
2718             {@link android.accessibilityservice.AccessibilityServiceInfo}. This setting
2719             can be changed at runtime by calling
2720             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2721             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2722        <attr name="accessibilityFeedbackType">
2723            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_SPOKEN} feedback. -->
2724            <flag name="feedbackSpoken" value="0x00000001" />
2725            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_HAPTIC} feedback. -->
2726            <flag name="feedbackHaptic" value="0x00000002" />
2727            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_AUDIBLE} feedback. -->
2728            <flag name="feedbackAudible" value="0x00000004" />
2729            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_VISUAL} feedback. -->
2730            <flag name="feedbackVisual" value="0x00000008" />
2731            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_GENERIC} feedback. -->
2732            <flag name="feedbackGeneric" value="0x00000010" />
2733            <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_ALL_MASK} feedback. -->
2734            <flag name="feedbackAllMask" value="0xffffffff" />
2735        </attr>
2736        <!-- The minimal period in milliseconds between two accessibility events of the same type
2737             are sent to this serivce. This setting can be changed at runtime by calling
2738             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2739             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2740        <attr name="notificationTimeout" format="integer" />
2741        <!-- Additional flags as specified in
2742             {@link android.accessibilityservice.AccessibilityServiceInfo}.
2743             This setting can be changed at runtime by calling
2744             {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
2745             android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
2746        <attr name="accessibilityFlags">
2747            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#DEFAULT} -->
2748            <flag name="flagDefault" value="0x00000001" />
2749            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_INCLUDE_NOT_IMPORTANT_VIEWS} -->
2750            <flag name="flagIncludeNotImportantViews" value="0x00000002" />
2751            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE} -->
2752            <flag name="flagRequestTouchExplorationMode" value="0x00000004" />
2753            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY} -->
2754            <flag name="flagRequestEnhancedWebAccessibility" value="0x00000008" />
2755            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REPORT_VIEW_IDS} -->
2756            <flag name="flagReportViewIds" value="0x00000010" />
2757            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS} -->
2758            <flag name="flagRequestFilterKeyEvents" value="0x00000020" />
2759            <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_RETRIEVE_INTERACTIVE_WINDOWS} -->
2760            <flag name="flagRetrieveInteractiveWindows" value="0x00000040" />
2761        </attr>
2762        <!-- Component name of an activity that allows the user to modify
2763             the settings for this service. This setting cannot be changed at runtime. -->
2764        <attr name="settingsActivity" />
2765        <!-- Attribute whether the accessibility service wants to be able to retrieve the
2766             active window content. This setting cannot be changed at runtime. -->
2767        <attr name="canRetrieveWindowContent" format="boolean" />
2768        <!-- Attribute whether the accessibility service wants to be able to request touch
2769             exploration mode in which touched items are spoken aloud and the UI can be
2770             explored via gestures.
2771             <p>
2772             Required to allow setting the {@link android.accessibilityservice
2773             #AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE} flag.
2774             </p>
2775         -->
2776        <attr name="canRequestTouchExplorationMode" format="boolean" />
2777        <!-- Attribute whether the accessibility service wants to be able to request enhanced
2778             web accessibility enhancements. For example, installing scripts to make app
2779             content more accessible.
2780             <p>
2781             Required to allow setting the {@link android.accessibilityservice
2782             #AccessibilityServiceInfo#FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY} flag.
2783             </p>
2784         -->
2785        <attr name="canRequestEnhancedWebAccessibility" format="boolean" />
2786        <!-- Attribute whether the accessibility service wants to be able to request to
2787             filter key events.
2788             <p>
2789             Required to allow setting the {@link android.accessibilityservice
2790             #AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS} flag.
2791             </p>
2792         -->
2793        <attr name="canRequestFilterKeyEvents" format="boolean" />
2794        <!-- Short description of the accessibility serivce purpose or behavior.-->
2795        <attr name="description" />
2796    </declare-styleable>
2797
2798    <!-- Use <code>print-service</code> as the root tag of the XML resource that
2799         describes an {@link android.printservice.PrintService} service, which is
2800         referenced from its {@link android.printservice.PrintService#SERVICE_META_DATA}
2801         meta-data entry. -->
2802    <declare-styleable name="PrintService">
2803        <!-- Fully qualified class name of an activity that allows the user to modify
2804             the settings for this service. -->
2805        <attr name="settingsActivity" />
2806        <!-- Fully qualified class name of an activity that allows the user to manually
2807             add printers to this print service. -->
2808        <attr name="addPrintersActivity" format="string"/>
2809        <!-- Fully qualified class name of an activity with advanced print options
2810             specific to this print service. -->
2811        <attr name="advancedPrintOptionsActivity" format="string"/>
2812        <!-- The vendor name if this print service is vendor specific. -->
2813        <attr name="vendor" format="string"/>
2814    </declare-styleable>
2815
2816    <!-- Use <code>host-apdu-service</code> as the root tag of the XML resource that
2817         describes an {@link android.nfc.cardemulation.HostApduService} service, which
2818         is referenced from its {@link android.nfc.cardemulation.HostApduService#SERVICE_META_DATA}
2819         entry. -->
2820    <declare-styleable name="HostApduService">
2821        <!-- Short description of the functionality the service implements. This attribute
2822             is mandatory.-->
2823        <attr name="description" />
2824        <!-- Whether the device must be unlocked before routing data to this service.
2825             The default is false.-->
2826        <attr name="requireDeviceUnlock" format="boolean"/>
2827        <!-- A drawable that can be rendered in Android's system UI for representing
2828             the service. -->
2829        <attr name="apduServiceBanner" format="reference"/>
2830    </declare-styleable>
2831
2832    <!-- Use <code>offhost-apdu-service</code> as the root tag of the XML resource that
2833         describes an {@link android.nfc.cardemulation.OffHostApduService}
2834         service, which is referenced from its
2835         {@link android.nfc.cardemulation.OffHostApduService#SERVICE_META_DATA} entry. -->
2836    <declare-styleable name="OffHostApduService">
2837        <!-- Short description of the functionality the service implements. This attribute
2838             is mandatory.-->
2839        <attr name="description" />
2840        <!-- A drawable that can be rendered in Android's system UI for representing
2841             the service. -->
2842        <attr name="apduServiceBanner"/>
2843    </declare-styleable>
2844
2845    <!-- Specify one or more <code>aid-group</code> elements inside a
2846         <code>host-apdu-service</code> or <code>offhost-apdu-service</code>
2847         element to define a group of ISO7816 Application ID (AIDs) that
2848         your service can handle.-->
2849    <declare-styleable name="AidGroup">
2850        <!-- Short description of what the AID group implements. This attribute is mandatory.-->
2851        <attr name="description" />
2852        <!-- The category attribute will be used by the Android platform to present
2853             multiple applications that register ISO 7816 Application IDs (AIDs) in the
2854             same category uniformly.
2855             Additionally, when a category is specified, Android will ensure that either
2856             all AIDs in this group are routed to this application, or none at all.
2857             This attribute is optional.-->
2858        <attr name="category" format="string" />
2859    </declare-styleable>
2860
2861    <!-- Specify one or more <code>aid-filter</code> elements inside a
2862         <code>aid-group</code> element to specify an ISO7816 Application ID (AID)
2863         your service can handle. -->
2864    <declare-styleable name="AidFilter">
2865        <!-- The ISO7816 Application ID. This attribute is mandatory. -->
2866        <attr name="name" />
2867    </declare-styleable>
2868
2869    <declare-styleable name="ActionMenuItemView">
2870        <attr name="minWidth" />
2871    </declare-styleable>
2872
2873    <!-- =============================== -->
2874    <!-- Widget package class attributes -->
2875    <!-- =============================== -->
2876    <eat-comment />
2877
2878    <declare-styleable name="AbsListView">
2879         <!-- Drawable used to indicate the currently selected item in the list. -->
2880        <attr name="listSelector" format="color|reference" />
2881        <!-- When set to true, the selector will be drawn over the selected item.
2882             Otherwise the selector is drawn behind the selected item. The default
2883             value is false. -->
2884        <attr name="drawSelectorOnTop" format="boolean" />
2885        <!-- Used by ListView and GridView to stack their content from the bottom. -->
2886        <attr name="stackFromBottom" format="boolean" />
2887        <!-- When set to true, the list uses a drawing cache during scrolling.
2888             This makes the rendering faster but uses more memory. The default
2889             value is true. -->
2890        <attr name="scrollingCache" format="boolean" />
2891        <!-- When set to true, the list will filter results as the user types. The
2892             List's adapter must support the Filterable interface for this to work. -->
2893        <attr name="textFilterEnabled" format="boolean" />
2894        <!-- Sets the transcript mode for the list. In transcript mode, the list
2895             scrolls to the bottom to make new items visible when they are added. -->
2896        <attr name="transcriptMode">
2897            <!-- Disables transcript mode. This is the default value. -->
2898            <enum name="disabled" value="0"/>
2899            <!-- The list will automatically scroll to the bottom when
2900                 a data set change notification is received and only if the last item is
2901                 already visible on screen. -->
2902            <enum name="normal" value="1" />
2903            <!-- The list will automatically scroll to the bottom, no matter what items
2904                 are currently visible. -->
2905            <enum name="alwaysScroll" value="2" />
2906        </attr>
2907        <!-- Indicates that this list will always be drawn on top of solid, single-color
2908             opaque background. This allows the list to optimize drawing. -->
2909        <attr name="cacheColorHint" format="color" />
2910        <!-- Enables the fast scroll thumb that can be dragged to quickly scroll through
2911             the list. -->
2912        <attr name="fastScrollEnabled" format="boolean" />
2913        <!-- Specifies the style of the fast scroll decorations. -->
2914        <attr name="fastScrollStyle" format="reference" />
2915        <!-- When set to true, the list will use a more refined calculation
2916             method based on the pixels height of the items visible on screen. This
2917             property is set to true by default but should be set to false if your adapter
2918             will display items of varying heights. When this property is set to true and
2919             your adapter displays items of varying heights, the scrollbar thumb will
2920             change size as the user scrolls through the list. When set to fale, the list
2921             will use only the number of items in the adapter and the number of items visible
2922             on screen to determine the scrollbar's properties. -->
2923        <attr name="smoothScrollbar" format="boolean" />
2924        <!-- Defines the choice behavior for the view. By default, lists do not have
2925             any choice behavior. By setting the choiceMode to singleChoice, the list
2926             allows up to one item to be in a chosen state. By setting the choiceMode to
2927             multipleChoice, the list allows any number of items to be chosen.
2928             Finally, by setting the choiceMode to multipleChoiceModal the list allows
2929             any number of items to be chosen in a special selection mode.
2930             The application will supply a
2931             {@link android.widget.AbsListView.MultiChoiceModeListener} using
2932             {@link android.widget.AbsListView#setMultiChoiceModeListener} to control the
2933             selection mode. This uses the {@link android.view.ActionMode} API. -->
2934        <attr name="choiceMode">
2935            <!-- Normal list that does not indicate choices. -->
2936            <enum name="none" value="0" />
2937            <!-- The list allows up to one choice. -->
2938            <enum name="singleChoice" value="1" />
2939            <!-- The list allows multiple choices. -->
2940            <enum name="multipleChoice" value="2" />
2941            <!-- The list allows multiple choices in a custom selection mode. -->
2942            <enum name="multipleChoiceModal" value="3" />
2943        </attr>
2944
2945        <!-- When set to true, the list will always show the fast scroll interface.
2946             This setting implies fastScrollEnabled. -->
2947        <attr name="fastScrollAlwaysVisible" format="boolean" />
2948    </declare-styleable>
2949    <declare-styleable name="AbsSpinner">
2950        <!-- Reference to an array resource that will populate the Spinner.  For static content,
2951             this is simpler than populating the Spinner programmatically. -->
2952        <attr name="entries" />
2953    </declare-styleable>
2954    <declare-styleable name="AnalogClock">
2955        <attr name="dial" format="reference"/>
2956        <attr name="hand_hour" format="reference"/>
2957        <attr name="hand_minute" format="reference"/>
2958    </declare-styleable>
2959    <declare-styleable name="Button">
2960    </declare-styleable>
2961    <declare-styleable name="Chronometer">
2962        <!-- Format string: if specified, the Chronometer will display this
2963             string, with the first "%s" replaced by the current timer value
2964             in "MM:SS" or "H:MM:SS" form.
2965             If no format string is specified, the Chronometer will simply display
2966             "MM:SS" or "H:MM:SS". -->
2967        <attr name="format" format="string" localization="suggested" />
2968    </declare-styleable>
2969    <declare-styleable name="CompoundButton">
2970        <!-- Indicates the initial checked state of this button. -->
2971        <attr name="checked" format="boolean" />
2972        <!-- Drawable used for the button graphic (e.g. checkbox, radio button, etc). -->
2973        <attr name="button" format="reference"/>
2974    </declare-styleable>
2975    <declare-styleable name="CheckedTextView">
2976        <!-- Indicates the initial checked state of this text. -->
2977        <attr name="checked" />
2978        <!-- Drawable used for the check mark graphic. -->
2979        <attr name="checkMark" format="reference"/>
2980    </declare-styleable>
2981    <declare-styleable name="EditText">
2982    </declare-styleable>
2983    <declare-styleable name="FastScroll">
2984        <!-- Drawable used for the scroll bar thumb. -->
2985        <attr name="thumbDrawable" format="reference" />
2986        <!-- Minimum width of the thumb. -->
2987        <attr name="thumbMinWidth" format="dimension" />
2988        <!-- Minimum height of the thumb. -->
2989        <attr name="thumbMinHeight" format="dimension" />
2990        <!-- Drawable used for the scroll bar track. -->
2991        <attr name="trackDrawable" format="reference" />
2992        <!-- Drawable used for the section header preview when right-aligned. -->
2993        <attr name="backgroundRight" format="reference" />
2994        <!-- Drawable used for the section header preview when left-aligned. -->
2995        <attr name="backgroundLeft" format="reference" />
2996        <!-- Position of section header preview. -->
2997        <attr name="position">
2998            <!-- Floating at the top of the content. -->
2999            <enum name="floating" value="0" />
3000            <!-- Pinned alongside the thumb. -->
3001            <enum name="atThumb" value="1" />
3002        </attr>
3003        <attr name="textAppearance" />
3004        <attr name="textColor" />
3005        <attr name="textSize" />
3006        <!-- Minimum width of the section header preview. -->
3007        <attr name="minWidth" />
3008        <!-- Minimum height of the section header preview. -->
3009        <attr name="minHeight" />
3010        <!-- Padding for the section header preview. -->
3011        <attr name="padding" />
3012    </declare-styleable>
3013    <declare-styleable name="FrameLayout">
3014        <!-- Defines the drawable to draw over the content. This can be used as an overlay.
3015             The foreground drawable participates in the padding of the content if the gravity
3016             is set to fill. -->
3017        <attr name="foreground" format="reference|color" />
3018        <!-- Defines the gravity to apply to the foreground drawable. The gravity defaults
3019             to fill. -->
3020        <attr name="foregroundGravity">
3021            <!-- Push object to the top of its container, not changing its size. -->
3022            <flag name="top" value="0x30" />
3023            <!-- Push object to the bottom of its container, not changing its size. -->
3024            <flag name="bottom" value="0x50" />
3025            <!-- Push object to the left of its container, not changing its size. -->
3026            <flag name="left" value="0x03" />
3027            <!-- Push object to the right of its container, not changing its size. -->
3028            <flag name="right" value="0x05" />
3029            <!-- Place object in the vertical center of its container, not changing its size. -->
3030            <flag name="center_vertical" value="0x10" />
3031            <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
3032            <flag name="fill_vertical" value="0x70" />
3033            <!-- Place object in the horizontal center of its container, not changing its size. -->
3034            <flag name="center_horizontal" value="0x01" />
3035            <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
3036            <flag name="fill_horizontal" value="0x07" />
3037            <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
3038            <flag name="center" value="0x11" />
3039            <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
3040            <flag name="fill" value="0x77" />
3041            <!-- Additional option that can be set to have the top and/or bottom edges of
3042                 the child clipped to its container's bounds.
3043                 The clip will be based on the vertical gravity: a top gravity will clip the bottom
3044                 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
3045            <flag name="clip_vertical" value="0x80" />
3046            <!-- Additional option that can be set to have the left and/or right edges of
3047                 the child clipped to its container's bounds.
3048                 The clip will be based on the horizontal gravity: a left gravity will clip the right
3049                 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
3050            <flag name="clip_horizontal" value="0x08" />
3051        </attr>
3052        <!-- Defines whether the foreground drawable should be drawn inside the padding.
3053             This property is turned on by default. -->
3054        <attr name="foregroundInsidePadding" format="boolean" />
3055        <!-- Determines whether to measure all children or just those in
3056             the VISIBLE or INVISIBLE state when measuring. Defaults to false. -->
3057        <attr name="measureAllChildren" format="boolean" />
3058    </declare-styleable>
3059    <declare-styleable name="ExpandableListView">
3060        <!-- Indicator shown beside the group View. This can be a stateful Drawable. -->
3061        <attr name="groupIndicator" format="reference" />
3062        <!-- Indicator shown beside the child View. This can be a stateful Drawable. -->
3063        <attr name="childIndicator" format="reference" />
3064        <!-- The left bound for an item's indicator. To specify a left bound specific to children,
3065             use childIndicatorLeft. -->
3066        <attr name="indicatorLeft" format="dimension" />
3067        <!-- The right bound for an item's indicator. To specify a right bound specific to children,
3068             use childIndicatorRight. -->
3069        <attr name="indicatorRight" format="dimension" />
3070        <!-- The left bound for a child's indicator. -->
3071        <attr name="childIndicatorLeft" format="dimension" />
3072        <!-- The right bound for a child's indicator. -->
3073        <attr name="childIndicatorRight" format="dimension" />
3074        <!-- Drawable or color that is used as a divider for children. (It will drawn
3075             below and above child items.) The height of this will be the same as
3076             the height of the normal list item divider. -->
3077        <attr name="childDivider" format="reference|color" />
3078        <!-- The start bound for an item's indicator. To specify a start bound specific to children,
3079             use childIndicatorStart. -->
3080        <attr name="indicatorStart" format="dimension" />
3081        <!-- The end bound for an item's indicator. To specify a right bound specific to children,
3082             use childIndicatorEnd. -->
3083        <attr name="indicatorEnd" format="dimension" />
3084        <!-- The start bound for a child's indicator. -->
3085        <attr name="childIndicatorStart" format="dimension" />
3086        <!-- The end bound for a child's indicator. -->
3087        <attr name="childIndicatorEnd" format="dimension" />
3088    </declare-styleable>
3089    <declare-styleable name="Gallery">
3090        <attr name="gravity" />
3091        <!-- Sets how long a transition animation should run (in milliseconds)
3092             when layout has changed.  Only relevant if animation is turned on. -->
3093        <attr name="animationDuration" format="integer" min="0" />
3094        <attr name="spacing" format="dimension" />
3095        <!-- Sets the alpha on the items that are not selected. -->
3096        <attr name="unselectedAlpha" format="float" />
3097    </declare-styleable>
3098    <declare-styleable name="GridView">
3099        <!-- Defines the default horizontal spacing between columns. -->
3100        <attr name="horizontalSpacing" format="dimension" />
3101        <!-- Defines the default vertical spacing between rows. -->
3102        <attr name="verticalSpacing" format="dimension" />
3103        <!-- Defines how columns should stretch to fill the available empty space, if any. -->
3104        <attr name="stretchMode">
3105            <!-- Stretching is disabled. -->
3106            <enum name="none" value="0"/>
3107            <!-- The spacing between each column is stretched. -->
3108            <enum name="spacingWidth" value="1" />
3109            <!-- Each column is stretched equally. -->
3110            <enum name="columnWidth" value="2" />
3111            <!-- The spacing between each column is uniformly stretched.. -->
3112            <enum name="spacingWidthUniform" value="3" />
3113        </attr>
3114        <!-- Specifies the fixed width for each column. -->
3115        <attr name="columnWidth" format="dimension" />
3116        <!-- Defines how many columns to show. -->
3117        <attr name="numColumns" format="integer" min="0">
3118            <!-- Display as many columns as possible to fill the available space. -->
3119            <enum name="auto_fit" value="-1" />
3120        </attr>
3121        <!-- Specifies the gravity within each cell. -->
3122        <attr name="gravity" />
3123    </declare-styleable>
3124    <declare-styleable name="ImageSwitcher">
3125    </declare-styleable>
3126    <declare-styleable name="ImageView">
3127        <!-- Sets a drawable as the content of this ImageView. -->
3128        <attr name="src" format="reference|color" />
3129        <!-- Controls how the image should be resized or moved to match the size
3130             of this ImageView. -->
3131        <attr name="scaleType">
3132            <enum name="matrix" value="0" />
3133            <enum name="fitXY" value="1" />
3134            <enum name="fitStart" value="2" />
3135            <enum name="fitCenter" value="3" />
3136            <enum name="fitEnd" value="4" />
3137            <enum name="center" value="5" />
3138            <enum name="centerCrop" value="6" />
3139            <enum name="centerInside" value="7" />
3140        </attr>
3141        <!-- Set this to true if you want the ImageView to adjust its bounds
3142             to preserve the aspect ratio of its drawable. -->
3143        <attr name="adjustViewBounds" format="boolean" />
3144        <!-- An optional argument to supply a maximum width for this view.
3145             See {see android.widget.ImageView#setMaxWidth} for details. -->
3146        <attr name="maxWidth" format="dimension" />
3147        <!-- An optional argument to supply a maximum height for this view.
3148             See {see android.widget.ImageView#setMaxHeight} for details. -->
3149        <attr name="maxHeight" format="dimension" />
3150        <!-- Set a tinting color for the image. -->
3151        <attr name="tint" format="color" />
3152        <!-- If true, the image view will be baseline aligned with based on its
3153             bottom edge. -->
3154        <attr name="baselineAlignBottom" format="boolean" />
3155         <!-- If true, the image will be cropped to fit within its padding. -->
3156        <attr name="cropToPadding" format="boolean" />
3157        <!-- The offset of the baseline within this view. See {see android.view.View#getBaseline}
3158             for details -->
3159        <attr name="baseline" format="dimension" />
3160        <!-- @hide The alpha value (0-255) set on the ImageView's drawable. Equivalent
3161             to calling ImageView.setAlpha(int), not the same as View.setAlpha(float). -->
3162        <attr name="drawableAlpha" format="integer" />
3163    </declare-styleable>
3164    <declare-styleable name="ToggleButton">
3165        <!-- The text for the button when it is checked. -->
3166        <attr name="textOn" format="string" />
3167        <!-- The text for the button when it is not checked. -->
3168        <attr name="textOff" format="string" />
3169        <!-- The alpha to apply to the indicator when disabled. -->
3170        <attr name="disabledAlpha" />
3171    </declare-styleable>
3172    <declare-styleable name="RelativeLayout">
3173        <attr name="gravity" />
3174        <!-- Indicates what view should not be affected by gravity. -->
3175        <attr name="ignoreGravity" format="reference" />
3176    </declare-styleable>
3177    <declare-styleable name="LinearLayout">
3178        <!-- Should the layout be a column or a row?  Use "horizontal"
3179             for a row, "vertical" for a column.  The default is
3180             horizontal. -->
3181        <attr name="orientation" />
3182        <attr name="gravity" />
3183        <!-- When set to false, prevents the layout from aligning its children's
3184             baselines. This attribute is particularly useful when the children
3185             use different values for gravity. The default value is true. -->
3186        <attr name="baselineAligned" format="boolean" />
3187        <!-- When a linear layout is part of another layout that is baseline
3188          aligned, it can specify which of its children to baseline align to
3189          (that is, which child TextView).-->
3190        <attr name="baselineAlignedChildIndex" format="integer" min="0"/>
3191        <!-- Defines the maximum weight sum. If unspecified, the sum is computed
3192             by adding the layout_weight of all of the children. This can be
3193             used for instance to give a single child 50% of the total available
3194             space by giving it a layout_weight of 0.5 and setting the weightSum
3195             to 1.0. -->
3196        <attr name="weightSum" format="float" />
3197        <!-- When set to true, all children with a weight will be considered having
3198             the minimum size of the largest child. If false, all children are
3199             measured normally. -->
3200        <attr name="measureWithLargestChild" format="boolean" />
3201        <!-- Drawable to use as a vertical divider between buttons. -->
3202        <attr name="divider" />
3203        <!-- Setting for which dividers to show. -->
3204        <attr name="showDividers">
3205            <flag name="none" value="0" />
3206            <flag name="beginning" value="1" />
3207            <flag name="middle" value="2" />
3208            <flag name="end" value="4" />
3209        </attr>
3210        <!-- Size of padding on either end of a divider. -->
3211        <attr name="dividerPadding" format="dimension" />
3212    </declare-styleable>
3213    <declare-styleable name="GridLayout">
3214        <!-- The orientation property is not used during layout. It is only used to
3215        allocate row and column parameters when they are not specified by its children's
3216        layout paramters. GridLayout works like LinearLayout in this case;
3217        putting all the components either in a single row or in a single column -
3218        depending on the value of this flag. In the horizontal case, a columnCount
3219        property may be additionally supplied to force new rows to be created when a
3220        row is full. The rowCount attribute may be used similarly in the vertical case.
3221        The default is horizontal. -->
3222        <attr name="orientation" />
3223        <!-- The maxmimum number of rows to create when automatically positioning children. -->
3224        <attr name="rowCount" format="integer" />
3225        <!-- The maxmimum number of columns to create when automatically positioning children. -->
3226        <attr name="columnCount" format="integer" />
3227        <!-- When set to true, tells GridLayout to use default margins when none are specified
3228        in a view's layout parameters.
3229        The default value is false.
3230        See {@link android.widget.GridLayout#setUseDefaultMargins(boolean)}.-->
3231        <attr name="useDefaultMargins" format="boolean" />
3232        <!-- When set to alignMargins, causes alignment to take place between the outer
3233        boundary of a view, as defined by its margins. When set to alignBounds,
3234        causes alignment to take place between the edges of the view.
3235        The default is alignMargins.
3236        See {@link android.widget.GridLayout#setAlignmentMode(int)}.-->
3237        <attr name="alignmentMode" />
3238        <!-- When set to true, forces row boundaries to appear in the same order
3239        as row indices.
3240        The default is true.
3241        See {@link android.widget.GridLayout#setRowOrderPreserved(boolean)}.-->
3242        <attr name="rowOrderPreserved" format="boolean" />
3243        <!-- When set to true, forces column boundaries to appear in the same order
3244        as column indices.
3245        The default is true.
3246        See {@link android.widget.GridLayout#setColumnOrderPreserved(boolean)}.-->
3247        <attr name="columnOrderPreserved" format="boolean" />
3248    </declare-styleable>
3249    <declare-styleable name="ListView">
3250        <!-- Reference to an array resource that will populate the ListView.  For static content,
3251             this is simpler than populating the ListView programmatically. -->
3252        <attr name="entries" />
3253        <!-- Drawable or color to draw between list items. -->
3254        <attr name="divider" format="reference|color" />
3255        <!-- Height of the divider. Will use the intrinsic height of the divider if this
3256             is not specified. -->
3257        <attr name="dividerHeight" format="dimension" />
3258        <!-- When set to false, the ListView will not draw the divider after each header view.
3259             The default value is true. -->
3260        <attr name="headerDividersEnabled" format="boolean" />
3261        <!-- When set to false, the ListView will not draw the divider before each footer view.
3262             The default value is true. -->
3263        <attr name="footerDividersEnabled" format="boolean" />
3264        <!-- Drawable to draw above list content. -->
3265        <attr name="overScrollHeader" format="reference|color" />
3266        <!-- Drawable to draw below list content. -->
3267        <attr name="overScrollFooter" format="reference|color" />
3268    </declare-styleable>
3269    <declare-styleable name="PreferenceFrameLayout">
3270        <!-- Padding to use at the top of the prefs content. -->
3271        <attr name="borderTop" format="dimension" />
3272        <!-- Padding to use at the bottom of the prefs content. -->
3273        <attr name="borderBottom" format="dimension" />
3274        <!-- Padding to use at the left of the prefs content. -->
3275        <attr name="borderLeft" format="dimension" />
3276        <!-- Padding to use at the right of the prefs content. -->
3277        <attr name="borderRight" format="dimension" />
3278    </declare-styleable>
3279    <declare-styleable name="PreferenceFrameLayout_Layout">
3280        <!-- Padding to use at the top of the prefs content. -->
3281        <attr name="layout_removeBorders" format="boolean" />
3282    </declare-styleable>
3283    <declare-styleable name="MenuView">
3284        <!-- Default appearance of menu item text. -->
3285        <attr name="itemTextAppearance" format="reference" />
3286        <!-- Default horizontal divider between rows of menu items. -->
3287        <attr name="horizontalDivider" format="reference" />
3288        <!-- Default vertical divider between menu items. -->
3289        <attr name="verticalDivider" format="reference" />
3290        <!-- Default background for the menu header. -->
3291        <attr name="headerBackground" format="color|reference" />
3292        <!-- Default background for each menu item. -->
3293        <attr name="itemBackground" format="color|reference" />
3294        <!-- Default animations for the menu. -->
3295        <attr name="windowAnimationStyle" />
3296        <!-- Default disabled icon alpha for each menu item that shows an icon. -->
3297        <attr name="itemIconDisabledAlpha" format="float" />
3298        <!-- Whether space should be reserved in layout when an icon is missing. -->
3299        <attr name="preserveIconSpacing" format="boolean" />
3300    </declare-styleable>
3301    <declare-styleable name="IconMenuView">
3302        <!-- Defines the height of each row. -->
3303        <attr name="rowHeight" format="dimension" />
3304        <!-- Defines the maximum number of rows displayed. -->
3305        <attr name="maxRows" format="integer" />
3306        <!-- Defines the maximum number of items per row. -->
3307        <attr name="maxItemsPerRow" format="integer" />
3308        <!-- Defines the maximum number of items to show. -->
3309        <attr name="maxItems" format="integer" />
3310        <!-- 'More' icon. -->
3311        <attr name="moreIcon" format="reference" />
3312    </declare-styleable>
3313
3314    <declare-styleable name="ProgressBar">
3315        <!-- Defines the maximum value the progress can take. -->
3316        <attr name="max" format="integer" />
3317        <!-- Defines the default progress value, between 0 and max. -->
3318        <attr name="progress" format="integer" />
3319        <!-- Defines the secondary progress value, between 0 and max. This progress is drawn between
3320             the primary progress and the background.  It can be ideal for media scenarios such as
3321             showing the buffering progress while the default progress shows the play progress. -->
3322        <attr name="secondaryProgress" format="integer" />
3323        <!-- Allows to enable the indeterminate mode. In this mode the progress
3324         bar plays an infinite looping animation. -->
3325        <attr name="indeterminate" format="boolean" />
3326        <!-- Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). -->
3327        <attr name="indeterminateOnly" format="boolean" />
3328        <!-- Drawable used for the indeterminate mode. -->
3329        <attr name="indeterminateDrawable" format="reference" />
3330        <!-- Drawable used for the progress mode. -->
3331        <attr name="progressDrawable" format="reference" />
3332        <!-- Duration of the indeterminate animation. -->
3333        <attr name="indeterminateDuration" format="integer" min="1" />
3334        <!-- Defines how the indeterminate mode should behave when the progress
3335        reaches max. -->
3336        <attr name="indeterminateBehavior">
3337            <!-- Progress starts over from 0. -->
3338            <enum name="repeat" value="1" />
3339            <!-- Progress keeps the current value and goes back to 0. -->
3340            <enum name="cycle" value="2" />
3341        </attr>
3342        <attr name="minWidth" format="dimension" />
3343        <attr name="maxWidth" />
3344        <attr name="minHeight" format="dimension" />
3345        <attr name="maxHeight" />
3346        <attr name="interpolator" format="reference" />
3347        <!-- Timeout between frames of animation in milliseconds
3348             {@deprecated Not used by the framework.} -->
3349        <attr name="animationResolution" format="integer" />
3350        <!-- Defines if the associated drawables need to be mirrored when in RTL mode.
3351             Default is false -->
3352        <attr name="mirrorForRtl" format="boolean" />
3353    </declare-styleable>
3354
3355    <declare-styleable name="SeekBar">
3356        <!-- Draws the thumb on a seekbar. -->
3357        <attr name="thumb" format="reference" />
3358        <!-- An offset for the thumb that allows it to extend out of the range of the track. -->
3359        <attr name="thumbOffset" format="dimension" />
3360        <!-- Whether to split the track and leave a gap for the thumb drawable. -->
3361        <attr name="splitTrack" format="boolean" />
3362    </declare-styleable>
3363
3364    <declare-styleable name="StackView">
3365        <!-- Color of the res-out outline. -->
3366        <attr name="resOutColor" format="color" />
3367        <!-- Color of the outline of click feedback. -->
3368        <attr name="clickColor" format="color" />
3369    </declare-styleable>
3370
3371    <declare-styleable name="RatingBar">
3372        <!-- The number of stars (or rating items) to show. -->
3373        <attr name="numStars" format="integer" />
3374        <!-- The rating to set by default. -->
3375        <attr name="rating" format="float" />
3376        <!-- The step size of the rating. -->
3377        <attr name="stepSize" format="float" />
3378        <!-- Whether this rating bar is an indicator (and non-changeable by the user). -->
3379        <attr name="isIndicator" format="boolean" />
3380    </declare-styleable>
3381
3382    <declare-styleable name="RadioGroup">
3383        <!-- The id of the child radio button that should be checked by default
3384             within this radio group. -->
3385        <attr name="checkedButton" format="integer" />
3386        <!-- Should the radio group be a column or a row?  Use "horizontal"
3387             for a row, "vertical" for a column.  The default is
3388             vertical. -->
3389        <attr name="orientation" />
3390    </declare-styleable>
3391    <declare-styleable name="TableLayout">
3392        <!-- The zero-based index of the columns to stretch. The column indices
3393             must be separated by a comma: 1, 2, 5. Illegal and duplicate
3394             indices are ignored. You can stretch all columns by using the
3395             value "*" instead. Note that a column can be marked stretchable
3396             and shrinkable at the same time. -->
3397        <attr name="stretchColumns" format="string" />
3398       <!-- The zero-based index of the columns to shrink. The column indices
3399             must be separated by a comma: 1, 2, 5. Illegal and duplicate
3400             indices are ignored. You can shrink all columns by using the
3401             value "*" instead. Note that a column can be marked stretchable
3402             and shrinkable at the same time. -->
3403        <attr name="shrinkColumns" format="string" />
3404        <!-- The zero-based index of the columns to collapse. The column indices
3405             must be separated by a comma: 1, 2, 5. Illegal and duplicate
3406             indices are ignored. -->
3407        <attr name="collapseColumns" format="string" />
3408    </declare-styleable>
3409    <declare-styleable name="TableRow">
3410
3411    </declare-styleable>
3412    <declare-styleable name="TableRow_Cell">
3413        <!-- The index of the column in which this child should be. -->
3414        <attr name="layout_column" format="integer" />
3415        <!-- Defines how many columns this child should span.  Must be >= 1.-->
3416        <attr name="layout_span" format="integer" />
3417    </declare-styleable>
3418    <declare-styleable name="TabWidget">
3419        <!-- Drawable used to draw the divider between tabs. -->
3420        <attr name="divider" />
3421        <!-- Determines whether the strip under the tab indicators is drawn or not. -->
3422        <attr name="tabStripEnabled" format="boolean" />
3423        <!-- Drawable used to draw the left part of the strip underneath the tabs. -->
3424        <attr name="tabStripLeft" format="reference" />
3425        <!-- Drawable used to draw the right part of the strip underneath the tabs. -->
3426        <attr name="tabStripRight" format="reference" />
3427        <!-- Layout used to organize each tab's content. -->
3428        <attr name="tabLayout" format="reference" />
3429    </declare-styleable>
3430    <declare-styleable name="TextAppearance">
3431        <!-- Text color. -->
3432        <attr name="textColor" />
3433        <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
3434        <attr name="textSize" />
3435        <!-- Style (bold, italic, bolditalic) for the text. -->
3436        <attr name="textStyle" />
3437        <!-- Typeface (normal, sans, serif, monospace) for the text. -->
3438        <attr name="typeface" />
3439        <!-- Font family (named by string) for the text. -->
3440        <attr name="fontFamily" />
3441        <!-- Color of the text selection highlight. -->
3442        <attr name="textColorHighlight" />
3443        <!-- Color of the hint text. -->
3444        <attr name="textColorHint" />
3445        <!-- Color of the links. -->
3446        <attr name="textColorLink" />
3447        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
3448        <attr name="textAllCaps" format="boolean" />
3449        <!-- Place a shadow of the specified color behind the text. -->
3450        <attr name="shadowColor" format="color" />
3451        <!-- Horizontal offset of the shadow. -->
3452        <attr name="shadowDx" format="float" />
3453        <!-- Vertical offset of the shadow. -->
3454        <attr name="shadowDy" format="float" />
3455        <!-- Radius of the shadow. -->
3456        <attr name="shadowRadius" format="float" />
3457        <!-- Elegant text height, especially for less compacted complex script text. -->
3458        <attr name="elegantTextHeight" format="boolean" />
3459    </declare-styleable>
3460    <declare-styleable name="TextClock">
3461        <!-- Specifies the formatting pattern used to show the time and/or date
3462             in 12-hour mode. Please refer to {@link android.text.format.DateFormat}
3463             for a complete description of accepted formatting patterns.
3464             The default pattern is a locale-appropriate equivalent of "h:mm a". -->
3465        <attr name="format12Hour" format="string"/>
3466        <!-- Specifies the formatting pattern used to show the time and/or date
3467             in 24-hour mode. Please refer to {@link android.text.format.DateFormat}
3468             for a complete description of accepted formatting patterns.
3469             The default pattern is a locale-appropriate equivalent of "H:mm". -->
3470        <attr name="format24Hour" format="string"/>
3471        <!-- Specifies the time zone to use. When this attribute is specified, the
3472             TextClock will ignore the time zone of the system. To use the user's
3473             time zone, do not specify this attribute. The default value is the
3474             user's time zone. Please refer to {@link java.util.TimeZone} for more
3475             information about time zone ids. -->
3476        <attr name="timeZone" format="string"/>
3477    </declare-styleable>
3478    <declare-styleable name="TextSwitcher">
3479    </declare-styleable>
3480    <declare-styleable name="TextView">
3481        <!-- Determines the minimum type that getText() will return.
3482             The default is "normal".
3483             Note that EditText and LogTextBox always return Editable,
3484             even if you specify something less powerful here. -->
3485        <attr name="bufferType">
3486            <!-- Can return any CharSequence, possibly a
3487             Spanned one if the source text was Spanned. -->
3488            <enum name="normal" value="0" />
3489            <!-- Can only return Spannable. -->
3490            <enum name="spannable" value="1" />
3491            <!-- Can only return Spannable and Editable. -->
3492            <enum name="editable" value="2" />
3493        </attr>
3494        <!-- Text to display. -->
3495        <attr name="text" format="string" localization="suggested" />
3496        <!-- Hint text to display when the text is empty. -->
3497        <attr name="hint" format="string" />
3498        <!-- Text color. -->
3499        <attr name="textColor" />
3500        <!-- Color of the text selection highlight. -->
3501        <attr name="textColorHighlight" />
3502        <!-- Color of the hint text. -->
3503        <attr name="textColorHint" />
3504        <!-- Base text color, typeface, size, and style. -->
3505        <attr name="textAppearance" />
3506        <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
3507        <attr name="textSize" />
3508        <!-- Sets the horizontal scaling factor for the text. -->
3509        <attr name="textScaleX" format="float" />
3510        <!-- Typeface (normal, sans, serif, monospace) for the text. -->
3511        <attr name="typeface" />
3512        <!-- Style (bold, italic, bolditalic) for the text. -->
3513        <attr name="textStyle" />
3514        <!-- Font family (named by string) for the text. -->
3515        <attr name="fontFamily" />
3516        <!-- Text color for links. -->
3517        <attr name="textColorLink" />
3518        <!-- Makes the cursor visible (the default) or invisible. -->
3519        <attr name="cursorVisible" format="boolean" />
3520        <!-- Makes the TextView be at most this many lines tall.
3521
3522        When used on an editable text, the <code>inputType</code> attribute's value must be
3523        combined with the <code>textMultiLine</code> flag for the maxLines attribute to apply. -->
3524        <attr name="maxLines" format="integer" min="0" />
3525        <!-- Makes the TextView be at most this many pixels tall. -->
3526        <attr name="maxHeight" />
3527        <!-- Makes the TextView be exactly this many lines tall. -->
3528        <attr name="lines" format="integer" min="0" />
3529        <!-- Makes the TextView be exactly this many pixels tall.
3530             You could get the same effect by specifying this number in the
3531             layout parameters. -->
3532        <attr name="height" format="dimension" />
3533        <!-- Makes the TextView be at least this many lines tall.
3534
3535        When used on an editable text, the <code>inputType</code> attribute's value must be
3536        combined with the <code>textMultiLine</code> flag for the minLines attribute to apply. -->
3537        <attr name="minLines" format="integer" min="0" />
3538        <!-- Makes the TextView be at least this many pixels tall. -->
3539        <attr name="minHeight" />
3540        <!-- Makes the TextView be at most this many ems wide. -->
3541        <attr name="maxEms" format="integer" min="0" />
3542        <!-- Makes the TextView be at most this many pixels wide. -->
3543        <attr name="maxWidth" />
3544        <!-- Makes the TextView be exactly this many ems wide. -->
3545        <attr name="ems" format="integer" min="0" />
3546        <!-- Makes the TextView be exactly this many pixels wide.
3547             You could get the same effect by specifying this number in the
3548             layout parameters. -->
3549        <attr name="width" format="dimension" />
3550        <!-- Makes the TextView be at least this many ems wide. -->
3551        <attr name="minEms" format="integer" min="0" />
3552        <!-- Makes the TextView be at least this many pixels wide. -->
3553        <attr name="minWidth" />
3554        <!-- Specifies how to align the text by the view's x- and/or y-axis
3555             when the text is smaller than the view. -->
3556        <attr name="gravity" />
3557        <!-- Whether the text is allowed to be wider than the view (and
3558             therefore can be scrolled horizontally). -->
3559        <attr name="scrollHorizontally" format="boolean" />
3560        <!-- Whether the characters of the field are displayed as
3561             password dots instead of themselves.
3562             {@deprecated Use inputType instead.} -->
3563        <attr name="password" format="boolean" />
3564        <!-- Constrains the text to a single horizontally scrolling line
3565             instead of letting it wrap onto multiple lines, and advances
3566             focus instead of inserting a newline when you press the
3567             enter key.
3568
3569             The default value is false (multi-line wrapped text mode) for non-editable text, but if
3570             you specify any value for inputType, the default is true (single-line input field mode).
3571
3572             {@deprecated This attribute is deprecated. Use <code>maxLines</code> instead to change
3573             the layout of a static text, and use the <code>textMultiLine</code> flag in the
3574             inputType attribute instead for editable text views (if both singleLine and inputType
3575             are supplied, the inputType flags will override the value of singleLine). } -->
3576        <attr name="singleLine" format="boolean" />
3577        <!-- Specifies whether the widget is enabled. The interpretation of the enabled state varies by subclass.
3578             For example, a non-enabled EditText prevents the user from editing the contained text, and
3579             a non-enabled Button prevents the user from tapping the button.
3580             The appearance of enabled and non-enabled widgets may differ, if the drawables referenced
3581             from evaluating state_enabled differ. -->
3582        <attr name="enabled" format="boolean" />
3583        <!-- If the text is selectable, select it all when the view takes
3584             focus. -->
3585        <attr name="selectAllOnFocus" format="boolean" />
3586        <!-- Leave enough room for ascenders and descenders instead of
3587             using the font ascent and descent strictly.  (Normally true). -->
3588        <attr name="includeFontPadding" format="boolean" />
3589        <!-- Set an input filter to constrain the text length to the
3590             specified number. -->
3591        <attr name="maxLength" format="integer" min="0" />
3592        <!-- Place a shadow of the specified color behind the text. -->
3593        <attr name="shadowColor" />
3594        <!-- Horizontal offset of the shadow. -->
3595        <attr name="shadowDx" />
3596        <!-- Vertical offset of the shadow. -->
3597        <attr name="shadowDy" />
3598        <!-- Radius of the shadow. -->
3599        <attr name="shadowRadius" />
3600        <attr name="autoLink" />
3601        <!-- If set to false, keeps the movement method from being set
3602             to the link movement method even if autoLink causes links
3603             to be found. -->
3604        <attr name="linksClickable" format="boolean" />
3605        <!-- If set, specifies that this TextView has a numeric input method.
3606             The default is false.
3607             {@deprecated Use inputType instead.} -->
3608        <attr name="numeric">
3609            <!-- Input is numeric. -->
3610            <flag name="integer" value="0x01" />
3611            <!-- Input is numeric, with sign allowed. -->
3612            <flag name="signed" value="0x03" />
3613            <!-- Input is numeric, with decimals allowed. -->
3614            <flag name="decimal" value="0x05" />
3615        </attr>
3616        <!-- If set, specifies that this TextView has a numeric input method
3617             and that these specific characters are the ones that it will
3618             accept.
3619             If this is set, numeric is implied to be true.
3620             The default is false. -->
3621        <attr name="digits" format="string" />
3622        <!-- If set, specifies that this TextView has a phone number input
3623             method. The default is false.
3624             {@deprecated Use inputType instead.} -->
3625        <attr name="phoneNumber" format="boolean" />
3626        <!-- If set, specifies that this TextView should use the specified
3627             input method (specified by fully-qualified class name).
3628             {@deprecated Use inputType instead.} -->
3629        <attr name="inputMethod" format="string" />
3630        <!-- If set, specifies that this TextView has a textual input method
3631             and should automatically capitalize what the user types.
3632             The default is "none".
3633             {@deprecated Use inputType instead.} -->
3634        <attr name="capitalize">
3635            <!-- Don't automatically capitalize anything. -->
3636            <enum name="none" value="0" />
3637            <!-- Capitalize the first word of each sentence. -->
3638            <enum name="sentences" value="1" />
3639            <!-- Capitalize the first letter of every word. -->
3640            <enum name="words" value="2" />
3641            <!-- Capitalize every character. -->
3642            <enum name="characters" value="3" />
3643        </attr>
3644        <!-- If set, specifies that this TextView has a textual input method
3645             and automatically corrects some common spelling errors.
3646             The default is "false".
3647             {@deprecated Use inputType instead.} -->
3648        <attr name="autoText" format="boolean" />
3649        <!-- If set, specifies that this TextView has an input method.
3650             It will be a textual one unless it has otherwise been specified.
3651             For TextView, this is false by default.  For EditText, it is
3652             true by default.
3653             {@deprecated Use inputType instead.} -->
3654        <attr name="editable" format="boolean" />
3655        <!-- If set, the text view will include its current complete text
3656             inside of its frozen icicle in addition to meta-data such as
3657             the current cursor position.  By default this is disabled;
3658             it can be useful when the contents of a text view is not stored
3659             in a persistent place such as a content provider. -->
3660        <attr name="freezesText" format="boolean" />
3661        <!-- If set, causes words that are longer than the view is wide
3662             to be ellipsized instead of broken in the middle.
3663             You will often also want to set scrollHorizontally or singleLine
3664             as well so that the text as a whole is also constrained to
3665             a single line instead of still allowed to be broken onto
3666             multiple lines. -->
3667        <attr name="ellipsize" />
3668        <!-- The drawable to be drawn above the text. -->
3669        <attr name="drawableTop" format="reference|color" />
3670        <!-- The drawable to be drawn below the text. -->
3671        <attr name="drawableBottom" format="reference|color" />
3672        <!-- The drawable to be drawn to the left of the text. -->
3673        <attr name="drawableLeft" format="reference|color" />
3674        <!-- The drawable to be drawn to the right of the text. -->
3675        <attr name="drawableRight" format="reference|color" />
3676        <!-- The drawable to be drawn to the start of the text. -->
3677        <attr name="drawableStart" format="reference|color" />
3678        <!-- The drawable to be drawn to the end of the text. -->
3679        <attr name="drawableEnd" format="reference|color" />
3680        <!-- The padding between the drawables and the text. -->
3681        <attr name="drawablePadding" format="dimension" />
3682        <!-- Extra spacing between lines of text. -->
3683        <attr name="lineSpacingExtra" format="dimension" />
3684        <!-- Extra spacing between lines of text, as a multiplier. -->
3685        <attr name="lineSpacingMultiplier" format="float" />
3686        <!-- The number of times to repeat the marquee animation. Only applied if the
3687             TextView has marquee enabled. -->
3688        <attr name="marqueeRepeatLimit" format="integer">
3689            <!-- Indicates that marquee should repeat indefinitely. -->
3690            <enum name="marquee_forever" value="-1" />
3691        </attr>
3692        <attr name="inputType" />
3693        <attr name="imeOptions" />
3694        <!-- An addition content type description to supply to the input
3695             method attached to the text view, which is private to the
3696             implementation of the input method.  This simply fills in
3697             the {@link android.view.inputmethod.EditorInfo#privateImeOptions
3698             EditorInfo.privateImeOptions} field when the input
3699             method is connected. -->
3700        <attr name="privateImeOptions" format="string" />
3701        <!-- Supply a value for
3702             {@link android.view.inputmethod.EditorInfo#actionLabel EditorInfo.actionLabel}
3703             used when an input method is connected to the text view. -->
3704        <attr name="imeActionLabel" format="string" />
3705        <!-- Supply a value for
3706             {@link android.view.inputmethod.EditorInfo#actionId EditorInfo.actionId}
3707             used when an input method is connected to the text view. -->
3708        <attr name="imeActionId" format="integer" />
3709        <!-- Reference to an
3710             {@link android.R.styleable#InputExtras &lt;input-extras&gt;}
3711             XML resource containing additional data to
3712             supply to an input method, which is private to the implementation
3713             of the input method.  This simply fills in
3714             the {@link android.view.inputmethod.EditorInfo#extras
3715             EditorInfo.extras} field when the input
3716             method is connected. -->
3717        <attr name="editorExtras" format="reference" />
3718
3719        <!-- Reference to a drawable that will be used to display a text selection
3720             anchor on the left side of a selection region. -->
3721        <attr name="textSelectHandleLeft" />
3722        <!-- Reference to a drawable that will be used to display a text selection
3723             anchor on the right side of a selection region. -->
3724        <attr name="textSelectHandleRight" />
3725        <!-- Reference to a drawable that will be used to display a text selection
3726             anchor for positioning the cursor within text. -->
3727        <attr name="textSelectHandle" />
3728        <!-- The layout of the view that is displayed on top of the cursor to paste inside a
3729             TextEdit field. -->
3730        <attr name="textEditPasteWindowLayout" />
3731        <!-- Variation of textEditPasteWindowLayout displayed when the clipboard is empty. -->
3732        <attr name="textEditNoPasteWindowLayout" />
3733        <!-- Used instead of textEditPasteWindowLayout when the window is moved on the side of the
3734             insertion cursor because it would be clipped if it were positioned on top. -->
3735        <attr name="textEditSidePasteWindowLayout" />
3736        <!-- Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. -->
3737        <attr name="textEditSideNoPasteWindowLayout" />
3738
3739        <!-- Layout of the TextView item that will populate the suggestion popup window. -->
3740        <attr name="textEditSuggestionItemLayout" />
3741
3742
3743        <!-- Reference to a drawable that will be drawn under the insertion cursor. -->
3744        <attr name="textCursorDrawable" />
3745
3746        <!-- Indicates that the content of a non-editable text can be selected. -->
3747        <attr name="textIsSelectable" />
3748        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
3749        <attr name="textAllCaps" />
3750        <!-- Elegant text height, especially for less compacted complex script text. -->
3751        <attr name="elegantTextHeight" />
3752    </declare-styleable>
3753    <declare-styleable name="TextViewAppearance">
3754        <!-- Base text color, typeface, size, and style. -->
3755        <attr name="textAppearance" />
3756    </declare-styleable>
3757    <declare-styleable name="SelectionModeDrawables">
3758        <attr name="actionModeSelectAllDrawable" />
3759        <attr name="actionModeCutDrawable" />
3760        <attr name="actionModeCopyDrawable" />
3761        <attr name="actionModePasteDrawable" />
3762    </declare-styleable>
3763    <declare-styleable name="SuggestionSpan">
3764        <attr name="textUnderlineColor" />
3765        <attr name="textUnderlineThickness" />
3766    </declare-styleable>
3767    <!-- An <code>input-extras</code> is a container for extra data to supply to
3768         an input method.  Contains
3769         one more more {@link #Extra <extra>} tags.  -->
3770    <declare-styleable name="InputExtras">
3771    </declare-styleable>
3772    <declare-styleable name="AutoCompleteTextView">
3773        <!-- Defines the hint displayed in the drop down menu. -->
3774        <attr name="completionHint" format="string" />
3775        <!-- Defines the hint view displayed in the drop down menu. -->
3776        <attr name="completionHintView" format="reference" />
3777        <!-- Defines the number of characters that the user must type before
3778         completion suggestions are displayed in a drop down menu. -->
3779        <attr name="completionThreshold" format="integer" min="1" />
3780        <!-- Selector in a drop down list. -->
3781        <attr name="dropDownSelector" format="reference|color" />
3782        <!-- Amount of pixels by which the drop down should be offset vertically. -->
3783        <attr name="dropDownVerticalOffset" format="dimension" />
3784        <!-- Amount of pixels by which the drop down should be offset horizontally. -->
3785        <attr name="dropDownHorizontalOffset" format="dimension" />
3786        <!-- View to anchor the auto-complete dropdown to. If not specified, the text view itself
3787             is used. -->
3788        <attr name="dropDownAnchor" format="reference" />
3789        <!-- Specifies the basic width of the dropdown. Its value may
3790             be a dimension (such as "12dip") for a constant width,
3791             fill_parent or match_parent to match the width of the
3792             screen, or wrap_content to match the width of
3793             the anchored view. -->
3794        <attr name="dropDownWidth" format="dimension">
3795            <!-- The dropdown should fill the width of the screen.
3796                 This constant is deprecated starting from API Level 8 and
3797                 is replaced by {@code match_parent}. -->
3798            <enum name="fill_parent" value="-1" />
3799            <!-- The dropdown should fit the width of the screen.
3800                 Introduced in API Level 8. -->
3801            <enum name="match_parent" value="-1" />
3802            <!-- The dropdown should fit the width of its anchor. -->
3803            <enum name="wrap_content" value="-2" />
3804        </attr>
3805        <!-- Specifies the basic height of the dropdown. Its value may
3806             be a dimension (such as "12dip") for a constant height,
3807             fill_parent or match_parent to fill the height of the
3808             screen, or wrap_content to match the height of
3809             the content of the drop down. -->
3810        <attr name="dropDownHeight" format="dimension">
3811            <!-- The dropdown should fit the height of the screen.
3812                 This constant is deprecated starting from API Level 8 and
3813                 is replaced by {@code match_parent}. -->
3814            <enum name="fill_parent" value="-1" />
3815            <!-- The dropdown should fit the height of the screen.
3816                 Introduced in API Level 8. -->
3817            <enum name="match_parent" value="-1" />
3818            <!-- The dropdown should fit the height of the content. -->
3819            <enum name="wrap_content" value="-2" />
3820        </attr>
3821        <attr name="inputType" />
3822    </declare-styleable>
3823    <declare-styleable name="PopupWindow">
3824        <attr name="popupBackground" format="reference|color" />
3825        <attr name="popupAnimationStyle" format="reference" />
3826        <attr name="overlapAnchor" format="boolean" />
3827    </declare-styleable>
3828    <declare-styleable name="ViewAnimator">
3829        <!-- Identifier for the animation to use when a view is shown. -->
3830        <attr name="inAnimation" format="reference" />
3831        <!-- Identifier for the animation to use when a view is hidden. -->
3832        <attr name="outAnimation" format="reference" />
3833        <!-- Defines whether to animate the current View when the ViewAnimation
3834             is first displayed. -->
3835        <attr name="animateFirstView" format="boolean" />
3836    </declare-styleable>
3837    <declare-styleable name="ViewFlipper">
3838        <attr name="flipInterval" format="integer" min="0" />
3839        <!-- When true, automatically start animating -->
3840        <attr name="autoStart" format="boolean" />
3841    </declare-styleable>
3842    <declare-styleable name="AdapterViewAnimator">
3843        <!-- Identifier for the animation to use when a view is shown. -->
3844        <attr name="inAnimation" />
3845        <!-- Identifier for the animation to use when a view is hidden. -->
3846        <attr name="outAnimation" />
3847        <!--Defines whether the animator loops to the first view once it
3848        has reached the end of the list. -->
3849        <attr name="loopViews" format="boolean" />
3850        <!-- Defines whether to animate the current View when the ViewAnimation
3851        is first displayed. -->
3852        <attr name="animateFirstView" />
3853    </declare-styleable>
3854    <declare-styleable name="AdapterViewFlipper">
3855        <attr name="flipInterval" />
3856        <!-- When true, automatically start animating -->
3857        <attr name="autoStart" />
3858    </declare-styleable>
3859    <declare-styleable name="ViewSwitcher">
3860    </declare-styleable>
3861    <declare-styleable name="ScrollView">
3862        <!-- Defines whether the scrollview should stretch its content to fill the viewport. -->
3863        <attr name="fillViewport" format="boolean" />
3864    </declare-styleable>
3865    <declare-styleable name="HorizontalScrollView">
3866        <!-- Defines whether the scrollview should stretch its content to fill the viewport. -->
3867        <attr name="fillViewport" />
3868    </declare-styleable>
3869    <declare-styleable name="Spinner">
3870        <!-- The prompt to display when the spinner's dialog is shown. -->
3871        <attr name="prompt" format="reference" />
3872        <!-- Display mode for spinner options. -->
3873        <attr name="spinnerMode" format="enum">
3874            <!-- Spinner options will be presented to the user as a dialog window. -->
3875            <enum name="dialog" value="0" />
3876            <!-- Spinner options will be presented to the user as an inline dropdown
3877                 anchored to the spinner widget itself. -->
3878            <enum name="dropdown" value="1" />
3879        </attr>
3880        <!-- List selector to use for spinnerMode="dropdown" display. -->
3881        <attr name="dropDownSelector" />
3882        <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
3883        <attr name="popupBackground" />
3884        <!-- Vertical offset from the spinner widget for positioning the dropdown in
3885             spinnerMode="dropdown". -->
3886        <attr name="dropDownVerticalOffset" />
3887        <!-- Horizontal offset from the spinner widget for positioning the dropdown
3888             in spinnerMode="dropdown". -->
3889        <attr name="dropDownHorizontalOffset" />
3890        <!-- Width of the dropdown in spinnerMode="dropdown". -->
3891        <attr name="dropDownWidth" />
3892        <!-- Reference to a layout to use for displaying a prompt in the dropdown for
3893             spinnerMode="dropdown". This layout must contain a TextView with the id
3894             {@code @android:id/text1} to be populated with the prompt text. -->
3895        <attr name="popupPromptView" format="reference" />
3896        <!-- Gravity setting for positioning the currently selected item. -->
3897        <attr name="gravity" />
3898        <!-- Whether this spinner should mark child views as enabled/disabled when
3899             the spinner itself is enabled/disabled. -->
3900        <attr name="disableChildrenWhenDisabled" format="boolean" />
3901    </declare-styleable>
3902
3903    <declare-styleable name="DatePicker">
3904        <!-- The first year (inclusive), for example "1940".
3905             {@deprecated Use minDate instead.}
3906         -->
3907        <attr name="startYear" format="integer" />
3908        <!-- The last year (inclusive), for example "2010".
3909             {@deprecated Use maxDate instead.}
3910         -->
3911        <attr name="endYear" format="integer" />
3912        <!-- Whether the spinners are shown. -->
3913        <attr name="spinnersShown" format="boolean" />
3914        <!-- Whether the calendar view is shown. -->
3915        <attr name="calendarViewShown" format="boolean" />
3916        <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
3917        <attr name="minDate" format="string" />
3918        <!-- The maximal date shown by this calendar view in mm/dd/yyyy format. -->
3919        <attr name="maxDate" format="string" />
3920        <!-- @hide The layout of the date picker. -->
3921        <attr name="internalLayout" format="reference"  />
3922    </declare-styleable>
3923
3924    <declare-styleable name="TwoLineListItem">
3925        <attr name="mode">
3926            <!-- Always show only the first line. -->
3927            <enum name="oneLine" value="1" />
3928            <!-- When selected show both lines, otherwise show only the first line.
3929                 This is the default mode. -->
3930            <enum name="collapsing" value="2" />
3931            <!-- Always show both lines. -->
3932            <enum name="twoLine" value="3" />
3933        </attr>
3934    </declare-styleable>
3935
3936    <!-- SlidingDrawer specific attributes. These attributes are used to configure
3937         a SlidingDrawer from XML. -->
3938    <declare-styleable name="SlidingDrawer">
3939        <!-- Identifier for the child that represents the drawer's handle. -->
3940        <attr name="handle" format="reference" />
3941        <!-- Identifier for the child that represents the drawer's content. -->
3942        <attr name="content" format="reference" />
3943        <!-- Orientation of the SlidingDrawer. -->
3944        <attr name="orientation" />
3945        <!-- Extra offset for the handle at the bottom of the SlidingDrawer. -->
3946        <attr name="bottomOffset" format="dimension"  />
3947        <!-- Extra offset for the handle at the top of the SlidingDrawer. -->
3948        <attr name="topOffset" format="dimension"  />
3949        <!-- Indicates whether the drawer can be opened/closed by a single tap
3950             on the handle.  (If false, the user must drag or fling, or click
3951             using the trackball, to open/close the drawer.)  Default is true. -->
3952        <attr name="allowSingleTap" format="boolean" />
3953        <!-- Indicates whether the drawer should be opened/closed with an animation
3954             when the user clicks the handle. Default is true. -->
3955        <attr name="animateOnClick" format="boolean" />
3956    </declare-styleable>
3957
3958    <!-- GestureOverlayView specific attributes. These attributes are used to configure
3959         a GestureOverlayView from XML. -->
3960    <declare-styleable name="GestureOverlayView">
3961        <!-- Width of the stroke used to draw the gesture. -->
3962        <attr name="gestureStrokeWidth" format="float" />
3963        <!-- Color used to draw a gesture. -->
3964        <attr name="gestureColor" format="color" />
3965        <!-- Color used to draw the user's strokes until we are sure it's a gesture. -->
3966        <attr name="uncertainGestureColor" format="color" />
3967        <!-- Time, in milliseconds, to wait before the gesture fades out after the user
3968             is done drawing it. -->
3969        <attr name="fadeOffset" format="integer" />
3970        <!-- Duration, in milliseconds, of the fade out effect after the user is done
3971             drawing a gesture. -->
3972        <attr name="fadeDuration" format="integer" />
3973        <!-- Defines the type of strokes that define a gesture. -->
3974        <attr name="gestureStrokeType">
3975            <!-- A gesture is made of only one stroke. -->
3976            <enum name="single" value="0" />
3977            <!-- A gesture is made of multiple strokes. -->
3978            <enum name="multiple" value="1" />
3979        </attr>
3980        <!-- Minimum length of a stroke before it is recognized as a gesture. -->
3981        <attr name="gestureStrokeLengthThreshold" format="float" />
3982        <!-- Squareness threshold of a stroke before it is recognized as a gesture. -->
3983        <attr name="gestureStrokeSquarenessThreshold" format="float" />
3984        <!-- Minimum curve angle a stroke must contain before it is recognized as a gesture. -->
3985        <attr name="gestureStrokeAngleThreshold" format="float" />
3986        <!-- Defines whether the overlay should intercept the motion events when a gesture
3987             is recognized. -->
3988        <attr name="eventsInterceptionEnabled" format="boolean" />
3989        <!-- Defines whether the gesture will automatically fade out after being recognized. -->
3990        <attr name="fadeEnabled" format="boolean" />
3991        <!-- Indicates whether horizontal (when the orientation is vertical) or vertical
3992             (when orientation is horizontal) strokes automatically define a gesture. -->
3993        <attr name="orientation" />
3994    </declare-styleable>
3995
3996    <declare-styleable name="QuickContactBadge">
3997        <attr name="quickContactWindowSize">
3998            <enum name="modeSmall" value="1" />
3999            <enum name="modeMedium" value="2" />
4000            <enum name="modeLarge" value="3" />
4001        </attr>
4002    </declare-styleable>
4003
4004    <!-- ======================================= -->
4005    <!-- Widget package parent layout attributes -->
4006    <!-- ======================================= -->
4007    <eat-comment />
4008
4009    <declare-styleable name="AbsoluteLayout_Layout">
4010        <attr name="layout_x" format="dimension" />
4011        <attr name="layout_y" format="dimension" />
4012    </declare-styleable>
4013    <declare-styleable name="LinearLayout_Layout">
4014        <attr name="layout_width" />
4015        <attr name="layout_height" />
4016        <attr name="layout_weight" format="float" />
4017        <attr name="layout_gravity" />
4018    </declare-styleable>
4019    <declare-styleable name="GridLayout_Layout">
4020        <!-- The row boundary delimiting the top of the group of cells
4021        occupied by this view. -->
4022        <attr name="layout_row" format="integer" />
4023        <!-- The row span: the difference between the bottom and top
4024        boundaries delimiting the group of cells occupied by this view.
4025        The default is one.
4026        See {@link android.widget.GridLayout.Spec}. -->
4027        <attr name="layout_rowSpan" format="integer" min="1" />
4028        <!-- The column boundary delimiting the left of the group of cells
4029        occupied by this view. -->
4030        <attr name="layout_column" />
4031        <!-- The column span: the difference between the right and left
4032        boundaries delimiting the group of cells occupied by this view.
4033        The default is one.
4034        See {@link android.widget.GridLayout.Spec}. -->
4035        <attr name="layout_columnSpan" format="integer" min="1" />
4036        <!-- Gravity specifies how a component should be placed in its group of cells.
4037        The default is LEFT | BASELINE.
4038        See {@link android.widget.GridLayout.LayoutParams#setGravity(int)}. -->
4039        <attr name="layout_gravity" />
4040    </declare-styleable>
4041    <declare-styleable name="FrameLayout_Layout">
4042        <attr name="layout_gravity" />
4043    </declare-styleable>
4044    <declare-styleable name="RelativeLayout_Layout">
4045        <!-- Positions the right edge of this view to the left of the given anchor view ID.
4046             Accommodates right margin of this view and left margin of anchor view. -->
4047        <attr name="layout_toLeftOf" format="reference" />
4048        <!-- Positions the left edge of this view to the right of the given anchor view ID.
4049            Accommodates left margin of this view and right margin of anchor view. -->
4050        <attr name="layout_toRightOf" format="reference" />
4051        <!-- Positions the bottom edge of this view above the given anchor view ID.
4052            Accommodates bottom margin of this view and top margin of anchor view. -->
4053        <attr name="layout_above" format="reference" />
4054        <!-- Positions the top edge of this view below the given anchor view ID.
4055            Accommodates top margin of this view and bottom margin of anchor view. -->
4056        <attr name="layout_below" format="reference" />
4057        <!-- Positions the baseline of this view on the baseline of the given anchor view ID. -->
4058        <attr name="layout_alignBaseline" format="reference" />
4059        <!-- Makes the left edge of this view match the left edge of the given anchor view ID.
4060            Accommodates left margin. -->
4061        <attr name="layout_alignLeft" format="reference" />
4062        <!-- Makes the top edge of this view match the top edge of the given anchor view ID.
4063            Accommodates top margin. -->
4064        <attr name="layout_alignTop" format="reference" />
4065        <!-- Makes the right edge of this view match the right edge of the given anchor view ID.
4066            Accommodates right margin. -->
4067        <attr name="layout_alignRight" format="reference" />
4068        <!-- Makes the bottom edge of this view match the bottom edge of the given anchor view ID.
4069            Accommodates bottom margin. -->
4070        <attr name="layout_alignBottom" format="reference" />
4071        <!-- If true, makes the left edge of this view match the left edge of the parent.
4072            Accommodates left margin. -->
4073        <attr name="layout_alignParentLeft" format="boolean" />
4074        <!-- If true, makes the top edge of this view match the top edge of the parent.
4075            Accommodates top margin. -->
4076        <attr name="layout_alignParentTop" format="boolean" />
4077        <!-- If true, makes the right edge of this view match the right edge of the parent.
4078            Accommodates right margin. -->
4079        <attr name="layout_alignParentRight" format="boolean" />
4080        <!-- If true, makes the bottom edge of this view match the bottom edge of the parent.
4081            Accommodates bottom margin. -->
4082        <attr name="layout_alignParentBottom" format="boolean" />
4083        <!-- If true, centers this child horizontally and vertically within its parent. -->
4084        <attr name="layout_centerInParent" format="boolean" />
4085        <!-- If true, centers this child horizontally within its parent. -->
4086        <attr name="layout_centerHorizontal" format="boolean" />
4087        <!-- If true, centers this child vertically within its parent. -->
4088        <attr name="layout_centerVertical" format="boolean" />
4089        <!-- If set to true, the parent will be used as the anchor when the anchor cannot be
4090             be found for layout_toLeftOf, layout_toRightOf, etc. -->
4091        <attr name="layout_alignWithParentIfMissing" format="boolean" />
4092        <!-- Positions the end edge of this view to the start of the given anchor view ID.
4093             Accommodates end margin of this view and start margin of anchor view. -->
4094        <attr name="layout_toStartOf" format="reference" />
4095        <!-- Positions the start edge of this view to the end of the given anchor view ID.
4096             Accommodates start margin of this view and end margin of anchor view. -->
4097        <attr name="layout_toEndOf" format="reference" />
4098        <!-- Makes the start edge of this view match the start edge of the given anchor view ID.
4099            Accommodates start margin. -->
4100        <attr name="layout_alignStart" format="reference" />
4101        <!-- Makes the end edge of this view match the end edge of the given anchor view ID.
4102            Accommodates end margin. -->
4103        <attr name="layout_alignEnd" format="reference" />
4104        <!-- If true, makes the start edge of this view match the start edge of the parent.
4105            Accommodates start margin. -->
4106        <attr name="layout_alignParentStart" format="boolean" />
4107        <!-- If true, makes the end edge of this view match the end edge of the parent.
4108            Accommodates end margin. -->
4109        <attr name="layout_alignParentEnd" format="boolean" />
4110    </declare-styleable>
4111    <declare-styleable name="VerticalSlider_Layout">
4112        <attr name="layout_scale" format="float" />
4113    </declare-styleable>
4114
4115    <!-- attributes for internal rotary widget used in lock screen and phone app
4116      @hide -->
4117    <declare-styleable name="RotarySelector">
4118        <!-- Use "horizontal" or "vertical".  The default is horizontal. -->
4119        <attr name="orientation" />
4120    </declare-styleable>
4121
4122    <!-- @hide -->
4123    <declare-styleable name="WeightedLinearLayout">
4124        <attr name="majorWeightMin" format="float" />
4125        <attr name="minorWeightMin" format="float" />
4126        <attr name="majorWeightMax" format="float" />
4127        <attr name="minorWeightMax" format="float" />
4128    </declare-styleable>
4129
4130    <declare-styleable name="CalendarView">
4131        <!-- The first day of week according to {@link java.util.Calendar}. -->
4132        <attr name="firstDayOfWeek" format="integer" />
4133        <!-- Whether do show week numbers. -->
4134        <attr name="showWeekNumber" format="boolean" />
4135        <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
4136        <attr name="minDate" />
4137        <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
4138        <attr name="maxDate" />
4139        <!-- The number of weeks to be shown. -->
4140        <attr name="shownWeekCount" format="integer"/>
4141        <!-- The background color for the selected week. -->
4142        <attr name="selectedWeekBackgroundColor" format="color|reference" />
4143        <!-- The color for the dates of the focused month. -->
4144        <attr name="focusedMonthDateColor" format="color|reference" />
4145        <!-- The color for the dates of an unfocused month. -->
4146        <attr name="unfocusedMonthDateColor" format="color|reference" />
4147        <!-- The color for the week numbers. -->
4148        <attr name="weekNumberColor" format="color|reference" />
4149        <!-- The color for the separator line between weeks. -->
4150        <attr name="weekSeparatorLineColor" format="color|reference" />
4151        <!-- Drawable for the vertical bar shown at the beginning and at the end of the selected date. -->
4152        <attr name="selectedDateVerticalBar" format="reference" />
4153        <!-- The text appearance for the week day abbreviation of the calendar header. -->
4154        <attr name="weekDayTextAppearance" format="reference" />
4155        <!-- The text appearance for the calendar dates. -->
4156        <attr name="dateTextAppearance" format="reference" />
4157    </declare-styleable>
4158
4159    <declare-styleable name="NumberPicker">
4160        <!-- @hide Color for the solid color background if such for optimized rendering. -->
4161        <attr name="solidColor" format="color|reference" />
4162        <!-- @hide The divider for making the selection area. -->
4163        <attr name="selectionDivider" format="reference" />
4164        <!-- @hide The height of the selection divider. -->
4165        <attr name="selectionDividerHeight" format="dimension" />
4166        <!-- @hide The distance between the two selection dividers. -->
4167        <attr name="selectionDividersDistance" format="dimension" />
4168        <!-- @hide The min height of the NumberPicker. -->
4169        <attr name="internalMinHeight" format="dimension" />
4170        <!-- @hide The max height of the NumberPicker. -->
4171        <attr name="internalMaxHeight" format="dimension" />
4172        <!-- @hide The min width of the NumberPicker. -->
4173        <attr name="internalMinWidth" format="dimension" />
4174        <!-- @hide The max width of the NumberPicker. -->
4175        <attr name="internalMaxWidth" format="dimension" />
4176        <!-- @hide The layout of the number picker. -->
4177        <attr name="internalLayout" />
4178        <!-- @hide The drawable for pressed virtual (increment/decrement) buttons. -->
4179        <attr name="virtualButtonPressedDrawable" format="reference"/>
4180    </declare-styleable>
4181
4182    <declare-styleable name="TimePicker">
4183        <!-- @hide The layout of the time picker. -->
4184        <attr name="internalLayout" />
4185        <!-- @hide The layout of the legacy time picker. -->
4186        <attr name="legacyLayout" format="reference" />
4187        <!-- @hide Enables or disable the use of the legacy layout for the TimePicker. -->
4188        <attr name="legacyMode" format="boolean" />
4189        <!-- @hide The color when the non legacy TimePicker is disabled. -->
4190        <attr name="disabledColor" format="color|reference" />
4191        <!-- @hide The color for selected text of the non legacy TimePicker. -->
4192        <attr name="headerSelectedTextColor" format="color|reference" />
4193        <!-- @hide The color for unselected text of the non legacy TimePicker. -->
4194        <attr name="headerUnselectedTextColor" format="color|reference" />
4195        <!-- @hide The background color for the header of the non legacy TimePicker. -->
4196        <attr name="headerBackgroundColor" format="color|reference" />
4197        <!-- @hide The color for the hours/minutes numbers of the non legacy TimePicker. -->
4198        <attr name="numbersTextColor" format="color|reference" />
4199        <!-- @hide The background color for the hours/minutes numbers of the non legacy TimePicker. -->
4200        <attr name="numbersBackgroundColor" format="color|reference" />
4201        <!-- @hide The color for the AM/PM selectors of the non legacy TimePicker. -->
4202        <attr name="amPmTextColor" format="color|reference" />
4203        <!-- @hide The background color for the AM/PM selectors of the non legacy TimePicker when unselected. -->
4204        <attr name="amPmUnselectedBackgroundColor" format="color|reference" />
4205        <!-- @hide The background color for the AM/PM selectors of the non legacy TimePicker when selected. -->
4206        <attr name="amPmSelectedBackgroundColor" format="color|reference" />
4207        <!-- @hide The color for the hours/minutes selector of the non legacy TimePicker. -->
4208        <attr name="numbersSelectorColor" format="color|reference" />
4209    </declare-styleable>
4210
4211    <!-- ========================= -->
4212    <!-- Drawable class attributes -->
4213    <!-- ========================= -->
4214    <eat-comment />
4215
4216    <!-- Base attributes that are available to all Drawable objects. -->
4217    <declare-styleable name="Drawable">
4218        <!-- Provides initial visibility state of the drawable; the default
4219             value is false.  See
4220             {@link android.graphics.drawable.Drawable#setVisible}. -->
4221        <attr name="visible" format="boolean" />
4222        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4223             RTL (right-to-left).  See
4224             {@link android.graphics.drawable.Drawable#setAutoMirrored}. -->
4225        <attr name="autoMirrored" format="boolean" />
4226    </declare-styleable>
4227
4228    <!-- Drawable used to render several states. Each state is represented by
4229         a child drawable. -->
4230    <declare-styleable name="StateListDrawable">
4231        <!-- Indicates whether the drawable should be initially visible. -->
4232        <attr name="visible" />
4233        <!-- If true, allows the drawable's padding to change based on the
4234             current state that is selected.  If false, the padding will
4235             stay the same (based on the maximum padding of all the states).
4236             Enabling this feature requires that the owner of the drawable
4237             deal with performing layout when the state changes, which is
4238             often not supported. -->
4239        <attr name="variablePadding" format="boolean" />
4240        <!-- If true, the drawable's reported internal size will remain
4241             constant as the state changes; the size is the maximum of all
4242             of the states.  If false, the size will vary based on the
4243             current state. -->
4244        <attr name="constantSize" format="boolean" />
4245        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
4246             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
4247             an RGB 565 screen). -->
4248        <attr name="dither" format="boolean" />
4249        <!-- Amount of time (in milliseconds) to fade in a new state drawable. -->
4250        <attr name="enterFadeDuration" format="integer" />
4251        <!-- Amount of time (in milliseconds) to fade out an old state drawable. -->
4252        <attr name="exitFadeDuration" format="integer" />
4253        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4254             RTL (right-to-left). -->
4255        <attr name="autoMirrored"/>
4256    </declare-styleable>
4257
4258    <!-- Drawable used to render several states with animated transitions. Each state
4259         is represented by a child drawable with an optional keyframe ID. -->
4260    <declare-styleable name="AnimatedStateListDrawable">
4261        <!-- Indicates whether the drawable should be initially visible. -->
4262        <attr name="visible" />
4263        <!-- If true, allows the drawable's padding to change based on the
4264             current state that is selected.  If false, the padding will
4265             stay the same (based on the maximum padding of all the states).
4266             Enabling this feature requires that the owner of the drawable
4267             deal with performing layout when the state changes, which is
4268             often not supported. -->
4269        <attr name="variablePadding" />
4270        <!-- If true, the drawable's reported internal size will remain
4271             constant as the state changes; the size is the maximum of all
4272             of the states.  If false, the size will vary based on the
4273             current state. -->
4274        <attr name="constantSize" />
4275        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
4276             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
4277             an RGB 565 screen). -->
4278        <attr name="dither" />
4279        <!-- Amount of time (in milliseconds) to fade in a new state drawable. -->
4280        <attr name="enterFadeDuration" />
4281        <!-- Amount of time (in milliseconds) to fade out an old state drawable. -->
4282        <attr name="exitFadeDuration" />
4283        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4284             RTL (right-to-left). -->
4285        <attr name="autoMirrored"/>
4286    </declare-styleable>
4287
4288    <!-- Transition used to animate between states with keyframe IDs. -->
4289    <declare-styleable name="AnimatedStateListDrawableItem">
4290        <!-- Reference to a drawable resource to use for the frame.  If not
4291             given, the drawable must be defined by the first child tag. -->
4292        <attr name="drawable" />
4293        <!-- Keyframe identifier for use in specifying transitions. -->
4294        <attr name="id" />
4295    </declare-styleable>
4296
4297    <!-- Transition used to animate between states with keyframe IDs. -->
4298    <declare-styleable name="AnimatedStateListDrawableTransition">
4299        <!-- Keyframe identifier for the starting state. -->
4300        <attr name="fromId" format="reference" />
4301        <!-- Keyframe identifier for the ending state. -->
4302        <attr name="toId" format="reference" />
4303        <!-- Reference to a animation drawable resource to use for the frame.  If not
4304             given, the animation drawable must be defined by the first child tag. -->
4305        <attr name="drawable" />
4306        <!-- Whether this transition is reversible. -->
4307        <attr name="reversible" format="boolean" />
4308    </declare-styleable>
4309
4310    <!-- Drawable used to render several animated frames. -->
4311    <declare-styleable name="AnimationDrawable">
4312        <attr name="visible" />
4313        <attr name="variablePadding" />
4314        <!-- If true, the animation will only run a single time and then
4315             stop.  If false (the default), it will continually run,
4316             restarting at the first frame after the last has finished. -->
4317        <attr name="oneshot" format="boolean" />
4318    </declare-styleable>
4319
4320    <!-- Represents a single frame inside an AnimationDrawable. -->
4321    <declare-styleable name="AnimationDrawableItem">
4322        <!-- Amount of time (in milliseconds) to display this frame. -->
4323        <attr name="duration" format="integer" />
4324        <!-- Reference to a drawable resource to use for the frame.  If not
4325             given, the drawable must be defined by the first child tag. -->
4326        <attr name="drawable" format="reference" />
4327    </declare-styleable>
4328
4329    <!-- Attributes that can be assigned to a StateListAnimator item. -->
4330    <declare-styleable name="StateListAnimatorItem">
4331        <attr name="animation"/>
4332    </declare-styleable>
4333
4334    <!-- Drawable used to render a geometric shape, with a gradient or a solid color. -->
4335    <declare-styleable name="GradientDrawable">
4336        <!-- Indicates whether the drawable should intially be visible. -->
4337        <attr name="visible" />
4338        <!-- Enables or disables dithering. -->
4339        <attr name="dither" />
4340        <!-- Indicates what shape to fill with a gradient. -->
4341        <attr name="shape">
4342            <!-- Rectangle shape, with optional rounder corners. -->
4343            <enum name="rectangle" value="0" />
4344            <!-- Oval shape. -->
4345            <enum name="oval" value="1" />
4346            <!-- Line shape. -->
4347            <enum name="line" value="2" />
4348            <!-- Ring shape. -->
4349            <enum name="ring" value="3" />
4350        </attr>
4351        <!-- Inner radius of the ring expressed as a ratio of the ring's width. For instance,
4352             if innerRadiusRatio=9, then the inner radius equals the ring's width divided by 9.
4353             This value is ignored if innerRadius is defined. Default value is 9. -->
4354        <attr name="innerRadiusRatio" format="float" />
4355        <!-- Thickness of the ring expressed as a ratio of the ring's width. For instance,
4356             if thicknessRatio=3, then the thickness equals the ring's width divided by 3.
4357             This value is ignored if innerRadius is defined. Default value is 3. -->
4358        <attr name="thicknessRatio" format="float" />
4359        <!-- Inner radius of the ring. When defined, innerRadiusRatio is ignored. -->
4360        <attr name="innerRadius" format="dimension" />
4361        <!-- Thickness of the ring. When defined, thicknessRatio is ignored. -->
4362        <attr name="thickness" format="dimension" />
4363        <!-- Indicates whether the drawable's level affects the way the gradient is drawn. -->
4364        <attr name="useLevel" />
4365    </declare-styleable>
4366
4367    <!-- Used to specify the size of the shape for GradientDrawable. -->
4368    <declare-styleable name="GradientDrawableSize">
4369        <!-- Width of the gradient shape. -->
4370        <attr name="width" />
4371        <!-- Height of the gradient shape. -->
4372        <attr name="height" />
4373    </declare-styleable>
4374
4375    <!-- Used to describe the gradient used to fill the shape of a GradientDrawable. -->
4376    <declare-styleable name="GradientDrawableGradient">
4377        <!-- Start color of the gradient. -->
4378        <attr name="startColor" format="color" />
4379        <!-- Optional center color. For linear gradients, use centerX or centerY
4380             to place the center color. -->
4381        <attr name="centerColor" format="color" />
4382        <!-- End color of the gradient. -->
4383        <attr name="endColor" format="color" />
4384        <attr name="useLevel" format="boolean" />
4385        <!-- Angle of the gradient. -->
4386        <attr name="angle" format="float" />
4387        <!-- Type of gradient. The default type is linear. -->
4388        <attr name="type">
4389            <!-- Linear gradient. -->
4390            <enum name="linear" value="0" />
4391            <!-- Radial, or circular, gradient. -->
4392            <enum name="radial" value="1" />
4393            <!-- Sweep, or angled or diamond, gradient. -->
4394            <enum name="sweep"  value="2" />
4395        </attr>
4396        <!-- X coordinate of the origin of the gradient within the shape. -->
4397        <attr name="centerX" format="float|fraction" />
4398        <!-- Y coordinate of the origin of the gradient within the shape. -->
4399        <attr name="centerY" format="float|fraction" />
4400        <!-- Radius of the gradient, used only with radial gradient. -->
4401        <attr name="gradientRadius" format="float|fraction" />
4402    </declare-styleable>
4403
4404    <!-- Used to fill the shape of GradientDrawable with a solid color. -->
4405    <declare-styleable name="GradientDrawableSolid">
4406        <!-- Solid color for the gradient shape. -->
4407        <attr name="color" format="color" />
4408    </declare-styleable>
4409
4410    <!-- Used to describe the optional stroke of a GradientDrawable. -->
4411    <declare-styleable name="GradientDrawableStroke">
4412        <!-- Width of the gradient shape's stroke. -->
4413        <attr name="width" />
4414        <!-- Color of the gradient shape's stroke. -->
4415        <attr name="color" />
4416        <!-- Length of a dash in the stroke. -->
4417        <attr name="dashWidth" format="dimension" />
4418        <!-- Gap between dashes in the stroke. -->
4419        <attr name="dashGap" format="dimension" />
4420    </declare-styleable>
4421
4422    <!-- Describes the corners for the rectangle shape of a GradientDrawable.
4423         This can be used to render rounded corners. -->
4424    <declare-styleable name="DrawableCorners">
4425        <!-- Defines the radius of the four corners. -->
4426        <attr name="radius" format="dimension" />
4427        <!-- Radius of the top left corner. -->
4428        <attr name="topLeftRadius" format="dimension" />
4429        <!-- Radius of the top right corner. -->
4430        <attr name="topRightRadius" format="dimension" />
4431        <!-- Radius of the bottom left corner. -->
4432        <attr name="bottomLeftRadius" format="dimension" />
4433        <!-- Radius of the bottom right corner. -->
4434        <attr name="bottomRightRadius" format="dimension" />
4435    </declare-styleable>
4436
4437    <!-- Used to specify the optional padding of a GradientDrawable. -->
4438    <declare-styleable name="GradientDrawablePadding">
4439        <!-- Amount of left padding inside the gradient shape. -->
4440        <attr name="left" format="dimension" />
4441        <!-- Amount of top padding inside the gradient shape. -->
4442        <attr name="top" format="dimension" />
4443        <!-- Amount of right padding inside the gradient shape. -->
4444        <attr name="right" format="dimension" />
4445        <!-- Amount of bottom padding inside the gradient shape. -->
4446        <attr name="bottom" format="dimension" />
4447    </declare-styleable>
4448
4449    <!-- Drawable used to render several drawables stacked on top of each other.
4450         Each child drawable can be controlled individually. -->
4451    <declare-styleable name="LayerDrawable">
4452        <!-- Indicates the opacity of the layer. This can be useful to allow the
4453              system to enable drawing optimizations. The default value is
4454              translucent. -->
4455        <attr name="opacity">
4456            <!-- Indicates that the layer is opaque and contains no transparent
4457                 nor translucent pixels. -->
4458            <enum name="opaque" value="-1" />
4459            <!-- The layer is completely transparent (no pixel will be drawn.) -->
4460            <enum name="transparent" value="-2" />
4461            <!-- The layer has translucent pixels. -->
4462            <enum name="translucent" value="-3" />
4463        </attr>
4464        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4465             RTL (right-to-left). -->
4466        <attr name="autoMirrored" />
4467        <!-- Indicates how layer padding should affect the bounds of subsequent layers.
4468            The default value is nest. -->
4469        <attr name="paddingMode">
4470            <!-- Nest each layer inside the padding of the previous layer. -->
4471            <enum name="nest" value="0" />
4472            <!-- Stack each layer directly atop the previous layer. -->
4473            <enum name="stack" value="1" />
4474        </attr>
4475    </declare-styleable>
4476
4477    <!-- Describes an item (or child) of a LayerDrawable. -->
4478    <declare-styleable name="LayerDrawableItem">
4479        <!-- Left coordinate of the layer. -->
4480        <attr name="left" />
4481        <!-- Top coordinate of the layer. -->
4482        <attr name="top" />
4483        <!-- Right coordinate of the layer. -->
4484        <attr name="right" />
4485        <!-- Bottom coordinate of the layer. -->
4486        <attr name="bottom" />
4487        <!-- Drawable used to render the layer. -->
4488        <attr name="drawable" />
4489        <!-- Identifier of the layer. This can be used to retrieve the layer
4490             from a drawable container. -->
4491        <attr name="id" />
4492    </declare-styleable>
4493
4494    <declare-styleable name="LevelListDrawableItem">
4495        <!-- The minimum level allowed for this item. -->
4496        <attr name="minLevel" format="integer" />
4497        <!-- The maximum level allowed for this item. -->
4498        <attr name="maxLevel" format="integer" />
4499        <attr name="drawable" />
4500    </declare-styleable>
4501
4502    <!-- Drawable used to rotate another drawable. -->
4503    <declare-styleable name="RotateDrawable">
4504        <attr name="visible" />
4505        <attr name="fromDegrees" format="float" />
4506        <attr name="toDegrees" format="float" />
4507        <attr name="pivotX" format="float|fraction" />
4508        <attr name="pivotY" format="float|fraction" />
4509        <attr name="drawable" />
4510    </declare-styleable>
4511
4512    <declare-styleable name="AnimatedRotateDrawable">
4513        <attr name="visible" />
4514        <attr name="frameDuration" format="integer" />
4515        <attr name="framesCount" format="integer" />
4516        <attr name="pivotX" />
4517        <attr name="pivotY" />
4518        <attr name="drawable" />
4519    </declare-styleable>
4520
4521    <declare-styleable name="InsetDrawable">
4522        <attr name="visible" />
4523        <attr name="drawable" />
4524        <attr name="insetLeft" format="dimension" />
4525        <attr name="insetRight" format="dimension" />
4526        <attr name="insetTop" format="dimension" />
4527        <attr name="insetBottom" format="dimension" />
4528    </declare-styleable>
4529
4530    <!-- Drawable used to draw bitmaps. -->
4531    <declare-styleable name="BitmapDrawable">
4532        <!-- Identifier of the bitmap file. This attribute is mandatory. -->
4533        <attr name="src" />
4534        <!-- Enables or disables antialiasing. Antialiasing can be used to smooth the
4535             edges of a bitmap when rotated. Default value is false. -->
4536        <attr name="antialias" format="boolean" />
4537        <!-- Enables or disables bitmap filtering. Filtering is used when the bitmap is
4538             shrunk or stretched to smooth its apperance. Default value is true. -->
4539        <attr name="filter" format="boolean" />
4540        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
4541             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
4542             an RGB 565 screen). Default value is true. -->
4543        <attr name="dither" />
4544        <!-- Defines the gravity for the bitmap. The gravity indicates where to position
4545             the drawable in its container if the bitmap is smaller than the container. -->
4546        <attr name="gravity" />
4547        <!-- Defines the tile mode. When the tile mode is enabled, the bitmap is repeated.
4548             Gravity is ignored when the tile mode is enabled. Default value is "disabled". -->
4549        <attr name="tileMode">
4550            <!-- Do not tile the bitmap. This is the default value. -->
4551            <enum name="disabled" value="-1" />
4552            <!-- Replicates the edge color. -->
4553            <enum name="clamp" value="0" />
4554            <!-- Repeats the bitmap in both direction. -->
4555            <enum name="repeat" value="1" />
4556            <!-- Repeats the shader's image horizontally and vertically, alternating
4557                 mirror images so that adjacent images always seam. -->
4558            <enum name="mirror" value="2" />
4559        </attr>
4560        <!-- Enables or disables the mipmap hint. See
4561            {@link android.graphics.Bitmap#setHasMipMap(boolean)} for more information.
4562            Default value is false. -->
4563        <attr name="mipMap" format="boolean" />
4564        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4565             RTL (right-to-left). -->
4566        <attr name="autoMirrored" />
4567        <!-- If set, specifies the color to apply to the drawable as a tint. By default,
4568             no tint is applied. May be a color state list. -->
4569        <attr name="tint" />
4570        <!-- When a tint color is set, specifies its Porter-Duff blending mode. The
4571             default value is src_in, which treats the drawable as an alpha mask. -->
4572        <attr name="tintMode">
4573            <!-- The tint is drawn on top of the drawable.
4574                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
4575            <enum name="src_over" value="3" />
4576            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
4577                 color channels are thrown out. [Sa * Da, Sc * Da] -->
4578            <enum name="src_in" value="5" />
4579            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
4580                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
4581            <enum name="src_atop" value="9" />
4582            <!-- Multiplies the color and alpha channels of the drawable with those of
4583                 the tint. [Sa * Da, Sc * Dc] -->
4584            <enum name="multiply" value="14" />
4585            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4586            <enum name="screen" value="15" />
4587            <!-- Combines the tint and drawable color and alpha channels, clamping the
4588                 result to valid color values. Saturate(S + D) -->
4589            <enum name="add" value="16" />
4590        </attr>
4591        <!-- Specifies the alpha multiplier to apply to the base drawable. -->
4592        <attr name="alpha" />
4593    </declare-styleable>
4594
4595    <!-- Drawable used to draw 9-patches. -->
4596    <declare-styleable name="NinePatchDrawable">
4597        <!-- Identifier of the bitmap file. This attribute is mandatory. -->
4598        <attr name="src" />
4599        <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
4600             same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
4601             an RGB 565 screen). -->
4602        <attr name="dither" />
4603        <!-- Indicates if the drawable needs to be mirrored when its layout direction is
4604             RTL (right-to-left). -->
4605        <attr name="autoMirrored" />
4606        <!-- If set, specifies the color to apply to the drawable as a tint. By default,
4607             no tint is applied. May be a color state list. -->
4608        <attr name="tint" />
4609        <!-- When a tint color is set, specifies its Porter-Duff blending mode. The
4610             default value is src_in, which treats the drawable as an alpha mask. -->
4611        <attr name="tintMode" />
4612        <!-- Specifies the alpha multiplier to apply to the base drawable. -->
4613        <attr name="alpha" />
4614    </declare-styleable>
4615
4616    <!-- Drawable used to draw a single color. -->
4617    <declare-styleable name="ColorDrawable">
4618        <!-- The color to use. -->
4619        <attr name="color" />
4620    </declare-styleable>
4621
4622    <!-- Drawable used to show animated touch feedback. -->
4623    <declare-styleable name="TouchFeedbackDrawable">
4624        <!-- The tint to use for feedback ripples. This attribute is required. -->
4625        <attr name="tint" />
4626        <!-- Specifies the Porter-Duff blending mode used to apply the tint. The default vlaue is src_atop, which draws over the opaque parts of the drawable. -->
4627        <attr name="tintMode" />
4628        <!-- Whether to pin feedback ripples to the center of the drawable. Default value is false. -->
4629        <attr name="pinned" format="boolean" />
4630    </declare-styleable>
4631
4632    <declare-styleable name="ScaleDrawable">
4633        <!-- Scale width, expressed as a percentage of the drawable's bound. The value's
4634             format is XX%. For instance: 100%, 12.5%, etc.-->
4635        <attr name="scaleWidth" format="string" />
4636        <!-- Scale height, expressed as a percentage of the drawable's bound. The value's
4637             format is XX%. For instance: 100%, 12.5%, etc.-->
4638        <attr name="scaleHeight" format="string" />
4639        <!-- Specifies where the drawable is positioned after scaling. The default value is
4640             left. -->
4641        <attr name="scaleGravity">
4642            <!-- Push object to the top of its container, not changing its size. -->
4643            <flag name="top" value="0x30" />
4644            <!-- Push object to the bottom of its container, not changing its size. -->
4645            <flag name="bottom" value="0x50" />
4646            <!-- Push object to the left of its container, not changing its size. -->
4647            <flag name="left" value="0x03" />
4648            <!-- Push object to the right of its container, not changing its size. -->
4649            <flag name="right" value="0x05" />
4650            <!-- Place object in the vertical center of its container, not changing its size. -->
4651            <flag name="center_vertical" value="0x10" />
4652            <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
4653            <flag name="fill_vertical" value="0x70" />
4654            <!-- Place object in the horizontal center of its container, not changing its size. -->
4655            <flag name="center_horizontal" value="0x01" />
4656            <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
4657            <flag name="fill_horizontal" value="0x07" />
4658            <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
4659            <flag name="center" value="0x11" />
4660            <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
4661            <flag name="fill" value="0x77" />
4662            <!-- Additional option that can be set to have the top and/or bottom edges of
4663                 the child clipped to its container's bounds.
4664                 The clip will be based on the vertical gravity: a top gravity will clip the bottom
4665                 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
4666            <flag name="clip_vertical" value="0x80" />
4667            <!-- Additional option that can be set to have the left and/or right edges of
4668                 the child clipped to its container's bounds.
4669                 The clip will be based on the horizontal gravity: a left gravity will clip the right
4670                 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
4671            <flag name="clip_horizontal" value="0x08" />
4672            <!-- Push object to the beginning of its container, not changing its size. -->
4673            <flag name="start" value="0x00800003" />
4674            <!-- Push object to the end of its container, not changing its size. -->
4675            <flag name="end" value="0x00800005" />
4676        </attr>
4677        <!-- Reference to a drawable resource to draw with the specified scale. -->
4678        <attr name="drawable" />
4679        <!-- Use the drawable's intrinsic width and height as minimum size values.
4680             Useful if the target drawable is a 9-patch or otherwise should not be scaled
4681             down beyond a minimum size. -->
4682        <attr name="useIntrinsicSizeAsMinimum" format="boolean" />
4683    </declare-styleable>
4684
4685    <declare-styleable name="ClipDrawable">
4686        <!-- The orientation for the clip. -->
4687        <attr name="clipOrientation">
4688            <!-- Clip the drawable horizontally. -->
4689            <flag name="horizontal" value="1" />
4690            <!-- Clip the drawable vertically. -->
4691            <flag name="vertical" value="2" />
4692        </attr>
4693        <!-- Specifies where to clip within the drawable. The default value is
4694             left. -->
4695        <attr name="gravity" />
4696        <!-- Reference to a drawable resource to draw with the specified scale. -->
4697        <attr name="drawable" />
4698    </declare-styleable>
4699
4700    <!-- Defines the padding of a ShapeDrawable. -->
4701    <declare-styleable name="ShapeDrawablePadding">
4702        <!-- Left padding. -->
4703        <attr name="left" />
4704        <!-- Top padding. -->
4705        <attr name="top" />
4706        <!-- Right padding. -->
4707        <attr name="right" />
4708        <!-- Bottom padding. -->
4709        <attr name="bottom" />
4710    </declare-styleable>
4711
4712    <!-- Drawable used to draw shapes. -->
4713    <declare-styleable name="ShapeDrawable">
4714        <!-- Defines the color of the shape. -->
4715        <attr name="color" />
4716        <!-- Defines the width of the shape. -->
4717        <attr name="width" />
4718        <!-- Defines the height of the shape. -->
4719        <attr name="height" />
4720        <!-- Enables or disables dithering. -->
4721        <attr name="dither" />
4722    </declare-styleable>
4723
4724    <!-- ========================== -->
4725    <!--   Vector drawable class   -->
4726    <!-- ========================== -->
4727    <eat-comment />
4728
4729    <!-- Drawable used to draw Vector Drawables. -->
4730    <declare-styleable name="VectorDrawable">
4731        <attr name="versionCode" />
4732    </declare-styleable>
4733
4734    <!-- Define the virtual size of the drawing surface paths will draw to. -->
4735    <declare-styleable name="VectorDrawableViewport">
4736        <!-- The width of the canvas the drawing is on. -->
4737        <attr name="viewportWidth" format="float"/>
4738        <!-- The height of the canvas the drawing is on. -->
4739        <attr name="viewportHeight" format="float"/>
4740    </declare-styleable>
4741
4742    <!-- Define the size of the drawable -->
4743    <declare-styleable name="VectorDrawableSize">
4744        <!-- Width of the Vector Drawable. -->
4745        <attr name="width" />
4746        <!-- Height of the Vector Drawable. -->
4747        <attr name="height" />
4748    </declare-styleable>
4749
4750    <!-- Defines the path used in Vector Drawables. -->
4751    <declare-styleable name="VectorDrawablePath">
4752        <!-- The Name of this path -->
4753        <attr name="name" />
4754        <!-- The width a path stroke -->
4755        <attr name="strokeWidth" format="float" />
4756        <!-- The opacity of a path stroke -->
4757        <attr name="strokeOpacity" format="float" />
4758        <!-- The amount to rotate the path stroke -->
4759        <attr name="rotation" />
4760        <!-- The X coordinate of the center of rotation of a path -->
4761        <attr name="pivotX" />
4762        <!-- The Y coordinate of the center of rotation of a path -->
4763        <attr name="pivotY" />
4764        <!-- The color to stroke the path if not defined implies no stroke-->
4765        <attr name="stroke" format="color" />
4766        <!-- The color to fill the path if not defined implies no fill-->
4767        <attr name="fill" format="color" />
4768        <!-- The level of opacity of the filled area of the path -->
4769        <attr name="fillOpacity" format="float" />
4770        <!-- The specification of the operations that define the path  -->
4771        <attr name="pathData" format="string" />
4772        <!-- The fraction of the path to trim from the start from 0 to 1 -->
4773        <attr name="trimPathStart" format="float" />
4774        <!-- The fraction of the path to trim from the end from 0 to 1  -->
4775        <attr name="trimPathEnd" format="float" />
4776        <!-- Shift trim region (allows visible region to include the start and end) from 0 to 1  -->
4777        <attr name="trimPathOffset" format="float" />
4778        <!-- Path will set the current clip path -->
4779        <attr name="clipToPath" format="boolean" />
4780        <!-- sets the linecap for a stroked path -->
4781        <attr name="strokeLineCap" format="enum">
4782            <enum name="butt" value="0"/>
4783            <enum name="round" value="1"/>
4784            <enum name="square" value="2"/>
4785        </attr>
4786        <!-- sets the lineJoin for a stroked path -->
4787        <attr name="strokeLineJoin" format="enum">
4788            <enum name="miter" value="0"/>
4789            <enum name="round" value="1"/>
4790            <enum name="bevel" value="2"/>
4791        </attr>
4792        <!-- sets the Miter limit for a stroked path -->
4793        <attr name="strokeMiterLimit" format="float"/>
4794    </declare-styleable>
4795
4796    <!-- ========================== -->
4797    <!-- Animation class attributes -->
4798    <!-- ========================== -->
4799    <eat-comment />
4800
4801    <declare-styleable name="Animation">
4802        <!-- Defines the interpolator used to smooth the animation movement in time. -->
4803        <attr name="interpolator" />
4804        <!-- When set to true, the value of fillBefore is taken into account. -->
4805        <attr name="fillEnabled" format="boolean" />
4806        <!-- When set to true or when fillEnabled is not set to true, the animation transformation
4807             is applied before the animation has started. The default value is true. -->
4808        <attr name="fillBefore" format="boolean" />
4809        <!-- When set to true, the animation transformation is applied after the animation is
4810             over. The default value is false. If fillEnabled is not set to true and the
4811             animation is not set on a View, fillAfter is assumed to be true.-->
4812        <attr name="fillAfter" format="boolean" />
4813        <!-- Amount of time (in milliseconds) for the animation to run. -->
4814        <attr name="duration" />
4815        <!-- Delay in milliseconds before the animation runs, once start time is reached. -->
4816        <attr name="startOffset" format="integer" />
4817        <!-- Defines how many times the animation should repeat. The default value is 0. -->
4818        <attr name="repeatCount" format="integer">
4819            <enum name="infinite" value="-1" />
4820        </attr>
4821        <!-- Defines the animation behavior when it reaches the end and the repeat count is
4822             greater than 0 or infinite. The default value is restart. -->
4823        <attr name="repeatMode">
4824            <!-- The animation starts again from the beginning. -->
4825            <enum name="restart" value="1" />
4826            <!-- The animation plays backward. -->
4827            <enum name="reverse" value="2" />
4828        </attr>
4829        <!-- Allows for an adjustment of the Z ordering of the content being
4830             animated for the duration of the animation.  The default value is normal. -->
4831        <attr name="zAdjustment">
4832            <!-- The content being animated be kept in its current Z order. -->
4833            <enum name="normal" value="0" />
4834            <!-- The content being animated is forced on top of all other
4835                 content for the duration of the animation. -->
4836            <enum name="top" value="1" />
4837            <!-- The content being animated is forced under all other
4838                 content for the duration of the animation. -->
4839            <enum name="bottom" value="-1" />
4840        </attr>
4841        <!-- Special background behind animation.  Only for use with window
4842             animations.  Can only be a color, and only black.  If 0, the
4843             default, there is no background. -->
4844        <attr name="background" />
4845        <!-- Special option for window animations: if this window is on top
4846             of a wallpaper, don't animate the wallpaper with it. -->
4847        <attr name="detachWallpaper" format="boolean" />
4848    </declare-styleable>
4849
4850    <declare-styleable name="AnimationSet">
4851        <attr name="shareInterpolator" format="boolean" />
4852        <attr name="fillBefore" />
4853        <attr name="fillAfter" />
4854        <attr name="duration" />
4855        <attr name="startOffset" />
4856        <attr name="repeatMode" />
4857    </declare-styleable>
4858
4859    <declare-styleable name="RotateAnimation">
4860        <attr name="fromDegrees" />
4861        <attr name="toDegrees" />
4862        <attr name="pivotX" />
4863        <attr name="pivotY" />
4864    </declare-styleable>
4865
4866    <declare-styleable name="ScaleAnimation">
4867        <attr name="fromXScale" format="float|fraction|dimension" />
4868        <attr name="toXScale" format="float|fraction|dimension" />
4869        <attr name="fromYScale" format="float|fraction|dimension" />
4870        <attr name="toYScale" format="float|fraction|dimension" />
4871        <attr name="pivotX" />
4872        <attr name="pivotY" />
4873    </declare-styleable>
4874
4875    <declare-styleable name="TranslateAnimation">
4876        <attr name="fromXDelta" format="float|fraction" />
4877        <attr name="toXDelta" format="float|fraction" />
4878        <attr name="fromYDelta" format="float|fraction" />
4879        <attr name="toYDelta" format="float|fraction" />
4880    </declare-styleable>
4881
4882    <declare-styleable name="AlphaAnimation">
4883        <attr name="fromAlpha" format="float" />
4884        <attr name="toAlpha" format="float" />
4885    </declare-styleable>
4886
4887    <declare-styleable name="LayoutAnimation">
4888        <!-- Fraction of the animation duration used to delay the beginning of
4889         the animation of each child. -->
4890        <attr name="delay" format="float|fraction" />
4891        <!-- Animation to use on each child. -->
4892        <attr name="animation" format="reference" />
4893        <!-- The order in which the animations will be started. -->
4894        <attr name="animationOrder">
4895            <!-- Animations are started in the natural order. -->
4896            <enum name="normal" value="0" />
4897            <!-- Animations are started in the reverse order. -->
4898            <enum name="reverse" value="1" />
4899            <!-- Animations are started randomly. -->
4900            <enum name="random" value="2" />
4901        </attr>
4902        <!-- Interpolator used to interpolate the delay between the start of
4903         each animation. -->
4904        <attr name="interpolator" />
4905    </declare-styleable>
4906
4907    <declare-styleable name="GridLayoutAnimation">
4908        <!-- Fraction of the animation duration used to delay the beginning of
4909         the animation of each column. -->
4910        <attr name="columnDelay" format="float|fraction" />
4911        <!-- Fraction of the animation duration used to delay the beginning of
4912         the animation of each row. -->
4913        <attr name="rowDelay" format="float|fraction" />
4914        <!-- Direction of the animation in the grid. -->
4915        <attr name="direction">
4916            <!-- Animates columns from left to right. -->
4917            <flag name="left_to_right" value="0x0" />
4918            <!-- Animates columns from right to left. -->
4919            <flag name="right_to_left" value="0x1" />
4920            <!-- Animates rows from top to bottom. -->
4921            <flag name="top_to_bottom" value="0x0" />
4922            <!-- Animates rows from bottom to top. -->
4923            <flag name="bottom_to_top" value="0x2" />
4924        </attr>
4925        <!-- Priority of the rows and columns. When the priority is none,
4926         both rows and columns have the same priority. When the priority is
4927         column, the animations will be applied on the columns first. The same
4928         goes for rows. -->
4929        <attr name="directionPriority">
4930            <!-- Rows and columns are animated at the same time. -->
4931            <enum name="none"   value="0" />
4932            <!-- Columns are animated first. -->
4933            <enum name="column" value="1" />
4934            <!-- Rows are animated first. -->
4935            <enum name="row"    value="2" />
4936        </attr>
4937    </declare-styleable>
4938
4939    <declare-styleable name="AccelerateInterpolator">
4940        <!-- This is the amount of deceleration to add when easing in. -->
4941        <attr name="factor" format="float" />
4942    </declare-styleable>
4943
4944    <declare-styleable name="DecelerateInterpolator">
4945        <!-- This is the amount of acceleration to add when easing out. -->
4946        <attr name="factor" />
4947    </declare-styleable>
4948
4949    <declare-styleable name="CycleInterpolator">
4950        <attr name="cycles" format="float" />
4951    </declare-styleable>
4952
4953    <declare-styleable name="AnticipateInterpolator">
4954        <!-- This is the amount of tension. -->
4955        <attr name="tension" format="float" />
4956    </declare-styleable>
4957
4958    <declare-styleable name="OvershootInterpolator">
4959        <!-- This is the amount of tension. -->
4960        <attr name="tension" />
4961    </declare-styleable>
4962
4963    <declare-styleable name="AnticipateOvershootInterpolator">
4964        <!-- This is the amount of tension. -->
4965        <attr name="tension" />
4966        <!-- This is the amount by which to multiply the tension. -->
4967        <attr name="extraTension" format="float" />
4968    </declare-styleable>
4969
4970    <declare-styleable name="PathInterpolator">
4971        <attr name="controlX1" format="float" />
4972        <attr name="controlY1" format="float" />
4973        <attr name="controlX2" format="float" />
4974        <attr name="controlY2" format="float" />
4975    </declare-styleable>
4976
4977    <!-- ========================== -->
4978    <!-- Transition attributes -->
4979    <!-- ========================== -->
4980    <eat-comment />
4981
4982    <!-- Use specific transition subclass names as the root tag of the XML resource that
4983         describes a {@link android.transition.Transition Transition},
4984         such as <code>move</code>, <code>fade</code>, and <code>set</code>. -->
4985    <declare-styleable name="Transition">
4986        <!-- Amount of time (in milliseconds) that the transition should run. -->
4987        <attr name="duration" />
4988        <!-- Delay in milliseconds before the transition starts. -->
4989        <attr name="startDelay" format="integer" />
4990        <!-- Interpolator to be used in the animations spawned by this transition. -->
4991        <attr name="interpolator" />
4992        <!-- The match order to use for the transition. This is a comma-separated
4993             list of values, containing one or more of the following:
4994             id, itemId, viewName, instance. These correspond to
4995             {@link android.transition.Transition#MATCH_ID},
4996             {@link android.transition.Transition#MATCH_ITEM_ID},
4997             {@link android.transition.Transition#MATCH_VIEW_NAME}, and
4998             {@link android.transition.Transition#MATCH_INSTANCE}, respectively.
4999             This corresponds to {@link android.transition.Transition#setMatchOrder(int...)}. -->
5000        <attr name="matchOrder" format="string" />
5001    </declare-styleable>
5002
5003    <!-- Use <code>fade</code>as the root tag of the XML resource that
5004         describes a {@link android.transition.Fade Fade} transition.
5005         The attributes of the {@link android.R.styleable#Transition Transition}
5006         resource are available in addition to the specific attributes of Fade
5007         described here. -->
5008    <declare-styleable name="Fade">
5009        <attr name="fadingMode">
5010            <!-- Fade will only fade appearing items in. -->
5011            <enum name="fade_in" value="1" />
5012            <!-- Fade will only fade disappearing items out. -->
5013            <enum name="fade_out" value="2" />
5014            <!-- Fade will fade appearing items in and disappearing items out. -->
5015            <enum name="fade_in_out" value="3" />
5016        </attr>
5017    </declare-styleable>
5018
5019    <!-- Use <code>slide</code>as the root tag of the XML resource that
5020         describes a {@link android.transition.Slide Slide} transition.
5021         The attributes of the {@link android.R.styleable#Transition Transition}
5022         resource are available in addition to the specific attributes of Slide
5023         described here. -->
5024    <declare-styleable name="Slide">
5025        <attr name="slideEdge">
5026            <!-- Slide to and from the bottom edge of the Scene. -->
5027            <enum name="left" value="0" />
5028            <!-- Slide to and from the bottom edge of the Scene. -->
5029            <enum name="top" value="1" />
5030            <!-- Slide to and from the bottom edge of the Scene. -->
5031            <enum name="right" value="2" />
5032            <!-- Slide to and from the bottom edge of the Scene. -->
5033            <enum name="bottom" value="3" />
5034        </attr>
5035    </declare-styleable>
5036
5037    <!-- Use <code>target</code> as the root tag of the XML resource that
5038     describes a {@link android.transition.Transition#addTarget(int)
5039     targetId} of a transition. There can be one or more targets inside
5040     a <code>targets</code> tag, which is itself inside an appropriate
5041     {@link android.R.styleable#Transition Transition} tag.
5042     -->
5043    <declare-styleable name="TransitionTarget">
5044        <!-- The id of a target on which this transition will animate changes. -->
5045        <attr name="targetId" format="reference" />
5046        <!-- The id of a target to exclude from this transition. -->
5047        <attr name="excludeId" format="reference" />
5048        <!-- The fully-qualified name of the Class to include in this transition. -->
5049        <attr name="targetClass" />
5050        <!-- The fully-qualified name of the Class to exclude from this transition. -->
5051        <attr name="excludeClass" format="string" />
5052        <!-- The viewName of the target on which this transition will animation changes. -->
5053        <attr name="targetViewName" format="string" />
5054        <!-- The viewName of the target to exclude from this transition. -->
5055        <attr name="excludeViewName" format="string" />
5056    </declare-styleable>
5057
5058    <!-- Use <code>set</code> as the root tag of the XML resource that
5059         describes a {@link android.transition.TransitionSet
5060         TransitionSet} transition. -->
5061    <declare-styleable name="TransitionSet">
5062        <attr name="transitionOrdering">
5063            <!-- child transitions should be played together. -->
5064            <enum name="together" value="0" />
5065            <!-- child transitions should be played sequentially, in the same order
5066            as the xml. -->
5067            <enum name="sequential" value="1" />
5068        </attr>
5069    </declare-styleable>
5070
5071    <!-- Use <code>transitionManager</code> as the root tag of the XML resource that
5072         describes a {@link android.transition.TransitionManager
5073         TransitionManager}. -->
5074    <declare-styleable name="TransitionManager">
5075        <!-- The id of a transition to be used in a particular scene change. -->
5076        <attr name="transition" format="reference" />
5077        <!-- The originating scene in this scene change. -->
5078        <attr name="fromScene" format="reference" />
5079        <!-- The destination scene in this scene change. -->
5080        <attr name="toScene" format="reference" />
5081    </declare-styleable>
5082
5083    <!-- ========================== -->
5084    <!-- ValueAnimator class attributes -->
5085    <!-- ========================== -->
5086    <eat-comment />
5087
5088    <declare-styleable name="Animator">
5089        <!-- Defines the interpolator used to smooth the animation movement in time. -->
5090        <attr name="interpolator" />
5091        <!-- Amount of time (in milliseconds) for the animation to run. -->
5092        <attr name="duration" />
5093        <!-- Delay in milliseconds before the animation runs, once start time is reached. -->
5094        <attr name="startOffset"/>
5095        <!-- Defines how many times the animation should repeat. The default value is 0. -->
5096        <attr name="repeatCount"/>
5097        <!-- Defines the animation behavior when it reaches the end and the repeat count is
5098             greater than 0 or infinite. The default value is restart. -->
5099        <attr name="repeatMode"/>
5100        <!-- Value the animation starts from. -->
5101        <attr name="valueFrom" format="float|integer|color|dimension"/>
5102        <!-- Value the animation animates to. -->
5103        <attr name="valueTo" format="float|integer|color|dimension"/>
5104        <!-- The type of valueFrom and valueTo. -->
5105        <attr name="valueType">
5106            <!-- valueFrom and valueTo are floats. This is the default value is valueType is
5107                 unspecified. Note that if either valueFrom or valueTo represent colors
5108                 (beginning with "#"), then this attribute is ignored and the color values are
5109                 interpreted as integers. -->
5110            <enum name="floatType" value="0" />
5111            <!-- valueFrom and valueTo are integers. -->
5112            <enum name="intType"   value="1" />
5113        </attr>
5114    </declare-styleable>
5115
5116    <!-- ========================== -->
5117    <!-- ObjectAnimator class attributes -->
5118    <!-- ========================== -->
5119    <eat-comment />
5120
5121    <declare-styleable name="PropertyAnimator">
5122        <!-- Name of the property being animated. -->
5123        <attr name="propertyName" format="string"/>
5124    </declare-styleable>
5125
5126
5127    <!-- ========================== -->
5128    <!-- AnimatorSet class attributes -->
5129    <!-- ========================== -->
5130    <eat-comment />
5131
5132    <declare-styleable name="AnimatorSet">
5133        <!-- Name of the property being animated. -->
5134        <attr name="ordering">
5135            <!-- child animations should be played together. -->
5136            <enum name="together" value="0" />
5137            <!-- child animations should be played sequentially, in the same order as the xml. -->
5138            <enum name="sequentially" value="1" />
5139        </attr>
5140    </declare-styleable>
5141
5142    <!-- ========================== -->
5143    <!-- State attributes           -->
5144    <!-- ========================== -->
5145    <eat-comment />
5146
5147    <!-- Drawable states.
5148         The mapping of Drawable states to a particular drawables is specified
5149         in the "state" elements of a Widget's "selector" element.
5150         Possible values:
5151         <ul>
5152         <li>"state_focused"
5153         <li>"state_window_focused"
5154         <li>"state_enabled"
5155         <li>"state_checked"
5156         <li>"state_selected"
5157         <li>"state_active"
5158         <li>"state_single"
5159         <li>"state_first"
5160         <li>"state_mid"
5161         <li>"state_last"
5162         <li>"state_only"
5163         <li>"state_pressed"
5164         <li>"state_activated"
5165         <li>"state_error"
5166         <li>"state_circle"
5167         <li>"state_rect"
5168         <li>"state_grow"
5169         <li>"state_move"
5170         <li>"state_hovered"
5171         <li>"state_drag_can_accept"
5172         <li>"state_drag_hovered"
5173         <li>"state_accessibility_focused"
5174         </ul>  -->
5175    <declare-styleable name="DrawableStates">
5176        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
5177             set when a view has input focus. -->
5178        <attr name="state_focused" format="boolean" />
5179        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
5180             set when a view's window has input focus. -->
5181        <attr name="state_window_focused" format="boolean" />
5182        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
5183             set when a view is enabled. -->
5184        <attr name="state_enabled" format="boolean" />
5185        <!-- State identifier indicating that the object <var>may</var> display a check mark.
5186             See {@link R.attr#state_checked} for the identifier that indicates whether it is
5187             actually checked. -->
5188        <attr name="state_checkable" format="boolean"/>
5189        <!-- State identifier indicating that the object is currently checked.  See
5190             {@link R.attr#state_checkable} for an additional identifier that can indicate if
5191             any object may ever display a check, regardless of whether state_checked is
5192             currently set. -->
5193        <attr name="state_checked" format="boolean"/>
5194        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
5195             set when a view (or one of its parents) is currently selected. -->
5196        <attr name="state_selected" format="boolean" />
5197        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
5198             set when the user is pressing down in a view. -->
5199        <attr name="state_pressed" format="boolean" />
5200        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
5201             set when a view or its parent has been "activated" meaning the user has currently
5202             marked it as being of interest.  This is an alternative representation of
5203             state_checked for when the state should be propagated down the view hierarchy. -->
5204        <attr name="state_activated" format="boolean" />
5205        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
5206        <attr name="state_active" format="boolean" />
5207        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
5208        <attr name="state_single" format="boolean" />
5209        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
5210        <attr name="state_first" format="boolean" />
5211        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
5212        <attr name="state_middle" format="boolean" />
5213        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.-->
5214        <attr name="state_last" format="boolean" />
5215        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
5216             indicating that the Drawable is in a view that is hardware accelerated.
5217             This means that the device can at least render a full-screen scaled
5218             bitmap with one layer of text and bitmaps composited on top of it
5219             at 60fps.  When this is set, the colorBackgroundCacheHint will be
5220             ignored even if it specifies a solid color, since that optimization
5221             is not needed. -->
5222        <attr name="state_accelerated" format="boolean" />
5223        <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
5224             set when a pointer is hovering over the view. -->
5225        <attr name="state_hovered" format="boolean" />
5226        <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
5227             indicating that the Drawable is in a view that is capable of accepting a drop of
5228             the content currently being manipulated in a drag-and-drop operation. -->
5229        <attr name="state_drag_can_accept" format="boolean" />
5230        <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
5231             indicating that a drag operation (for which the Drawable's view is a valid recipient)
5232             is currently positioned over the Drawable. -->
5233        <attr name="state_drag_hovered" format="boolean" />
5234        <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
5235             indicating that a View has accessibility focus. -->
5236        <attr name="state_accessibility_focused" format="boolean" />
5237    </declare-styleable>
5238    <declare-styleable name="ViewDrawableStates">
5239        <attr name="state_pressed" />
5240        <attr name="state_focused" />
5241        <attr name="state_selected" />
5242        <attr name="state_window_focused" />
5243        <attr name="state_enabled" />
5244        <attr name="state_activated" />
5245        <attr name="state_accelerated" />
5246        <attr name="state_hovered" />
5247        <attr name="state_drag_can_accept" />
5248        <attr name="state_drag_hovered" />
5249    </declare-styleable>
5250    <!-- State array representing a menu item that is currently checked. -->
5251    <declare-styleable name="MenuItemCheckedState">
5252        <attr name="state_checkable" />
5253        <attr name="state_checked" />
5254    </declare-styleable>
5255    <!-- State array representing a menu item that is checkable but is not currently checked. -->
5256    <declare-styleable name="MenuItemUncheckedState">
5257        <attr name="state_checkable" />
5258    </declare-styleable>
5259    <!-- State array representing a menu item that is currently focused and checked. -->
5260    <declare-styleable name="MenuItemCheckedFocusedState">
5261        <attr name="state_checkable" />
5262        <attr name="state_checked" />
5263        <attr name="state_focused" />
5264    </declare-styleable>
5265    <!-- State array representing a menu item that is focused and checkable but is not currently checked. -->
5266    <declare-styleable name="MenuItemUncheckedFocusedState">
5267        <attr name="state_checkable" />
5268        <attr name="state_focused" />
5269    </declare-styleable>
5270    <!-- State array representing an expandable list child's indicator. -->
5271    <declare-styleable name="ExpandableListChildIndicatorState">
5272        <!-- State identifier indicating the child is the last child within its group. -->
5273        <attr name="state_last" />
5274    </declare-styleable>
5275    <!-- State array representing an expandable list group's indicator. -->
5276    <declare-styleable name="ExpandableListGroupIndicatorState">
5277        <!-- State identifier indicating the group is expanded. -->
5278        <attr name="state_expanded" format="boolean" />
5279        <!-- State identifier indicating the group is empty (has no children). -->
5280        <attr name="state_empty" format="boolean" />
5281    </declare-styleable>
5282    <declare-styleable name="PopupWindowBackgroundState">
5283        <!-- State identifier indicating the popup will be above the anchor. -->
5284        <attr name="state_above_anchor" format="boolean" />
5285    </declare-styleable>
5286    <declare-styleable name="TextViewMultiLineBackgroundState">
5287        <!-- State identifier indicating a TextView has a multi-line layout. -->
5288        <attr name="state_multiline" format="boolean" />
5289    </declare-styleable>
5290
5291    <!-- ***************************************************************** -->
5292    <!-- Support for Searchable activities. -->
5293    <!-- ***************************************************************** -->
5294    <eat-comment />
5295
5296    <!-- Searchable activities and applications must provide search configuration information
5297        in an XML file, typically called searchable.xml.  This file is referenced in your manifest.
5298        For a more in-depth discussion of search configuration, please refer to
5299        {@link android.app.SearchManager}. -->
5300    <declare-styleable name="Searchable">
5301          <!--<strong>This is deprecated.</strong><br/>The default
5302              application icon is now always used, so this attribute is
5303              obsolete.-->
5304        <attr name="icon" />
5305        <!-- This is the user-displayed name of the searchable activity.  <i>Required
5306            attribute.</i> -->
5307        <attr name="label" />
5308        <!-- If supplied, this string will be displayed as a hint to the user.  <i>Optional
5309            attribute.</i> -->
5310        <attr name="hint" />
5311        <!-- If supplied, this string will be displayed as the text of the "Search" button.
5312          <i>Optional attribute.</i>
5313          {@deprecated This will create a non-standard UI appearance, because the search bar UI is
5314                       changing to use only icons for its buttons.}-->
5315        <attr name="searchButtonText" format="string" />
5316        <attr name="inputType" />
5317        <attr name="imeOptions" />
5318
5319        <!-- Additional features are controlled by mode bits in this field.  Omitting
5320            this field, or setting to zero, provides default behavior.  <i>Optional attribute.</i>
5321        -->
5322        <attr name="searchMode">
5323          <!-- If set, this flag enables the display of the search target (label) within the
5324               search bar.  If neither bad mode is selected, no badge will be shown. -->
5325          <flag name="showSearchLabelAsBadge" value="0x04" />
5326          <!--<strong>This is deprecated.</strong><br/>The default
5327              application icon is now always used, so this option is
5328              obsolete.-->
5329          <flag name="showSearchIconAsBadge" value="0x08" />
5330          <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to
5331               be considered as the text for suggestion query rewriting.  This should only
5332               be used when the values in SUGGEST_COLUMN_INTENT_DATA are suitable for user
5333               inspection and editing - typically, HTTP/HTTPS Uri's. -->
5334          <flag name="queryRewriteFromData" value="0x10" />
5335          <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_TEXT_1 to
5336               be considered as the text for suggestion query rewriting.  This should be used
5337               for suggestions in which no query text is provided and the SUGGEST_COLUMN_INTENT_DATA
5338               values are not suitable for user inspection and editing. -->
5339          <flag name="queryRewriteFromText" value="0x20" />
5340        </attr>
5341
5342        <!-- Voice search features are controlled by mode bits in this field.  Omitting
5343            this field, or setting to zero, provides default behavior.
5344            If showVoiceSearchButton is set, then launchWebSearch or launchRecognizer must
5345            also be set.  <i>Optional attribute.</i>
5346        -->
5347        <attr name="voiceSearchMode">
5348          <!-- If set, display a voice search button.  This only takes effect if voice search is
5349               available on the device. -->
5350          <flag name="showVoiceSearchButton" value="0x01" />
5351          <!-- If set, the voice search button will take the user directly to a built-in
5352               voice web search activity.  Most applications will not use this flag, as it
5353               will take the user away from the activity in which search was invoked. -->
5354          <flag name="launchWebSearch" value="0x02" />
5355          <!-- If set, the voice search button will take the user directly to a built-in
5356               voice recording activity.  This activity will prompt the user to speak,
5357               transcribe the spoken text, and forward the resulting query
5358               text to the searchable activity, just as if the user had typed it into
5359               the search UI and clicked the search button. -->
5360          <flag name="launchRecognizer" value="0x04" />
5361        </attr>
5362
5363        <!-- If provided, this specifies the language model that should be used by the
5364             voice recognition system.  See
5365             {@link android.speech.RecognizerIntent#EXTRA_LANGUAGE_MODEL } for more information.
5366             If not provided, the default value
5367             {@link android.speech.RecognizerIntent#LANGUAGE_MODEL_FREE_FORM } will be used. -->
5368        <attr name="voiceLanguageModel" format="string" />
5369        <!-- If provided, this specifies a prompt that will be displayed during voice input. -->
5370        <attr name="voicePromptText" format="string" />
5371        <!-- If provided, this specifies the spoken language to be expected, and that it will be
5372             different than the one set in the {@link java.util.Locale#getDefault()}. -->
5373        <attr name="voiceLanguage" format="string" />
5374        <!-- If provided, enforces the maximum number of results to return, including the "best"
5375             result which will always be provided as the SEARCH intent's primary query.  Must be one
5376             or greater.  If not provided, the recognizer will choose how many results to return.
5377             -->
5378        <attr name="voiceMaxResults" format="integer" />
5379
5380        <!-- If provided, this is the trigger indicating that the searchable activity
5381            provides suggestions as well.  The value must be a fully-qualified content provider
5382            authority (e.g. "com.example.android.apis.SuggestionProvider") and should match the
5383            "android:authorities" tag in your content provider's manifest entry.  <i>Optional
5384            attribute.</i> -->
5385        <attr name="searchSuggestAuthority" format="string" />
5386        <!-- If provided, this will be inserted in the suggestions query Uri, after the authority
5387            you have provide but before the standard suggestions path. <i>Optional attribute.</i>
5388            -->
5389        <attr name="searchSuggestPath" format="string" />
5390        <!-- If provided, suggestion queries will be passed into your query function
5391            as the <i>selection</i> parameter.  Typically this will be a WHERE clause for your
5392            database, and will contain a single question mark, which represents the actual query
5393            string that has been typed by the user.  If not provided, then the user query text
5394            will be appended to the query Uri (after an additional "/".)  <i>Optional
5395            attribute.</i> -->
5396        <attr name="searchSuggestSelection" format="string" />
5397
5398        <!-- If provided, and not overridden by an action in the selected suggestion, this
5399            string will be placed in the action field of the {@link android.content.Intent Intent}
5400            when the user clicks a suggestion.  <i>Optional attribute.</i> -->
5401        <attr name="searchSuggestIntentAction" format="string" />
5402        <!-- If provided, and not overridden by an action in the selected suggestion, this
5403            string will be placed in the data field of the {@link android.content.Intent Intent}
5404            when the user clicks a suggestion.  <i>Optional attribute.</i> -->
5405        <attr name="searchSuggestIntentData" format="string" />
5406
5407        <!-- If provided, this is the minimum number of characters needed to trigger
5408             search suggestions. The default value is 0. <i>Optional attribute.</i> -->
5409        <attr name="searchSuggestThreshold" format="integer" />
5410
5411        <!-- If provided and <code>true</code>, this searchable activity will be
5412             included in any global lists of search targets.
5413             The default value is <code>false</code>. <i>Optional attribute.</i>. -->
5414        <attr name="includeInGlobalSearch" format="boolean" />
5415
5416        <!-- If provided and <code>true</code>, this searchable activity will be invoked for all
5417             queries in a particular session. If set to <code>false</code> and the activity
5418             returned zero results for a query, it will not be invoked again in that session for
5419             supersets of that zero-results query. For example, if the activity returned zero
5420             results for "bo", it would not be queried again for "bob".
5421             The default value is <code>false</code>. <i>Optional attribute.</i>. -->
5422        <attr name="queryAfterZeroResults" format="boolean" />
5423        <!-- If provided, this string will be used to describe the searchable item in the
5424             searchable items settings within system search settings. <i>Optional
5425             attribute.</i> -->
5426        <attr name="searchSettingsDescription" format="string" />
5427
5428        <!-- If provided and <code>true</code>, URLs entered in the search dialog while searching
5429             within this activity would be detected and treated as URLs (show a 'go' button in the
5430             keyboard and invoke the browser directly when user launches the URL instead of passing
5431             the URL to the activity). If set to <code>false</code> any URLs entered are treated as
5432             normal query text.
5433             The default value is <code>false</code>. <i>Optional attribute.</i>. -->
5434        <attr name="autoUrlDetect" format="boolean" />
5435
5436    </declare-styleable>
5437
5438    <!-- In order to process special action keys during search, you must define them using
5439            one or more "ActionKey" elements in your Searchable metadata.  For a more in-depth
5440            discussion of action code handling, please refer to {@link android.app.SearchManager}.
5441    -->
5442    <declare-styleable name="SearchableActionKey">
5443        <!-- This attribute denotes the action key you wish to respond to.  Note that not
5444            all action keys are actually supported using this mechanism, as many of them are
5445            used for typing, navigation, or system functions.  This will be added to the
5446            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
5447            searchable activity.  To examine the key code, use
5448            {@link android.content.Intent#getIntExtra getIntExtra(SearchManager.ACTION_KEY)}.
5449            <p>Note, in addition to the keycode, you must also provide one or more of the action
5450            specifier attributes.  <i>Required attribute.</i> -->
5451        <attr name="keycode" />
5452
5453        <!-- If you wish to handle an action key during normal search query entry, you
5454            must define an action string here.  This will be added to the
5455            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
5456            searchable activity.  To examine the string, use
5457            {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}.
5458            <i>Optional attribute.</i> -->
5459        <attr name="queryActionMsg"  format="string" />
5460
5461        <!-- If you wish to handle an action key while a suggestion is being displayed <i>and
5462            selected</i>, there are two ways to handle this.  If <i>all</i> of your suggestions
5463            can handle the action key, you can simply define the action message using this
5464            attribute.  This will be added to the
5465            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
5466            searchable activity.  To examine the string, use
5467            {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}.
5468            <i>Optional attribute.</i> -->
5469        <attr name="suggestActionMsg"  format="string" />
5470
5471        <!-- If you wish to handle an action key while a suggestion is being displayed <i>and
5472            selected</i>, but you do not wish to enable this action key for every suggestion,
5473            then you can use this attribute to control it on a suggestion-by-suggestion basis.
5474            First, you must define a column (and name it here) where your suggestions will include
5475            the action string.  Then, in your content provider, you must provide this column, and
5476            when desired, provide data in this column.
5477            The search manager will look at your suggestion cursor, using the string
5478            provided here in order to select a column, and will use that to select a string from
5479            the cursor.  That string will be added to the
5480            {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to
5481            your searchable activity.  To examine the string, use
5482            {@link android.content.Intent#getStringExtra
5483            getStringExtra(SearchManager.ACTION_MSG)}.  <i>If the data does not exist for the
5484            selection suggestion, the action key will be ignored.</i><i>Optional attribute.</i> -->
5485        <attr name="suggestActionMsgColumn" format="string" />
5486
5487    </declare-styleable>
5488
5489    <!-- ***************************************************************** -->
5490    <!-- Support for MapView. -->
5491    <!-- ***************************************************************** -->
5492    <eat-comment />
5493
5494    <!-- The set of attributes for a MapView. -->
5495    <declare-styleable name="MapView">
5496        <!-- Value is a string that specifies the Maps API Key to use. -->
5497        <attr name="apiKey" format="string" />
5498    </declare-styleable>
5499
5500    <!-- **************************************************************** -->
5501    <!-- Menu XML inflation. -->
5502    <!-- **************************************************************** -->
5503    <eat-comment />
5504
5505    <!-- Base attributes that are available to all Menu objects. -->
5506    <declare-styleable name="Menu">
5507    </declare-styleable>
5508
5509    <!-- Base attributes that are available to all groups. -->
5510    <declare-styleable name="MenuGroup">
5511
5512        <!-- The ID of the group. -->
5513        <attr name="id" />
5514
5515        <!-- The category applied to all items within this group.
5516             (This will be or'ed with the orderInCategory attribute.) -->
5517        <attr name="menuCategory">
5518            <!-- Items are part of a container. -->
5519            <enum name="container" value="0x00010000" />
5520            <!-- Items are provided by the system. -->
5521            <enum name="system" value="0x00020000" />
5522            <!-- Items are user-supplied secondary (infrequently used). -->
5523            <enum name="secondary" value="0x00030000" />
5524            <!-- Items are alternative actions. -->
5525            <enum name="alternative" value="0x00040000" />
5526        </attr>
5527
5528        <!-- The order within the category applied to all items within this group.
5529             (This will be or'ed with the category attribute.) -->
5530        <attr name="orderInCategory" format="integer" />
5531
5532        <!-- Whether the items are capable of displaying a check mark. -->
5533        <attr name="checkableBehavior">
5534            <!-- The items are not checkable. -->
5535            <enum name="none" value="0" />
5536            <!-- The items are all checkable. -->
5537            <enum name="all" value="1" />
5538            <!-- The items are checkable and there will only be a single checked item in
5539                 this group. -->
5540            <enum name="single" value="2" />
5541        </attr>
5542
5543        <!-- Whether the items are shown/visible. -->
5544        <attr name="visible" />
5545
5546        <!-- Whether the items are enabled. -->
5547        <attr name="enabled" />
5548
5549    </declare-styleable>
5550
5551    <!-- Base attributes that are available to all Item objects. -->
5552    <declare-styleable name="MenuItem">
5553
5554        <!-- The ID of the item. -->
5555        <attr name="id" />
5556
5557        <!-- The category applied to the item.
5558             (This will be or'ed with the orderInCategory attribute.) -->
5559        <attr name="menuCategory" />
5560
5561        <!-- The order within the category applied to the item.
5562             (This will be or'ed with the category attribute.) -->
5563        <attr name="orderInCategory" />
5564
5565        <!-- The title associated with the item. -->
5566        <attr name="title" format="string" />
5567
5568        <!-- The condensed title associated with the item.  This is used in situations where the
5569             normal title may be too long to be displayed. -->
5570        <attr name="titleCondensed" format="string" />
5571
5572        <!-- The icon associated with this item.  This icon will not always be shown, so
5573             the title should be sufficient in describing this item. -->
5574        <attr name="icon" />
5575
5576        <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
5577             with alphabetic keys. -->
5578        <attr name="alphabeticShortcut" format="string" />
5579
5580        <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
5581             keyboard. -->
5582        <attr name="numericShortcut" format="string" />
5583
5584        <!-- Whether the item is capable of displaying a check mark. -->
5585        <attr name="checkable" format="boolean" />
5586
5587        <!-- Whether the item is checked.  Note that you must first have enabled checking with
5588             the checkable attribute or else the check mark will not appear. -->
5589        <attr name="checked" />
5590
5591        <!-- Whether the item is shown/visible. -->
5592        <attr name="visible" />
5593
5594        <!-- Whether the item is enabled. -->
5595        <attr name="enabled" />
5596
5597        <!-- Name of a method on the Context used to inflate the menu that will be
5598             called when the item is clicked. -->
5599        <attr name="onClick" />
5600
5601        <!-- How this item should display in the Action Bar, if present. -->
5602        <attr name="showAsAction">
5603            <!-- Never show this item in an action bar, show it in the overflow menu instead.
5604                 Mutually exclusive with "ifRoom" and "always". -->
5605            <flag name="never" value="0" />
5606            <!-- Show this item in an action bar if there is room for it as determined
5607                 by the system. Favor this option over "always" where possible.
5608                 Mutually exclusive with "never" and "always". -->
5609            <flag name="ifRoom" value="1" />
5610            <!-- Always show this item in an actionbar, even if it would override
5611                 the system's limits of how much stuff to put there. This may make
5612                 your action bar look bad on some screens. In most cases you should
5613                 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
5614            <flag name="always" value="2" />
5615            <!-- When this item is shown as an action in the action bar, show a text
5616                 label with it even if it has an icon representation. -->
5617            <flag name="withText" value="4" />
5618            <!-- This item's action view collapses to a normal menu
5619                 item. When expanded, the action view takes over a
5620                 larger segment of its container. -->
5621            <flag name="collapseActionView" value="8" />
5622        </attr>
5623
5624        <!-- An optional layout to be used as an action view.
5625             See {@link android.view.MenuItem#setActionView(android.view.View)}
5626             for more info. -->
5627        <attr name="actionLayout" format="reference" />
5628
5629        <!-- The name of an optional View class to instantiate and use as an
5630             action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
5631             for more info. -->
5632        <attr name="actionViewClass" format="string" />
5633
5634        <!-- The name of an optional ActionProvider class to instantiate an action view
5635             and perform operations such as default action for that menu item.
5636             See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
5637             for more info. -->
5638        <attr name="actionProviderClass" format="string" />
5639
5640    </declare-styleable>
5641
5642    <!-- Attrbitutes for a ActvityChooserView. -->
5643    <declare-styleable name="ActivityChooserView">
5644        <!-- The maximal number of items initially shown in the activity list. -->
5645        <attr name="initialActivityCount" format="string" />
5646        <!-- The drawable to show in the button for expanding the activities overflow popup.
5647             <strong>Note:</strong> Clients would like to set this drawable
5648             as a clue about the action the chosen activity will perform. For
5649             example, if share activity is to be chosen the drawable should
5650             give a clue that sharing is to be performed.
5651         -->
5652        <attr name="expandActivityOverflowButtonDrawable" format="reference" />
5653    </declare-styleable>
5654
5655    <!-- **************************************************************** -->
5656    <!-- Preferences framework. -->
5657    <!-- **************************************************************** -->
5658    <eat-comment />
5659
5660    <!-- Base attributes available to PreferenceGroup. -->
5661    <declare-styleable name="PreferenceGroup">
5662        <!-- Whether to order the Preference under this group as they appear in the XML file.
5663             If this is false, the ordering will follow the Preference order attribute and
5664             default to alphabetic for those without the order attribute. -->
5665        <attr name="orderingFromXml" format="boolean" />
5666    </declare-styleable>
5667
5668    <!-- Attribute for a header describing the item shown in the top-level list
5669         from which the selects the set of preference to dig in to. -->
5670    <declare-styleable name="PreferenceHeader">
5671        <!-- Identifier value for the header. -->
5672        <attr name="id" />
5673        <!-- The title of the item that is shown to the user. -->
5674        <attr name="title" />
5675        <!-- The summary for the item. -->
5676        <attr name="summary" format="string" />
5677        <!-- The title for the bread crumb of this item. -->
5678        <attr name="breadCrumbTitle" format="string" />
5679        <!-- The short title for the bread crumb of this item. -->
5680        <attr name="breadCrumbShortTitle" format="string" />
5681        <!-- An icon for the item. -->
5682        <attr name="icon" />
5683        <!-- The fragment that is displayed when the user selects this item. -->
5684        <attr name="fragment" format="string" />
5685    </declare-styleable>
5686
5687    <!-- WARNING:  If adding attributes to Preference, make sure it does not conflict
5688                   with a View's attributes.  Some subclasses (e.g., EditTextPreference)
5689                   proxy all attributes to its EditText widget. -->
5690    <eat-comment />
5691
5692    <!-- Base attributes available to Preference. -->
5693    <declare-styleable name="Preference">
5694        <!-- The optional icon for the preference -->
5695        <attr name="icon" />
5696        <!-- The key to store the Preference value. -->
5697        <attr name="key" format="string" />
5698        <!-- The title for the Preference in a PreferenceActivity screen. -->
5699        <attr name="title" />
5700        <!-- The summary for the Preference in a PreferenceActivity screen. -->
5701        <attr name="summary" />
5702        <!-- The order for the Preference (lower values are to be ordered first). If this is not
5703             specified, the default orderin will be alphabetic. -->
5704        <attr name="order" format="integer" />
5705        <!-- When used inside of a modern PreferenceActivity, this declares
5706             a new PreferenceFragment to be shown when the user selects this item. -->
5707        <attr name="fragment" />
5708        <!-- The layout for the Preference in a PreferenceActivity screen. This should
5709             rarely need to be changed, look at widgetLayout instead. -->
5710        <attr name="layout" />
5711        <!-- The layout for the controllable widget portion of a Preference. This is inflated
5712             into the layout for a Preference and should be used more frequently than
5713             the layout attribute. For example, a checkbox preference would specify
5714             a custom layout (consisting of just the CheckBox) here. -->
5715        <attr name="widgetLayout" format="reference" />
5716        <!-- Whether the Preference is enabled. -->
5717        <attr name="enabled" />
5718        <!-- Whether the Preference is selectable. -->
5719        <attr name="selectable" format="boolean" />
5720        <!-- The key of another Preference that this Preference will depend on.  If the other
5721             Preference is not set or is off, this Preference will be disabled. -->
5722        <attr name="dependency" format="string" />
5723        <!-- Whether the Preference stores its value to the shared preferences. -->
5724        <attr name="persistent" />
5725        <!-- The default value for the preference, which will be set either if persistence
5726             is off or persistence is on and the preference is not found in the persistent
5727             storage.  -->
5728        <attr name="defaultValue" format="string|boolean|integer|reference|float" />
5729        <!-- Whether the view of this Preference should be disabled when
5730             this Preference is disabled. -->
5731        <attr name="shouldDisableView" format="boolean" />
5732    </declare-styleable>
5733
5734    <!-- Base attributes available to CheckBoxPreference. -->
5735    <declare-styleable name="CheckBoxPreference">
5736        <!-- The summary for the Preference in a PreferenceActivity screen when the
5737             CheckBoxPreference is checked. If separate on/off summaries are not
5738             needed, the summary attribute can be used instead. -->
5739        <attr name="summaryOn" format="string" />
5740        <!-- The summary for the Preference in a PreferenceActivity screen when the
5741             CheckBoxPreference is unchecked. If separate on/off summaries are not
5742             needed, the summary attribute can be used instead. -->
5743        <attr name="summaryOff" format="string" />
5744        <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default,
5745             dependents will be disabled when this is unchecked, so the value of this preference is false. -->
5746        <attr name="disableDependentsState" format="boolean" />
5747    </declare-styleable>
5748
5749    <!-- Base attributes available to DialogPreference. -->
5750    <declare-styleable name="DialogPreference">
5751        <!-- The title in the dialog. -->
5752        <attr name="dialogTitle" format="string" />
5753        <!-- The message in the dialog. If a dialogLayout is provided and contains
5754             a TextView with ID android:id/message, this message will be placed in there. -->
5755        <attr name="dialogMessage" format="string" />
5756        <!-- The icon for the dialog. -->
5757        <attr name="dialogIcon" format="reference" />
5758        <!-- The positive button text for the dialog. Set to @null to hide the positive button. -->
5759        <attr name="positiveButtonText" format="string" />
5760        <!-- The negative button text for the dialog. Set to @null to hide the negative button. -->
5761        <attr name="negativeButtonText" format="string" />
5762        <!-- A layout to be used as the content View for the dialog. By default, this shouldn't
5763             be needed. If a custom DialogPreference is required, this should be set. For example,
5764             the EditTextPreference uses a layout with an EditText as this attribute. -->
5765        <attr name="dialogLayout" format="reference" />
5766    </declare-styleable>
5767
5768    <!-- Base attributes available to ListPreference. -->
5769    <declare-styleable name="ListPreference">
5770        <!-- The human-readable array to present as a list. Each entry must have a corresponding
5771             index in entryValues. -->
5772        <attr name="entries" />
5773        <!-- The array to find the value to save for a preference when an entry from
5774             entries is selected. If a user clicks on the second item in entries, the
5775             second item in this array will be saved to the preference. -->
5776        <attr name="entryValues" format="reference" />
5777    </declare-styleable>
5778
5779    <declare-styleable name="MultiSelectListPreference">
5780        <!-- The human-readable array to present as a list. Each entry must have a corresponding
5781             index in entryValues. -->
5782        <attr name="entries" />
5783        <!-- The array to find the value to save for a preference when an entry from
5784             entries is selected. If a user clicks the second item in entries, the
5785             second item in this array will be saved to the preference. -->
5786        <attr name="entryValues" />
5787    </declare-styleable>
5788
5789    <!-- Base attributes available to RingtonePreference. -->
5790    <declare-styleable name="RingtonePreference">
5791        <!-- Which ringtone type(s) to show in the picker. -->
5792        <attr name="ringtoneType">
5793            <!-- Ringtones. -->
5794            <flag name="ringtone" value="1" />
5795            <!-- Notification sounds. -->
5796            <flag name="notification" value="2" />
5797            <!-- Alarm sounds. -->
5798            <flag name="alarm" value="4" />
5799            <!-- All available ringtone sounds. -->
5800            <flag name="all" value="7" />
5801        </attr>
5802        <!-- Whether to show an item for a default sound. -->
5803        <attr name="showDefault" format="boolean" />
5804        <!-- Whether to show an item for 'Silent'. -->
5805        <attr name="showSilent" format="boolean" />
5806    </declare-styleable>
5807
5808    <!-- Base attributes available to VolumePreference. -->
5809    <declare-styleable name="VolumePreference">
5810        <!-- Different audio stream types. -->
5811        <attr name="streamType">
5812            <enum name="voice" value="0" />
5813            <enum name="system" value="1" />
5814            <enum name="ring" value="2" />
5815            <enum name="music" value="3" />
5816            <enum name="alarm" value="4" />
5817        </attr>
5818    </declare-styleable>
5819
5820    <declare-styleable name="InputMethodService">
5821        <!-- Background to use for entire input method when it is being
5822             shown in fullscreen mode with the extract view, to ensure
5823             that it completely covers the application.  This allows,
5824             for example, the candidate view to be hidden
5825             while in fullscreen mode without having the application show through
5826             behind it.-->
5827        <attr name="imeFullscreenBackground" format="reference|color" />
5828        <!-- Animation to use when showing the fullscreen extract UI after
5829             it had previously been hidden. -->
5830        <attr name="imeExtractEnterAnimation" format="reference" />
5831        <!-- Animation to use when hiding the fullscreen extract UI after
5832             it had previously been shown. -->
5833        <attr name="imeExtractExitAnimation" format="reference" />
5834    </declare-styleable>
5835
5836    <declare-styleable name="VoiceInteractionSession">
5837    </declare-styleable>
5838
5839    <declare-styleable name="KeyboardView">
5840        <!-- Default KeyboardView style. -->
5841        <attr name="keyboardViewStyle" format="reference" />
5842
5843        <!-- Image for the key. This image needs to be a StateListDrawable, with the following
5844             possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
5845             checkable+checked+pressed. -->
5846        <attr name="keyBackground" format="reference" />
5847
5848        <!-- Size of the text for character keys. -->
5849        <attr name="keyTextSize" format="dimension" />
5850
5851        <!-- Size of the text for custom keys with some text and no icon. -->
5852        <attr name="labelTextSize" format="dimension" />
5853
5854        <!-- Color to use for the label in a key. -->
5855        <attr name="keyTextColor" format="color" />
5856
5857        <!-- Layout resource for key press feedback.-->
5858        <attr name="keyPreviewLayout" format="reference" />
5859
5860        <!-- Vertical offset of the key press feedback from the key. -->
5861        <attr name="keyPreviewOffset" format="dimension" />
5862
5863        <!-- Height of the key press feedback popup. -->
5864        <attr name="keyPreviewHeight" format="dimension" />
5865
5866        <!-- Amount to offset the touch Y coordinate by, for bias correction. -->
5867        <attr name="verticalCorrection" format="dimension" />
5868
5869        <!-- Layout resource for popup keyboards. -->
5870        <attr name="popupLayout" format="reference" />
5871
5872        <attr name="shadowColor" />
5873        <attr name="shadowRadius" />
5874    </declare-styleable>
5875
5876    <declare-styleable name="KeyboardViewPreviewState">
5877        <!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView}
5878                key preview background. -->
5879        <attr name="state_long_pressable" format="boolean" />
5880    </declare-styleable>
5881
5882    <declare-styleable name="Keyboard">
5883        <!-- Default width of a key, in pixels or percentage of display width. -->
5884        <attr name="keyWidth" format="dimension|fraction" />
5885        <!-- Default height of a key, in pixels or percentage of display width. -->
5886        <attr name="keyHeight" format="dimension|fraction" />
5887        <!-- Default horizontal gap between keys. -->
5888        <attr name="horizontalGap" format="dimension|fraction" />
5889        <!-- Default vertical gap between rows of keys. -->
5890        <attr name="verticalGap" format="dimension|fraction" />
5891    </declare-styleable>
5892
5893    <declare-styleable name="Keyboard_Row">
5894        <!-- Row edge flags. -->
5895        <attr name="rowEdgeFlags">
5896            <!-- Row is anchored to the top of the keyboard. -->
5897            <flag name="top" value="4" />
5898            <!-- Row is anchored to the bottom of the keyboard. -->
5899            <flag name="bottom" value="8" />
5900        </attr>
5901        <!-- Mode of the keyboard. If the mode doesn't match the
5902             requested keyboard mode, the row will be skipped. -->
5903        <attr name="keyboardMode" format="reference" />
5904    </declare-styleable>
5905
5906    <declare-styleable name="Keyboard_Key">
5907        <!-- The unicode value or comma-separated values that this key outputs. -->
5908        <attr name="codes" format="integer|string" />
5909        <!-- The XML keyboard layout of any popup keyboard. -->
5910        <attr name="popupKeyboard" format="reference" />
5911        <!-- The characters to display in the popup keyboard. -->
5912        <attr name="popupCharacters" format="string" />
5913        <!-- Key edge flags. -->
5914        <attr name="keyEdgeFlags">
5915            <!-- Key is anchored to the left of the keyboard. -->
5916            <flag name="left" value="1" />
5917            <!-- Key is anchored to the right of the keyboard. -->
5918            <flag name="right" value="2" />
5919        </attr>
5920        <!-- Whether this is a modifier key such as Alt or Shift. -->
5921        <attr name="isModifier" format="boolean" />
5922        <!-- Whether this is a toggle key. -->
5923        <attr name="isSticky" format="boolean" />
5924        <!-- Whether long-pressing on this key will make it repeat. -->
5925        <attr name="isRepeatable" format="boolean" />
5926        <!-- The icon to show in the popup preview. -->
5927        <attr name="iconPreview" format="reference" />
5928        <!-- The string of characters to output when this key is pressed. -->
5929        <attr name="keyOutputText" format="string" />
5930        <!-- The label to display on the key. -->
5931        <attr name="keyLabel" format="string" />
5932        <!-- The icon to display on the key instead of the label. -->
5933        <attr name="keyIcon" format="reference" />
5934        <!-- Mode of the keyboard. If the mode doesn't match the
5935             requested keyboard mode, the key will be skipped. -->
5936        <attr name="keyboardMode" />
5937    </declare-styleable>
5938
5939    <!-- =============================== -->
5940    <!-- AppWidget package class attributes -->
5941    <!-- =============================== -->
5942    <eat-comment />
5943
5944    <!-- Use <code>appwidget-provider</code> as the root tag of the XML resource that
5945         describes an AppWidget provider.  See {@link android.appwidget android.appwidget}
5946         package for more info.
5947     -->
5948    <declare-styleable name="AppWidgetProviderInfo">
5949        <!-- Minimum width of the AppWidget. -->
5950        <attr name="minWidth"/>
5951        <!-- Minimum height of the AppWidget. -->
5952        <attr name="minHeight"/>
5953        <!-- Minimum width that the AppWidget can be resized to. -->
5954        <attr name="minResizeWidth" format="dimension"/>
5955        <!-- Minimum height that the AppWidget can be resized to. -->
5956        <attr name="minResizeHeight" format="dimension"/>
5957        <!-- Update period in milliseconds, or 0 if the AppWidget will update itself. -->
5958        <attr name="updatePeriodMillis" format="integer" />
5959        <!-- A resource id of a layout. -->
5960        <attr name="initialLayout" format="reference" />
5961        <!-- A resource id of a layout. -->
5962        <attr name="initialKeyguardLayout" format="reference" />
5963        <!-- A class name in the AppWidget's package to be launched to configure.
5964             If not supplied, then no activity will be launched. -->
5965        <attr name="configure" format="string" />
5966        <!-- A preview of what the AppWidget will look like after it's configured.
5967              If not supplied, the AppWidget's icon will be used. -->
5968        <attr name="previewImage" format="reference" />
5969        <!-- The view id of the AppWidget subview which should be auto-advanced.
5970             by the widget's host. -->
5971        <attr name="autoAdvanceViewId" format="reference" />
5972        <!-- Optional parameter which indicates if and how this widget can be
5973             resized. Supports combined values using | operator. -->
5974        <attr name="resizeMode" format="integer">
5975            <flag name="none" value="0x0" />
5976            <flag name="horizontal" value="0x1" />
5977            <flag name="vertical" value="0x2" />
5978        </attr>
5979        <!-- Optional parameter which indicates where this widget can be shown,
5980             ie. home screen, keyguard, recents or any combination thereof.
5981             Supports combined values using | operator. -->
5982        <attr name="widgetCategory" format="integer">
5983            <flag name="home_screen" value="0x1" />
5984            <flag name="keyguard" value="0x2" />
5985            <flag name="recents" value="0x4" />
5986        </attr>
5987    </declare-styleable>
5988
5989    <!-- =============================== -->
5990    <!-- Wallpaper preview attributes    -->
5991    <!-- =============================== -->
5992    <eat-comment />
5993
5994    <!-- Use <code>wallpaper-preview</code> as the root tag of the XML resource that
5995         describes a wallpaper preview. -->
5996    <declare-styleable name="WallpaperPreviewInfo">
5997        <!-- A resource id of a static drawable. -->
5998        <attr name="staticWallpaperPreview" format="reference" />
5999    </declare-styleable>
6000
6001    <!-- =============================== -->
6002    <!-- App package class attributes -->
6003    <!-- =============================== -->
6004    <eat-comment />
6005
6006    <!-- ============================= -->
6007    <!-- View package class attributes -->
6008    <!-- ============================= -->
6009    <eat-comment />
6010
6011    <!-- Attributes that can be used with <code>&lt;fragment&gt;</code>
6012         tags inside of the layout of an Activity.  This instantiates
6013         the given {@link android.app.Fragment} and inserts its content
6014         view into the current location in the layout. -->
6015    <declare-styleable name="Fragment">
6016        <!-- Supply the name of the fragment class to instantiate. -->
6017        <attr name="name" />
6018
6019        <!-- Supply an identifier name for the top-level view, to later retrieve it
6020             with {@link android.view.View#findViewById View.findViewById()} or
6021             {@link android.app.Activity#findViewById Activity.findViewById()}.
6022             This must be a
6023             resource reference; typically you set this using the
6024             <code>@+</code> syntax to create a new ID resources.
6025             For example: <code>android:id="@+id/my_id"</code> which
6026             allows you to later retrieve the view
6027             with <code>findViewById(R.id.my_id)</code>. -->
6028        <attr name="id" />
6029
6030        <!-- Supply a tag for the top-level view containing a String, to be retrieved
6031             later with {@link android.view.View#getTag View.getTag()} or
6032             searched for with {@link android.view.View#findViewWithTag
6033             View.findViewWithTag()}.  It is generally preferable to use
6034             IDs (through the android:id attribute) instead of tags because
6035             they are faster and allow for compile-time type checking. -->
6036        <attr name="tag" />
6037    </declare-styleable>
6038
6039    <!-- Use <code>device-admin</code> as the root tag of the XML resource that
6040         describes a
6041         {@link android.app.admin.DeviceAdminReceiver}, which is
6042         referenced from its
6043         {@link android.app.admin.DeviceAdminReceiver#DEVICE_ADMIN_META_DATA}
6044         meta-data entry.  Described here are the attributes that can be
6045         included in that tag. -->
6046    <declare-styleable name="DeviceAdmin">
6047        <!-- Control whether the admin is visible to the user, even when it
6048             is not enabled.  This is true by default.  You may want to make
6049             it false if your admin does not make sense to be turned on
6050             unless some explicit action happens in your app. -->
6051        <attr name="visible" />
6052    </declare-styleable>
6053
6054    <!-- Use <code>wallpaper</code> as the root tag of the XML resource that
6055         describes an
6056         {@link android.service.wallpaper.WallpaperService}, which is
6057         referenced from its
6058         {@link android.service.wallpaper.WallpaperService#SERVICE_META_DATA}
6059         meta-data entry.  Described here are the attributes that can be
6060         included in that tag. -->
6061    <declare-styleable name="Wallpaper">
6062        <attr name="settingsActivity" />
6063
6064        <!-- Reference to a the wallpaper's thumbnail bitmap. -->
6065        <attr name="thumbnail" format="reference" />
6066
6067        <!-- Name of the author of this component, e.g. Google. -->
6068        <attr name="author" format="reference" />
6069
6070        <!-- Short description of the component's purpose or behavior. -->
6071        <attr name="description" />
6072    </declare-styleable>
6073
6074    <!-- Use <code>dream</code> as the root tag of the XML resource that
6075         describes an
6076         {@link android.service.dreams.DreamService}, which is
6077         referenced from its
6078         {@link android.service.dreams.DreamService#DREAM_META_DATA}
6079         meta-data entry.  Described here are the attributes that can be
6080         included in that tag. -->
6081    <declare-styleable name="Dream">
6082        <!-- Component name of an activity that allows the user to modify
6083             the settings for this dream. -->
6084        <attr name="settingsActivity" />
6085    </declare-styleable>
6086
6087    <!-- Use <code>trust_agent</code> as the root tag of the XML resource that
6088         describes an {@link android.service.trust.TrustAgentService}, which is
6089         referenced from its {@link android.service.trust.TrustAgentService#TRUST_AGENT_META_DATA}
6090         meta-data entry.  Described here are the attributes that can be included in that tag. -->
6091    <declare-styleable name="TrustAgent">
6092        <!-- Component name of an activity that allows the user to modify
6093             the settings for this TrustAgent. -->
6094        <attr name="settingsActivity" />
6095    </declare-styleable>
6096
6097    <!-- =============================== -->
6098    <!-- Accounts package class attributes -->
6099    <!-- =============================== -->
6100    <eat-comment />
6101
6102    <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
6103         describes an account authenticator.
6104     -->
6105    <declare-styleable name="AccountAuthenticator">
6106        <!-- The account type this authenticator handles. -->
6107        <attr name="accountType" format="string"/>
6108        <!-- The user-visible name of the authenticator. -->
6109        <attr name="label"/>
6110        <!-- The icon of the authenticator. -->
6111        <attr name="icon"/>
6112        <!-- Smaller icon of the authenticator. -->
6113        <attr name="smallIcon" format="reference"/>
6114        <!-- A preferences.xml file for authenticator-specific settings. -->
6115        <attr name="accountPreferences" format="reference"/>
6116        <!-- Account handles its own token storage and permissions.
6117             Default to false
6118          -->
6119        <attr name="customTokens" format="boolean"/>
6120    </declare-styleable>
6121
6122    <!-- =============================== -->
6123    <!-- Accounts package class attributes -->
6124    <!-- =============================== -->
6125    <eat-comment />
6126
6127    <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
6128         describes an account authenticator.
6129     -->
6130    <declare-styleable name="SyncAdapter">
6131        <!-- the authority of a content provider. -->
6132        <attr name="contentAuthority" format="string"/>
6133        <attr name="accountType"/>
6134        <attr name="userVisible" format="boolean"/>
6135        <attr name="supportsUploading" format="boolean"/>
6136        <!-- Set to true to tell the SyncManager that this SyncAdapter supports
6137             multiple simultaneous syncs for the same account type and authority.
6138             Otherwise the SyncManager will be sure not to issue a start sync request
6139             to this SyncAdapter if the SyncAdapter is already syncing another account.
6140             Defaults to false.
6141             -->
6142        <attr name="allowParallelSyncs" format="boolean"/>
6143        <!-- Set to true to tell the SyncManager to automatically call setIsSyncable(..., ..., 1)
6144             for the SyncAdapter instead of issuaing an initialization sync to the SyncAdapter.
6145             Defaults to false.
6146             -->
6147        <attr name="isAlwaysSyncable" format="boolean"/>
6148        <!-- If provided, specifies the action of the settings
6149             activity for this SyncAdapter.
6150             -->
6151        <attr name="settingsActivity"/>
6152    </declare-styleable>
6153
6154    <!-- =============================== -->
6155    <!-- Contacts meta-data attributes -->
6156    <!-- =============================== -->
6157    <eat-comment />
6158
6159    <!-- TODO: remove this deprecated styleable. -->
6160    <eat-comment />
6161    <declare-styleable name="Icon">
6162        <attr name="icon" />
6163        <attr name="mimeType" />
6164    </declare-styleable>
6165
6166    <!-- TODO: remove this deprecated styleable -->
6167    <eat-comment />
6168    <declare-styleable name="IconDefault">
6169        <attr name="icon" />
6170    </declare-styleable>
6171
6172    <!-- Maps a specific contact data MIME-type to styling information. -->
6173    <declare-styleable name="ContactsDataKind">
6174        <!-- Mime-type handled by this mapping. -->
6175        <attr name="mimeType" />
6176        <!-- Icon used to represent data of this kind. -->
6177        <attr name="icon" />
6178        <!-- Column in data table that summarizes this data. -->
6179        <attr name="summaryColumn" format="string" />
6180        <!-- Column in data table that contains details for this data. -->
6181        <attr name="detailColumn" format="string" />
6182        <!-- Flag indicating that detail should be built from SocialProvider. -->
6183        <attr name="detailSocialSummary" format="boolean" />
6184        <!-- Resource representing the term "All Contacts" (e.g. "All Friends" or
6185        "All connections"). Optional (Default is "All Contacts"). -->
6186        <attr name="allContactsName" format="string" />
6187    </declare-styleable>
6188
6189    <!-- =============================== -->
6190    <!-- TabSelector class attributes -->
6191    <!-- =============================== -->
6192    <eat-comment />
6193
6194    <declare-styleable name="SlidingTab">
6195        <!-- Use "horizontal" for a row, "vertical" for a column.  The default is horizontal. -->
6196        <attr name="orientation" />
6197    </declare-styleable>
6198
6199    <!-- =============================== -->
6200    <!-- GlowPadView class attributes -->
6201    <!-- =============================== -->
6202    <eat-comment />
6203    <declare-styleable name="GlowPadView">
6204        <!-- Reference to an array resource that be shown as targets around a circle. -->
6205        <attr name="targetDrawables" format="reference" />
6206
6207        <!-- Reference to an array resource that be used as description for the targets around the circle. -->
6208        <attr name="targetDescriptions" format="reference" />
6209
6210        <!-- Reference to an array resource that be used to announce the directions with targets around the circle. -->
6211        <attr name="directionDescriptions" format="reference" />
6212
6213        <!-- Sets a drawable as the center. -->
6214        <attr name="handleDrawable" format="reference" />
6215
6216        <!-- Drawable to use for wave ripple animation. -->
6217        <attr name="outerRingDrawable" format="reference"/>
6218
6219        <!-- Drawble used for drawing points -->
6220        <attr name="pointDrawable" format="reference" />
6221
6222        <!-- Inner radius of glow area. -->
6223        <attr name="innerRadius"/>
6224
6225        <!-- Outer radius of glow area. Target icons will be drawn on this circle. -->
6226        <attr name="outerRadius" format="dimension" />
6227
6228        <!-- Radius of glow under finger. -->
6229        <attr name="glowRadius" format="dimension" />
6230
6231        <!-- Tactile feedback duration for actions. Set to '0' for no vibration. -->
6232        <attr name="vibrationDuration" format="integer" />
6233
6234        <!-- How close we need to be before snapping to a target. -->
6235        <attr name="snapMargin" format="dimension" />
6236
6237        <!-- Number of waves/chevrons to show in animation. -->
6238        <attr name="feedbackCount" format="integer" />
6239
6240        <!-- Used when the handle shouldn't wait to be hit before following the finger -->
6241        <attr name="alwaysTrackFinger" format="boolean" />
6242
6243        <!-- Location along the circle of the first item, in degrees.-->
6244        <attr name="firstItemOffset" format="float" />
6245
6246        <!-- Causes targets to snap to the finger location on activation. -->
6247        <attr name="magneticTargets" format="boolean" />
6248
6249        <attr name="gravity" />
6250
6251        <!-- Determine whether the glow pad is allowed to scale to fit the bounds indicated
6252            by its parent. If this is set to false, no scaling will occur. If this is set to true
6253            scaling will occur to fit for any axis in which gravity is set to center. -->
6254        <attr name="allowScaling" format="boolean" />
6255    </declare-styleable>
6256
6257    <!-- =============================== -->
6258    <!-- SizeAdaptiveLayout class attributes -->
6259    <!-- =============================== -->
6260    <eat-comment />
6261    <declare-styleable name="SizeAdaptiveLayout_Layout">
6262      <!-- The maximum valid height for this item. -->
6263      <attr name="layout_maxHeight" format="dimension">
6264        <!-- Indicates that the view may be resized arbitrarily large. -->
6265        <enum name="unbounded" value="-1" />
6266      </attr>
6267      <!-- The minimum valid height for this item. -->
6268      <attr name="layout_minHeight" format="dimension" />
6269    </declare-styleable>
6270    <declare-styleable name="SizeAdaptiveLayout" />
6271
6272    <!-- =============================== -->
6273    <!-- Location package class attributes -->
6274    <!-- =============================== -->
6275    <eat-comment />
6276
6277    <!-- Use <code>injected-location-setting</code> as the root tag of the XML resource that
6278         describes an injected "Location services" setting. Note that the status value (subtitle)
6279         for the setting is specified dynamically by a subclass of SettingInjectorService.
6280     -->
6281    <declare-styleable name="SettingInjectorService">
6282        <!-- The title for the preference. -->
6283        <attr name="title"/>
6284        <!-- The icon for the preference, should refer to all apps covered by the setting. Typically
6285             a generic icon for the developer. -->
6286        <attr name="icon"/>
6287        <!-- The activity to launch when the setting is clicked on. -->
6288        <attr name="settingsActivity"/>
6289    </declare-styleable>
6290
6291    <!-- =============================== -->
6292    <!-- LockPatternView class attributes -->
6293    <!-- =============================== -->
6294    <eat-comment />
6295
6296    <declare-styleable name="LockPatternView">
6297        <!-- Aspect to use when drawing LockPatternView. Choices are "square"(default), "lock_width"
6298             or "lock_height" -->
6299        <attr name="aspect" format="string" />
6300        <!-- Color to use when drawing LockPatternView paths. -->
6301        <attr name="pathColor" format="color|reference" />
6302    </declare-styleable>
6303
6304    <!-- Use <code>recognition-service</code> as the root tag of the XML resource that
6305         describes a {@link android.speech.RecognitionService}, which is referenced from
6306         its {@link android.speech.RecognitionService#SERVICE_META_DATA} meta-data entry.
6307         Described here are the attributes that can be included in that tag. -->
6308    <declare-styleable name="RecognitionService">
6309        <attr name="settingsActivity" />
6310    </declare-styleable>
6311
6312    <!-- Use <code>voice-interaction-service</code> as the root tag of the XML resource that
6313         describes a {@link android.service.voice.VoiceInteractionService}, which is referenced from
6314         its {@link android.service.voice.VoiceInteractionService#SERVICE_META_DATA} meta-data entry.
6315         Described here are the attributes that can be included in that tag. -->
6316    <declare-styleable name="VoiceInteractionService">
6317        <attr name="sessionService" format="string" />
6318        <attr name="settingsActivity" />
6319    </declare-styleable>
6320
6321    <!-- Attributes used to style the Action Bar. -->
6322    <declare-styleable name="ActionBar">
6323        <!-- The type of navigation to use. -->
6324        <attr name="navigationMode">
6325            <!-- Normal static title text -->
6326            <enum name="normal" value="0" />
6327            <!-- The action bar will use a selection list for navigation. -->
6328            <enum name="listMode" value="1" />
6329            <!-- The action bar will use a series of horizontal tabs for navigation. -->
6330            <enum name="tabMode" value="2" />
6331        </attr>
6332        <!-- Options affecting how the action bar is displayed. -->
6333        <attr name="displayOptions">
6334            <flag name="none" value="0" />
6335            <flag name="useLogo" value="0x1" />
6336            <flag name="showHome" value="0x2" />
6337            <flag name="homeAsUp" value="0x4" />
6338            <flag name="showTitle" value="0x8" />
6339            <flag name="showCustom" value="0x10" />
6340            <flag name="disableHome" value="0x20" />
6341        </attr>
6342        <!-- Specifies title text used for navigationMode="normal" -->
6343        <attr name="title" />
6344        <!-- Specifies subtitle text used for navigationMode="normal" -->
6345        <attr name="subtitle" format="string" />
6346        <!-- Specifies a style to use for title text. -->
6347        <attr name="titleTextStyle" format="reference" />
6348        <!-- Specifies a style to use for subtitle text. -->
6349        <attr name="subtitleTextStyle" format="reference" />
6350        <!-- Specifies the drawable used for the application icon. -->
6351        <attr name="icon" />
6352        <!-- Specifies the drawable used for the application logo. -->
6353        <attr name="logo" />
6354        <!-- Specifies the drawable used for item dividers. -->
6355        <attr name="divider" />
6356        <!-- Specifies a background drawable for the action bar. -->
6357        <attr name="background" />
6358        <!-- Specifies a background drawable for a second stacked row of the action bar. -->
6359        <attr name="backgroundStacked" format="reference|color" />
6360        <!-- Specifies a background drawable for the bottom component of a split action bar. -->
6361        <attr name="backgroundSplit" format="reference|color" />
6362        <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
6363        <attr name="customNavigationLayout" format="reference" />
6364        <!-- Specifies a fixed height. -->
6365        <attr name="height" />
6366        <!-- Specifies a layout to use for the "home" section of the action bar. -->
6367        <attr name="homeLayout" format="reference" />
6368        <!-- Specifies a style resource to use for an embedded progress bar. -->
6369        <attr name="progressBarStyle" />
6370        <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
6371        <attr name="indeterminateProgressStyle" format="reference" />
6372        <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
6373        <attr name="progressBarPadding" format="dimension" />
6374        <!-- Specifies padding that should be applied to the left and right sides of
6375             system-provided items in the bar. -->
6376        <attr name="itemPadding" format="dimension" />
6377        <!-- Set true to hide the action bar on a vertical nested scroll of content. -->
6378        <attr name="hideOnContentScroll" format="boolean" />
6379    </declare-styleable>
6380
6381    <declare-styleable name="ActionMode">
6382        <!-- Specifies a style to use for title text. -->
6383        <attr name="titleTextStyle" />
6384        <!-- Specifies a style to use for subtitle text. -->
6385        <attr name="subtitleTextStyle" />
6386        <!-- Specifies a background for the action mode bar. -->
6387        <attr name="background" />
6388        <!-- Specifies a background for the split action mode bar. -->
6389        <attr name="backgroundSplit" />
6390        <!-- Specifies a fixed height for the action mode bar. -->
6391        <attr name="height" />
6392    </declare-styleable>
6393
6394    <declare-styleable name="SearchView">
6395        <!-- The default state of the SearchView. If true, it will be iconified when not in
6396             use and expanded when clicked. -->
6397        <attr name="iconifiedByDefault" format="boolean"/>
6398        <!-- An optional maximum width of the SearchView. -->
6399        <attr name="maxWidth" />
6400        <!-- An optional query hint string to be displayed in the empty query field. -->
6401        <attr name="queryHint" format="string" />
6402        <!-- The IME options to set on the query text field. -->
6403        <attr name="imeOptions" />
6404        <!-- The input type to set on the query text field. -->
6405        <attr name="inputType" />
6406    </declare-styleable>
6407
6408    <declare-styleable name="Switch">
6409        <!-- Drawable to use as the "thumb" that switches back and forth. -->
6410        <attr name="thumb" />
6411        <!-- Drawable to use as the "track" that the switch thumb slides within. -->
6412        <attr name="track" format="reference" />
6413        <!-- Text to use when the switch is in the checked/"on" state. -->
6414        <attr name="textOn" />
6415        <!-- Text to use when the switch is in the unchecked/"off" state. -->
6416        <attr name="textOff" />
6417        <!-- Amount of padding on either side of text within the switch thumb. -->
6418        <attr name="thumbTextPadding" format="dimension" />
6419        <!-- TextAppearance style for text displayed on the switch thumb. -->
6420        <attr name="switchTextAppearance" format="reference" />
6421        <!-- Minimum width for the switch component -->
6422        <attr name="switchMinWidth" format="dimension" />
6423        <!-- Minimum space between the switch and caption text -->
6424        <attr name="switchPadding" format="dimension" />
6425        <!-- Whether to split the track and leave a gap for the thumb drawable. -->
6426        <attr name="splitTrack" />
6427    </declare-styleable>
6428
6429    <declare-styleable name="Pointer">
6430        <!-- Reference to a pointer icon drawable with STYLE_ARROW -->
6431        <attr name="pointerIconArrow" format="reference" />
6432        <!-- Reference to a pointer icon drawable with STYLE_SPOT_HOVER -->
6433        <attr name="pointerIconSpotHover" format="reference" />
6434        <!-- Reference to a pointer icon drawable with STYLE_SPOT_TOUCH -->
6435        <attr name="pointerIconSpotTouch" format="reference" />
6436        <!-- Reference to a pointer icon drawable with STYLE_SPOT_ANCHOR -->
6437        <attr name="pointerIconSpotAnchor" format="reference" />
6438    </declare-styleable>
6439
6440    <declare-styleable name="PointerIcon">
6441        <!-- Drawable to use as the icon bitmap. -->
6442        <attr name="bitmap" format="reference" />
6443        <!-- X coordinate of the icon hot spot. -->
6444        <attr name="hotSpotX" format="float" />
6445        <!-- Y coordinate of the icon hot spot. -->
6446        <attr name="hotSpotY" format="float" />
6447    </declare-styleable>
6448
6449    <declare-styleable name="Storage">
6450        <!-- path to mount point for the storage -->
6451        <attr name="mountPoint" format="string" />
6452        <!-- user visible description of the storage -->
6453        <attr name="storageDescription" format="string" />
6454        <!-- true if the storage is the primary external storage -->
6455        <attr name="primary" format="boolean" />
6456        <!-- true if the storage is removable -->
6457        <attr name="removable" format="boolean" />
6458        <!-- true if the storage is emulated via the FUSE sdcard daemon -->
6459        <attr name="emulated" format="boolean" />
6460        <!-- number of megabytes of storage MTP should reserve for free storage
6461             (used for emulated storage that is shared with system's data partition) -->
6462        <attr name="mtpReserve" format="integer" />
6463        <!-- true if the storage can be shared via USB mass storage -->
6464        <attr name="allowMassStorage" format="boolean" />
6465        <!-- maximum file size for the volume in megabytes, zero or unspecified if it is unbounded -->
6466        <attr name="maxFileSize" format="integer" />
6467    </declare-styleable>
6468
6469    <declare-styleable name="SwitchPreference">
6470        <!-- The summary for the Preference in a PreferenceActivity screen when the
6471             SwitchPreference is checked. If separate on/off summaries are not
6472             needed, the summary attribute can be used instead. -->
6473        <attr name="summaryOn" />
6474        <!-- The summary for the Preference in a PreferenceActivity screen when the
6475             SwitchPreference is unchecked. If separate on/off summaries are not
6476             needed, the summary attribute can be used instead. -->
6477        <attr name="summaryOff" />
6478        <!-- The text used on the switch itself when in the "on" state.
6479             This should be a very SHORT string, as it appears in a small space. -->
6480        <attr name="switchTextOn" format="string" />
6481        <!-- The text used on the switch itself when in the "off" state.
6482             This should be a very SHORT string, as it appears in a small space. -->
6483        <attr name="switchTextOff" format="string" />
6484        <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default,
6485             dependents will be disabled when this is unchecked, so the value of this preference is false. -->
6486        <attr name="disableDependentsState" />
6487    </declare-styleable>
6488
6489    <!-- Use <code>tts-engine</code> as the root tag of the XML resource that
6490         describes a text to speech engine implemented as a subclass of
6491         {@link android.speech.tts.TextToSpeechService}.
6492
6493         The XML resource must be referenced from its
6494         {@link android.speech.tts.TextToSpeech.Engine#SERVICE_META_DATA} meta-data
6495         entry. -->
6496    <declare-styleable name="TextToSpeechEngine">
6497        <attr name="settingsActivity" />
6498    </declare-styleable>
6499
6500    <!-- Use <code>keyboard-layouts</code> as the root tag of the XML resource that
6501         describes a collection of keyboard layouts provided by an application.
6502         Each keyboard layout is declared by a <code>keyboard-layout</code> tag
6503         with these attributes.
6504
6505         The XML resource that contains the keyboard layouts must be referenced from its
6506         {@link android.hardware.input.InputManager#META_DATA_KEYBOARD_LAYOUTS}
6507         meta-data entry used with broadcast receivers for
6508         {@link android.hardware.input.InputManager#ACTION_QUERY_KEYBOARD_LAYOUTS}. -->
6509    <declare-styleable name="KeyboardLayout">
6510        <!-- The name of the keyboard layout, must be unique in the receiver. -->
6511        <attr name="name" />
6512        <!-- The display label of the keyboard layout. -->
6513        <attr name="label" />
6514        <!-- The key character map file resource. -->
6515        <attr name="keyboardLayout" format="reference" />
6516    </declare-styleable>
6517
6518    <declare-styleable name="MediaRouteButton">
6519        <!-- This drawable is a state list where the "activated" state
6520             indicates active media routing. Non-activated indicates
6521             that media is playing to the local device only.
6522             @hide -->
6523        <attr name="externalRouteEnabledDrawable" format="reference" />
6524
6525        <!-- The types of media routes the button and its resulting
6526             chooser will filter by. -->
6527        <attr name="mediaRouteTypes" format="integer">
6528            <!-- Allow selection of live audio routes. -->
6529            <enum name="liveAudio" value="0x1" />
6530            <!-- Allow selection of user (app-specified) routes. -->
6531            <enum name="user" value="0x800000" />
6532        </attr>
6533
6534        <attr name="minWidth" />
6535        <attr name="minHeight" />
6536    </declare-styleable>
6537
6538    <!-- PagedView specific attributes. These attributes are used to customize
6539         a PagedView view in XML files. -->
6540    <declare-styleable name="PagedView">
6541        <!-- The space between adjacent pages of the PagedView. -->
6542        <attr name="pageSpacing" format="dimension" />
6543        <!-- The padding for the scroll indicator area -->
6544        <attr name="scrollIndicatorPaddingLeft" format="dimension" />
6545        <attr name="scrollIndicatorPaddingRight" format="dimension" />
6546    </declare-styleable>
6547
6548    <declare-styleable name="KeyguardGlowStripView">
6549        <attr name="dotSize" format="dimension" />
6550        <attr name="numDots" format="integer" />
6551        <attr name="glowDot" format="reference" />
6552        <attr name="leftToRight" format="boolean" />
6553    </declare-styleable>
6554
6555    <!-- Some child types have special behavior. -->
6556    <attr name="layout_childType">
6557        <!-- No special behavior. Layout will proceed as normal. -->
6558        <enum name="none" value="0" />
6559        <!-- Widget container.
6560             This will be resized in response to certain events. -->
6561        <enum name="widget" value="1" />
6562        <!-- Security challenge container.
6563             This will be dismissed/shown in response to certain events,
6564             possibly obscuring widget elements. -->
6565        <enum name="challenge" value="2" />
6566        <!-- User switcher.
6567             This will consume space from the total layout area. -->
6568        <enum name="userSwitcher" value="3" />
6569        <!-- Scrim. This will block access to child views that
6570             come before it in the child list in bouncer mode. -->
6571        <enum name="scrim" value="4" />
6572        <!-- The home for widgets. All widgets will be descendents of this. -->
6573        <enum name="widgets" value="5" />
6574        <!-- This is a handle that is used for expanding the
6575             security challenge container when it is collapsed. -->
6576        <enum name="expandChallengeHandle" value="6" />
6577        <!-- Delete drop target.  This will be the drop target to delete pages. -->
6578        <enum name="pageDeleteDropTarget" value="7" />
6579    </attr>
6580
6581    <declare-styleable name="SlidingChallengeLayout_Layout">
6582        <attr name="layout_childType" />
6583        <attr name="layout_maxHeight" />
6584    </declare-styleable>
6585
6586    <!-- Attributes that can be used with <code>&lt;FragmentBreadCrumbs&gt;</code>
6587    tags. -->
6588    <declare-styleable name="FragmentBreadCrumbs">
6589        <attr name="gravity" />
6590    </declare-styleable>
6591
6592    <declare-styleable name="MultiPaneChallengeLayout">
6593        <!-- Influences how layout_centerWithinArea behaves -->
6594        <attr name="orientation" />
6595    </declare-styleable>
6596
6597    <declare-styleable name="MultiPaneChallengeLayout_Layout">
6598        <!-- Percentage of the screen this child should consume or center within.
6599             If 0/default, the view will be measured by standard rules
6600             as if this were a FrameLayout. -->
6601        <attr name="layout_centerWithinArea" format="float" />
6602        <attr name="layout_childType" />
6603        <attr name="layout_gravity" />
6604        <attr name="layout_maxWidth" format="dimension" />
6605        <attr name="layout_maxHeight" />
6606    </declare-styleable>
6607
6608    <declare-styleable name="KeyguardSecurityViewFlipper_Layout">
6609        <attr name="layout_maxWidth" />
6610        <attr name="layout_maxHeight" />
6611    </declare-styleable>
6612
6613    <declare-styleable name="NumPadKey">
6614        <attr name="digit" format="integer" />
6615        <attr name="textView" format="reference" />
6616    </declare-styleable>
6617
6618    <declare-styleable name="Toolbar">
6619        <attr name="titleTextAppearance" format="reference" />
6620        <attr name="subtitleTextAppearance" format="reference" />
6621        <attr name="title" />
6622        <attr name="subtitle" />
6623        <attr name="gravity" />
6624        <attr name="titleMargins" format="dimension" />
6625        <attr name="titleMarginStart" format="dimension" />
6626        <attr name="titleMarginEnd" format="dimension" />
6627        <attr name="titleMarginTop" format="dimension" />
6628        <attr name="titleMarginBottom" format="dimension" />
6629    </declare-styleable>
6630
6631    <declare-styleable name="Toolbar_LayoutParams">
6632        <attr name="layout_gravity" />
6633    </declare-styleable>
6634
6635    <declare-styleable name="ActionBar_LayoutParams">
6636        <attr name="layout_gravity" />
6637    </declare-styleable>
6638
6639    <!-- Used as a filter array on the theme to pull out only the EdgeEffect-relevant bits. -->
6640    <declare-styleable name="EdgeEffect">
6641        <attr name="colorPrimaryLight" />
6642    </declare-styleable>
6643</resources>
6644