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