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