1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2006 The Android Open Source Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
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.
23 <!-- These are the standard attributes that make up a complete theme. -->
24 <declare-styleable name="Theme">
25 <!-- ============== -->
26 <!-- Generic styles -->
27 <!-- ============== -->
30 <!-- Specifies that a theme has a light background with dark text on top. -->
31 <attr name="isLightTheme" format="boolean" />
33 <!-- Default color of foreground imagery. -->
34 <attr name="colorForeground" format="color" />
35 <!-- Default color of foreground imagery on an inverted background. -->
36 <attr name="colorForegroundInverse" format="color" />
37 <!-- Default color of background imagery, ex. full-screen windows. -->
38 <attr name="colorBackground" format="color" />
39 <!-- Default color of background imagery for floating components, ex. dialogs, popups, and cards. -->
40 <attr name="colorBackgroundFloating" format="color" />
41 <!-- This is a hint for a solid color that can be used for caching
42 rendered views. This should be the color of the background when
43 there is a solid background color; it should be null when the
44 background is a texture or translucent. When a device is able
45 to use accelerated drawing (thus setting state_accelerated), the
46 cache hint is ignored and always assumed to be transparent. -->
47 <attr name="colorBackgroundCacheHint" format="color" />
49 <!-- Default highlight color for items that are pressed. -->
50 <attr name="colorPressedHighlight" format="color" />
51 <!-- Default highlight color for items that are long-pressed. -->
52 <attr name="colorLongPressedHighlight" format="color" />
53 <!-- Default highlight color for items that are
54 focused. (Focused meaning cursor-based selection.) -->
55 <attr name="colorFocusedHighlight" format="color" />
56 <!-- Default highlight color for items that are
57 activated. (Activated meaning persistent selection.) -->
58 <attr name="colorActivatedHighlight" format="color" />
59 <!-- Default highlight color for items in multiple selection
61 <attr name="colorMultiSelectHighlight" format="color" />
63 <!-- Drawable to be drawn over the view to mark it as autofilled-->
64 <attr name="autofilledHighlight" format="reference" />
66 <!-- Max width of the autofill data set picker as a fraction of the screen width -->
67 <attr name="autofillDatasetPickerMaxWidth" format="reference" />
69 <!-- Max height of the autofill data set picker as a fraction of the screen height -->
70 <attr name="autofillDatasetPickerMaxHeight" format="reference" />
72 <!-- Default disabled alpha for widgets that set enabled/disabled alpha programmatically. -->
73 <attr name="disabledAlpha" format="float" />
74 <!-- The alpha applied to the foreground color to create the primary text color. -->
75 <attr name="primaryContentAlpha" format="float" />
76 <!-- The alpha applied to the foreground color to create the secondary text color. -->
77 <attr name="secondaryContentAlpha" format="float" />
78 <!-- Color used for error states and things that need to be drawn to
79 the users attention.. -->
80 <attr name="colorError" format="reference|color" />
81 <!-- Default background dim amount when a menu, dialog, or something similar pops up. -->
82 <attr name="backgroundDimAmount" format="float" />
83 <!-- Control whether dimming behind the window is enabled. The default
84 theme does not set this value, meaning it is based on whether the
85 window is floating. -->
86 <attr name="backgroundDimEnabled" format="boolean" />
93 <!-- Default appearance of text: color, typeface, size, and style. -->
94 <attr name="textAppearance" format="reference" />
95 <!-- Default appearance of text against an inverted background:
96 color, typeface, size, and style. -->
97 <attr name="textAppearanceInverse" format="reference" />
99 <!-- The most prominent text color. -->
100 <attr name="textColorPrimary" format="reference|color" />
101 <!-- Secondary text color. -->
102 <attr name="textColorSecondary" format="reference|color" />
103 <!-- Tertiary text color. -->
104 <attr name="textColorTertiary" format="reference|color" />
106 <!-- Primary inverse text color, useful for inverted backgrounds. -->
107 <attr name="textColorPrimaryInverse" format="reference|color" />
108 <!-- Secondary inverse text color, useful for inverted backgrounds. -->
109 <attr name="textColorSecondaryInverse" format="reference|color" />
110 <!-- Tertiary inverse text color, useful for inverted backgrounds. -->
111 <attr name="textColorTertiaryInverse" format="reference|color" />
113 <!-- Inverse hint text color. -->
114 <attr name="textColorHintInverse" format="reference|color" />
116 <!-- Bright text color. Only differentiates based on the disabled state. -->
117 <attr name="textColorPrimaryDisableOnly" format="reference|color" />
119 <!-- Bright inverse text color. Only differentiates based on the disabled state. -->
120 <attr name="textColorPrimaryInverseDisableOnly" format="reference|color" />
122 <!-- Bright text color. This does not differentiate the disabled state. As an example,
123 buttons use this since they display the disabled state via the background and not the
124 foreground text color. -->
125 <attr name="textColorPrimaryNoDisable" format="reference|color" />
126 <!-- Dim text color. This does not differentiate the disabled state. -->
127 <attr name="textColorSecondaryNoDisable" format="reference|color" />
129 <!-- Bright inverse text color. This does not differentiate the disabled state. -->
130 <attr name="textColorPrimaryInverseNoDisable" format="reference|color" />
131 <!-- Dim inverse text color. This does not differentiate the disabled state. -->
132 <attr name="textColorSecondaryInverseNoDisable" format="reference|color" />
134 <!-- Bright text color for use over activated backgrounds. -->
135 <attr name="textColorPrimaryActivated" format="reference|color" />
136 <!-- Dim text color for use over activated backgrounds. -->
137 <attr name="textColorSecondaryActivated" format="reference|color" />
139 <!-- Text color for urls in search suggestions, used by things like global search and the browser. @hide -->
140 <attr name="textColorSearchUrl" format="reference|color" />
142 <!-- Color of highlighted text, when used in a light theme. -->
143 <attr name="textColorHighlightInverse" format="reference|color" />
144 <!-- Color of link text (URLs), when used in a light theme. -->
145 <attr name="textColorLinkInverse" format="reference|color" />
147 <!-- Color of list item text in alert dialogs. -->
148 <attr name="textColorAlertDialogListItem" format="reference|color" />
150 <!-- Search widget more corpus result item background. -->
151 <attr name="searchWidgetCorpusItemBackground" format="reference|color" />
153 <!-- Text color, typeface, size, and style for "large" text. Defaults to primary text color. -->
154 <attr name="textAppearanceLarge" format="reference" />
155 <!-- Text color, typeface, size, and style for "medium" text. Defaults to primary text color. -->
156 <attr name="textAppearanceMedium" format="reference" />
157 <!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. -->
158 <attr name="textAppearanceSmall" format="reference" />
160 <!-- Text color, typeface, size, and style for "large" inverse text. Defaults to primary inverse text color. -->
161 <attr name="textAppearanceLargeInverse" format="reference" />
162 <!-- Text color, typeface, size, and style for "medium" inverse text. Defaults to primary inverse text color. -->
163 <attr name="textAppearanceMediumInverse" format="reference" />
164 <!-- Text color, typeface, size, and style for "small" inverse text. Defaults to secondary inverse text color. -->
165 <attr name="textAppearanceSmallInverse" format="reference" />
167 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
168 <attr name="textAppearanceSearchResultTitle" format="reference" />
169 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
170 <attr name="textAppearanceSearchResultSubtitle" format="reference" />
172 <!-- Text color, typeface, size, and style for the text inside of a button. -->
173 <attr name="textAppearanceButton" format="reference" />
175 <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
176 <attr name="textAppearanceLargePopupMenu" format="reference" />
178 <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
179 <attr name="textAppearanceSmallPopupMenu" format="reference" />
181 <!-- Text color, typeface, size, and style for header text inside of a popup menu. -->
182 <attr name="textAppearancePopupMenuHeader" format="reference" />
184 <!-- The underline color and thickness for easy correct suggestion -->
185 <attr name="textAppearanceEasyCorrectSuggestion" format="reference" />
187 <!-- The underline color and thickness for misspelled suggestion -->
188 <attr name="textAppearanceMisspelledSuggestion" format="reference" />
190 <!-- The underline color and thickness for auto correction suggestion -->
191 <attr name="textAppearanceAutoCorrectionSuggestion" format="reference" />
193 <!-- The underline color -->
194 <attr name="textUnderlineColor" format="reference|color" />
195 <!-- The underline thickness -->
196 <attr name="textUnderlineThickness" format="reference|dimension" />
198 <!-- EditText text foreground color. -->
199 <attr name="editTextColor" format="reference|color" />
200 <!-- EditText background drawable. -->
201 <attr name="editTextBackground" format="reference" />
203 <!-- Popup text displayed in TextView when setError is used. -->
204 <attr name="errorMessageBackground" format="reference" />
205 <!-- Background used instead of errorMessageBackground when the popup has to be above. -->
206 <attr name="errorMessageAboveBackground" format="reference" />
208 <!-- A styled string, specifying the style to be used for showing
209 inline candidate text when composing with an input method. The
210 text itself will be ignored, but the style spans will be applied
211 to the candidate text as it is edited. -->
212 <attr name="candidatesTextStyleSpans" format="reference|string" />
214 <!-- Drawable to use for check marks. -->
215 <attr name="textCheckMark" format="reference" />
216 <attr name="textCheckMarkInverse" format="reference" />
218 <!-- Drawable to use for multiple choice indicators. -->
219 <attr name="listChoiceIndicatorMultiple" format="reference" />
221 <!-- Drawable to use for single choice indicators. -->
222 <attr name="listChoiceIndicatorSingle" format="reference" />
224 <!-- Drawable used as a background for selected list items. -->
225 <attr name="listChoiceBackgroundIndicator" format="reference" />
227 <!-- Drawable used as a background for activated items. -->
228 <attr name="activatedBackgroundIndicator" format="reference" />
230 <!-- ============= -->
231 <!-- Button styles -->
232 <!-- ============= -->
235 <!-- Normal Button style. -->
236 <attr name="buttonStyle" format="reference" />
238 <!-- Small Button style. -->
239 <attr name="buttonStyleSmall" format="reference" />
241 <!-- Button style to inset into an EditText. -->
242 <attr name="buttonStyleInset" format="reference" />
244 <!-- ToggleButton style. -->
245 <attr name="buttonStyleToggle" format="reference" />
247 <!-- ============== -->
248 <!-- Gallery styles -->
249 <!-- ============== -->
252 <!-- The preferred background for gallery items. This should be set
253 as the background of any Views you provide from the Adapter. -->
254 <attr name="galleryItemBackground" format="reference" />
261 <!-- The preferred list item height. -->
262 <attr name="listPreferredItemHeight" format="dimension" />
263 <!-- A smaller, sleeker list item height. -->
264 <attr name="listPreferredItemHeightSmall" format="dimension" />
265 <!-- A larger, more robust list item height. -->
266 <attr name="listPreferredItemHeightLarge" format="dimension" />
267 <!-- The list item height for search results. @hide -->
268 <attr name="searchResultListItemHeight" format="dimension" />
270 <!-- The preferred padding along the left edge of list items. -->
271 <attr name="listPreferredItemPaddingLeft" format="dimension" />
272 <!-- The preferred padding along the right edge of list items. -->
273 <attr name="listPreferredItemPaddingRight" format="dimension" />
275 <!-- The preferred TextAppearance for the primary text of list items. -->
276 <attr name="textAppearanceListItem" format="reference" />
277 <!-- The preferred TextAppearance for the secondary text of list items. -->
278 <attr name="textAppearanceListItemSecondary" format="reference" />
279 <!-- The preferred TextAppearance for the primary text of small list items. -->
280 <attr name="textAppearanceListItemSmall" format="reference" />
282 <!-- The drawable for the list divider. -->
283 <attr name="listDivider" format="reference" />
284 <!-- The list divider used in alert dialogs. -->
285 <attr name="listDividerAlertDialog" format="reference" />
286 <!-- TextView style for list separators. -->
287 <attr name="listSeparatorTextViewStyle" format="reference" />
288 <!-- The preferred left padding for an expandable list item (for child-specific layouts,
289 use expandableListPreferredChildPaddingLeft). This takes into account
290 the indicator that will be shown to next to the item. -->
291 <attr name="expandableListPreferredItemPaddingLeft" format="dimension" />
292 <!-- The preferred left padding for an expandable list item that is a child.
293 If this is not provided, it defaults to the expandableListPreferredItemPaddingLeft. -->
294 <attr name="expandableListPreferredChildPaddingLeft" format="dimension" />
295 <!-- The preferred left bound for an expandable list item's indicator. For a child-specific
296 indicator, use expandableListPreferredChildIndicatorLeft. -->
297 <attr name="expandableListPreferredItemIndicatorLeft" format="dimension" />
298 <!-- The preferred right bound for an expandable list item's indicator. For a child-specific
299 indicator, use expandableListPreferredChildIndicatorRight. -->
300 <attr name="expandableListPreferredItemIndicatorRight" format="dimension" />
301 <!-- The preferred left bound for an expandable list child's indicator. -->
302 <attr name="expandableListPreferredChildIndicatorLeft" format="dimension" />
303 <!-- The preferred right bound for an expandable list child's indicator. -->
304 <attr name="expandableListPreferredChildIndicatorRight" format="dimension" />
306 <!-- The preferred item height for dropdown lists. -->
307 <attr name="dropdownListPreferredItemHeight" format="dimension" />
309 <!-- The preferred padding along the start edge of list items. -->
310 <attr name="listPreferredItemPaddingStart" format="dimension" />
311 <!-- The preferred padding along the end edge of list items. -->
312 <attr name="listPreferredItemPaddingEnd" format="dimension" />
314 <!-- ============= -->
315 <!-- Window styles -->
316 <!-- ============= -->
319 <!-- Drawable to use as the overall window background. As of
320 {@link android.os.Build.VERSION_CODES#HONEYCOMB}, this may
321 be a selector that uses state_accelerated to pick a non-solid
322 color when running on devices that can draw such a bitmap
323 with complex compositing on top at 60fps.
325 <p>There are a few special considerations to use when setting this
328 <li> This information will be used to infer the pixel format
329 for your window's surface. If the drawable has any
330 non-opaque pixels, your window will be translucent
332 <li> If you want to draw the entire background
333 yourself, you should set this drawable to some solid
334 color that closely matches that background (so the
335 system's preview of your window will match), and
336 then in code manually set your window's background to
337 null so it will not be drawn.
339 <attr name="windowBackground" format="reference" />
340 <!-- Drawable to draw selectively within the inset areas when the windowBackground
341 has been set to null. This protects against seeing visual garbage in the
342 surface when the app has not drawn any content into this area. One example is
343 when the user is resizing a window of an activity that has
344 {@link android.R.attr#resizeableActivity} set for multi-window mode. -->
345 <attr name="windowBackgroundFallback" format="reference" />
346 <!-- Drawable to use as a frame around the window. -->
347 <attr name="windowFrame" format="reference" />
348 <!-- Flag indicating whether there should be no title on this window. -->
349 <attr name="windowNoTitle" format="boolean" />
350 <!-- Flag indicating whether this window should fill the entire screen. Corresponds
351 to {@link android.view.WindowManager.LayoutParams#FLAG_FULLSCREEN}. -->
352 <attr name="windowFullscreen" format="boolean" />
353 <!-- Flag indicating whether this window should extend into overscan region. Corresponds
354 to {@link android.view.WindowManager.LayoutParams#FLAG_LAYOUT_IN_OVERSCAN}. -->
355 <attr name="windowOverscan" format="boolean" />
356 <!-- Flag indicating whether this is a floating window. -->
357 <attr name="windowIsFloating" format="boolean" />
358 <!-- Flag indicating whether this is a translucent window. If this attribute is unset (but
359 not if set to false), the window might still be considered translucent, if
360 windowSwipeToDismiss is set to true. -->
361 <attr name="windowIsTranslucent" format="boolean" />
362 <!-- Flag indicating that this window's background should be the
363 user's current wallpaper. Corresponds
364 to {@link android.view.WindowManager.LayoutParams#FLAG_SHOW_WALLPAPER}. -->
365 <attr name="windowShowWallpaper" format="boolean" />
366 <!-- This Drawable is overlaid over the foreground of the Window's content area, usually
367 to place a shadow below the title. -->
368 <attr name="windowContentOverlay" format="reference" />
369 <!-- The style resource to use for a window's title bar height. -->
370 <attr name="windowTitleSize" format="dimension" />
371 <!-- The style resource to use for a window's title text. -->
372 <attr name="windowTitleStyle" format="reference" />
373 <!-- The style resource to use for a window's title area. -->
374 <attr name="windowTitleBackgroundStyle" format="reference" />
376 <!-- Reference to a style resource holding
377 the set of window animations to use, which can be
378 any of the attributes defined by
379 {@link android.R.styleable#WindowAnimation}. -->
380 <attr name="windowAnimationStyle" format="reference" />
382 <!-- Flag indicating whether this window should have an Action Bar
383 in place of the usual title bar. -->
384 <attr name="windowActionBar" format="boolean" />
386 <!-- Flag indicating whether this window's Action Bar should overlay
387 application content. Does nothing if the window would not
388 have an Action Bar. -->
389 <attr name="windowActionBarOverlay" format="boolean" />
391 <!-- Flag indicating whether action modes should overlay window content
392 when there is not reserved space for their UI (such as an Action Bar). -->
393 <attr name="windowActionModeOverlay" format="boolean" />
395 <!-- Defines the default soft input state that this window would
396 like when it is displayed. Corresponds
397 to {@link android.view.WindowManager.LayoutParams#softInputMode}. -->
398 <attr name="windowSoftInputMode">
399 <!-- Not specified, use what the system thinks is best. This
401 <flag name="stateUnspecified" value="0" />
402 <!-- Leave the soft input window as-is, in whatever state it
404 <flag name="stateUnchanged" value="1" />
405 <!-- Make the soft input area hidden when normally appropriate
406 (when the user is navigating forward to your window). -->
407 <flag name="stateHidden" value="2" />
408 <!-- Always make the soft input area hidden when this window
410 <flag name="stateAlwaysHidden" value="3" />
411 <!-- Make the soft input area visible when normally appropriate
412 (when the user is navigating forward to your window). -->
413 <flag name="stateVisible" value="4" />
414 <!-- Always make the soft input area visible when this window
416 <flag name="stateAlwaysVisible" value="5" />
418 <!-- The window resize/pan adjustment has not been specified,
419 the system will automatically select between resize and pan
421 on whether the content of the window has any layout views
422 that can scroll their contents. If there is such a view,
423 then the window will be resized, with the assumption being
424 that the resizeable area can be reduced to make room for
426 <flag name="adjustUnspecified" value="0x00" />
427 <!-- Always resize the window: the content area of the window is
428 reduced to make room for the soft input area. -->
429 <flag name="adjustResize" value="0x10" />
430 <!-- Don't resize the window to make room for the soft input area;
431 instead pan the contents of the window as focus moves inside
432 of it so that the user can see what they are typing. This is
433 generally less desireable than panning because the user may
434 need to close the input area to get at and interact with
435 parts of the window. -->
436 <flag name="adjustPan" value="0x20" />
437 <!-- Don't resize <em>or</em> pan the window to make room for the
438 soft input area; the window is never adjusted for it. -->
439 <flag name="adjustNothing" value="0x30" />
442 <!-- Flag allowing you to disable the splash screen for a window. The default value is
443 false; if set to true, the system can never use the window's theme to show a splash
444 screen before your actual instance is shown to the user. -->
445 <attr name="windowDisablePreview" format="boolean" />
447 <!-- Flag indicating that this window should not be displayed at all.
448 The default value is false; if set to true, and this window is
449 the main window of an Activity, then it will never actually
450 be added to the window manager. This means that your activity
451 must immediately quit without waiting for user interaction,
452 because there will be no such interaction coming. -->
453 <attr name="windowNoDisplay" format="boolean" />
455 <!-- Flag indicating that this window should allow touches to be split
456 across other windows that also support split touch.
457 The default value is true for applications with a targetSdkVersion
458 of Honeycomb or newer; false otherwise.
459 When this flag is false, the first pointer that goes down determines
460 the window to which all subsequent touches go until all pointers go up.
461 When this flag is true, each pointer (not necessarily the first) that
462 goes down determines the window to which all subsequent touches of that
463 pointer will go until that pointers go up thereby enabling touches
464 with multiple pointers to be split across multiple windows. -->
465 <attr name="windowEnableSplitTouch" format="boolean" />
467 <!-- Control whether a container should automatically close itself if
468 the user touches outside of it. This only applies to activities
471 <p>Note: this attribute will only be respected for applications
472 that are targeting {@link android.os.Build.VERSION_CODES#HONEYCOMB}
474 <attr name="windowCloseOnTouchOutside" format="boolean" />
476 <!-- Flag indicating whether this window requests a translucent status bar. Corresponds
477 to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_STATUS}. -->
478 <attr name="windowTranslucentStatus" format="boolean" />
480 <!-- Flag indicating whether this window requests a translucent navigation bar. Corresponds
481 to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_NAVIGATION}. -->
482 <attr name="windowTranslucentNavigation" format="boolean" />
484 <!-- Flag to indicate that a window can be swiped away to be dismissed.
485 Corresponds to {@link android.view.Window#FEATURE_SWIPE_TO_DISMISS}. It will also
486 dynamically change translucency of the window, if the windowIsTranslucent is not set.
487 If windowIsTranslucent is set (to either true or false) it will obey that setting. -->
488 <attr name="windowSwipeToDismiss" format="boolean" />
490 <!-- Flag indicating whether this window requests that content changes be performed
491 as scene changes with transitions. Corresponds to
492 {@link android.view.Window#FEATURE_CONTENT_TRANSITIONS}. -->
493 <attr name="windowContentTransitions" format="boolean" />
495 <!-- Reference to a TransitionManager XML resource defining the desired
496 transitions between different window content. -->
497 <attr name="windowContentTransitionManager" format="reference" />
499 <!-- Flag indicating whether this window allows Activity Transitions.
500 Corresponds to {@link android.view.Window#FEATURE_ACTIVITY_TRANSITIONS}. -->
501 <attr name="windowActivityTransitions" format="boolean" />
503 <!-- Reference to a Transition XML resource defining the desired Transition
504 used to move Views into the initial Window's content Scene. Corresponds to
505 {@link android.view.Window#setEnterTransition(android.transition.Transition)}. -->
506 <attr name="windowEnterTransition" format="reference"/>
508 <!-- Reference to a Transition XML resource defining the desired Transition
509 used to move Views out of the scene when the Window is
510 preparing to close. Corresponds to
511 {@link android.view.Window#setReturnTransition(android.transition.Transition)}. -->
512 <attr name="windowReturnTransition" format="reference"/>
514 <!-- Reference to a Transition XML resource defining the desired Transition
515 used to move Views out of the Window's content Scene when launching a new Activity.
517 {@link android.view.Window#setExitTransition(android.transition.Transition)}. -->
518 <attr name="windowExitTransition" format="reference"/>
520 <!-- Reference to a Transition XML resource defining the desired Transition
521 used to move Views in to the scene when returning from a previously-started Activity.
523 {@link android.view.Window#setReenterTransition(android.transition.Transition)}. -->
524 <attr name="windowReenterTransition" format="reference"/>
526 <!-- Reference to a Transition XML resource defining the desired Transition
527 used to move shared elements transferred into the Window's initial content Scene.
528 Corresponds to {@link android.view.Window#setSharedElementEnterTransition(
529 android.transition.Transition)}. -->
530 <attr name="windowSharedElementEnterTransition" format="reference"/>
532 <!-- Reference to a Transition XML resource defining the desired Transition
533 used to move shared elements transferred back to a calling Activity.
534 Corresponds to {@link android.view.Window#setSharedElementReturnTransition(
535 android.transition.Transition)}. -->
536 <attr name="windowSharedElementReturnTransition" format="reference"/>
538 <!-- Reference to a Transition XML resource defining the desired Transition
539 used when starting a new Activity to move shared elements prior to transferring
540 to the called Activity.
541 Corresponds to {@link android.view.Window#setSharedElementExitTransition(
542 android.transition.Transition)}. -->
543 <attr name="windowSharedElementExitTransition" format="reference"/>
545 <!-- Reference to a Transition XML resource defining the desired Transition
546 used for shared elements transferred back to a calling Activity.
547 Corresponds to {@link android.view.Window#setSharedElementReenterTransition(
548 android.transition.Transition)}. -->
549 <attr name="windowSharedElementReenterTransition" format="reference"/>
551 <!-- Flag indicating whether this Window's transition should overlap with
552 the exiting transition of the calling Activity. Corresponds to
553 {@link android.view.Window#setAllowEnterTransitionOverlap(boolean)}.
554 The default value is true. -->
555 <attr name="windowAllowEnterTransitionOverlap" format="boolean"/>
557 <!-- Flag indicating whether this Window's transition should overlap with
558 the exiting transition of the called Activity when the called Activity
559 finishes. Corresponds to
560 {@link android.view.Window#setAllowReturnTransitionOverlap(boolean)}.
561 The default value is true. -->
562 <attr name="windowAllowReturnTransitionOverlap" format="boolean"/>
564 <!-- Indicates whether or not shared elements should use an overlay
565 during transitions. The default value is true. -->
566 <attr name="windowSharedElementsUseOverlay" format="boolean"/>
568 <!-- Internal layout used internally for window decor -->
569 <attr name="windowActionBarFullscreenDecorLayout" format="reference" />
571 <!-- The duration, in milliseconds, of the window background fade duration
572 when transitioning into or away from an Activity when called with an
573 Activity Transition. Corresponds to
574 {@link android.view.Window#setTransitionBackgroundFadeDuration(long)}. -->
575 <attr name="windowTransitionBackgroundFadeDuration" format="integer"/>
577 <!-- ============ -->
578 <!-- Floating toolbar styles -->
579 <!-- ============ -->
581 <attr name="floatingToolbarCloseDrawable" format="reference" />
582 <attr name="floatingToolbarForegroundColor" format="reference|color" />
583 <attr name="floatingToolbarItemBackgroundBorderlessDrawable" format="reference" />
584 <attr name="floatingToolbarItemBackgroundDrawable" format="reference" />
585 <attr name="floatingToolbarOpenDrawable" format="reference" />
586 <attr name="floatingToolbarPopupBackgroundDrawable" format="reference" />
587 <attr name="floatingToolbarDividerColor" format="reference" />
589 <!-- ============ -->
590 <!-- Alert Dialog styles -->
591 <!-- ============ -->
593 <attr name="alertDialogStyle" format="reference" />
594 <attr name="alertDialogButtonGroupStyle" format="reference" />
595 <attr name="alertDialogCenterButtons" format="boolean" />
597 <!-- ============== -->
598 <!-- Image elements -->
599 <!-- ============== -->
602 <!-- Background that can be used behind parts of a UI that provide
603 details on data the user is selecting. For example, this is
604 the background element of PreferenceActivity's embedded
605 preference fragment. -->
606 <attr name="detailsElementBackground" format="reference" />
608 <!-- Icon that should be used to indicate that an app is waiting for a fingerprint scan.
609 This should be used whenever an app is requesting the user to place a finger on the
610 fingerprint sensor. It can be combined with other drawables such as colored circles, so
611 the appearance matches the branding of the app requesting the fingerprint scan.-->
612 <attr name="fingerprintAuthDrawable" format="reference" />
614 <!-- ============ -->
615 <!-- Panel styles -->
616 <!-- ============ -->
619 <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
620 <attr name="panelBackground" format="reference|color" />
621 <!-- The background of a panel when it extends to the left and right edges of the screen. -->
622 <attr name="panelFullBackground" format="reference|color" />
623 <!-- Default color of foreground panel imagery. -->
624 <attr name="panelColorForeground" format="reference|color" />
625 <!-- Color that matches (as closely as possible) the panel background. -->
626 <attr name="panelColorBackground" format="reference|color" />
627 <!-- Default appearance of panel text. -->
628 <attr name="panelTextAppearance" format="reference" />
630 <attr name="panelMenuIsCompact" format="boolean" />
631 <attr name="panelMenuListWidth" format="dimension" />
632 <attr name="panelMenuListTheme" format="reference" />
634 <!-- =================== -->
635 <!-- Other widget styles -->
636 <!-- =================== -->
639 <!-- Default AbsListView style. -->
640 <attr name="absListViewStyle" format="reference" />
641 <!-- Default AutoCompleteTextView style. -->
642 <attr name="autoCompleteTextViewStyle" format="reference" />
643 <!-- Default Checkbox style. -->
644 <attr name="checkboxStyle" format="reference" />
645 <!-- Default CheckedTextView style. -->
646 <attr name="checkedTextViewStyle" format="reference" />
647 <!-- Default ListView style for drop downs. -->
648 <attr name="dropDownListViewStyle" format="reference" />
649 <!-- Default EditText style. -->
650 <attr name="editTextStyle" format="reference" />
651 <!-- Default ExpandableListView style. -->
652 <attr name="expandableListViewStyle" format="reference" />
653 <!-- ExpandableListView with white background. -->
654 <attr name="expandableListViewWhiteStyle" format="reference" />
655 <!-- Default Gallery style. -->
656 <attr name="galleryStyle" format="reference" />
657 <!-- Default GestureOverlayView style. -->
658 <attr name="gestureOverlayViewStyle" format="reference" />
659 <!-- Default GridView style. -->
660 <attr name="gridViewStyle" format="reference" />
661 <!-- The style resource to use for an ImageButton. -->
662 <attr name="imageButtonStyle" format="reference" />
663 <!-- The style resource to use for an ImageButton that is an image well. -->
664 <attr name="imageWellStyle" format="reference" />
665 <!-- Default menu-style ListView style. -->
666 <attr name="listMenuViewStyle" format="reference" />
667 <!-- Default ListView style. -->
668 <attr name="listViewStyle" format="reference" />
669 <!-- ListView with white background. -->
670 <attr name="listViewWhiteStyle" format="reference" />
671 <!-- Default PopupWindow style. -->
672 <attr name="popupWindowStyle" format="reference" />
673 <!-- Default ProgressBar style. This is a medium circular progress bar. -->
674 <attr name="progressBarStyle" format="reference" />
675 <!-- Horizontal ProgressBar style. This is a horizontal progress bar. -->
676 <attr name="progressBarStyleHorizontal" format="reference" />
677 <!-- Small ProgressBar style. This is a small circular progress bar. -->
678 <attr name="progressBarStyleSmall" format="reference" />
679 <!-- Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars. -->
680 <attr name="progressBarStyleSmallTitle" format="reference" />
681 <!-- Large ProgressBar style. This is a large circular progress bar. -->
682 <attr name="progressBarStyleLarge" format="reference" />
683 <!-- Inverse ProgressBar style. This is a medium circular progress bar. -->
684 <attr name="progressBarStyleInverse" format="reference" />
685 <!-- Small inverse ProgressBar style. This is a small circular progress bar. -->
686 <attr name="progressBarStyleSmallInverse" format="reference" />
687 <!-- Large inverse ProgressBar style. This is a large circular progress bar. -->
688 <attr name="progressBarStyleLargeInverse" format="reference" />
689 <!-- Default SeekBar style. -->
690 <attr name="seekBarStyle" format="reference" />
691 <!-- Default RatingBar style. -->
692 <attr name="ratingBarStyle" format="reference" />
693 <!-- Indicator RatingBar style. -->
694 <attr name="ratingBarStyleIndicator" format="reference" />
695 <!-- Small indicator RatingBar style. -->
696 <attr name="ratingBarStyleSmall" format="reference" />
697 <!-- Default RadioButton style. -->
698 <attr name="radioButtonStyle" format="reference" />
699 <!-- Default ScrollView style. -->
700 <attr name="scrollViewStyle" format="reference" />
701 <!-- Default HorizontalScrollView style. -->
702 <attr name="horizontalScrollViewStyle" format="reference" />
703 <!-- Default Spinner style. -->
704 <attr name="spinnerStyle" format="reference" />
705 <!-- Default dropdown Spinner style. -->
706 <attr name="dropDownSpinnerStyle" format="reference" />
707 <!-- Default ActionBar dropdown style. -->
708 <attr name="actionDropDownStyle" format="reference" />
709 <!-- Default action button style. -->
710 <attr name="actionButtonStyle" format="reference" />
711 <!-- Default Star style. -->
712 <attr name="starStyle" format="reference" />
713 <!-- Default TabWidget style. -->
714 <attr name="tabWidgetStyle" format="reference" />
715 <!-- Default TextView style. -->
716 <attr name="textViewStyle" format="reference" />
717 <!-- Default WebTextView style. -->
718 <attr name="webTextViewStyle" format="reference" />
719 <!-- Default WebView style. -->
720 <attr name="webViewStyle" format="reference" />
721 <!-- Default style for drop down items. -->
722 <attr name="dropDownItemStyle" format="reference" />
723 <!-- Default style for spinner drop down items. -->
724 <attr name="spinnerDropDownItemStyle" format="reference" />
725 <!-- Default style for drop down hints. -->
726 <attr name="dropDownHintAppearance" format="reference" />
727 <!-- Default spinner item style. -->
728 <attr name="spinnerItemStyle" format="reference" />
729 <!-- Default MapView style. -->
730 <attr name="mapViewStyle" format="reference" />
731 <!-- Drawable used as an overlay on top of quickcontact photos. -->
732 <attr name="quickContactBadgeOverlay" format="reference" />
733 <!-- Default quickcontact badge style with small quickcontact window. -->
734 <attr name="quickContactBadgeStyleWindowSmall" format="reference" />
735 <!-- Default quickcontact badge style with medium quickcontact window. -->
736 <attr name="quickContactBadgeStyleWindowMedium" format="reference" />
737 <!-- Default quickcontact badge style with large quickcontact window. -->
738 <attr name="quickContactBadgeStyleWindowLarge" format="reference" />
739 <!-- Default quickcontact badge style with small quickcontact window. -->
740 <attr name="quickContactBadgeStyleSmallWindowSmall" format="reference" />
741 <!-- Default quickcontact badge style with medium quickcontact window. -->
742 <attr name="quickContactBadgeStyleSmallWindowMedium" format="reference" />
743 <!-- Default quickcontact badge style with large quickcontact window. -->
744 <attr name="quickContactBadgeStyleSmallWindowLarge" format="reference" />
745 <!-- Reference to a style that will be used for the window containing a text
746 selection anchor. -->
747 <attr name="textSelectHandleWindowStyle" format="reference" />
748 <!-- Reference to a style that will be used for the window containing a list of possible
749 text suggestions in an EditText. -->
750 <attr name="textSuggestionsWindowStyle" format="reference" />
751 <!-- Default ListPopupWindow style. -->
752 <attr name="listPopupWindowStyle" format="reference" />
753 <!-- Default PopupMenu style. -->
754 <attr name="popupMenuStyle" format="reference" />
755 <!-- Default context menu PopupMenu style. -->
756 <attr name="contextPopupMenuStyle" format="reference" />
757 <!-- Default StackView style. -->
758 <attr name="stackViewStyle" format="reference" />
760 <!-- Default style for the FragmentBreadCrumbs widget. This widget is deprecated
761 starting in API level 21 ({@link android.os.Build.VERSION_CODES#.L}). -->
762 <attr name="fragmentBreadCrumbsStyle" format="reference" />
764 <!-- NumberPicker style. -->
765 <attr name="numberPickerStyle" format="reference" />
767 <!-- The CalendarView style. -->
768 <attr name="calendarViewStyle" format="reference" />
770 <!-- The TimePicker style. -->
771 <attr name="timePickerStyle" format="reference" />
773 <!-- The TimePicker dialog theme. -->
774 <attr name="timePickerDialogTheme" format="reference" />
776 <!-- The DatePicker style. -->
777 <attr name="datePickerStyle" format="reference" />
779 <!-- The DatePicker dialog theme. -->
780 <attr name="datePickerDialogTheme" format="reference" />
782 <!-- Default ActivityChooserView style. -->
783 <attr name="activityChooserViewStyle" format="reference" />
785 <!-- Default Toolbar style. -->
786 <attr name="toolbarStyle" format="reference" />
788 <!-- Fast scroller styles -->
791 <!-- Drawable to use as the fast scroll thumb. -->
792 <attr name="fastScrollThumbDrawable" format="reference" />
793 <!-- Drawable to use as the fast scroll index preview window background
794 when shown on the right. -->
795 <attr name="fastScrollPreviewBackgroundRight" format="reference" />
796 <!-- Drawable to use as the fast scroll index preview window background
797 when shown on the left. -->
798 <attr name="fastScrollPreviewBackgroundLeft" format="reference" />
799 <!-- Drawable to use as the track for the fast scroll thumb.
800 This may be null. -->
801 <attr name="fastScrollTrackDrawable" format="reference" />
802 <!-- Position of the fast scroll index overlay window. -->
803 <attr name="fastScrollOverlayPosition">
804 <enum name="floating" value="0" />
805 <enum name="atThumb" value="1" />
806 <enum name="aboveThumb" value="2" />
808 <!-- Text color for the fast scroll index overlay. Make sure it
809 plays nicely with fastScrollPreviewBackground[Left|Right]. -->
810 <attr name="fastScrollTextColor" format="color" />
812 <!-- =================== -->
813 <!-- Action bar styles -->
814 <!-- =================== -->
816 <!-- Default style for tabs within an action bar. -->
817 <attr name="actionBarTabStyle" format="reference" />
818 <!-- Reference to a style for the Action Bar Tab Bar. -->
819 <attr name="actionBarTabBarStyle" format="reference" />
820 <!-- Reference to a style for the Action Bar Tab text. -->
821 <attr name="actionBarTabTextStyle" format="reference" />
822 <!-- Reference to a style for Action Bar overflow buttons. -->
823 <attr name="actionOverflowButtonStyle" format="reference" />
824 <!-- Reference to a style for the Action Bar menu. -->
825 <attr name="actionOverflowMenuStyle" format="reference" />
826 <!-- Reference to a theme that should be used to inflate popups
827 shown by widgets in the action bar. -->
828 <attr name="actionBarPopupTheme" format="reference" />
829 <!-- Reference to a style for the Action Bar. -->
830 <attr name="actionBarStyle" format="reference" />
831 <!-- Reference to a style for the split Action Bar. This style
832 controls the split component that holds the menu/action
833 buttons. actionBarStyle is still used for the primary
835 <attr name="actionBarSplitStyle" format="reference" />
836 <!-- Reference to a theme that should be used to inflate the
837 action bar. This will be inherited by any widget inflated
838 into the action bar. -->
839 <attr name="actionBarTheme" format="reference" />
840 <!-- Reference to a theme that should be used to inflate widgets
841 and layouts destined for the action bar. Most of the time
842 this will be a reference to the current theme, but when
843 the action bar has a significantly different contrast
844 profile than the rest of the activity the difference
845 can become important. If this is set to @null the current
846 theme will be used.-->
847 <attr name="actionBarWidgetTheme" format="reference" />
848 <!-- Size of the Action Bar, including the contextual
849 bar used to present Action Modes. -->
850 <attr name="actionBarSize" format="dimension" >
851 <enum name="wrap_content" value="0" />
853 <!-- Custom divider drawable to use for elements in the action bar. -->
854 <attr name="actionBarDivider" format="reference" />
855 <!-- Custom item state list drawable background for action bar items. -->
856 <attr name="actionBarItemBackground" format="reference" />
857 <!-- TextAppearance style that will be applied to text that
858 appears within action menu items. -->
859 <attr name="actionMenuTextAppearance" format="reference" />
860 <!-- Color for text that appears within action menu items. -->
861 <attr name="actionMenuTextColor" format="color|reference" />
863 <!-- =================== -->
864 <!-- Action mode styles -->
865 <!-- =================== -->
867 <!-- Reference to a style for the Action Mode. -->
868 <attr name="actionModeStyle" format="reference" />
869 <!-- Reference to a style for the Action Mode close button. -->
870 <attr name="actionModeCloseButtonStyle" format="reference" />
871 <!-- Background drawable to use for action mode UI. -->
872 <attr name="actionModeBackground" format="reference" />
873 <!-- Background drawable to use for action mode UI in the lower split bar. -->
874 <attr name="actionModeSplitBackground" format="reference" />
875 <!-- Drawable to use for the close action mode button. -->
876 <attr name="actionModeCloseDrawable" format="reference" />
878 <!-- Drawable to use for the Cut action button in Contextual Action Bar. -->
879 <attr name="actionModeCutDrawable" format="reference" />
880 <!-- Drawable to use for the Copy action button in Contextual Action Bar. -->
881 <attr name="actionModeCopyDrawable" format="reference" />
882 <!-- Drawable to use for the Paste action button in Contextual Action Bar. -->
883 <attr name="actionModePasteDrawable" format="reference" />
884 <!-- Drawable to use for the Select all action button in Contextual Action Bar. -->
885 <attr name="actionModeSelectAllDrawable" format="reference" />
886 <!-- Drawable to use for the Share action button in WebView selection action modes. -->
887 <attr name="actionModeShareDrawable" format="reference" />
888 <!-- Drawable to use for the Find action button in WebView selection action modes. -->
889 <attr name="actionModeFindDrawable" format="reference" />
890 <!-- Drawable to use for the Web Search action button in WebView selection action modes. -->
891 <attr name="actionModeWebSearchDrawable" format="reference" />
893 <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
894 <attr name="actionModePopupWindowStyle" format="reference" />
896 <!-- =================== -->
897 <!-- Preference styles -->
898 <!-- =================== -->
901 <!-- Default style for PreferenceScreen. -->
902 <attr name="preferenceScreenStyle" format="reference" />
903 <!-- Default style for the PreferenceActivity. -->
904 <attr name="preferenceActivityStyle" format="reference" />
905 <!-- Default style for Headers pane in PreferenceActivity. -->
906 <attr name="preferenceFragmentStyle" format="reference" />
907 <!-- Default style for PreferenceCategory. -->
908 <attr name="preferenceCategoryStyle" format="reference" />
909 <!-- Default style for Preference. -->
910 <attr name="preferenceStyle" format="reference" />
911 <!-- Default style for informational Preference. -->
912 <attr name="preferenceInformationStyle" format="reference" />
913 <!-- Default style for CheckBoxPreference. -->
914 <attr name="checkBoxPreferenceStyle" format="reference" />
915 <!-- Default style for YesNoPreference. -->
916 <attr name="yesNoPreferenceStyle" format="reference" />
917 <!-- Default style for DialogPreference. -->
918 <attr name="dialogPreferenceStyle" format="reference" />
919 <!-- Default style for EditTextPreference. -->
920 <attr name="editTextPreferenceStyle" format="reference" />
921 <!-- @hide Default style for SeekBarDialogPreference. -->
922 <attr name="seekBarDialogPreferenceStyle" format="reference" />
923 <!-- Default style for RingtonePreference. -->
924 <attr name="ringtonePreferenceStyle" format="reference" />
925 <!-- The preference layout that has the child/tabbed effect. -->
926 <attr name="preferenceLayoutChild" format="reference" />
927 <!-- Preference panel style -->
928 <attr name="preferencePanelStyle" format="reference" />
929 <!-- Preference headers panel style -->
930 <attr name="preferenceHeaderPanelStyle" format="reference" />
931 <!-- Preference list style -->
932 <attr name="preferenceListStyle" format="reference" />
933 <!-- Preference fragment list style -->
934 <attr name="preferenceFragmentListStyle" format="reference" />
935 <!-- Preference fragment padding side -->
936 <attr name="preferenceFragmentPaddingSide" format="dimension" />
937 <!-- Default style for switch preferences. -->
938 <attr name="switchPreferenceStyle" format="reference" />
939 <!-- Default style for seekbar preferences. -->
940 <attr name="seekBarPreferenceStyle" format="reference" />
942 <!-- ============================ -->
943 <!-- Text selection handle styles -->
944 <!-- ============================ -->
947 <!-- Reference to a drawable that will be used to display a text selection
948 anchor on the left side of a selection region. -->
949 <attr name="textSelectHandleLeft" format="reference" />
950 <!-- Reference to a drawable that will be used to display a text selection
951 anchor on the right side of a selection region. -->
952 <attr name="textSelectHandleRight" format="reference" />
953 <!-- Reference to a drawable that will be used to display a text selection
954 anchor for positioning the cursor within text. -->
955 <attr name="textSelectHandle" format="reference" />
956 <!-- The layout of the view that is displayed on top of the cursor to paste inside a
958 <attr name="textEditPasteWindowLayout" format="reference" />
959 <!-- Variation of textEditPasteWindowLayout displayed when the clipboard is empty. -->
960 <attr name="textEditNoPasteWindowLayout" format="reference" />
961 <!-- Used instead of textEditPasteWindowLayout when the window is moved on the side of the
962 insertion cursor because it would be clipped if it were positioned on top. -->
963 <attr name="textEditSidePasteWindowLayout" format="reference" />
964 <!-- Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. -->
965 <attr name="textEditSideNoPasteWindowLayout" format="reference" />
967 <!-- Layout of the TextView item that will populate the suggestion popup window. -->
968 <attr name="textEditSuggestionItemLayout" format="reference" />
969 <!-- Layout of the container of the suggestion popup window. -->
970 <attr name="textEditSuggestionContainerLayout" format="reference" />
971 <!-- Text appearance of the focused words to be replaced by suggested word. -->
972 <attr name="textEditSuggestionHighlightStyle" format="reference" />
974 <!-- Theme to use for dialogs spawned from this theme. -->
975 <attr name="dialogTheme" format="reference" />
976 <!-- Window decor layout to use in dialog mode with icons. -->
977 <attr name="dialogTitleIconsDecorLayout" format="reference" />
978 <!-- Window decor layout to use in dialog mode with custom titles. -->
979 <attr name="dialogCustomTitleDecorLayout" format="reference" />
980 <!-- Window decor layout to use in dialog mode with title only. -->
981 <attr name="dialogTitleDecorLayout" format="reference" />
982 <!-- Preferred padding for dialog content. -->
983 <attr name="dialogPreferredPadding" format="dimension" />
985 <!-- Theme to use for alert dialogs spawned from this theme. -->
986 <attr name="alertDialogTheme" format="reference" />
987 <!-- Icon drawable to use for alerts. -->
988 <attr name="alertDialogIcon" format="reference" />
990 <!-- Theme to use for presentations spawned from this theme. -->
991 <attr name="presentationTheme" format="reference" />
993 <!-- Drawable to use for generic vertical dividers. -->
994 <attr name="dividerVertical" format="reference" />
996 <!-- Drawable to use for generic horizontal dividers. -->
997 <attr name="dividerHorizontal" format="reference" />
999 <!-- Style for button bars. -->
1000 <attr name="buttonBarStyle" format="reference" />
1002 <!-- Style for buttons within button bars. -->
1003 <attr name="buttonBarButtonStyle" format="reference" />
1005 <!-- Style for the "positive" buttons within button bars. -->
1006 <attr name="buttonBarPositiveButtonStyle" format="reference" />
1008 <!-- Style for the "negative" buttons within button bars. -->
1009 <attr name="buttonBarNegativeButtonStyle" format="reference" />
1011 <!-- Style for the "neutral" buttons within button bars. -->
1012 <attr name="buttonBarNeutralButtonStyle" format="reference" />
1014 <!-- Style for the search query widget. -->
1015 <attr name="searchViewStyle" format="reference" />
1017 <!-- Style for segmented buttons - a container that houses several buttons
1018 with the appearance of a singel button broken into segments. -->
1019 <attr name="segmentedButtonStyle" format="reference" />
1021 <!-- Background drawable for bordered standalone items that need focus/pressed states. -->
1022 <attr name="selectableItemBackground" format="reference" />
1024 <!-- Background drawable for borderless standalone items that need focus/pressed states. -->
1025 <attr name="selectableItemBackgroundBorderless" format="reference" />
1027 <!-- Style for buttons without an explicit border, often used in groups. -->
1028 <attr name="borderlessButtonStyle" format="reference" />
1030 <!-- Background to use for toasts. -->
1031 <attr name="toastFrameBackground" format="reference" />
1033 <!-- Background to use for tooltip popups. -->
1034 <attr name="tooltipFrameBackground" format="reference" />
1036 <!-- Foreground color to use for tooltip popups. -->
1037 <attr name="tooltipForegroundColor" format="reference|color" />
1039 <!-- Background color to use for tooltip popups. -->
1040 <attr name="tooltipBackgroundColor" format="reference|color" />
1042 <!-- Theme to use for Search Dialogs. -->
1043 <attr name="searchDialogTheme" format="reference" />
1045 <!-- Specifies a drawable to use for the 'home as up' indicator. -->
1046 <attr name="homeAsUpIndicator" format="reference" />
1048 <!-- Preference frame layout styles. -->
1049 <attr name="preferenceFrameLayoutStyle" format="reference" />
1051 <!-- Default style for the Switch widget. -->
1052 <attr name="switchStyle" format="reference" />
1054 <!-- Default style for the MediaRouteButton widget. -->
1055 <attr name="mediaRouteButtonStyle" format="reference" />
1057 <!-- ============== -->
1058 <!-- Pointer styles -->
1059 <!-- ============== -->
1062 <!-- The drawable for accessibility focused views. -->
1063 <attr name="accessibilityFocusedDrawable" format="reference" />
1065 <!-- Drawable for WebView find-on-page dialogue's "next" button. @hide -->
1066 <attr name="findOnPageNextDrawable" format="reference" />
1068 <!-- Drawable for WebView find-on-page dialogue's "previous" button. @hide -->
1069 <attr name="findOnPagePreviousDrawable" format="reference" />
1071 <!-- ============= -->
1072 <!-- Color palette -->
1073 <!-- ============= -->
1076 <!-- The primary branding color for the app. By default, this is the color applied to the
1077 action bar background. -->
1078 <attr name="colorPrimary" format="color" />
1080 <!-- Dark variant of the primary branding color. By default, this is the color applied to
1081 the status bar (via statusBarColor) and navigation bar (via navigationBarColor). -->
1082 <attr name="colorPrimaryDark" format="color" />
1084 <!-- The secondary branding color for the app. -->
1085 <attr name="colorSecondary" format="color" />
1087 <!-- Bright complement to the primary branding color. By default, this is the color applied
1088 to framework controls (via colorControlActivated). -->
1089 <attr name="colorAccent" format="color" />
1091 <!-- The color applied to framework controls in their normal state. -->
1092 <attr name="colorControlNormal" format="color" />
1094 <!-- The color applied to framework controls in their activated (ex. checked) state. -->
1095 <attr name="colorControlActivated" format="color" />
1097 <!-- The color applied to framework control highlights (ex. ripples, list selectors). -->
1098 <attr name="colorControlHighlight" format="color" />
1100 <!-- The color applied to framework buttons in their normal state. -->
1101 <attr name="colorButtonNormal" format="color" />
1103 <!-- The color applied to framework switch thumbs in their normal state. -->
1104 <attr name="colorSwitchThumbNormal" format="color" />
1106 <!-- The color applied to the edge effect on scrolling containers. -->
1107 <attr name="colorEdgeEffect" format="color" />
1109 <!-- =================== -->
1110 <!-- Lighting properties -->
1111 <!-- =================== -->
1114 <!-- @hide The default Y position of the light used to project view shadows. -->
1115 <attr name="lightY" format="dimension" />
1117 <!-- @hide The default Z position of the light used to project view shadows. -->
1118 <attr name="lightZ" format="dimension" />
1120 <!-- @hide The default radius of the light used to project view shadows. -->
1121 <attr name="lightRadius" format="dimension" />
1123 <!-- Alpha value of the ambient shadow projected by elevated views, between 0 and 1. -->
1124 <attr name="ambientShadowAlpha" format="float" />
1126 <!-- Alpha value of the spot shadow projected by elevated views, between 0 and 1. -->
1127 <attr name="spotShadowAlpha" format="float" />
1128 </declare-styleable>
1130 <!-- **************************************************************** -->
1131 <!-- Other non-theme attributes. -->
1132 <!-- **************************************************************** -->
1135 <!-- Size of text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
1136 Supported values include the following:<p/>
1138 <li><b>px</b> Pixels</li>
1139 <li><b>sp</b> Scaled pixels (scaled to relative pixel size on screen). See {@link android.util.DisplayMetrics} for more information.</li>
1140 <li><b>pt</b> Points</li>
1141 <li><b>dip</b> Device independent pixels. See {@link android.util.DisplayMetrics} for more information.</li>
1144 <attr name="textSize" format="dimension" />
1146 <!-- Default font family. -->
1147 <attr name="fontFamily" format="string" />
1149 <!-- Default text typeface. -->
1150 <attr name="typeface">
1151 <enum name="normal" value="0" />
1152 <enum name="sans" value="1" />
1153 <enum name="serif" value="2" />
1154 <enum name="monospace" value="3" />
1157 <!-- Default text typeface style. -->
1158 <attr name="textStyle">
1159 <flag name="normal" value="0" />
1160 <flag name="bold" value="1" />
1161 <flag name="italic" value="2" />
1164 <!-- Color of text (usually same as colorForeground). -->
1165 <attr name="textColor" format="reference|color" />
1167 <!-- Color of highlighted text. -->
1168 <attr name="textColorHighlight" format="reference|color" />
1170 <!-- Color of hint text (displayed when the field is empty). -->
1171 <attr name="textColorHint" format="reference|color" />
1173 <!-- Color of link text (URLs). -->
1174 <attr name="textColorLink" format="reference|color" />
1176 <!-- Reference to a drawable that will be drawn under the insertion cursor. -->
1177 <attr name="textCursorDrawable" format="reference" />
1179 <!-- Indicates that the content of a non-editable TextView can be selected.
1180 Default value is false. EditText content is always selectable. -->
1181 <attr name="textIsSelectable" format="boolean" />
1183 <!-- Where to ellipsize text. -->
1184 <attr name="ellipsize">
1185 <enum name="none" value="0" />
1186 <enum name="start" value="1" />
1187 <enum name="middle" value="2" />
1188 <enum name="end" value="3" />
1189 <enum name="marquee" value="4" />
1192 <!-- The type of data being placed in a text field, used to help an
1193 input method decide how to let the user enter text. The constants
1194 here correspond to those defined by
1195 {@link android.text.InputType}. Generally you can select
1196 a single value, though some can be combined together as
1197 indicated. Setting this attribute to anything besides
1198 <var>none</var> also implies that the text is editable. -->
1199 <attr name="inputType">
1200 <!-- There is no content type. The text is not editable. -->
1201 <flag name="none" value="0x00000000" />
1202 <!-- Just plain old text. Corresponds to
1203 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1204 {@link android.text.InputType#TYPE_TEXT_VARIATION_NORMAL}. -->
1205 <flag name="text" value="0x00000001" />
1206 <!-- Can be combined with <var>text</var> and its variations to
1207 request capitalization of all characters. Corresponds to
1208 {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_CHARACTERS}. -->
1209 <flag name="textCapCharacters" value="0x00001001" />
1210 <!-- Can be combined with <var>text</var> and its variations to
1211 request capitalization of the first character of every word. Corresponds to
1212 {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_WORDS}. -->
1213 <flag name="textCapWords" value="0x00002001" />
1214 <!-- Can be combined with <var>text</var> and its variations to
1215 request capitalization of the first character of every sentence. Corresponds to
1216 {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_SENTENCES}. -->
1217 <flag name="textCapSentences" value="0x00004001" />
1218 <!-- Can be combined with <var>text</var> and its variations to
1219 request auto-correction of text being input. Corresponds to
1220 {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_CORRECT}. -->
1221 <flag name="textAutoCorrect" value="0x00008001" />
1222 <!-- Can be combined with <var>text</var> and its variations to
1223 specify that this field will be doing its own auto-completion and
1224 talking with the input method appropriately. Corresponds to
1225 {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_COMPLETE}. -->
1226 <flag name="textAutoComplete" value="0x00010001" />
1227 <!-- Can be combined with <var>text</var> and its variations to
1228 allow multiple lines of text in the field. If this flag is not set,
1229 the text field will be constrained to a single line. Corresponds to
1230 {@link android.text.InputType#TYPE_TEXT_FLAG_MULTI_LINE}. -->
1231 <flag name="textMultiLine" value="0x00020001" />
1232 <!-- Can be combined with <var>text</var> and its variations to
1233 indicate that though the regular text view should not be multiple
1234 lines, the IME should provide multiple lines if it can. Corresponds to
1235 {@link android.text.InputType#TYPE_TEXT_FLAG_IME_MULTI_LINE}. -->
1236 <flag name="textImeMultiLine" value="0x00040001" />
1237 <!-- Can be combined with <var>text</var> and its variations to
1238 indicate that the IME should not show any
1239 dictionary-based word suggestions. Corresponds to
1240 {@link android.text.InputType#TYPE_TEXT_FLAG_NO_SUGGESTIONS}. -->
1241 <flag name="textNoSuggestions" value="0x00080001" />
1242 <!-- Text that will be used as a URI. Corresponds to
1243 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1244 {@link android.text.InputType#TYPE_TEXT_VARIATION_URI}. -->
1245 <flag name="textUri" value="0x00000011" />
1246 <!-- Text that will be used as an e-mail address. Corresponds to
1247 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1248 {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_ADDRESS}. -->
1249 <flag name="textEmailAddress" value="0x00000021" />
1250 <!-- Text that is being supplied as the subject of an e-mail. Corresponds to
1251 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1252 {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_SUBJECT}. -->
1253 <flag name="textEmailSubject" value="0x00000031" />
1254 <!-- Text that is the content of a short message. Corresponds to
1255 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1256 {@link android.text.InputType#TYPE_TEXT_VARIATION_SHORT_MESSAGE}. -->
1257 <flag name="textShortMessage" value="0x00000041" />
1258 <!-- Text that is the content of a long message. Corresponds to
1259 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1260 {@link android.text.InputType#TYPE_TEXT_VARIATION_LONG_MESSAGE}. -->
1261 <flag name="textLongMessage" value="0x00000051" />
1262 <!-- Text that is the name of a person. Corresponds to
1263 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1264 {@link android.text.InputType#TYPE_TEXT_VARIATION_PERSON_NAME}. -->
1265 <flag name="textPersonName" value="0x00000061" />
1266 <!-- Text that is being supplied as a postal mailing address. Corresponds to
1267 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1268 {@link android.text.InputType#TYPE_TEXT_VARIATION_POSTAL_ADDRESS}. -->
1269 <flag name="textPostalAddress" value="0x00000071" />
1270 <!-- Text that is a password. Corresponds to
1271 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1272 {@link android.text.InputType#TYPE_TEXT_VARIATION_PASSWORD}. -->
1273 <flag name="textPassword" value="0x00000081" />
1274 <!-- Text that is a password that should be visible. Corresponds to
1275 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1276 {@link android.text.InputType#TYPE_TEXT_VARIATION_VISIBLE_PASSWORD}. -->
1277 <flag name="textVisiblePassword" value="0x00000091" />
1278 <!-- Text that is being supplied as text in a web form. Corresponds to
1279 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1280 {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EDIT_TEXT}. -->
1281 <flag name="textWebEditText" value="0x000000a1" />
1282 <!-- Text that is filtering some other data. Corresponds to
1283 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1284 {@link android.text.InputType#TYPE_TEXT_VARIATION_FILTER}. -->
1285 <flag name="textFilter" value="0x000000b1" />
1286 <!-- Text that is for phonetic pronunciation, such as a phonetic name
1287 field in a contact entry. Corresponds to
1288 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1289 {@link android.text.InputType#TYPE_TEXT_VARIATION_PHONETIC}. -->
1290 <flag name="textPhonetic" value="0x000000c1" />
1291 <!-- Text that will be used as an e-mail address on a web form. Corresponds to
1292 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1293 {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS}. -->
1294 <flag name="textWebEmailAddress" value="0x000000d1" />
1295 <!-- Text that will be used as a password on a web form. Corresponds to
1296 {@link android.text.InputType#TYPE_CLASS_TEXT} |
1297 {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_PASSWORD}. -->
1298 <flag name="textWebPassword" value="0x000000e1" />
1299 <!-- A numeric only field. Corresponds to
1300 {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1301 {@link android.text.InputType#TYPE_NUMBER_VARIATION_NORMAL}. -->
1302 <flag name="number" value="0x00000002" />
1303 <!-- Can be combined with <var>number</var> and its other options to
1304 allow a signed number. Corresponds to
1305 {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1306 {@link android.text.InputType#TYPE_NUMBER_FLAG_SIGNED}. -->
1307 <flag name="numberSigned" value="0x00001002" />
1308 <!-- Can be combined with <var>number</var> and its other options to
1309 allow a decimal (fractional) number. Corresponds to
1310 {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1311 {@link android.text.InputType#TYPE_NUMBER_FLAG_DECIMAL}. -->
1312 <flag name="numberDecimal" value="0x00002002" />
1313 <!-- A numeric password field. Corresponds to
1314 {@link android.text.InputType#TYPE_CLASS_NUMBER} |
1315 {@link android.text.InputType#TYPE_NUMBER_VARIATION_PASSWORD}. -->
1316 <flag name="numberPassword" value="0x00000012" />
1317 <!-- For entering a phone number. Corresponds to
1318 {@link android.text.InputType#TYPE_CLASS_PHONE}. -->
1319 <flag name="phone" value="0x00000003" />
1320 <!-- For entering a date and time. Corresponds to
1321 {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1322 {@link android.text.InputType#TYPE_DATETIME_VARIATION_NORMAL}. -->
1323 <flag name="datetime" value="0x00000004" />
1324 <!-- For entering a date. Corresponds to
1325 {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1326 {@link android.text.InputType#TYPE_DATETIME_VARIATION_DATE}. -->
1327 <flag name="date" value="0x00000014" />
1328 <!-- For entering a time. Corresponds to
1329 {@link android.text.InputType#TYPE_CLASS_DATETIME} |
1330 {@link android.text.InputType#TYPE_DATETIME_VARIATION_TIME}. -->
1331 <flag name="time" value="0x00000024" />
1334 <!-- Additional features you can enable in an IME associated with an editor
1335 to improve the integration with your application. The constants
1336 here correspond to those defined by
1337 {@link android.view.inputmethod.EditorInfo#imeOptions}. -->
1338 <attr name="imeOptions">
1339 <!-- There are no special semantics associated with this editor. -->
1340 <flag name="normal" value="0x00000000" />
1341 <!-- There is no specific action associated with this editor, let the
1342 editor come up with its own if it can.
1344 {@link android.view.inputmethod.EditorInfo#IME_NULL}. -->
1345 <flag name="actionUnspecified" value="0x00000000" />
1346 <!-- This editor has no action associated with it.
1348 {@link android.view.inputmethod.EditorInfo#IME_ACTION_NONE}. -->
1349 <flag name="actionNone" value="0x00000001" />
1350 <!-- The action key performs a "go"
1351 operation to take the user to the target of the text they typed.
1352 Typically used, for example, when entering a URL.
1354 {@link android.view.inputmethod.EditorInfo#IME_ACTION_GO}. -->
1355 <flag name="actionGo" value="0x00000002" />
1356 <!-- The action key performs a "search"
1357 operation, taking the user to the results of searching for the text
1358 the have typed (in whatever context is appropriate).
1360 {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEARCH}. -->
1361 <flag name="actionSearch" value="0x00000003" />
1362 <!-- The action key performs a "send"
1363 operation, delivering the text to its target. This is typically used
1364 when composing a message.
1366 {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEND}. -->
1367 <flag name="actionSend" value="0x00000004" />
1368 <!-- The action key performs a "next"
1369 operation, taking the user to the next field that will accept text.
1371 {@link android.view.inputmethod.EditorInfo#IME_ACTION_NEXT}. -->
1372 <flag name="actionNext" value="0x00000005" />
1373 <!-- The action key performs a "done"
1374 operation, closing the soft input method.
1376 {@link android.view.inputmethod.EditorInfo#IME_ACTION_DONE}. -->
1377 <flag name="actionDone" value="0x00000006" />
1378 <!-- The action key performs a "previous"
1379 operation, taking the user to the previous field that will accept text.
1381 {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. -->
1382 <flag name="actionPrevious" value="0x00000007" />
1383 <!-- Used to request that the IME should not update any personalized data such as typing
1384 history and personalized language model based on what the user typed on this text
1385 editing object. Typical use cases are:
1387 <li>When the application is in a special mode, where user's activities are expected
1388 to be not recorded in the application's history. Some web browsers and chat
1389 applications may have this kind of modes.</li>
1390 <li>When storing typing history does not make much sense. Specifying this flag in
1391 typing games may help to avoid typing history from being filled up with words that
1392 the user is less likely to type in their daily life. Another example is that when
1393 the application already knows that the expected input is not a valid word (e.g. a
1394 promotion code that is not a valid word in any natural language).</li>
1396 <p>Applications need to be aware that the flag is not a guarantee, and some IMEs may
1397 not respect it.</p> -->
1398 <flag name="flagNoPersonalizedLearning" value="0x1000000" />
1399 <!-- Used to request that the IME never go
1400 into fullscreen mode. Applications need to be aware that the flag is not
1401 a guarantee, and not all IMEs will respect it.
1403 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_FULLSCREEN}. -->
1404 <flag name="flagNoFullscreen" value="0x2000000" />
1405 <!-- Like flagNavigateNext, but
1406 specifies there is something interesting that a backward navigation
1407 can focus on. If the user selects the IME's facility to backward
1408 navigate, this will show up in the application as an actionPrevious
1409 at {@link android.view.inputmethod.InputConnection#performEditorAction(int)
1410 InputConnection.performEditorAction(int)}.
1412 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_FULLSCREEN}. -->
1413 <flag name="flagNavigatePrevious" value="0x4000000" />
1414 <!-- Used to specify that there is something
1415 interesting that a forward navigation can focus on. This is like using
1416 actionNext, except allows the IME to be multiline (with
1417 an enter key) as well as provide forward navigation. Note that some
1418 IMEs may not be able to do this, especially when running on a small
1419 screen where there is little space. In that case it does not need to
1420 present a UI for this option. Like actionNext, if the
1421 user selects the IME's facility to forward navigate, this will show up
1422 in the application at
1423 {@link android.view.inputmethod.InputConnection#performEditorAction(int)
1424 InputConnection.performEditorAction(int)}.
1426 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NAVIGATE_NEXT}. -->
1427 <flag name="flagNavigateNext" value="0x8000000" />
1428 <!-- Used to specify that the IME does not need
1429 to show its extracted text UI. For input methods that may be fullscreen,
1430 often when in landscape mode, this allows them to be smaller and let part
1431 of the application be shown behind. Though there will likely be limited
1432 access to the application available from the user, it can make the
1433 experience of a (mostly) fullscreen IME less jarring. Note that when
1434 this flag is specified the IME may <em>not</em> be set up to be able
1435 to display text, so it should only be used in situations where this is
1438 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_EXTRACT_UI}. -->
1439 <flag name="flagNoExtractUi" value="0x10000000" />
1440 <!-- Used in conjunction with a custom action, this indicates that the
1441 action should not be available as an accessory button when the
1442 input method is full-screen.
1443 Note that by setting this flag, there can be cases where the action
1444 is simply never available to the user. Setting this generally means
1445 that you think showing text being edited is more important than the
1446 action you have supplied.
1448 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ACCESSORY_ACTION}. -->
1449 <flag name="flagNoAccessoryAction" value="0x20000000" />
1450 <!-- Used in conjunction with a custom action,
1451 this indicates that the action should not be available in-line as
1452 a replacement for the "enter" key. Typically this is
1453 because the action has such a significant impact or is not recoverable
1454 enough that accidentally hitting it should be avoided, such as sending
1455 a message. Note that {@link android.widget.TextView} will
1456 automatically set this flag for you on multi-line text views.
1458 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ENTER_ACTION}. -->
1459 <flag name="flagNoEnterAction" value="0x40000000" />
1460 <!-- Used to request that the IME should be capable of inputting ASCII
1461 characters. The intention of this flag is to ensure that the user
1462 can type Roman alphabet characters in a {@link android.widget.TextView}
1463 used for, typically, account ID or password input. It is expected that IMEs
1464 normally are able to input ASCII even without being told so (such IMEs
1465 already respect this flag in a sense), but there could be some cases they
1466 aren't when, for instance, only non-ASCII input languagaes like Arabic,
1467 Greek, Hebrew, Russian are enabled in the IME. Applications need to be
1468 aware that the flag is not a guarantee, and not all IMEs will respect it.
1469 However, it is strongly recommended for IME authors to respect this flag
1470 especially when their IME could end up with a state that has only non-ASCII
1471 input languages enabled.
1473 {@link android.view.inputmethod.EditorInfo#IME_FLAG_FORCE_ASCII}. -->
1474 <flag name="flagForceAscii" value="0x80000000" />
1477 <!-- A coordinate in the X dimension. -->
1478 <attr name="x" format="dimension" />
1479 <!-- A coordinate in the Y dimension. -->
1480 <attr name="y" format="dimension" />
1482 <!-- Specifies how an object should position its content, on both the X and Y axes,
1483 within its own bounds. -->
1484 <attr name="gravity">
1485 <!-- Push object to the top of its container, not changing its size. -->
1486 <flag name="top" value="0x30" />
1487 <!-- Push object to the bottom of its container, not changing its size. -->
1488 <flag name="bottom" value="0x50" />
1489 <!-- Push object to the left of its container, not changing its size. -->
1490 <flag name="left" value="0x03" />
1491 <!-- Push object to the right of its container, not changing its size. -->
1492 <flag name="right" value="0x05" />
1493 <!-- Place object in the vertical center of its container, not changing its size. -->
1494 <flag name="center_vertical" value="0x10" />
1495 <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
1496 <flag name="fill_vertical" value="0x70" />
1497 <!-- Place object in the horizontal center of its container, not changing its size. -->
1498 <flag name="center_horizontal" value="0x01" />
1499 <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
1500 <flag name="fill_horizontal" value="0x07" />
1501 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
1502 <flag name="center" value="0x11" />
1503 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
1504 <flag name="fill" value="0x77" />
1505 <!-- Additional option that can be set to have the top and/or bottom edges of
1506 the child clipped to its container's bounds.
1507 The clip will be based on the vertical gravity: a top gravity will clip the bottom
1508 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
1509 <flag name="clip_vertical" value="0x80" />
1510 <!-- Additional option that can be set to have the left and/or right edges of
1511 the child clipped to its container's bounds.
1512 The clip will be based on the horizontal gravity: a left gravity will clip the right
1513 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
1514 <flag name="clip_horizontal" value="0x08" />
1515 <!-- Push object to the beginning of its container, not changing its size. -->
1516 <flag name="start" value="0x00800003" />
1517 <!-- Push object to the end of its container, not changing its size. -->
1518 <flag name="end" value="0x00800005" />
1521 <!-- Controls whether links such as urls and email addresses are
1522 automatically found and converted to clickable links. The default
1523 value is "none", disabling this feature. -->
1524 <attr name="autoLink">
1525 <!-- Match no patterns (default). -->
1526 <flag name="none" value="0x00" />
1527 <!-- Match Web URLs. -->
1528 <flag name="web" value="0x01" />
1529 <!-- Match email addresses. -->
1530 <flag name="email" value="0x02" />
1531 <!-- Match phone numbers. -->
1532 <flag name="phone" value="0x04" />
1533 <!-- Match map addresses. -->
1534 <flag name="map" value="0x08" />
1535 <!-- Match all patterns (equivalent to web|email|phone|map). -->
1536 <flag name="all" value="0x0f" />
1539 <!-- Reference to an array resource that will populate a list/adapter. -->
1540 <attr name="entries" format="reference" />
1542 <!-- Standard gravity constant that a child supplies to its parent.
1543 Defines how the child view should be positioned, on both the X and Y axes, within its enclosing layout. -->
1544 <attr name="layout_gravity">
1545 <!-- Push object to the top of its container, not changing its size. -->
1546 <flag name="top" value="0x30" />
1547 <!-- Push object to the bottom of its container, not changing its size. -->
1548 <flag name="bottom" value="0x50" />
1549 <!-- Push object to the left of its container, not changing its size. -->
1550 <flag name="left" value="0x03" />
1551 <!-- Push object to the right of its container, not changing its size. -->
1552 <flag name="right" value="0x05" />
1553 <!-- Place object in the vertical center of its container, not changing its size. -->
1554 <flag name="center_vertical" value="0x10" />
1555 <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
1556 <flag name="fill_vertical" value="0x70" />
1557 <!-- Place object in the horizontal center of its container, not changing its size. -->
1558 <flag name="center_horizontal" value="0x01" />
1559 <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
1560 <flag name="fill_horizontal" value="0x07" />
1561 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
1562 <flag name="center" value="0x11" />
1563 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
1564 <flag name="fill" value="0x77" />
1565 <!-- Additional option that can be set to have the top and/or bottom edges of
1566 the child clipped to its container's bounds.
1567 The clip will be based on the vertical gravity: a top gravity will clip the bottom
1568 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
1569 <flag name="clip_vertical" value="0x80" />
1570 <!-- Additional option that can be set to have the left and/or right edges of
1571 the child clipped to its container's bounds.
1572 The clip will be based on the horizontal gravity: a left gravity will clip the right
1573 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
1574 <flag name="clip_horizontal" value="0x08" />
1575 <!-- Push object to the beginning of its container, not changing its size. -->
1576 <flag name="start" value="0x00800003" />
1577 <!-- Push object to the end of its container, not changing its size. -->
1578 <flag name="end" value="0x00800005" />
1581 <!-- Standard orientation constant. -->
1582 <attr name="orientation">
1583 <!-- Defines an horizontal widget. -->
1584 <enum name="horizontal" value="0" />
1585 <!-- Defines a vertical widget. -->
1586 <enum name="vertical" value="1" />
1589 <!-- Alignment constants. -->
1590 <attr name="alignmentMode">
1591 <!-- Align the bounds of the children.
1592 See {@link android.widget.GridLayout#ALIGN_BOUNDS}. -->
1593 <enum name="alignBounds" value="0" />
1594 <!-- Align the margins of the children.
1595 See {@link android.widget.GridLayout#ALIGN_MARGINS}. -->
1596 <enum name="alignMargins" value="1" />
1599 <!-- ========================== -->
1601 <!-- ========================== -->
1604 <!-- This enum provides the same keycode values as can be found in
1605 {@link android.view.KeyEvent}. -->
1606 <attr name="keycode">
1607 <enum name="KEYCODE_UNKNOWN" value="0" />
1608 <enum name="KEYCODE_SOFT_LEFT" value="1" />
1609 <enum name="KEYCODE_SOFT_RIGHT" value="2" />
1610 <enum name="KEYCODE_HOME" value="3" />
1611 <enum name="KEYCODE_BACK" value="4" />
1612 <enum name="KEYCODE_CALL" value="5" />
1613 <enum name="KEYCODE_ENDCALL" value="6" />
1614 <enum name="KEYCODE_0" value="7" />
1615 <enum name="KEYCODE_1" value="8" />
1616 <enum name="KEYCODE_2" value="9" />
1617 <enum name="KEYCODE_3" value="10" />
1618 <enum name="KEYCODE_4" value="11" />
1619 <enum name="KEYCODE_5" value="12" />
1620 <enum name="KEYCODE_6" value="13" />
1621 <enum name="KEYCODE_7" value="14" />
1622 <enum name="KEYCODE_8" value="15" />
1623 <enum name="KEYCODE_9" value="16" />
1624 <enum name="KEYCODE_STAR" value="17" />
1625 <enum name="KEYCODE_POUND" value="18" />
1626 <enum name="KEYCODE_DPAD_UP" value="19" />
1627 <enum name="KEYCODE_DPAD_DOWN" value="20" />
1628 <enum name="KEYCODE_DPAD_LEFT" value="21" />
1629 <enum name="KEYCODE_DPAD_RIGHT" value="22" />
1630 <enum name="KEYCODE_DPAD_CENTER" value="23" />
1631 <enum name="KEYCODE_VOLUME_UP" value="24" />
1632 <enum name="KEYCODE_VOLUME_DOWN" value="25" />
1633 <enum name="KEYCODE_POWER" value="26" />
1634 <enum name="KEYCODE_CAMERA" value="27" />
1635 <enum name="KEYCODE_CLEAR" value="28" />
1636 <enum name="KEYCODE_A" value="29" />
1637 <enum name="KEYCODE_B" value="30" />
1638 <enum name="KEYCODE_C" value="31" />
1639 <enum name="KEYCODE_D" value="32" />
1640 <enum name="KEYCODE_E" value="33" />
1641 <enum name="KEYCODE_F" value="34" />
1642 <enum name="KEYCODE_G" value="35" />
1643 <enum name="KEYCODE_H" value="36" />
1644 <enum name="KEYCODE_I" value="37" />
1645 <enum name="KEYCODE_J" value="38" />
1646 <enum name="KEYCODE_K" value="39" />
1647 <enum name="KEYCODE_L" value="40" />
1648 <enum name="KEYCODE_M" value="41" />
1649 <enum name="KEYCODE_N" value="42" />
1650 <enum name="KEYCODE_O" value="43" />
1651 <enum name="KEYCODE_P" value="44" />
1652 <enum name="KEYCODE_Q" value="45" />
1653 <enum name="KEYCODE_R" value="46" />
1654 <enum name="KEYCODE_S" value="47" />
1655 <enum name="KEYCODE_T" value="48" />
1656 <enum name="KEYCODE_U" value="49" />
1657 <enum name="KEYCODE_V" value="50" />
1658 <enum name="KEYCODE_W" value="51" />
1659 <enum name="KEYCODE_X" value="52" />
1660 <enum name="KEYCODE_Y" value="53" />
1661 <enum name="KEYCODE_Z" value="54" />
1662 <enum name="KEYCODE_COMMA" value="55" />
1663 <enum name="KEYCODE_PERIOD" value="56" />
1664 <enum name="KEYCODE_ALT_LEFT" value="57" />
1665 <enum name="KEYCODE_ALT_RIGHT" value="58" />
1666 <enum name="KEYCODE_SHIFT_LEFT" value="59" />
1667 <enum name="KEYCODE_SHIFT_RIGHT" value="60" />
1668 <enum name="KEYCODE_TAB" value="61" />
1669 <enum name="KEYCODE_SPACE" value="62" />
1670 <enum name="KEYCODE_SYM" value="63" />
1671 <enum name="KEYCODE_EXPLORER" value="64" />
1672 <enum name="KEYCODE_ENVELOPE" value="65" />
1673 <enum name="KEYCODE_ENTER" value="66" />
1674 <enum name="KEYCODE_DEL" value="67" />
1675 <enum name="KEYCODE_GRAVE" value="68" />
1676 <enum name="KEYCODE_MINUS" value="69" />
1677 <enum name="KEYCODE_EQUALS" value="70" />
1678 <enum name="KEYCODE_LEFT_BRACKET" value="71" />
1679 <enum name="KEYCODE_RIGHT_BRACKET" value="72" />
1680 <enum name="KEYCODE_BACKSLASH" value="73" />
1681 <enum name="KEYCODE_SEMICOLON" value="74" />
1682 <enum name="KEYCODE_APOSTROPHE" value="75" />
1683 <enum name="KEYCODE_SLASH" value="76" />
1684 <enum name="KEYCODE_AT" value="77" />
1685 <enum name="KEYCODE_NUM" value="78" />
1686 <enum name="KEYCODE_HEADSETHOOK" value="79" />
1687 <enum name="KEYCODE_FOCUS" value="80" />
1688 <enum name="KEYCODE_PLUS" value="81" />
1689 <enum name="KEYCODE_MENU" value="82" />
1690 <enum name="KEYCODE_NOTIFICATION" value="83" />
1691 <enum name="KEYCODE_SEARCH" value="84" />
1692 <enum name="KEYCODE_MEDIA_PLAY_PAUSE" value="85" />
1693 <enum name="KEYCODE_MEDIA_STOP" value="86" />
1694 <enum name="KEYCODE_MEDIA_NEXT" value="87" />
1695 <enum name="KEYCODE_MEDIA_PREVIOUS" value="88" />
1696 <enum name="KEYCODE_MEDIA_REWIND" value="89" />
1697 <enum name="KEYCODE_MEDIA_FAST_FORWARD" value="90" />
1698 <enum name="KEYCODE_MUTE" value="91" />
1699 <enum name="KEYCODE_PAGE_UP" value="92" />
1700 <enum name="KEYCODE_PAGE_DOWN" value="93" />
1701 <enum name="KEYCODE_PICTSYMBOLS" value="94" />
1702 <enum name="KEYCODE_SWITCH_CHARSET" value="95" />
1703 <enum name="KEYCODE_BUTTON_A" value="96" />
1704 <enum name="KEYCODE_BUTTON_B" value="97" />
1705 <enum name="KEYCODE_BUTTON_C" value="98" />
1706 <enum name="KEYCODE_BUTTON_X" value="99" />
1707 <enum name="KEYCODE_BUTTON_Y" value="100" />
1708 <enum name="KEYCODE_BUTTON_Z" value="101" />
1709 <enum name="KEYCODE_BUTTON_L1" value="102" />
1710 <enum name="KEYCODE_BUTTON_R1" value="103" />
1711 <enum name="KEYCODE_BUTTON_L2" value="104" />
1712 <enum name="KEYCODE_BUTTON_R2" value="105" />
1713 <enum name="KEYCODE_BUTTON_THUMBL" value="106" />
1714 <enum name="KEYCODE_BUTTON_THUMBR" value="107" />
1715 <enum name="KEYCODE_BUTTON_START" value="108" />
1716 <enum name="KEYCODE_BUTTON_SELECT" value="109" />
1717 <enum name="KEYCODE_BUTTON_MODE" value="110" />
1718 <enum name="KEYCODE_ESCAPE" value="111" />
1719 <enum name="KEYCODE_FORWARD_DEL" value="112" />
1720 <enum name="KEYCODE_CTRL_LEFT" value="113" />
1721 <enum name="KEYCODE_CTRL_RIGHT" value="114" />
1722 <enum name="KEYCODE_CAPS_LOCK" value="115" />
1723 <enum name="KEYCODE_SCROLL_LOCK" value="116" />
1724 <enum name="KEYCODE_META_LEFT" value="117" />
1725 <enum name="KEYCODE_META_RIGHT" value="118" />
1726 <enum name="KEYCODE_FUNCTION" value="119" />
1727 <enum name="KEYCODE_SYSRQ" value="120" />
1728 <enum name="KEYCODE_BREAK" value="121" />
1729 <enum name="KEYCODE_MOVE_HOME" value="122" />
1730 <enum name="KEYCODE_MOVE_END" value="123" />
1731 <enum name="KEYCODE_INSERT" value="124" />
1732 <enum name="KEYCODE_FORWARD" value="125" />
1733 <enum name="KEYCODE_MEDIA_PLAY" value="126" />
1734 <enum name="KEYCODE_MEDIA_PAUSE" value="127" />
1735 <enum name="KEYCODE_MEDIA_CLOSE" value="128" />
1736 <enum name="KEYCODE_MEDIA_EJECT" value="129" />
1737 <enum name="KEYCODE_MEDIA_RECORD" value="130" />
1738 <enum name="KEYCODE_F1" value="131" />
1739 <enum name="KEYCODE_F2" value="132" />
1740 <enum name="KEYCODE_F3" value="133" />
1741 <enum name="KEYCODE_F4" value="134" />
1742 <enum name="KEYCODE_F5" value="135" />
1743 <enum name="KEYCODE_F6" value="136" />
1744 <enum name="KEYCODE_F7" value="137" />
1745 <enum name="KEYCODE_F8" value="138" />
1746 <enum name="KEYCODE_F9" value="139" />
1747 <enum name="KEYCODE_F10" value="140" />
1748 <enum name="KEYCODE_F11" value="141" />
1749 <enum name="KEYCODE_F12" value="142" />
1750 <enum name="KEYCODE_NUM_LOCK" value="143" />
1751 <enum name="KEYCODE_NUMPAD_0" value="144" />
1752 <enum name="KEYCODE_NUMPAD_1" value="145" />
1753 <enum name="KEYCODE_NUMPAD_2" value="146" />
1754 <enum name="KEYCODE_NUMPAD_3" value="147" />
1755 <enum name="KEYCODE_NUMPAD_4" value="148" />
1756 <enum name="KEYCODE_NUMPAD_5" value="149" />
1757 <enum name="KEYCODE_NUMPAD_6" value="150" />
1758 <enum name="KEYCODE_NUMPAD_7" value="151" />
1759 <enum name="KEYCODE_NUMPAD_8" value="152" />
1760 <enum name="KEYCODE_NUMPAD_9" value="153" />
1761 <enum name="KEYCODE_NUMPAD_DIVIDE" value="154" />
1762 <enum name="KEYCODE_NUMPAD_MULTIPLY" value="155" />
1763 <enum name="KEYCODE_NUMPAD_SUBTRACT" value="156" />
1764 <enum name="KEYCODE_NUMPAD_ADD" value="157" />
1765 <enum name="KEYCODE_NUMPAD_DOT" value="158" />
1766 <enum name="KEYCODE_NUMPAD_COMMA" value="159" />
1767 <enum name="KEYCODE_NUMPAD_ENTER" value="160" />
1768 <enum name="KEYCODE_NUMPAD_EQUALS" value="161" />
1769 <enum name="KEYCODE_NUMPAD_LEFT_PAREN" value="162" />
1770 <enum name="KEYCODE_NUMPAD_RIGHT_PAREN" value="163" />
1771 <enum name="KEYCODE_VOLUME_MUTE" value="164" />
1772 <enum name="KEYCODE_INFO" value="165" />
1773 <enum name="KEYCODE_CHANNEL_UP" value="166" />
1774 <enum name="KEYCODE_CHANNEL_DOWN" value="167" />
1775 <enum name="KEYCODE_ZOOM_IN" value="168" />
1776 <enum name="KEYCODE_ZOOM_OUT" value="169" />
1777 <enum name="KEYCODE_TV" value="170" />
1778 <enum name="KEYCODE_WINDOW" value="171" />
1779 <enum name="KEYCODE_GUIDE" value="172" />
1780 <enum name="KEYCODE_DVR" value="173" />
1781 <enum name="KEYCODE_BOOKMARK" value="174" />
1782 <enum name="KEYCODE_CAPTIONS" value="175" />
1783 <enum name="KEYCODE_SETTINGS" value="176" />
1784 <enum name="KEYCODE_TV_POWER" value="177" />
1785 <enum name="KEYCODE_TV_INPUT" value="178" />
1786 <enum name="KEYCODE_STB_POWER" value="179" />
1787 <enum name="KEYCODE_STB_INPUT" value="180" />
1788 <enum name="KEYCODE_AVR_POWER" value="181" />
1789 <enum name="KEYCODE_AVR_INPUT" value="182" />
1790 <enum name="KEYCODE_PROG_GRED" value="183" />
1791 <enum name="KEYCODE_PROG_GREEN" value="184" />
1792 <enum name="KEYCODE_PROG_YELLOW" value="185" />
1793 <enum name="KEYCODE_PROG_BLUE" value="186" />
1794 <enum name="KEYCODE_APP_SWITCH" value="187" />
1795 <enum name="KEYCODE_BUTTON_1" value="188" />
1796 <enum name="KEYCODE_BUTTON_2" value="189" />
1797 <enum name="KEYCODE_BUTTON_3" value="190" />
1798 <enum name="KEYCODE_BUTTON_4" value="191" />
1799 <enum name="KEYCODE_BUTTON_5" value="192" />
1800 <enum name="KEYCODE_BUTTON_6" value="193" />
1801 <enum name="KEYCODE_BUTTON_7" value="194" />
1802 <enum name="KEYCODE_BUTTON_8" value="195" />
1803 <enum name="KEYCODE_BUTTON_9" value="196" />
1804 <enum name="KEYCODE_BUTTON_10" value="197" />
1805 <enum name="KEYCODE_BUTTON_11" value="198" />
1806 <enum name="KEYCODE_BUTTON_12" value="199" />
1807 <enum name="KEYCODE_BUTTON_13" value="200" />
1808 <enum name="KEYCODE_BUTTON_14" value="201" />
1809 <enum name="KEYCODE_BUTTON_15" value="202" />
1810 <enum name="KEYCODE_BUTTON_16" value="203" />
1811 <enum name="KEYCODE_LANGUAGE_SWITCH" value="204" />
1812 <enum name="KEYCODE_MANNER_MODE" value="205" />
1813 <enum name="KEYCODE_3D_MODE" value="206" />
1814 <enum name="KEYCODE_CONTACTS" value="207" />
1815 <enum name="KEYCODE_CALENDAR" value="208" />
1816 <enum name="KEYCODE_MUSIC" value="209" />
1817 <enum name="KEYCODE_CALCULATOR" value="210" />
1818 <enum name="KEYCODE_ZENKAKU_HANKAKU" value="211" />
1819 <enum name="KEYCODE_EISU" value="212" />
1820 <enum name="KEYCODE_MUHENKAN" value="213" />
1821 <enum name="KEYCODE_HENKAN" value="214" />
1822 <enum name="KEYCODE_KATAKANA_HIRAGANA" value="215" />
1823 <enum name="KEYCODE_YEN" value="216" />
1824 <enum name="KEYCODE_RO" value="217" />
1825 <enum name="KEYCODE_KANA" value="218" />
1826 <enum name="KEYCODE_ASSIST" value="219" />
1827 <enum name="KEYCODE_BRIGHTNESS_DOWN" value="220" />
1828 <enum name="KEYCODE_BRIGHTNESS_UP" value="221" />
1829 <enum name="KEYCODE_MEDIA_AUDIO_TRACK" value="222" />
1830 <enum name="KEYCODE_MEDIA_SLEEP" value="223" />
1831 <enum name="KEYCODE_MEDIA_WAKEUP" value="224" />
1832 <enum name="KEYCODE_PAIRING" value="225" />
1833 <enum name="KEYCODE_MEDIA_TOP_MENU" value="226" />
1834 <enum name="KEYCODE_11" value="227" />
1835 <enum name="KEYCODE_12" value="228" />
1836 <enum name="KEYCODE_LAST_CHANNEL" value="229" />
1837 <enum name="KEYCODE_TV_DATA_SERVICE" value="230" />
1838 <enum name="KEYCODE_VOICE_ASSIST" value="231" />
1839 <enum name="KEYCODE_TV_RADIO_SERVICE" value="232" />
1840 <enum name="KEYCODE_TV_TELETEXT" value="233" />
1841 <enum name="KEYCODE_TV_NUMBER_ENTRY" value="234" />
1842 <enum name="KEYCODE_TV_TERRESTRIAL_ANALOG" value="235" />
1843 <enum name="KEYCODE_TV_TERRESTRIAL_DIGITAL" value="236" />
1844 <enum name="KEYCODE_TV_SATELLITE" value="237" />
1845 <enum name="KEYCODE_TV_SATELLITE_BS" value="238" />
1846 <enum name="KEYCODE_TV_SATELLITE_CS" value="239" />
1847 <enum name="KEYCODE_TV_SATELLITE_SERVICE" value="240" />
1848 <enum name="KEYCODE_TV_NETWORK" value="241" />
1849 <enum name="KEYCODE_TV_ANTENNA_CABLE" value="242" />
1850 <enum name="KEYCODE_TV_INPUT_HDMI_1" value="243" />
1851 <enum name="KEYCODE_TV_INPUT_HDMI_2" value="244" />
1852 <enum name="KEYCODE_TV_INPUT_HDMI_3" value="245" />
1853 <enum name="KEYCODE_TV_INPUT_HDMI_4" value="246" />
1854 <enum name="KEYCODE_TV_INPUT_COMPOSITE_1" value="247" />
1855 <enum name="KEYCODE_TV_INPUT_COMPOSITE_2" value="248" />
1856 <enum name="KEYCODE_TV_INPUT_COMPONENT_1" value="249" />
1857 <enum name="KEYCODE_TV_INPUT_COMPONENT_2" value="250" />
1858 <enum name="KEYCODE_TV_INPUT_VGA_1" value="251" />
1859 <enum name="KEYCODE_TV_AUDIO_DESCRIPTION" value="252" />
1860 <enum name="KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP" value="253" />
1861 <enum name="KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN" value="254" />
1862 <enum name="KEYCODE_TV_ZOOM_MODE" value="255" />
1863 <enum name="KEYCODE_TV_CONTENTS_MENU" value="256" />
1864 <enum name="KEYCODE_TV_MEDIA_CONTEXT_MENU" value="257" />
1865 <enum name="KEYCODE_TV_TIMER_PROGRAMMING" value="258" />
1866 <enum name="KEYCODE_HELP" value="259" />
1867 <enum name="KEYCODE_NAVIGATE_PREVIOUS" value="260" />
1868 <enum name="KEYCODE_NAVIGATE_NEXT" value="261" />
1869 <enum name="KEYCODE_NAVIGATE_IN" value="262" />
1870 <enum name="KEYCODE_NAVIGATE_OUT" value="263" />
1871 <enum name="KEYCODE_STEM_PRIMARY" value="264" />
1872 <enum name="KEYCODE_STEM_1" value="265" />
1873 <enum name="KEYCODE_STEM_2" value="266" />
1874 <enum name="KEYCODE_STEM_3" value="267" />
1875 <enum name="KEYCODE_DPAD_UP_LEFT" value="268" />
1876 <enum name="KEYCODE_DPAD_DOWN_LEFT" value="269" />
1877 <enum name="KEYCODE_DPAD_UP_RIGHT" value="270" />
1878 <enum name="KEYCODE_DPAD_DOWN_RIGHT" value="271" />
1879 <enum name="KEYCODE_MEDIA_SKIP_FORWARD" value="272" />
1880 <enum name="KEYCODE_MEDIA_SKIP_BACKWARD" value="273" />
1881 <enum name="KEYCODE_MEDIA_STEP_FORWARD" value="274" />
1882 <enum name="KEYCODE_MEDIA_STEP_BACKWARD" value="275" />
1883 <enum name="KEYCODE_SOFT_SLEEP" value="276" />
1884 <enum name="KEYCODE_CUT" value="277" />
1885 <enum name="KEYCODE_COPY" value="278" />
1886 <enum name="KEYCODE_PASTE" value="279" />
1887 <enum name="KEYCODE_SYSTEM_NAVIGATION_UP" value="280" />
1888 <enum name="KEYCODE_SYSTEM_NAVIGATION_DOWN" value="281" />
1889 <enum name="KEYCODE_SYSTEM_NAVIGATION_LEFT" value="282" />
1890 <enum name="KEYCODE_SYSTEM_NAVIGATION_RIGHT" value="283" />
1893 <!-- ***************************************************************** -->
1894 <!-- These define collections of attributes that can are with classes. -->
1895 <!-- ***************************************************************** -->
1897 <!-- ========================== -->
1898 <!-- Special attribute classes. -->
1899 <!-- ========================== -->
1902 <!-- The set of attributes that describe a Windows's theme. -->
1903 <declare-styleable name="Window">
1904 <attr name="windowBackground" />
1905 <attr name="windowBackgroundFallback" />
1906 <attr name="windowContentOverlay" />
1907 <attr name="windowFrame" />
1908 <attr name="windowNoTitle" />
1909 <attr name="windowFullscreen" />
1910 <attr name="windowOverscan" />
1911 <attr name="windowIsFloating" />
1912 <attr name="windowIsTranslucent" />
1913 <attr name="windowShowWallpaper" />
1914 <attr name="windowAnimationStyle" />
1915 <attr name="windowSoftInputMode" />
1916 <attr name="windowDisablePreview" />
1917 <attr name="windowNoDisplay" />
1918 <attr name="textColor" />
1919 <attr name="backgroundDimEnabled" />
1920 <attr name="backgroundDimAmount" />
1921 <attr name="windowActionBar" />
1922 <attr name="windowActionModeOverlay" />
1923 <attr name="windowActionBarOverlay" />
1924 <attr name="windowEnableSplitTouch" />
1925 <attr name="windowCloseOnTouchOutside" />
1926 <attr name="windowTranslucentStatus" />
1927 <attr name="windowTranslucentNavigation" />
1928 <attr name="windowSwipeToDismiss" />
1929 <attr name="windowContentTransitions" />
1930 <attr name="windowActivityTransitions" />
1931 <attr name="windowContentTransitionManager" />
1932 <attr name="windowActionBarFullscreenDecorLayout" />
1934 <!-- The minimum width the window is allowed to be, along the major
1935 axis of the screen. That is, when in landscape. Can be either
1936 an absolute dimension or a fraction of the screen size in that
1938 <attr name="windowMinWidthMajor" format="dimension|fraction" />
1939 <!-- The minimum width the window is allowed to be, along the minor
1940 axis of the screen. That is, when in portrait. Can be either
1941 an absolute dimension or a fraction of the screen size in that
1943 <attr name="windowMinWidthMinor" format="dimension|fraction" />
1945 <!-- A fixed width for the window along the major axis of the screen,
1946 that is, when in landscape. Can be either an absolute dimension
1947 or a fraction of the screen size in that dimension. -->
1948 <attr name="windowFixedWidthMajor" format="dimension|fraction" />
1949 <!-- A fixed height for the window along the minor axis of the screen,
1950 that is, when in landscape. Can be either an absolute dimension
1951 or a fraction of the screen size in that dimension. -->
1952 <attr name="windowFixedHeightMinor" format="dimension|fraction" />
1954 <!-- A fixed width for the window along the minor axis of the screen,
1955 that is, when in portrait. Can be either an absolute dimension
1956 or a fraction of the screen size in that dimension. -->
1957 <attr name="windowFixedWidthMinor" format="dimension|fraction" />
1958 <!-- A fixed height for the window along the major axis of the screen,
1959 that is, when in portrait. Can be either an absolute dimension
1960 or a fraction of the screen size in that dimension. -->
1961 <attr name="windowFixedHeightMajor" format="dimension|fraction" />
1962 <attr name="windowOutsetBottom" format="dimension" />
1963 <!-- Reference to a Transition XML resource defining the desired Transition
1964 used to move Views into the initial Window's content Scene. Corresponds to
1965 {@link android.view.Window#setEnterTransition(android.transition.Transition)}. -->
1966 <attr name="windowEnterTransition"/>
1968 <!-- Reference to a Transition XML resource defining the desired Transition
1969 used to move Views out of the scene when the Window is
1970 preparing to close. Corresponds to
1971 {@link android.view.Window#setReturnTransition(android.transition.Transition)}. -->
1972 <attr name="windowReturnTransition"/>
1974 <!-- Reference to a Transition XML resource defining the desired Transition
1975 used to move Views out of the Window's content Scene when launching a new Activity.
1977 {@link android.view.Window#setExitTransition(android.transition.Transition)}. -->
1978 <attr name="windowExitTransition"/>
1980 <!-- Reference to a Transition XML resource defining the desired Transition
1981 used to move Views in to the scene when returning from a previously-started Activity.
1983 {@link android.view.Window#setReenterTransition(android.transition.Transition)}. -->
1984 <attr name="windowReenterTransition"/>
1986 <!-- Reference to a Transition XML resource defining the desired Transition
1987 used to move shared elements transferred into the Window's initial content Scene.
1988 Corresponds to {@link android.view.Window#setSharedElementEnterTransition(
1989 android.transition.Transition)}. -->
1990 <attr name="windowSharedElementEnterTransition"/>
1992 <!-- Reference to a Transition XML resource defining the desired Transition
1993 used to move shared elements transferred back to a calling Activity.
1994 Corresponds to {@link android.view.Window#setSharedElementReturnTransition(
1995 android.transition.Transition)}. -->
1996 <attr name="windowSharedElementReturnTransition"/>
1998 <!-- Reference to a Transition XML resource defining the desired Transition
1999 used when starting a new Activity to move shared elements prior to transferring
2000 to the called Activity.
2001 Corresponds to {@link android.view.Window#setSharedElementExitTransition(
2002 android.transition.Transition)}. -->
2003 <attr name="windowSharedElementExitTransition"/>
2005 <!-- Reference to a Transition XML resource defining the desired Transition
2006 used for shared elements transferred back to a calling Activity.
2007 Corresponds to {@link android.view.Window#setSharedElementReenterTransition(
2008 android.transition.Transition)}. -->
2009 <attr name="windowSharedElementReenterTransition"/>
2012 <!-- Flag indicating whether this Window's transition should overlap with
2013 the exiting transition of the calling Activity. Corresponds to
2014 {@link android.view.Window#setAllowEnterTransitionOverlap(boolean)}. -->
2015 <attr name="windowAllowEnterTransitionOverlap"/>
2017 <!-- Flag indicating whether this Window's transition should overlap with
2018 the exiting transition of the called Activity when the called Activity
2019 finishes. Corresponds to
2020 {@link android.view.Window#setAllowReturnTransitionOverlap(boolean)}. -->
2021 <attr name="windowAllowReturnTransitionOverlap"/>
2023 <!-- Indicates whether or not shared elements should use an overlay
2024 during transitions. The default value is true. -->
2025 <attr name="windowSharedElementsUseOverlay"/>
2027 <!-- Flag indicating whether this Window is responsible for drawing the background for the
2028 system bars. If true and the window is not floating, the system bars are drawn with a
2029 transparent background and the corresponding areas in this window are filled with the
2030 colors specified in {@link android.R.attr#statusBarColor} and
2031 {@link android.R.attr#navigationBarColor}. Corresponds to
2032 {@link android.view.WindowManager.LayoutParams#FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS}. -->
2033 <attr name="windowDrawsSystemBarBackgrounds" format="boolean" />
2035 <!-- The color for the status bar. If the color is not opaque, consider setting
2036 {@link android.view.View#SYSTEM_UI_FLAG_LAYOUT_STABLE} and
2037 {@link android.view.View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN}.
2038 For this to take effect, the window must be drawing the system bar backgrounds with
2039 {@link android.R.attr#windowDrawsSystemBarBackgrounds} and the status bar must not
2040 have been requested to be translucent with
2041 {@link android.R.attr#windowTranslucentStatus}.
2042 Corresponds to {@link android.view.Window#setStatusBarColor(int)}. -->
2043 <attr name="statusBarColor" format="color" />
2045 <!-- The color for the navigation bar. If the color is not opaque, consider setting
2046 {@link android.view.View#SYSTEM_UI_FLAG_LAYOUT_STABLE} and
2047 {@link android.view.View#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION}.
2048 For this to take effect, the window must be drawing the system bar backgrounds with
2049 {@link android.R.attr#windowDrawsSystemBarBackgrounds} and the navigation bar must not
2050 have been requested to be translucent with
2051 {@link android.R.attr#windowTranslucentNavigation}.
2052 Corresponds to {@link android.view.Window#setNavigationBarColor(int)}. -->
2053 <attr name="navigationBarColor" format="color" />
2055 <!-- The duration, in milliseconds, of the window background fade duration
2056 when transitioning into or away from an Activity when called with an
2057 Activity Transition. Corresponds to
2058 {@link android.view.Window#setTransitionBackgroundFadeDuration(long)}. -->
2059 <attr name="windowTransitionBackgroundFadeDuration" />
2061 <!-- Elevation to use for the window. -->
2062 <attr name="windowElevation" format="dimension" />
2064 <!-- Whether to clip window content to the outline of the window background. -->
2065 <attr name="windowClipToOutline" format="boolean" />
2067 <!-- If set, the status bar will be drawn such that it is compatible with a light
2068 status bar background.
2069 <p>For this to take effect, the window must be drawing the system bar backgrounds with
2070 {@link android.R.attr#windowDrawsSystemBarBackgrounds} and the status bar must not
2071 have been requested to be translucent with
2072 {@link android.R.attr#windowTranslucentStatus}.
2073 Corresponds to setting {@link android.view.View#SYSTEM_UI_FLAG_LIGHT_STATUS_BAR} on
2075 <attr name="windowLightStatusBar" format="boolean" />
2077 <!-- Reference to a drawable to be used as the splash screen content of the window. This
2078 drawable will be placed on top of the {@link android.R.attr#windowBackground} with its
2079 bounds inset by the system bars. If the drawable should not be inset by the system
2080 bars, use a fullscreen theme.
2082 Note that even if no splashscreen content is set on the theme, the system may still
2083 show a splash screen using the other attributes on the theme, like the
2084 {@link android.R.attr#windowBackground}.
2086 <attr name="windowSplashscreenContent" format="reference" />
2087 </declare-styleable>
2089 <!-- The set of attributes that describe a AlertDialog's theme. -->
2090 <declare-styleable name="AlertDialog">
2091 <attr name="fullDark" format="reference|color" />
2092 <attr name="topDark" format="reference|color" />
2093 <attr name="centerDark" format="reference|color" />
2094 <attr name="bottomDark" format="reference|color" />
2095 <attr name="fullBright" format="reference|color" />
2096 <attr name="topBright" format="reference|color" />
2097 <attr name="centerBright" format="reference|color" />
2098 <attr name="bottomBright" format="reference|color" />
2099 <attr name="bottomMedium" format="reference|color" />
2100 <attr name="centerMedium" format="reference|color" />
2101 <attr name="layout" />
2102 <attr name="buttonPanelSideLayout" format="reference" />
2103 <attr name="listLayout" format="reference" />
2104 <attr name="multiChoiceItemLayout" format="reference" />
2105 <attr name="singleChoiceItemLayout" format="reference" />
2106 <attr name="listItemLayout" format="reference" />
2107 <attr name="progressLayout" format="reference" />
2108 <attr name="horizontalProgressLayout" format="reference" />
2109 <!-- @hide Not ready for public use. -->
2110 <attr name="showTitle" format="boolean" />
2111 <!-- @hide Whether fullDark, etc. should use default values if null. -->
2112 <attr name="needsDefaultBackgrounds" format="boolean" />
2113 <!-- @hide Workaround until we replace AlertController with custom layout. -->
2114 <attr name="controllerType">
2115 <!-- The default controller. -->
2116 <enum name="normal" value="0" />
2117 <!-- Controller for micro specific layout. -->
2118 <enum name="micro" value="1" />
2120 <!-- @hide Offset when scrolling to a selection. -->
2121 <attr name="selectionScrollOffset" format="dimension" />
2122 </declare-styleable>
2125 <declare-styleable name="ButtonBarLayout">
2126 <!-- Whether to automatically stack the buttons when there is not
2127 enough space to lay them out side-by-side. -->
2128 <attr name="allowStacking" format="boolean" />
2129 </declare-styleable>
2131 <!-- Fragment animation class attributes. -->
2132 <declare-styleable name="FragmentAnimation">
2133 <attr name="fragmentOpenEnterAnimation" format="reference" />
2134 <attr name="fragmentOpenExitAnimation" format="reference" />
2135 <attr name="fragmentCloseEnterAnimation" format="reference" />
2136 <attr name="fragmentCloseExitAnimation" format="reference" />
2137 <attr name="fragmentFadeEnterAnimation" format="reference" />
2138 <attr name="fragmentFadeExitAnimation" format="reference" />
2139 </declare-styleable>
2141 <!-- Window animation class attributes. -->
2142 <declare-styleable name="WindowAnimation">
2143 <!-- The animation used when a window is being added. -->
2144 <attr name="windowEnterAnimation" format="reference" />
2145 <!-- The animation used when a window is being removed. -->
2146 <attr name="windowExitAnimation" format="reference" />
2147 <!-- The animation used when a window is going from INVISIBLE to VISIBLE. -->
2148 <attr name="windowShowAnimation" format="reference" />
2149 <!-- The animation used when a window is going from VISIBLE to INVISIBLE. -->
2150 <attr name="windowHideAnimation" format="reference" />
2152 <!-- When opening a new activity, this is the animation that is
2153 run on the next activity (which is entering the screen). -->
2154 <attr name="activityOpenEnterAnimation" format="reference" />
2155 <!-- When opening a new activity, this is the animation that is
2156 run on the previous activity (which is exiting the screen). -->
2157 <attr name="activityOpenExitAnimation" format="reference" />
2158 <!-- When closing the current activity, this is the animation that is
2159 run on the next activity (which is entering the screen). -->
2160 <attr name="activityCloseEnterAnimation" format="reference" />
2161 <!-- When closing the current activity, this is the animation that is
2162 run on the current activity (which is exiting the screen). -->
2163 <attr name="activityCloseExitAnimation" format="reference" />
2164 <!-- When opening an activity in a new task, this is the animation that is
2165 run on the activity of the new task (which is entering the screen). -->
2166 <attr name="taskOpenEnterAnimation" format="reference" />
2167 <!-- When opening an activity in a new task, this is the animation that is
2168 run on the activity of the old task (which is exiting the screen). -->
2169 <attr name="taskOpenExitAnimation" format="reference" />
2170 <!-- When opening an activity in a new task using Intent/FLAG_ACTIVITY_LAUNCH_BEHIND,
2171 this is the animation that is run on the activity of the new task (which is
2172 entering the screen and then leaving). -->
2173 <attr name="launchTaskBehindTargetAnimation" format="reference" />
2174 <!-- When opening an activity in a new task using Intent.FLAG_ACTIVITY_LAUNCH_BEHIND,
2175 this is the animation that is run on the activity of the old task (which is
2176 already on the screen and then stays on). -->
2177 <attr name="launchTaskBehindSourceAnimation" format="reference" />
2178 <!-- When closing the last activity of a task, this is the animation that is
2179 run on the activity of the next task (which is entering the screen). -->
2180 <attr name="taskCloseEnterAnimation" format="reference" />
2181 <!-- When opening an activity in a new task, this is the animation that is
2182 run on the activity of the old task (which is exiting the screen). -->
2183 <attr name="taskCloseExitAnimation" format="reference" />
2184 <!-- When bringing an existing task to the foreground, this is the
2185 animation that is run on the top activity of the task being brought
2186 to the foreground (which is entering the screen). -->
2187 <attr name="taskToFrontEnterAnimation" format="reference" />
2188 <!-- When bringing an existing task to the foreground, this is the
2189 animation that is run on the current foreground activity
2190 (which is exiting the screen). -->
2191 <attr name="taskToFrontExitAnimation" format="reference" />
2192 <!-- When sending the current task to the background, this is the
2193 animation that is run on the top activity of the task behind
2194 it (which is entering the screen). -->
2195 <attr name="taskToBackEnterAnimation" format="reference" />
2196 <!-- When sending the current task to the background, this is the
2197 animation that is run on the top activity of the current task
2198 (which is exiting the screen). -->
2199 <attr name="taskToBackExitAnimation" format="reference" />
2201 <!-- When opening a new activity that shows the wallpaper, while
2202 currently not showing the wallpaper, this is the animation that
2203 is run on the new wallpaper activity (which is entering the screen). -->
2204 <attr name="wallpaperOpenEnterAnimation" format="reference" />
2205 <!-- When opening a new activity that shows the wallpaper, while
2206 currently not showing the wallpaper, this is the animation that
2207 is run on the current activity (which is exiting the screen). -->
2208 <attr name="wallpaperOpenExitAnimation" format="reference" />
2209 <!-- When opening a new activity that hides the wallpaper, while
2210 currently showing the wallpaper, this is the animation that
2211 is run on the new activity (which is entering the screen). -->
2212 <attr name="wallpaperCloseEnterAnimation" format="reference" />
2213 <!-- When opening a new activity that hides the wallpaper, while
2214 currently showing the wallpaper, this is the animation that
2215 is run on the old wallpaper activity (which is exiting the screen). -->
2216 <attr name="wallpaperCloseExitAnimation" format="reference" />
2218 <!-- When opening a new activity that is on top of the wallpaper
2219 when the current activity is also on top of the wallpaper,
2220 this is the animation that is run on the new activity
2221 (which is entering the screen). The wallpaper remains
2222 static behind the animation. -->
2223 <attr name="wallpaperIntraOpenEnterAnimation" format="reference" />
2224 <!-- When opening a new activity that is on top of the wallpaper
2225 when the current activity is also on top of the wallpaper,
2226 this is the animation that is run on the current activity
2227 (which is exiting the screen). The wallpaper remains
2228 static behind the animation. -->
2229 <attr name="wallpaperIntraOpenExitAnimation" format="reference" />
2230 <!-- When closing a foreround activity that is on top of the wallpaper
2231 when the previous activity is also on top of the wallpaper,
2232 this is the animation that is run on the previous activity
2233 (which is entering the screen). The wallpaper remains
2234 static behind the animation. -->
2235 <attr name="wallpaperIntraCloseEnterAnimation" format="reference" />
2236 <!-- When closing a foreround activity that is on top of the wallpaper
2237 when the previous activity is also on top of the wallpaper,
2238 this is the animation that is run on the current activity
2239 (which is exiting the screen). The wallpaper remains
2240 static behind the animation. -->
2241 <attr name="wallpaperIntraCloseExitAnimation" format="reference" />
2243 <!-- When opening a new activity from a RemoteViews, this is the
2244 animation that is run on the next activity (which is entering the
2245 screen). Requires config_overrideRemoteViewsActivityTransition to
2247 <attr name="activityOpenRemoteViewsEnterAnimation" format="reference" />
2249 </declare-styleable>
2251 <!-- ============================= -->
2252 <!-- View package class attributes -->
2253 <!-- ============================= -->
2256 <!-- Attributes that can be used with {@link android.view.View} or
2257 any of its subclasses. Also see {@link #ViewGroup_Layout} for
2258 attributes that are processed by the view's parent. -->
2259 <declare-styleable name="View">
2260 <!-- Supply an identifier name for this view, to later retrieve it
2261 with {@link android.view.View#findViewById View.findViewById()} or
2262 {@link android.app.Activity#findViewById Activity.findViewById()}.
2264 resource reference; typically you set this using the
2265 <code>@+</code> syntax to create a new ID resources.
2266 For example: <code>android:id="@+id/my_id"</code> which
2267 allows you to later retrieve the view
2268 with <code>findViewById(R.id.my_id)</code>. -->
2269 <attr name="id" format="reference" />
2271 <!-- Supply a tag for this view containing a String, to be retrieved
2272 later with {@link android.view.View#getTag View.getTag()} or
2273 searched for with {@link android.view.View#findViewWithTag
2274 View.findViewWithTag()}. It is generally preferable to use
2275 IDs (through the android:id attribute) instead of tags because
2276 they are faster and allow for compile-time type checking. -->
2277 <attr name="tag" format="string" />
2279 <!-- The initial horizontal scroll offset, in pixels.-->
2280 <attr name="scrollX" format="dimension" />
2282 <!-- The initial vertical scroll offset, in pixels. -->
2283 <attr name="scrollY" format="dimension" />
2285 <!-- A drawable to use as the background. This can be either a reference
2286 to a full drawable resource (such as a PNG image, 9-patch,
2287 XML state list description, etc), or a solid color such as "#ff000000"
2289 <attr name="background" format="reference|color" />
2291 <!-- Sets the padding, in pixels, of all four edges. Padding is defined as
2292 space between the edges of the view and the view's content. This value will take
2293 precedence over any of the edge-specific values, including
2294 paddingHorizontal and paddingVertical, if set. A view's size
2295 will include its padding. If a {@link android.R.attr#background}
2296 is provided, the padding will initially be set to that (0 if the
2297 drawable does not have padding). Explicitly setting a padding value
2298 will override the corresponding padding found in the background. -->
2299 <attr name="padding" format="dimension" />
2300 <!-- Sets the padding, in pixels, of the left and right edges; see
2301 {@link android.R.attr#padding}. This value will take precedence over
2302 paddingLeft, paddingRight, paddingStart, and paddingEnd, if set. -->
2303 <attr name="paddingHorizontal" format="dimension" />
2304 <!-- Sets the padding, in pixels, of the top and bottom edges; see
2305 {@link android.R.attr#padding}. This value will take precedence over
2306 paddingTop and paddingBottom, if set. -->
2307 <attr name="paddingVertical" format="dimension" />
2308 <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. -->
2309 <attr name="paddingLeft" format="dimension" />
2310 <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. -->
2311 <attr name="paddingTop" format="dimension" />
2312 <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. -->
2313 <attr name="paddingRight" format="dimension" />
2314 <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. -->
2315 <attr name="paddingBottom" format="dimension" />
2316 <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
2317 <attr name="paddingStart" format="dimension" />
2318 <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
2319 <attr name="paddingEnd" format="dimension" />
2321 <!-- Controls whether a view can take focus. By default, this is "auto" which lets the
2322 framework determine whether a user can move focus to a view. By setting this attribute
2323 to true the view is allowed to take focus. By setting it to "false" the view will not
2324 take focus. This value does not impact the behavior of
2325 directly calling {@link android.view.View#requestFocus}, which will
2326 always request focus regardless of this view. It only impacts where
2327 focus navigation will try to move focus. -->
2328 <attr name="focusable" format="boolean|enum">
2329 <enum name="auto" value="0x00000010" />
2332 <attr name="__removed3" />
2334 <!-- Describes the content of a view so that a autofill service can fill in the appropriate
2335 data. Multiple hints can be combined in a comma separated list or an array of strings
2336 to mean e.g. emailAddress or postalAddress. -->
2337 <attr name="autofillHints" format="string|reference" />
2339 <!-- Hints the Android System whether the view node associated with this View should be
2340 included in a view structure used for autofill purposes. -->
2341 <attr name="importantForAutofill">
2342 <!-- Let the Android System use its heuristics to determine if the view is important for autofill. -->
2343 <flag name="auto" value="0" />
2344 <!-- Hint the Android System that this view is important for autofill,
2345 and its children (if any) will be traversed.. -->
2346 <flag name="yes" value="0x1" />
2347 <!-- Hint the Android System that this view is *not* important for autofill,
2348 but its children (if any) will be traversed.. -->
2349 <flag name="no" value="0x2" />
2350 <!-- Hint the Android System that this view is important for autofill,
2351 but its children (if any) will not be traversed. -->
2352 <flag name="yesExcludeDescendants" value="0x4" />
2353 <!-- Hint the Android System that this view is *not* important for autofill,
2354 and its children (if any) will not be traversed. -->
2355 <flag name="noExcludeDescendants" value="0x8" />
2358 <!-- Boolean that controls whether a view can take focus while in touch mode.
2359 If this is true for a view, that view can gain focus when clicked on, and can keep
2360 focus if another view is clicked on that doesn't have this attribute set to true. -->
2361 <attr name="focusableInTouchMode" format="boolean" />
2363 <!-- Controls the initial visibility of the view. -->
2364 <attr name="visibility">
2365 <!-- Visible on screen; the default value. -->
2366 <enum name="visible" value="0" />
2367 <!-- Not displayed, but taken into account during layout (space is left for it). -->
2368 <enum name="invisible" value="1" />
2369 <!-- Completely hidden, as if the view had not been added. -->
2370 <enum name="gone" value="2" />
2373 <!-- Boolean internal attribute to adjust view layout based on
2374 system windows such as the status bar.
2375 If true, adjusts the padding of this view to leave space for the system windows.
2376 Will only take effect if this view is in a non-embedded activity. -->
2377 <attr name="fitsSystemWindows" format="boolean" />
2379 <!-- Defines which scrollbars should be displayed on scrolling or not. -->
2380 <attr name="scrollbars">
2381 <!-- No scrollbar is displayed. -->
2382 <flag name="none" value="0x00000000" />
2383 <!-- Displays horizontal scrollbar only. -->
2384 <flag name="horizontal" value="0x00000100" />
2385 <!-- Displays vertical scrollbar only. -->
2386 <flag name="vertical" value="0x00000200" />
2389 <!-- Controls the scrollbar style and position. The scrollbars can be overlaid or
2390 inset. When inset, they add to the padding of the view. And the
2391 scrollbars can be drawn inside the padding area or on the edge of
2392 the view. For example, if a view has a background drawable and you
2393 want to draw the scrollbars inside the padding specified by the
2394 drawable, you can use insideOverlay or insideInset. If you want them
2395 to appear at the edge of the view, ignoring the padding, then you can
2396 use outsideOverlay or outsideInset.-->
2397 <attr name="scrollbarStyle">
2398 <!-- Inside the padding and overlaid. -->
2399 <enum name="insideOverlay" value="0x0" />
2400 <!-- Inside the padding and inset. -->
2401 <enum name="insideInset" value="0x01000000" />
2402 <!-- Edge of the view and overlaid. -->
2403 <enum name="outsideOverlay" value="0x02000000" />
2404 <!-- Edge of the view and inset. -->
2405 <enum name="outsideInset" value="0x03000000" />
2408 <!-- Set this if the view will serve as a scrolling container, meaning
2409 that it can be resized to shrink its overall window so that there
2410 will be space for an input method. If not set, the default
2411 value will be true if "scrollbars" has the vertical scrollbar
2412 set, else it will be false. -->
2413 <attr name="isScrollContainer" format="boolean" />
2415 <!-- Defines whether to fade out scrollbars when they are not in use. -->
2416 <attr name="fadeScrollbars" format="boolean" />
2417 <!-- Defines the delay in milliseconds that a scrollbar takes to fade out. -->
2418 <attr name="scrollbarFadeDuration" format="integer" />
2419 <!-- Defines the delay in milliseconds that a scrollbar waits before fade out. -->
2420 <attr name="scrollbarDefaultDelayBeforeFade" format="integer" />
2421 <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. -->
2422 <attr name="scrollbarSize" format="dimension" />
2423 <!-- Defines the horizontal scrollbar thumb drawable. -->
2424 <attr name="scrollbarThumbHorizontal" format="reference" />
2425 <!-- Defines the vertical scrollbar thumb drawable. -->
2426 <attr name="scrollbarThumbVertical" format="reference" />
2427 <!-- Defines the horizontal scrollbar track drawable. -->
2428 <attr name="scrollbarTrackHorizontal" format="reference" />
2429 <!-- Defines the vertical scrollbar track drawable. -->
2430 <attr name="scrollbarTrackVertical" format="reference" />
2431 <!-- Defines whether the horizontal scrollbar track should always be drawn. -->
2432 <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" />
2433 <!-- Defines whether the vertical scrollbar track should always be drawn. -->
2434 <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" />
2436 <!-- This attribute is ignored in API level 14
2437 ({@link android.os.Build.VERSION_CODES#ICE_CREAM_SANDWICH}) and higher.
2438 Using fading edges may introduce noticeable performance
2439 degradations and should be used only when required by the application's
2440 visual design. To request fading edges with API level 14 and above,
2441 use the <code>android:requiresFadingEdge</code> attribute instead. -->
2442 <attr name="fadingEdge">
2443 <!-- No edge is faded. -->
2444 <flag name="none" value="0x00000000" />
2445 <!-- Fades horizontal edges only. -->
2446 <flag name="horizontal" value="0x00001000" />
2447 <!-- Fades vertical edges only. -->
2448 <flag name="vertical" value="0x00002000" />
2450 <!-- Defines which edges should be faded on scrolling. -->
2451 <attr name="requiresFadingEdge">
2452 <!-- No edge is faded. -->
2453 <flag name="none" value="0x00000000" />
2454 <!-- Fades horizontal edges only. -->
2455 <flag name="horizontal" value="0x00001000" />
2456 <!-- Fades vertical edges only. -->
2457 <flag name="vertical" value="0x00002000" />
2459 <!-- Defines the length of the fading edges. -->
2460 <attr name="fadingEdgeLength" format="dimension" />
2462 <!-- Defines the next view to give focus to when the next focus is
2463 {@link android.view.View#FOCUS_LEFT}.
2465 If the reference refers to a view that does not exist or is part
2466 of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2467 will result when the reference is accessed.-->
2468 <attr name="nextFocusLeft" format="reference"/>
2470 <!-- Defines the next view to give focus to when the next focus is
2471 {@link android.view.View#FOCUS_RIGHT}
2473 If the reference refers to a view that does not exist or is part
2474 of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2475 will result when the reference is accessed.-->
2476 <attr name="nextFocusRight" format="reference"/>
2478 <!-- Defines the next view to give focus to when the next focus is
2479 {@link android.view.View#FOCUS_UP}
2481 If the reference refers to a view that does not exist or is part
2482 of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2483 will result when the reference is accessed.-->
2484 <attr name="nextFocusUp" format="reference"/>
2486 <!-- Defines the next view to give focus to when the next focus is
2487 {@link android.view.View#FOCUS_DOWN}
2489 If the reference refers to a view that does not exist or is part
2490 of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2491 will result when the reference is accessed.-->
2492 <attr name="nextFocusDown" format="reference"/>
2494 <!-- Defines the next view to give focus to when the next focus is
2495 {@link android.view.View#FOCUS_FORWARD}
2497 If the reference refers to a view that does not exist or is part
2498 of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2499 will result when the reference is accessed.-->
2500 <attr name="nextFocusForward" format="reference"/>
2502 <!-- Defines whether this view reacts to click events. -->
2503 <attr name="clickable" format="boolean" />
2505 <!-- Defines whether this view reacts to long click events. -->
2506 <attr name="longClickable" format="boolean" />
2508 <!-- Defines whether this view reacts to context click events. -->
2509 <attr name="contextClickable" format="boolean" />
2511 <!-- If false, no state will be saved for this view when it is being
2512 frozen. The default is true, allowing the view to be saved
2513 (however it also must have an ID assigned to it for its
2514 state to be saved). Setting this to false only disables the
2515 state for this view, not for its children which may still
2517 <attr name="saveEnabled" format="boolean" />
2519 <!-- Specifies whether to filter touches when the view's window is obscured by
2520 another visible window. When set to true, the view will not receive touches
2521 whenever a toast, dialog or other window appears above the view's window.
2522 Refer to the {@link android.view.View} security documentation for more details. -->
2523 <attr name="filterTouchesWhenObscured" format="boolean" />
2525 <!-- Defines the quality of translucent drawing caches. This property is used
2526 only when the drawing cache is enabled and translucent. The default value is auto. -->
2527 <attr name="drawingCacheQuality">
2528 <!-- Lets the framework decide what quality level should be used
2529 for the drawing cache. -->
2530 <enum name="auto" value="0" />
2531 <!-- Low quality. When set to low quality, the drawing cache uses a lower color
2532 depth, thus losing precision in rendering gradients, but uses less memory. -->
2533 <enum name="low" value="1" />
2534 <!-- High quality. When set to high quality, the drawing cache uses a higher
2535 color depth but uses more memory. -->
2536 <enum name="high" value="2" />
2539 <!-- Controls whether the view's window should keep the screen on
2541 <attr name="keepScreenOn" format="boolean" />
2543 <!-- When this attribute is set to true, the view gets its drawable state
2544 (focused, pressed, etc.) from its direct parent rather than from itself. -->
2545 <attr name="duplicateParentState" format="boolean" />
2547 <!-- Defines the minimum height of the view. It is not guaranteed
2548 the view will be able to achieve this minimum height (for example,
2549 if its parent layout constrains it with less available height). -->
2550 <attr name="minHeight" />
2552 <!-- Defines the minimum width of the view. It is not guaranteed
2553 the view will be able to achieve this minimum width (for example,
2554 if its parent layout constrains it with less available width). -->
2555 <attr name="minWidth" />
2557 <!-- Boolean that controls whether a view should have sound effects
2558 enabled for events such as clicking and touching. -->
2559 <attr name="soundEffectsEnabled" format="boolean" />
2561 <!-- Boolean that controls whether a view should have haptic feedback
2562 enabled for events such as long presses. -->
2563 <attr name="hapticFeedbackEnabled" format="boolean" />
2565 <!-- Defines text that briefly describes content of the view. This property is used
2566 primarily for accessibility. Since some views do not have textual
2567 representation this attribute can be used for providing such. -->
2568 <attr name="contentDescription" format="string" localization="suggested" />
2570 <!-- Sets the id of a view before which this one is visited in accessibility traversal.
2571 A screen-reader must visit the content of this view before the content of the one
2573 {@see android.view.View#setAccessibilityTraversalBefore(int)} -->
2574 <attr name="accessibilityTraversalBefore" format="integer" />
2576 <!-- Sets the id of a view after which this one is visited in accessibility traversal.
2577 A screen-reader must visit the content of the other view before the content of
2579 {@see android.view.View#setAccessibilityTraversalAfter(int)} -->
2580 <attr name="accessibilityTraversalAfter" format="integer" />
2582 <!-- Name of the method in this View's context to invoke when the view is
2583 clicked. This name must correspond to a public method that takes
2584 exactly one parameter of type View. For instance, if you specify
2585 <code>android:onClick="sayHello"</code>, you must declare a
2586 <code>public void sayHello(View v)</code> method of your context
2587 (typically, your Activity). -->
2588 <attr name="onClick" format="string" />
2590 <!-- Defines over-scrolling behavior. This property is used only if the
2591 View is scrollable. Over-scrolling is the ability for the user to
2592 receive feedback when attempting to scroll beyond meaningful content. -->
2593 <attr name="overScrollMode">
2594 <!-- Always show over-scroll effects, even if the content fits entirely
2595 within the available space. -->
2596 <enum name="always" value="0" />
2597 <!-- Only show over-scroll effects if the content is large
2598 enough to meaningfully scroll. -->
2599 <enum name="ifContentScrolls" value="1" />
2600 <!-- Never show over-scroll effects. -->
2601 <enum name="never" value="2" />
2604 <!-- alpha property of the view, as a value between 0 (completely transparent) and 1
2605 (completely opaque). -->
2606 <attr name="alpha" format="float" />
2608 <!-- base z depth of the view. -->
2609 <attr name="elevation" format="dimension" />
2611 <!-- translation in x of the view. This value is added post-layout to the left
2612 property of the view, which is set by its layout. -->
2613 <attr name="translationX" format="dimension" />
2615 <!-- translation in y of the view. This value is added post-layout to the top
2616 property of the view, which is set by its layout. -->
2617 <attr name="translationY" format="dimension" />
2619 <!-- translation in z of the view. This value is added to its elevation. -->
2620 <attr name="translationZ" format="dimension" />
2622 <!-- x location of the pivot point around which the view will rotate and scale.
2623 This xml attribute sets the pivotX property of the View. -->
2624 <attr name="transformPivotX" format="dimension" />
2626 <!-- y location of the pivot point around which the view will rotate and scale.
2627 This xml attribute sets the pivotY property of the View. -->
2628 <attr name="transformPivotY" format="dimension" />
2630 <!-- rotation of the view, in degrees. -->
2631 <attr name="rotation" format="float" />
2633 <!-- rotation of the view around the x axis, in degrees. -->
2634 <attr name="rotationX" format="float" />
2636 <!-- rotation of the view around the y axis, in degrees. -->
2637 <attr name="rotationY" format="float" />
2639 <!-- scale of the view in the x direction. -->
2640 <attr name="scaleX" format="float" />
2642 <!-- scale of the view in the y direction. -->
2643 <attr name="scaleY" format="float" />
2645 <!-- Determines which side the vertical scroll bar should be placed on. -->
2646 <attr name="verticalScrollbarPosition">
2647 <!-- Place the scroll bar wherever the system default determines. -->
2648 <enum name="defaultPosition" value="0" />
2649 <!-- Place the scroll bar on the left. -->
2650 <enum name="left" value="1" />
2651 <!-- Place the scroll bar on the right. -->
2652 <enum name="right" value="2" />
2655 <!-- Specifies the type of layer backing this view. The default value is none.
2656 Refer to {@link android.view.View#setLayerType(int, android.graphics.Paint)}
2657 for more information.-->
2658 <attr name="layerType">
2659 <!-- Don't use a layer. -->
2660 <enum name="none" value="0" />
2661 <!-- Use a software layer. Refer to
2662 {@link android.view.View#setLayerType(int, android.graphics.Paint)} for
2663 more information. -->
2664 <enum name="software" value="1" />
2665 <!-- Use a hardware layer. Refer to
2666 {@link android.view.View#setLayerType(int, android.graphics.Paint)} for
2667 more information. -->
2668 <enum name="hardware" value="2" />
2671 <!-- Defines the direction of layout drawing. This typically is associated with writing
2672 direction of the language script used. The possible values are "ltr" for Left-to-Right,
2673 "rtl" for Right-to-Left, "locale", and "inherit" from parent view. If there is nothing
2674 to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction
2675 used in "en-US". The default for this attribute is "inherit". -->
2676 <attr name="layoutDirection">
2677 <!-- Left-to-Right. -->
2678 <enum name="ltr" value="0" />
2679 <!-- Right-to-Left. -->
2680 <enum name="rtl" value="1" />
2681 <!-- Inherit from parent. -->
2682 <enum name="inherit" value="2" />
2684 <enum name="locale" value="3" />
2687 <!-- Defines the direction of the text. -->
2688 <attr name="textDirection" format="integer">
2690 <enum name="inherit" value="0" />
2691 <!-- Default for the root view. The first strong directional character determines the
2692 paragraph direction. If there is no strong directional character, the paragraph
2693 direction is the view’s resolved layout direction. -->
2694 <enum name="firstStrong" value="1" />
2695 <!-- The paragraph direction is RTL if it contains any strong RTL character, otherwise
2696 it is LTR if it contains any strong LTR characters. If there are neither, the
2697 paragraph direction is the view’s resolved layout direction. -->
2698 <enum name="anyRtl" value="2" />
2699 <!-- The paragraph direction is left to right. -->
2700 <enum name="ltr" value="3" />
2701 <!-- The paragraph direction is right to left. -->
2702 <enum name="rtl" value="4" />
2703 <!-- The paragraph direction is coming from the system Locale. -->
2704 <enum name="locale" value="5" />
2705 <!-- The first strong directional character determines the paragraph direction. If
2706 there is no strong directional character, the paragraph direction is LTR. -->
2707 <enum name="firstStrongLtr" value="6" />
2708 <!-- The first strong directional character determines the paragraph direction. If
2709 there is no strong directional character, the paragraph direction is RTL. -->
2710 <enum name="firstStrongRtl" value="7" />
2713 <!-- Defines the alignment of the text. -->
2714 <attr name="textAlignment" format="integer">
2716 <enum name="inherit" value="0" />
2717 <!-- Default for the root view. The gravity determines the alignment, ALIGN_NORMAL,
2718 ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s
2720 <enum name="gravity" value="1" />
2721 <!-- Align to the start of the paragraph, for example: ALIGN_NORMAL. -->
2722 <enum name="textStart" value="2" />
2723 <!-- Align to the end of the paragraph, for example: ALIGN_OPPOSITE. -->
2724 <enum name="textEnd" value="3" />
2725 <!-- Center the paragraph, for example: ALIGN_CENTER. -->
2726 <enum name="center" value="4" />
2727 <!-- Align to the start of the view, which is ALIGN_LEFT if the view’s resolved
2728 layoutDirection is LTR, and ALIGN_RIGHT otherwise. -->
2729 <enum name="viewStart" value="5" />
2730 <!-- Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved
2731 layoutDirection is LTR, and ALIGN_LEFT otherwise. -->
2732 <enum name="viewEnd" value="6" />
2735 <!-- Describes whether or not this view is important for accessibility.
2736 If it is important, the view fires accessibility events and is
2737 reported to accessibility services that query the screen. Note:
2738 While not recommended, an accessibility service may decide to
2739 ignore this attribute and operate on all views in the view tree. -->
2740 <attr name="importantForAccessibility" format="integer">
2741 <!-- The system determines whether the view is important for accessibility - default
2743 <enum name="auto" value="0" />
2744 <!-- The view is important for accessibility. -->
2745 <enum name="yes" value="1" />
2746 <!-- The view is not important for accessibility. -->
2747 <enum name="no" value="2" />
2748 <!-- The view is not important for accessibility, nor are any of its descendant
2750 <enum name="noHideDescendants" value="4" />
2753 <!-- Indicates to accessibility services whether the user should be notified when
2754 this view changes. -->
2755 <attr name="accessibilityLiveRegion" format="integer">
2756 <!-- Accessibility services should not announce changes to this view. -->
2757 <enum name="none" value="0" />
2758 <!-- Accessibility services should announce changes to this view. -->
2759 <enum name="polite" value="1" />
2760 <!-- Accessibility services should interrupt ongoing speech to immediately
2761 announce changes to this view. -->
2762 <enum name="assertive" value="2" />
2765 <!-- Specifies the id of a view for which this view serves as a label for
2766 accessibility purposes. For example, a TextView before an EditText in
2767 the UI usually specifies what infomation is contained in the EditText.
2768 Hence, the TextView is a label for the EditText. -->
2769 <attr name="labelFor" format="reference" />
2771 <!-- Specifies a theme override for a view. When a theme override is set, the
2772 view will be inflated using a {@link android.content.Context} themed with
2773 the specified resource. During XML inflation, any child views under the
2774 view with a theme override will inherit the themed context. -->
2775 <attr name="theme" />
2777 <!-- Names a View such that it can be identified for Transitions. Names should be
2778 unique in the View hierarchy. -->
2779 <attr name="transitionName" format="string" />
2781 <!-- Specifies that this view should permit nested scrolling within a compatible
2783 <attr name="nestedScrollingEnabled" format="boolean" />
2785 <!-- Sets the state-based animator for the View. -->
2786 <attr name="stateListAnimator" format="reference"/>
2788 <!-- Tint to apply to the background. -->
2789 <attr name="backgroundTint" format="color" />
2791 <!-- Blending mode used to apply the background tint. -->
2792 <attr name="backgroundTintMode">
2793 <!-- The tint is drawn on top of the drawable.
2794 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
2795 <enum name="src_over" value="3" />
2796 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
2797 color channels are thrown out. [Sa * Da, Sc * Da] -->
2798 <enum name="src_in" value="5" />
2799 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
2800 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
2801 <enum name="src_atop" value="9" />
2802 <!-- Multiplies the color and alpha channels of the drawable with those of
2803 the tint. [Sa * Da, Sc * Dc] -->
2804 <enum name="multiply" value="14" />
2805 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
2806 <enum name="screen" value="15" />
2807 <!-- Combines the tint and drawable color and alpha channels, clamping the
2808 result to valid color values. Saturate(S + D) -->
2809 <enum name="add" value="16" />
2812 <!-- ViewOutlineProvider used to determine the View's Outline. -->
2813 <attr name="outlineProvider">
2814 <!-- Default, background drawable-driven outline. -->
2815 <enum name="background" value="0" />
2816 <!-- No outline provider. -->
2817 <enum name="none" value="1" />
2818 <!-- Generates an opaque outline for the bounds of the view. -->
2819 <enum name="bounds" value="2" />
2820 <!-- Generates an opaque outline for the padded bounds of the view. -->
2821 <enum name="paddedBounds" value="3" />
2824 <!-- Defines the drawable to draw over the content. This can be used as an overlay.
2825 The foreground drawable participates in the padding of the content if the gravity
2827 <attr name="foreground" format="reference|color" />
2828 <!-- Defines the gravity to apply to the foreground drawable. The gravity defaults
2830 <attr name="foregroundGravity">
2831 <!-- Push object to the top of its container, not changing its size. -->
2832 <flag name="top" value="0x30" />
2833 <!-- Push object to the bottom of its container, not changing its size. -->
2834 <flag name="bottom" value="0x50" />
2835 <!-- Push object to the left of its container, not changing its size. -->
2836 <flag name="left" value="0x03" />
2837 <!-- Push object to the right of its container, not changing its size. -->
2838 <flag name="right" value="0x05" />
2839 <!-- Place object in the vertical center of its container, not changing its size. -->
2840 <flag name="center_vertical" value="0x10" />
2841 <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
2842 <flag name="fill_vertical" value="0x70" />
2843 <!-- Place object in the horizontal center of its container, not changing its size. -->
2844 <flag name="center_horizontal" value="0x01" />
2845 <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
2846 <flag name="fill_horizontal" value="0x07" />
2847 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
2848 <flag name="center" value="0x11" />
2849 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
2850 <flag name="fill" value="0x77" />
2851 <!-- Additional option that can be set to have the top and/or bottom edges of
2852 the child clipped to its container's bounds.
2853 The clip will be based on the vertical gravity: a top gravity will clip the bottom
2854 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
2855 <flag name="clip_vertical" value="0x80" />
2856 <!-- Additional option that can be set to have the left and/or right edges of
2857 the child clipped to its container's bounds.
2858 The clip will be based on the horizontal gravity: a left gravity will clip the right
2859 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
2860 <flag name="clip_horizontal" value="0x08" />
2862 <!-- Defines whether the foreground drawable should be drawn inside the padding.
2863 This property is turned on by default. -->
2864 <attr name="foregroundInsidePadding" format="boolean" />
2865 <!-- Tint to apply to the foreground. -->
2866 <attr name="foregroundTint" format="color" />
2867 <!-- Blending mode used to apply the foreground tint. -->
2868 <attr name="foregroundTintMode">
2869 <!-- The tint is drawn on top of the drawable.
2870 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
2871 <enum name="src_over" value="3" />
2872 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
2873 color channels are thrown out. [Sa * Da, Sc * Da] -->
2874 <enum name="src_in" value="5" />
2875 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
2876 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
2877 <enum name="src_atop" value="9" />
2878 <!-- Multiplies the color and alpha channels of the drawable with those of
2879 the tint. [Sa * Da, Sc * Dc] -->
2880 <enum name="multiply" value="14" />
2881 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
2882 <enum name="screen" value="15" />
2883 <!-- Combines the tint and drawable color and alpha channels, clamping the
2884 result to valid color values. Saturate(S + D) -->
2885 <enum name="add" value="16" />
2888 <!-- Defines which scroll indicators should be displayed when the view
2889 can be scrolled. Multiple values may be combined using logical OR,
2890 for example "top|bottom". -->
2891 <attr name="scrollIndicators">
2892 <!-- No scroll indicators are displayed. -->
2893 <flag name="none" value="0x00" />
2894 <!-- Displays top scroll indicator when view can be scrolled up. -->
2895 <flag name="top" value="0x01" />
2896 <!-- Displays bottom scroll indicator when vew can be scrolled down. -->
2897 <flag name="bottom" value="0x02" />
2898 <!-- Displays left scroll indicator when vew can be scrolled left. -->
2899 <flag name="left" value="0x04" />
2900 <!-- Displays right scroll indicator when vew can be scrolled right. -->
2901 <flag name="right" value="0x08" />
2902 <!-- Displays right scroll indicator when vew can be scrolled in the
2903 start direction. -->
2904 <flag name="start" value="0x10" />
2905 <!-- Displays right scroll indicator when vew can be scrolled in the
2907 <flag name="end" value="0x20" />
2910 <attr name="pointerIcon">
2911 <!-- Null icon, pointer becomes invisible. -->
2912 <enum name="none" value="0" />
2913 <!-- The default icon of arrow pointer. -->
2914 <enum name="arrow" value="1000" />
2915 <!-- Pointer icon indicating context-menu will appear. -->
2916 <enum name="context_menu" value="1001" />
2917 <!-- Pointer icon of a hand with the index finger. -->
2918 <enum name="hand" value="1002" />
2919 <!-- Pointer icon indicating help. -->
2920 <enum name="help" value="1003" />
2921 <!-- Pointer icon indicating something is going on and waiting. -->
2922 <enum name="wait" value="1004" />
2923 <!-- Pointer icon for cell and grid. -->
2924 <enum name="cell" value="1006" />
2925 <!-- Pointer icon of crosshair, indicating to spot a location. -->
2926 <enum name="crosshair" value="1007" />
2927 <!-- Pointer icon of I-beam, usually for text. -->
2928 <enum name="text" value="1008" />
2929 <!-- Pointer icon of I-beam with 90-degree rotated, for vertical text. -->
2930 <enum name="vertical_text" value="1009" />
2931 <!-- Pointer icon of 'alias', indicating an alias of/shortcut to something is to be
2933 <enum name="alias" value="1010" />
2934 <!-- Pointer icon of 'copy', used for drag/drop. -->
2935 <enum name="copy" value="1011" />
2936 <!-- Pointer icon of 'no-drop', indicating the drop will not be accepted at the
2937 current location. -->
2938 <enum name="no_drop" value="1012" />
2939 <!-- Pointer icon of four-way arrows, indicating scrolling all direction. -->
2940 <enum name="all_scroll" value="1013" />
2941 <!-- Pointer icon of horizontal double arrow, indicating horizontal resize. -->
2942 <enum name="horizontal_double_arrow" value="1014" />
2943 <!-- Pointer icon of vertical double arrow, indicating vertical resize. -->
2944 <enum name="vertical_double_arrow" value="1015" />
2945 <!-- Pointer icon of diagonal double arrow, starting from top-right to bottom-left.
2946 Indicating freeform resize. -->
2947 <enum name="top_right_diagonal_double_arrow" value="1016" />
2948 <!-- Pointer icon of diagonal double arrow, starting from top-left to bottom-right.
2949 Indicating freeform resize. -->
2950 <enum name="top_left_diagonal_double_arrow" value="1017" />
2951 <!-- Pointer icon indicating zoom-in. -->
2952 <enum name="zoom_in" value="1018" />
2953 <!-- Pointer icon indicating zoom-out. -->
2954 <enum name="zoom_out" value="1019" />
2955 <!-- Pointer icon of a hand sign to grab something. -->
2956 <enum name="grab" value="1020" />
2957 <!-- Pointer icon of a hand sign while grabbing something. -->
2958 <enum name="grabbing" value="1021" />
2961 <!-- Whether this view has elements that may overlap when drawn. See
2962 {@link android.view.View#forceHasOverlappingRendering(boolean)}. -->
2963 <attr name="forceHasOverlappingRendering" format="boolean" />
2965 <!-- Defines text displayed in a small popup window on hover or long press. -->
2966 <attr name="tooltipText" format="string" localization="suggested" />
2968 <!-- Whether this view is a root of a keyboard navigation cluster.
2969 See {@link android.view.View#setKeyboardNavigationCluster(boolean)}. -->
2970 <attr name="keyboardNavigationCluster" format="boolean" />
2972 <attr name="__removed0" format="boolean" />
2974 <!-- Defines the next keyboard navigation cluster.
2976 If the reference refers to a view that does not exist or is part
2977 of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
2978 will result when the reference is accessed.-->
2979 <attr name="nextClusterForward" format="reference"/>
2981 <attr name="__removed1" format="reference"/>
2983 <!-- Whether this view is a default-focus view.
2984 Only one view per keyboard navigation cluster can have this attribute set to true.
2985 See {@link android.view.View#setFocusedByDefault(boolean)}. -->
2986 <attr name="focusedByDefault" format="boolean" />
2988 <!-- Whether this View should use a default focus highlight when it gets focused but
2989 doesn't have {@link android.R.attr#state_focused} defined in its background. -->
2990 <attr name="defaultFocusHighlightEnabled" format="boolean" />
2991 </declare-styleable>
2993 <!-- Attributes that can be assigned to a tag for a particular View. -->
2994 <declare-styleable name="ViewTag">
2995 <!-- Specifies the key identifying a tag. This must be a resource reference. -->
2997 <!-- Specifies the value with which to tag the view. -->
2998 <attr name="value" />
2999 </declare-styleable>
3001 <!-- Attributes that can be assigned to an <include> tag.
3003 <declare-styleable name="Include">
3005 <attr name="visibility" />
3006 </declare-styleable>
3008 <!-- Attributes that can be used with a {@link android.view.ViewGroup} or any
3009 of its subclasses. Also see {@link #ViewGroup_Layout} for
3010 attributes that this class processes in its children. -->
3011 <declare-styleable name="ViewGroup">
3012 <!-- Defines whether changes in layout (caused by adding and removing items) should
3013 cause a LayoutTransition to run. When this flag is set to true, a default
3014 LayoutTransition object will be set on the ViewGroup container and default
3015 animations will run when these layout changes occur.-->
3016 <attr name="animateLayoutChanges" format="boolean" />
3017 <!-- Defines whether a child is limited to draw inside of its bounds or not.
3018 This is useful with animations that scale the size of the children to more
3019 than 100% for instance. In such a case, this property should be set to false
3020 to allow the children to draw outside of their bounds. The default value of
3021 this property is true. -->
3022 <attr name="clipChildren" format="boolean" />
3023 <!-- Defines whether the ViewGroup will clip its children and resize (but not clip) any
3024 EdgeEffect to its padding, if padding is not zero. This property is set to true by
3026 <attr name="clipToPadding" format="boolean" />
3027 <!-- Defines the layout animation to use the first time the ViewGroup is laid out.
3028 Layout animations can also be started manually after the first layout. -->
3029 <attr name="layoutAnimation" format="reference" />
3030 <!-- Defines whether layout animations should create a drawing cache for their
3031 children. Enabling the animation cache consumes more memory and requires
3032 a longer initialization but provides better performance. The animation
3033 cache is enabled by default. -->
3034 <attr name="animationCache" format="boolean" />
3035 <!-- Defines the persistence of the drawing cache. The drawing cache might be
3036 enabled by a ViewGroup for all its children in specific situations (for
3037 instance during a scrolling.) This property lets you persist the cache
3038 in memory after its initial usage. Persisting the cache consumes more
3039 memory but may prevent frequent garbage collection is the cache is created
3040 over and over again. By default the persistence is set to scrolling. -->
3041 <attr name="persistentDrawingCache">
3042 <!-- The drawing cache is not persisted after use. -->
3043 <flag name="none" value="0x0" />
3044 <!-- The drawing cache is persisted after a layout animation. -->
3045 <flag name="animation" value="0x1" />
3046 <!-- The drawing cache is persisted after a scroll. -->
3047 <flag name="scrolling" value="0x2" />
3048 <!-- The drawing cache is always persisted. -->
3049 <flag name="all" value="0x3" />
3051 <!-- Defines whether the ViewGroup should always draw its children using their
3052 drawing cache or not. The default value is true. -->
3053 <attr name="alwaysDrawnWithCache" format="boolean" />
3054 <!-- Sets whether this ViewGroup's drawable states also include
3055 its children's drawable states. This is used, for example, to
3056 make a group appear to be focused when its child EditText or button
3058 <attr name="addStatesFromChildren" format="boolean" />
3060 <!-- Defines the relationship between the ViewGroup and its descendants
3061 when looking for a View to take focus. -->
3062 <attr name="descendantFocusability">
3063 <!-- The ViewGroup will get focus before any of its descendants. -->
3064 <enum name="beforeDescendants" value="0" />
3065 <!-- The ViewGroup will get focus only if none of its descendants want it. -->
3066 <enum name="afterDescendants" value="1" />
3067 <!-- The ViewGroup will block its descendants from receiving focus. -->
3068 <enum name="blocksDescendants" value="2" />
3071 <!-- Set to true if this ViewGroup blocks focus in the presence of a touchscreen. -->
3072 <attr name="touchscreenBlocksFocus" format="boolean" />
3074 <!-- Sets whether this ViewGroup should split MotionEvents
3075 to separate child views during touch event dispatch.
3076 If false (default), touch events will be dispatched to
3077 the child view where the first pointer went down until
3078 the last pointer goes up.
3079 If true, touch events may be dispatched to multiple children.
3080 MotionEvents for each pointer will be dispatched to the child
3081 view where the initial ACTION_DOWN event happened.
3082 See {@link android.view.ViewGroup#setMotionEventSplittingEnabled(boolean)}
3083 for more information. -->
3084 <attr name="splitMotionEvents" format="boolean" />
3086 <!-- Defines the layout mode of this ViewGroup. -->
3087 <attr name="layoutMode">
3088 <!-- Use the children's clip bounds when laying out this container. -->
3089 <enum name="clipBounds" value="0" />
3090 <!-- Use the children's optical bounds when laying out this container. -->
3091 <enum name="opticalBounds" value="1" />
3094 <!-- Sets whether or not this ViewGroup should be treated as a single entity
3095 when doing an Activity transition. Typically, the elements inside a
3096 ViewGroup are each transitioned from the scene individually. The default
3097 for a ViewGroup is false unless it has a background. See
3098 {@link android.app.ActivityOptions#makeSceneTransitionAnimation(android.app.Activity,
3099 android.view.View, String)} for more information. Corresponds to
3100 {@link android.view.ViewGroup#setTransitionGroup(boolean)}.-->
3101 <attr name="transitionGroup" format="boolean" />
3102 </declare-styleable>
3104 <!-- A {@link android.view.ViewStub} lets you lazily include other XML layouts
3105 inside your application at runtime. -->
3106 <declare-styleable name="ViewStub">
3107 <!-- Supply an identifier name for this view. -->
3109 <!-- Supply an identifier for the layout resource to inflate when the ViewStub
3110 becomes visible or when forced to do so. The layout resource must be a
3111 valid reference to a layout. -->
3112 <attr name="layout" format="reference" />
3113 <!-- Overrides the id of the inflated View with this value. -->
3114 <attr name="inflatedId" format="reference" />
3115 </declare-styleable>
3117 <!-- ===================================== -->
3118 <!-- View package parent layout attributes -->
3119 <!-- ===================================== -->
3122 <!-- This is the basic set of layout attributes that are common to all
3123 layout managers. These attributes are specified with the rest of
3124 a view's normal attributes (such as {@link android.R.attr#background},
3125 but will be parsed by the view's parent and ignored by the child.
3126 <p>The values defined here correspond to the base layout attribute
3127 class {@link android.view.ViewGroup.LayoutParams}. -->
3128 <declare-styleable name="ViewGroup_Layout">
3129 <!-- Specifies the basic width of the view. This is a required attribute
3130 for any view inside of a containing layout manager. Its value may
3131 be a dimension (such as "12dip") for a constant width or one of
3132 the special constants. -->
3133 <attr name="layout_width" format="dimension">
3134 <!-- The view should be as big as its parent (minus padding).
3135 This constant is deprecated starting from API Level 8 and
3136 is replaced by {@code match_parent}. -->
3137 <enum name="fill_parent" value="-1" />
3138 <!-- The view should be as big as its parent (minus padding).
3139 Introduced in API Level 8. -->
3140 <enum name="match_parent" value="-1" />
3141 <!-- The view should be only big enough to enclose its content (plus padding). -->
3142 <enum name="wrap_content" value="-2" />
3145 <!-- Specifies the basic height of the view. This is a required attribute
3146 for any view inside of a containing layout manager. Its value may
3147 be a dimension (such as "12dip") for a constant height or one of
3148 the special constants. -->
3149 <attr name="layout_height" format="dimension">
3150 <!-- The view should be as big as its parent (minus padding).
3151 This constant is deprecated starting from API Level 8 and
3152 is replaced by {@code match_parent}. -->
3153 <enum name="fill_parent" value="-1" />
3154 <!-- The view should be as big as its parent (minus padding).
3155 Introduced in API Level 8. -->
3156 <enum name="match_parent" value="-1" />
3157 <!-- The view should be only big enough to enclose its content (plus padding). -->
3158 <enum name="wrap_content" value="-2" />
3160 </declare-styleable>
3162 <!-- This is the basic set of layout attributes for layout managers that
3163 wish to place margins around their child views.
3164 These attributes are specified with the rest of
3165 a view's normal attributes (such as {@link android.R.attr#background},
3166 but will be parsed by the view's parent and ignored by the child.
3167 <p>The values defined here correspond to the base layout attribute
3168 class {@link android.view.ViewGroup.MarginLayoutParams}. -->
3169 <declare-styleable name="ViewGroup_MarginLayout">
3170 <attr name="layout_width" />
3171 <attr name="layout_height" />
3172 <!-- Specifies extra space on the left, top, right and bottom
3173 sides of this view. If both layout_margin and any of layout_marginLeft,
3174 layout_marginRight, layout_marginStart, layout_marginEnd,
3175 layout_marginTop, and layout_marginBottom are
3176 also specified, the layout_margin value will take precedence over the
3177 edge-specific values. This space is outside this view's bounds.
3178 Margin values should be positive. -->
3179 <attr name="layout_margin" format="dimension" />
3180 <!-- Specifies extra space on the left side of this view.
3181 This space is outside this view's bounds.
3182 Margin values should be positive. -->
3183 <attr name="layout_marginLeft" format="dimension" />
3184 <!-- Specifies extra space on the top side of this view.
3185 This space is outside this view's bounds.
3186 Margin values should be positive.-->
3187 <attr name="layout_marginTop" format="dimension" />
3188 <!-- Specifies extra space on the right side of this view.
3189 This space is outside this view's bounds.
3190 Margin values should be positive.-->
3191 <attr name="layout_marginRight" format="dimension" />
3192 <!-- Specifies extra space on the bottom side of this view.
3193 This space is outside this view's bounds.
3194 Margin values should be positive.-->
3195 <attr name="layout_marginBottom" format="dimension" />
3196 <!-- Specifies extra space on the start side of this view.
3197 This space is outside this view's bounds.
3198 Margin values should be positive.-->
3199 <attr name="layout_marginStart" format="dimension" />
3200 <!-- Specifies extra space on the end side of this view.
3201 This space is outside this view's bounds.
3202 Margin values should be positive.-->
3203 <attr name="layout_marginEnd" format="dimension" />
3204 <!-- Specifies extra space on the left and right sides of this view.
3205 Specifying layout_marginHorizontal is equivalent to specifying
3206 either layout_marginLeft and layout_marginRight or
3207 layout_marginStart and layout_marginEnd with that same value.
3208 If both layout_marginHorizontal and any of layout_marginLeft,
3209 layout_marginRight, layout_marginStart, and layout_marginEnd are
3210 also specified, the layout_marginHorizontal value will take precedence over the
3211 edge-specific values. Also, layout_margin will always take precedence over
3212 any of these values, including layout_marginHorizontal.
3213 This space is outside this view's bounds.
3214 Margin values should be positive.-->
3215 <attr name="layout_marginHorizontal" format="dimension" />
3216 <!-- Specifies extra space on the top and bottom sides of this view.
3217 Specifying layout_marginVertical is equivalent to specifying
3218 layout_marginTop and layout_marginBottom with that same value.
3219 If both layout_marginVertical and either/both layout_marginTop and
3220 layout_marginBottom are also specified, the layout_marginVertical value
3221 will take precedence over the edge-specific values.
3222 Also, layout_margin will always take precedence over
3223 any of these values, including layout_marginVertical.
3224 This space is outside this view's bounds.
3225 Margin values should be positive.-->
3226 <attr name="layout_marginVertical" format="dimension" />
3227 </declare-styleable>
3229 <!-- Use <code>input-method</code> as the root tag of the XML resource that
3231 {@link android.view.inputmethod.InputMethod} service, which is
3233 {@link android.view.inputmethod.InputMethod#SERVICE_META_DATA}
3234 meta-data entry. Described here are the attributes that can be
3235 included in that tag. -->
3236 <declare-styleable name="InputMethod">
3237 <!-- Component name of an activity that allows the user to modify
3238 the settings for this service. -->
3239 <attr name="settingsActivity" format="string" />
3240 <!-- Set to true in all of the configurations for which this input
3241 method should be considered an option as the default. -->
3242 <attr name="isDefault" format="boolean" />
3243 <!-- Set to true if this input method supports ways to switch to
3244 a next input method (for example, a globe key.). When this is true and
3245 InputMethodManager#shouldOfferSwitchingToNextInputMethod() returns true,
3246 the IME has to offer ways to invoke InputMethodManager#switchToNextInputMethod()
3248 <p> Note that the system determines the most appropriate next input method
3249 and subtype in order to provide the consistent user experience in switching
3250 between IMEs and subtypes. -->
3251 <attr name="supportsSwitchingToNextInputMethod" format="boolean" />
3252 <attr name="__removed2" format="boolean" />
3253 </declare-styleable>
3255 <!-- This is the subtype of InputMethod. Subtype can describe locales (for example, en_US and
3256 fr_FR) and modes (for example, voice and keyboard), and is used for IME switch. This
3257 subtype allows the system to call the specified subtype of the IME directly. -->
3258 <declare-styleable name="InputMethod_Subtype">
3259 <!-- The name of the subtype. -->
3260 <attr name="label" />
3261 <!-- The icon of the subtype. -->
3262 <attr name="icon" />
3263 <!-- The locale of the subtype. This string should be a locale (for example en_US and fr_FR)
3264 and will be passed to the IME when the framework calls the IME
3265 with the subtype. This is also used by the framework to know the supported locales
3267 <attr name="imeSubtypeLocale" format="string" />
3268 <!-- The mode of the subtype. This string can be a mode (for example, voice and keyboard)
3269 and this string will be passed to the IME when the framework calls the IME with the
3270 subtype. {@link android.view.inputmethod.InputMethodSubtype#getLocale()} returns the
3271 value specified in this attribute. -->
3272 <attr name="imeSubtypeMode" format="string" />
3273 <!-- Set true if the subtype is auxiliary. An auxiliary subtype won't be shown in the
3274 input method selection list in the settings app.
3275 InputMethodManager#switchToLastInputMethod will ignore auxiliary subtypes when it
3276 chooses a target subtype. -->
3277 <attr name="isAuxiliary" format="boolean" />
3278 <!-- Set true when this subtype should be selected by default if no other subtypes are
3279 selected explicitly. Note that a subtype with this parameter being true will
3280 not be shown in the subtypes list. -->
3281 <attr name="overridesImplicitlyEnabledSubtype" format="boolean" />
3282 <!-- The extra value of the subtype. This string can be any string and will be passed to
3283 the IME when the framework calls the IME with the subtype. -->
3284 <attr name="imeSubtypeExtraValue" format="string" />
3285 <!-- The unique id for the subtype. The input method framework keeps track of enabled
3286 subtypes by ID. When the IME package gets upgraded, enabled IDs will stay enabled even
3287 if other attributes are different. If the ID is unspecified (by calling the other
3288 constructor or 0. Arrays.hashCode(new Object[] {locale, mode, extraValue,
3289 isAuxiliary, overridesImplicitlyEnabledSubtype}) will be used instead. -->
3290 <attr name="subtypeId" format="integer"/>
3291 <!-- Set to true if this subtype is ASCII capable. If the subtype is ASCII
3292 capable, it should guarantee that the user can input ASCII characters with
3293 this subtype. This is important because many password fields only allow
3294 ASCII-characters. -->
3295 <attr name="isAsciiCapable" format="boolean" />
3296 <!-- The BCP-47 Language Tag of the subtype. This replaces
3297 {@link android.R.styleable#InputMethod_Subtype_imeSubtypeLocale}. -->
3298 <attr name="languageTag" format="string" />
3299 </declare-styleable>
3301 <!-- Use <code>spell-checker</code> as the root tag of the XML resource that
3303 {@link android.service.textservice.SpellCheckerService} service, which is
3305 {@link android.view.textservice.SpellCheckerSession#SERVICE_META_DATA}
3306 meta-data entry. Described here are the attributes that can be
3307 included in that tag. -->
3308 <declare-styleable name="SpellChecker">
3309 <!-- The name of the spell checker. -->
3310 <attr name="label" />
3311 <!-- Component name of an activity that allows the user to modify
3312 the settings for this service. -->
3313 <attr name="settingsActivity"/>
3314 </declare-styleable>
3316 <!-- This is the subtype of the spell checker. Subtype can describe locales (for example,
3317 en_US and fr_FR). -->
3318 <declare-styleable name="SpellChecker_Subtype">
3319 <!-- The name of the subtype. -->
3320 <attr name="label" />
3321 <!-- The locale of the subtype. This string should be a locale (for example, en_US and
3322 fr_FR). This is also used by the framework to know the supported locales
3323 of the spell checker. {@link android.view.textservice.SpellCheckerSubtype#getLocale()}
3324 returns the value specified in this attribute. -->
3325 <attr name="subtypeLocale" format="string" />
3326 <!-- The extra value of the subtype. This string can be any string and will be passed to
3327 the SpellChecker. -->
3328 <attr name="subtypeExtraValue" format="string" />
3329 <!-- The unique id for the subtype. The text service (spell checker) framework keeps track
3330 of enabled subtypes by ID. When the spell checker package gets upgraded, enabled IDs
3331 will stay enabled even if other attributes are different. If the ID is unspecified or
3332 explicitly specified to 0 in XML resources,
3333 {@code Arrays.hashCode(new Object[] {subtypeLocale, extraValue})} will be used instead.
3335 <attr name="subtypeId" />
3336 <!-- The BCP-47 Language Tag of the subtype. This replaces
3337 {@link android.R.styleable#SpellChecker_Subtype_subtypeLocale}. -->
3338 <attr name="languageTag" />
3339 </declare-styleable>
3341 <!-- Use <code>accessibility-service</code> as the root tag of the XML resource that
3342 describes an {@link android.accessibilityservice.AccessibilityService} service,
3343 which is referenced from its
3344 {@link android.accessibilityservice.AccessibilityService#SERVICE_META_DATA}
3345 meta-data entry. -->
3346 <declare-styleable name="AccessibilityService">
3347 <!-- The event types this service would like to receive as specified in
3348 {@link android.view.accessibility.AccessibilityEvent}. This setting
3349 can be changed at runtime by calling
3350 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
3351 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
3352 <attr name="accessibilityEventTypes">
3353 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_CLICKED} events.-->
3354 <flag name="typeViewClicked" value="0x00000001" />
3355 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_LONG_CLICKED} events. -->
3356 <flag name="typeViewLongClicked" value="0x00000002" />
3357 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_SELECTED} events. -->
3358 <flag name="typeViewSelected" value="0x00000004" />
3359 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_FOCUSED} events. -->
3360 <flag name="typeViewFocused" value="0x00000008" />
3361 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED} events. -->
3362 <flag name="typeViewTextChanged" value="0x00000010" />
3363 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED} events. -->
3364 <flag name="typeWindowStateChanged" value="0x00000020" />
3365 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED} events. -->
3366 <flag name="typeNotificationStateChanged" value="0x00000040" />
3367 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_HOVER_ENTER} events. -->
3368 <flag name="typeViewHoverEnter" value="0x00000080" />
3369 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_HOVER_EXIT} events. -->
3370 <flag name="typeViewHoverExit" value="0x00000100" />
3371 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START} events. -->
3372 <flag name="typeTouchExplorationGestureStart" value="0x00000200" />
3373 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END} events. -->
3374 <flag name="typeTouchExplorationGestureEnd" value="0x00000400" />
3375 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED} events. -->
3376 <flag name="typeWindowContentChanged" value="0x00000800" />
3377 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_SCROLLED} events. -->
3378 <flag name="typeViewScrolled" value="0x000001000" />
3379 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED} events. -->
3380 <flag name="typeViewTextSelectionChanged" value="0x000002000" />
3381 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_ANNOUNCEMENT} events. -->
3382 <flag name="typeAnnouncement" value="0x00004000" />
3383 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUSED} events. -->
3384 <flag name="typeViewAccessibilityFocused" value="0x00008000" />
3385 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED} events. -->
3386 <flag name="typeViewAccessibilityFocusCleared" value="0x00010000" />
3387 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY} events. -->
3388 <flag name="typeViewTextTraversedAtMovementGranularity" value="0x00020000" />
3389 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_GESTURE_DETECTION_START} events. -->
3390 <flag name="typeGestureDetectionStart" value="0x00040000" />
3391 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_GESTURE_DETECTION_END} events. -->
3392 <flag name="typeGestureDetectionEnd" value="0x00080000" />
3393 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_INTERACTION_START} events. -->
3394 <flag name="typeTouchInteractionStart" value="0x00100000" />
3395 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_INTERACTION_END} events. -->
3396 <flag name="typeTouchInteractionEnd" value="0x00200000" />
3397 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOWS_CHANGED} events. -->
3398 <flag name="typeWindowsChanged" value="0x00400000" />
3399 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_CONTEXT_CLICKED} events. -->
3400 <flag name="typeContextClicked" value="0x00800000" />
3401 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_ASSIST_READING_CONTEXT} events. -->
3402 <flag name="typeAssistReadingContext" value="0x01000000" />
3403 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPES_ALL_MASK} i.e. all events. -->
3404 <flag name="typeAllMask" value="0xffffffff" />
3406 <!-- Comma separated package names from which this service would like to receive events (leave out for all packages).
3407 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
3408 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
3409 <attr name="packageNames" format="string" />
3410 <!-- The feedback types this service provides as specified in
3411 {@link android.accessibilityservice.AccessibilityServiceInfo}. This setting
3412 can be changed at runtime by calling
3413 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
3414 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
3415 <attr name="accessibilityFeedbackType">
3416 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_SPOKEN} feedback. -->
3417 <flag name="feedbackSpoken" value="0x00000001" />
3418 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_HAPTIC} feedback. -->
3419 <flag name="feedbackHaptic" value="0x00000002" />
3420 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_AUDIBLE} feedback. -->
3421 <flag name="feedbackAudible" value="0x00000004" />
3422 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_VISUAL} feedback. -->
3423 <flag name="feedbackVisual" value="0x00000008" />
3424 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_GENERIC} feedback. -->
3425 <flag name="feedbackGeneric" value="0x00000010" />
3426 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_ALL_MASK} feedback. -->
3427 <flag name="feedbackAllMask" value="0xffffffff" />
3429 <!-- The minimal period in milliseconds between two accessibility events of the same type
3430 are sent to this service. This setting can be changed at runtime by calling
3431 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
3432 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
3433 <attr name="notificationTimeout" format="integer" />
3434 <!-- Additional flags as specified in
3435 {@link android.accessibilityservice.AccessibilityServiceInfo}.
3436 This setting can be changed at runtime by calling
3437 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)
3438 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. -->
3439 <attr name="accessibilityFlags">
3440 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#DEFAULT}. -->
3441 <flag name="flagDefault" value="0x00000001" />
3442 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_INCLUDE_NOT_IMPORTANT_VIEWS}. -->
3443 <flag name="flagIncludeNotImportantViews" value="0x00000002" />
3444 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE}. -->
3445 <flag name="flagRequestTouchExplorationMode" value="0x00000004" />
3446 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY}.
3447 Not used by the framework.
3449 <flag name="flagRequestEnhancedWebAccessibility" value="0x00000008" />
3450 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REPORT_VIEW_IDS}. -->
3451 <flag name="flagReportViewIds" value="0x00000010" />
3452 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS}. -->
3453 <flag name="flagRequestFilterKeyEvents" value="0x00000020" />
3454 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_RETRIEVE_INTERACTIVE_WINDOWS}. -->
3455 <flag name="flagRetrieveInteractiveWindows" value="0x00000040" />
3456 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_ENABLE_ACCESSIBILITY_VOLUME}. -->
3457 <flag name="flagEnableAccessibilityVolume" value="0x00000080" />
3458 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_ACCESSIBILITY_BUTTON}. -->
3459 <flag name="flagRequestAccessibilityButton" value="0x00000100" />
3460 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_FINGERPRINT_GESTURES}. -->
3461 <flag name="flagRequestFingerprintGestures" value="0x00000200" />
3463 <!-- Component name of an activity that allows the user to modify
3464 the settings for this service. This setting cannot be changed at runtime. -->
3465 <attr name="settingsActivity" />
3466 <!-- Attribute whether the accessibility service wants to be able to retrieve the
3467 active window content. This setting cannot be changed at runtime. -->
3468 <attr name="canRetrieveWindowContent" format="boolean" />
3469 <!-- Attribute whether the accessibility service wants to be able to request touch
3470 exploration mode in which touched items are spoken aloud and the UI can be
3471 explored via gestures.
3473 Required to allow setting the {@link android.accessibilityservice
3474 #AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE} flag.
3477 <attr name="canRequestTouchExplorationMode" format="boolean" />
3478 <!-- Attribute whether the accessibility service wants to be able to request enhanced
3479 web accessibility enhancements.
3480 {@deprecated Not used by the framework}
3482 <attr name="canRequestEnhancedWebAccessibility" format="boolean" />
3483 <!-- Attribute whether the accessibility service wants to be able to request to
3486 Required to allow setting the {@link android.accessibilityservice
3487 #AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS} flag.
3490 <attr name="canRequestFilterKeyEvents" format="boolean" />
3491 <!-- Attribute whether the accessibility service wants to be able to control
3492 display magnification.
3494 <attr name="canControlMagnification" format="boolean" />
3495 <!-- Attribute whether the accessibility service wants to be able to perform gestures. -->
3496 <attr name="canPerformGestures" format="boolean" />
3497 <!-- Attribute whether the accessibility service wants to be able to capture gestures from
3498 the fingerprint sensor.
3500 Required to allow setting the {@link android.accessibilityservice
3501 #AccessibilityServiceInfo#FLAG_REQUEST_FINGERPRINT_GESTURES} flag to have any effect.
3504 <attr name="canRequestFingerprintGestures" format="boolean" />
3505 <!-- Short description of the accessibility service purpose or behavior.-->
3506 <attr name="description" />
3507 <!-- Brief summary of the accessibility service purpose or behavior. -->
3508 <attr name="summary" />
3509 </declare-styleable>
3511 <!-- Use <code>print-service</code> as the root tag of the XML resource that
3512 describes an {@link android.printservice.PrintService} service, which is
3513 referenced from its {@link android.printservice.PrintService#SERVICE_META_DATA}
3514 meta-data entry. -->
3515 <declare-styleable name="PrintService">
3516 <!-- Fully qualified class name of an activity that allows the user to modify
3517 the settings for this service. -->
3518 <attr name="settingsActivity" />
3519 <!-- Fully qualified class name of an activity that allows the user to manually
3520 add printers to this print service. -->
3521 <attr name="addPrintersActivity" format="string"/>
3522 <!-- Fully qualified class name of an activity with advanced print options
3523 specific to this print service. -->
3524 <attr name="advancedPrintOptionsActivity" format="string"/>
3525 <!-- The vendor name if this print service is vendor specific. -->
3526 <attr name="vendor" format="string"/>
3527 </declare-styleable>
3529 <!-- Use <code>host-apdu-service</code> as the root tag of the XML resource that
3530 describes an {@link android.nfc.cardemulation.HostApduService} service, which
3531 is referenced from its {@link android.nfc.cardemulation.HostApduService#SERVICE_META_DATA}
3533 <declare-styleable name="HostApduService">
3534 <!-- Short description of the functionality the service implements. This attribute
3536 <attr name="description" />
3537 <!-- Whether the device must be unlocked before routing data to this service.
3538 The default is false.-->
3539 <attr name="requireDeviceUnlock" format="boolean"/>
3540 <!-- A drawable that can be rendered in Android's system UI for representing
3542 <attr name="apduServiceBanner" format="reference"/>
3543 <!-- Component name of an activity that allows the user to modify
3544 the settings for this service. -->
3545 <attr name="settingsActivity"/>
3546 </declare-styleable>
3548 <!-- Use <code>offhost-apdu-service</code> as the root tag of the XML resource that
3549 describes an {@link android.nfc.cardemulation.OffHostApduService}
3550 service, which is referenced from its
3551 {@link android.nfc.cardemulation.OffHostApduService#SERVICE_META_DATA} entry. -->
3552 <declare-styleable name="OffHostApduService">
3553 <!-- Short description of the functionality the service implements. This attribute
3555 <attr name="description" />
3556 <!-- A drawable that can be rendered in Android's system UI for representing
3558 <attr name="apduServiceBanner"/>
3559 <!-- Component name of an activity that allows the user to modify
3560 the settings for this service. -->
3561 <attr name="settingsActivity"/>
3562 </declare-styleable>
3564 <!-- Specify one or more <code>aid-group</code> elements inside a
3565 <code>host-apdu-service</code> or <code>offhost-apdu-service</code>
3566 element to define a group of ISO7816 Application ID (AIDs) that
3567 your service can handle.-->
3568 <declare-styleable name="AidGroup">
3569 <!-- Short description of what the AID group implements. This attribute is mandatory.-->
3570 <attr name="description" />
3571 <!-- The category attribute will be used by the Android platform to present
3572 multiple applications that register ISO 7816 Application IDs (AIDs) in the
3573 same category uniformly.
3574 Additionally, when a category is specified, Android will ensure that either
3575 all AIDs in this group are routed to this application, or none at all.
3576 This attribute is optional.-->
3577 <attr name="category" format="string" />
3578 </declare-styleable>
3580 <!-- Specify one or more <code>aid-filter</code> elements inside a
3581 <code>aid-group</code> element to specify an ISO7816 Application ID (AID)
3582 your service can handle. -->
3583 <declare-styleable name="AidFilter">
3584 <!-- The ISO7816 Application ID. This attribute is mandatory. -->
3585 <attr name="name" />
3586 </declare-styleable>
3588 <!-- Specify one or more <code>aid-prefix-filter</code> elements inside a
3589 <code>aid-group</code> element to specify an ISO7816 Application ID (AID)
3590 prefix your service can handle. -->
3591 <declare-styleable name="AidPrefixFilter">
3592 <!-- The ISO7816 Application ID. This attribute is mandatory. -->
3593 <attr name="name" />
3594 </declare-styleable>
3596 <!-- Use <code>host-nfcf-service</code> as the root tag of the XML resource that
3597 describes an {@link android.nfc.cardemulation.HostNfcFService} service, which
3598 is referenced from its {@link android.nfc.cardemulation.HostNfcFService#SERVICE_META_DATA}
3600 <declare-styleable name="HostNfcFService">
3601 <!-- Short description of the functionality the service implements. This attribute
3603 <attr name="description" />
3604 </declare-styleable>
3606 <!-- Specify one or more <code>system-code-filter</code> elements inside a
3607 <code>host-nfcf-service</code> element to specify a System Code
3608 your service can handle. -->
3609 <declare-styleable name="SystemCodeFilter">
3610 <!-- The System Code. This attribute is mandatory. -->
3611 <attr name="name" />
3612 </declare-styleable>
3614 <!-- Specify one or more <code>nfcid2-filter</code> elements inside a
3615 <code>host-nfcf-service</code> element to specify a NFCID2
3616 your service can handle. -->
3617 <declare-styleable name="Nfcid2Filter">
3618 <!-- The NFCID2. This attribute is mandatory. -->
3619 <attr name="name" />
3620 </declare-styleable>
3622 <declare-styleable name="ActionMenuItemView">
3623 <attr name="minWidth" />
3624 </declare-styleable>
3626 <!-- =============================== -->
3627 <!-- Widget package class attributes -->
3628 <!-- =============================== -->
3631 <declare-styleable name="AbsListView">
3632 <!-- Drawable used to indicate the currently selected item in the list. -->
3633 <attr name="listSelector" format="color|reference" />
3634 <!-- When set to true, the selector will be drawn over the selected item.
3635 Otherwise the selector is drawn behind the selected item. The default
3637 <attr name="drawSelectorOnTop" format="boolean" />
3638 <!-- Used by ListView and GridView to stack their content from the bottom. -->
3639 <attr name="stackFromBottom" format="boolean" />
3640 <!-- When set to true, the list uses a drawing cache during scrolling.
3641 This makes the rendering faster but uses more memory. The default
3643 <attr name="scrollingCache" format="boolean" />
3644 <!-- When set to true, the list will filter results as the user types. The
3645 List's adapter must support the Filterable interface for this to work. -->
3646 <attr name="textFilterEnabled" format="boolean" />
3647 <!-- Sets the transcript mode for the list. In transcript mode, the list
3648 scrolls to the bottom to make new items visible when they are added. -->
3649 <attr name="transcriptMode">
3650 <!-- Disables transcript mode. This is the default value. -->
3651 <enum name="disabled" value="0"/>
3652 <!-- The list will automatically scroll to the bottom when
3653 a data set change notification is received and only if the last item is
3654 already visible on screen. -->
3655 <enum name="normal" value="1" />
3656 <!-- The list will automatically scroll to the bottom, no matter what items
3657 are currently visible. -->
3658 <enum name="alwaysScroll" value="2" />
3660 <!-- Indicates that this list will always be drawn on top of solid, single-color
3661 opaque background. This allows the list to optimize drawing. -->
3662 <attr name="cacheColorHint" format="color" />
3663 <!-- Enables the fast scroll thumb that can be dragged to quickly scroll through
3665 <attr name="fastScrollEnabled" format="boolean" />
3666 <!-- Specifies the style of the fast scroll decorations. -->
3667 <attr name="fastScrollStyle" format="reference" />
3668 <!-- When set to true, the list will use a more refined calculation
3669 method based on the pixels height of the items visible on screen. This
3670 property is set to true by default but should be set to false if your adapter
3671 will display items of varying heights. When this property is set to true and
3672 your adapter displays items of varying heights, the scrollbar thumb will
3673 change size as the user scrolls through the list. When set to false, the list
3674 will use only the number of items in the adapter and the number of items visible
3675 on screen to determine the scrollbar's properties. -->
3676 <attr name="smoothScrollbar" format="boolean" />
3677 <!-- Defines the choice behavior for the view. By default, lists do not have
3678 any choice behavior. By setting the choiceMode to singleChoice, the list
3679 allows up to one item to be in a chosen state. By setting the choiceMode to
3680 multipleChoice, the list allows any number of items to be chosen.
3681 Finally, by setting the choiceMode to multipleChoiceModal the list allows
3682 any number of items to be chosen in a special selection mode.
3683 The application will supply a
3684 {@link android.widget.AbsListView.MultiChoiceModeListener} using
3685 {@link android.widget.AbsListView#setMultiChoiceModeListener} to control the
3686 selection mode. This uses the {@link android.view.ActionMode} API. -->
3687 <attr name="choiceMode">
3688 <!-- Normal list that does not indicate choices. -->
3689 <enum name="none" value="0" />
3690 <!-- The list allows up to one choice. -->
3691 <enum name="singleChoice" value="1" />
3692 <!-- The list allows multiple choices. -->
3693 <enum name="multipleChoice" value="2" />
3694 <!-- The list allows multiple choices in a custom selection mode. -->
3695 <enum name="multipleChoiceModal" value="3" />
3698 <!-- When set to true, the list will always show the fast scroll interface.
3699 This setting implies fastScrollEnabled. -->
3700 <attr name="fastScrollAlwaysVisible" format="boolean" />
3701 </declare-styleable>
3703 <declare-styleable name="RecycleListView">
3704 <!-- Bottom padding to use when no buttons are present. -->
3705 <attr name="paddingBottomNoButtons" format="dimension" />
3706 <!-- Top padding to use when no title is present. -->
3707 <attr name="paddingTopNoTitle" format="dimension" />
3708 </declare-styleable>
3709 <declare-styleable name="AbsSpinner">
3710 <!-- Reference to an array resource that will populate the Spinner. For static content,
3711 this is simpler than populating the Spinner programmatically. -->
3712 <attr name="entries" />
3713 </declare-styleable>
3714 <declare-styleable name="AnalogClock">
3715 <attr name="dial" format="reference"/>
3716 <attr name="hand_hour" format="reference"/>
3717 <attr name="hand_minute" format="reference"/>
3718 </declare-styleable>
3719 <declare-styleable name="Button">
3720 </declare-styleable>
3721 <declare-styleable name="Chronometer">
3722 <!-- Format string: if specified, the Chronometer will display this
3723 string, with the first "%s" replaced by the current timer value
3724 in "MM:SS" or "H:MM:SS" form.
3725 If no format string is specified, the Chronometer will simply display
3726 "MM:SS" or "H:MM:SS". -->
3727 <attr name="format" format="string" localization="suggested" />
3728 <!-- Specifies whether this Chronometer counts down or counts up from the base.
3729 If not specified this is false and the Chronometer counts up. -->
3730 <attr name="countDown" format="boolean" />
3731 </declare-styleable>
3732 <declare-styleable name="CompoundButton">
3733 <!-- Indicates the initial checked state of this button. -->
3734 <attr name="checked" format="boolean" />
3735 <!-- Drawable used for the button graphic (for example, checkbox and radio button). -->
3736 <attr name="button" format="reference" />
3737 <!-- Tint to apply to the button graphic. -->
3738 <attr name="buttonTint" format="color" />
3739 <!-- Blending mode used to apply the button graphic tint. -->
3740 <attr name="buttonTintMode">
3741 <!-- The tint is drawn on top of the drawable.
3742 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
3743 <enum name="src_over" value="3" />
3744 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
3745 color channels are thrown out. [Sa * Da, Sc * Da] -->
3746 <enum name="src_in" value="5" />
3747 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
3748 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
3749 <enum name="src_atop" value="9" />
3750 <!-- Multiplies the color and alpha channels of the drawable with those of
3751 the tint. [Sa * Da, Sc * Dc] -->
3752 <enum name="multiply" value="14" />
3753 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
3754 <enum name="screen" value="15" />
3755 <!-- Combines the tint and drawable color and alpha channels, clamping the
3756 result to valid color values. Saturate(S + D) -->
3757 <enum name="add" value="16" />
3759 </declare-styleable>
3760 <declare-styleable name="CheckedTextView">
3761 <!-- Indicates the initial checked state of this text. -->
3762 <attr name="checked" />
3763 <!-- Drawable used for the check mark graphic. -->
3764 <attr name="checkMark" format="reference"/>
3765 <!-- Tint to apply to the check mark. -->
3766 <attr name="checkMarkTint" format="color" />
3767 <!-- Blending mode used to apply the check mark tint. -->
3768 <attr name="checkMarkTintMode">
3769 <!-- The tint is drawn on top of the drawable.
3770 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
3771 <enum name="src_over" value="3" />
3772 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
3773 color channels are thrown out. [Sa * Da, Sc * Da] -->
3774 <enum name="src_in" value="5" />
3775 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
3776 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
3777 <enum name="src_atop" value="9" />
3778 <!-- Multiplies the color and alpha channels of the drawable with those of
3779 the tint. [Sa * Da, Sc * Dc] -->
3780 <enum name="multiply" value="14" />
3781 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
3782 <enum name="screen" value="15" />
3783 <!-- Combines the tint and drawable color and alpha channels, clamping the
3784 result to valid color values. Saturate(S + D) -->
3785 <enum name="add" value="16" />
3787 <!-- Gravity for aligning a CheckedTextView's checkmark to one side or the other. -->
3788 <attr name="checkMarkGravity">
3789 <!-- Push object to the left of its container, not changing its size. -->
3790 <flag name="left" value="0x03" />
3791 <!-- Push object to the right of its container, not changing its size. -->
3792 <flag name="right" value="0x05" />
3793 <!-- Push object to the beginning of its container, not changing its size. -->
3794 <flag name="start" value="0x00800003" />
3795 <!-- Push object to the end of its container, not changing its size. -->
3796 <flag name="end" value="0x00800005" />
3798 </declare-styleable>
3799 <declare-styleable name="EditText">
3800 </declare-styleable>
3801 <declare-styleable name="FastScroll">
3802 <!-- Drawable used for the scroll bar thumb. -->
3803 <attr name="thumbDrawable" format="reference" />
3804 <!-- Minimum width of the thumb. -->
3805 <attr name="thumbMinWidth" format="dimension" />
3806 <!-- Minimum height of the thumb. -->
3807 <attr name="thumbMinHeight" format="dimension" />
3808 <!-- Drawable used for the scroll bar track. -->
3809 <attr name="trackDrawable" format="reference" />
3810 <!-- Drawable used for the section header preview when right-aligned. -->
3811 <attr name="backgroundRight" format="reference" />
3812 <!-- Drawable used for the section header preview when left-aligned. -->
3813 <attr name="backgroundLeft" format="reference" />
3814 <!-- Position of section header preview. -->
3815 <attr name="position">
3816 <!-- Floating at the top of the content. -->
3817 <enum name="floating" value="0" />
3818 <!-- Pinned to the thumb, vertically centered with the middle of the thumb. -->
3819 <enum name="atThumb" value="1" />
3820 <!-- Pinned to the thumb, vertically centered with the top edge of the thumb. -->
3821 <enum name="aboveThumb" value="2" />
3823 <attr name="textAppearance" />
3824 <attr name="textColor" />
3825 <attr name="textSize" />
3826 <!-- Minimum width of the section header preview. -->
3827 <attr name="minWidth" />
3828 <!-- Minimum height of the section header preview. -->
3829 <attr name="minHeight" />
3830 <!-- Padding for the section header preview. -->
3831 <attr name="padding" />
3832 <!-- Position of thumb in relation to the track. -->
3833 <attr name="thumbPosition">
3834 <!-- The thumb's midpoint is anchored to the track. At its
3835 extremes, the thumb will extend half-way outside the
3837 <enum name="midpoint" value="0" />
3838 <!-- The thumb is entirely inside the track. At its extremes,
3839 the thumb will be contained entirely within the track. -->
3840 <enum name="inside" value="1" />
3842 </declare-styleable>
3843 <declare-styleable name="FrameLayout">
3844 <!-- Determines whether to measure all children or just those in
3845 the VISIBLE or INVISIBLE state when measuring. Defaults to false. -->
3846 <attr name="measureAllChildren" format="boolean" />
3847 </declare-styleable>
3848 <declare-styleable name="ExpandableListView">
3849 <!-- Indicator shown beside the group View. This can be a stateful Drawable. -->
3850 <attr name="groupIndicator" format="reference" />
3851 <!-- Indicator shown beside the child View. This can be a stateful Drawable. -->
3852 <attr name="childIndicator" format="reference" />
3853 <!-- The left bound for an item's indicator. To specify a left bound specific to children,
3854 use childIndicatorLeft. -->
3855 <attr name="indicatorLeft" format="dimension" />
3856 <!-- The right bound for an item's indicator. To specify a right bound specific to children,
3857 use childIndicatorRight. -->
3858 <attr name="indicatorRight" format="dimension" />
3859 <!-- The left bound for a child's indicator. -->
3860 <attr name="childIndicatorLeft" format="dimension" />
3861 <!-- The right bound for a child's indicator. -->
3862 <attr name="childIndicatorRight" format="dimension" />
3863 <!-- Drawable or color that is used as a divider for children. (It will drawn
3864 below and above child items.) The height of this will be the same as
3865 the height of the normal list item divider. -->
3866 <attr name="childDivider" format="reference|color" />
3867 <!-- The start bound for an item's indicator. To specify a start bound specific to children,
3868 use childIndicatorStart. -->
3869 <attr name="indicatorStart" format="dimension" />
3870 <!-- The end bound for an item's indicator. To specify a right bound specific to children,
3871 use childIndicatorEnd. -->
3872 <attr name="indicatorEnd" format="dimension" />
3873 <!-- The start bound for a child's indicator. -->
3874 <attr name="childIndicatorStart" format="dimension" />
3875 <!-- The end bound for a child's indicator. -->
3876 <attr name="childIndicatorEnd" format="dimension" />
3877 </declare-styleable>
3878 <declare-styleable name="Gallery">
3879 <attr name="gravity" />
3880 <!-- Sets how long a transition animation should run (in milliseconds)
3881 when layout has changed. Only relevant if animation is turned on. -->
3882 <attr name="animationDuration" format="integer" min="0" />
3883 <attr name="spacing" format="dimension" />
3884 <!-- Sets the alpha on the items that are not selected. -->
3885 <attr name="unselectedAlpha" format="float" />
3886 </declare-styleable>
3887 <declare-styleable name="GridView">
3888 <!-- Defines the default horizontal spacing between columns. -->
3889 <attr name="horizontalSpacing" format="dimension" />
3890 <!-- Defines the default vertical spacing between rows. -->
3891 <attr name="verticalSpacing" format="dimension" />
3892 <!-- Defines how columns should stretch to fill the available empty space, if any. -->
3893 <attr name="stretchMode">
3894 <!-- Stretching is disabled. -->
3895 <enum name="none" value="0"/>
3896 <!-- The spacing between each column is stretched. -->
3897 <enum name="spacingWidth" value="1" />
3898 <!-- Each column is stretched equally. -->
3899 <enum name="columnWidth" value="2" />
3900 <!-- The spacing between each column is uniformly stretched.. -->
3901 <enum name="spacingWidthUniform" value="3" />
3903 <!-- Specifies the fixed width for each column. -->
3904 <attr name="columnWidth" format="dimension" />
3905 <!-- Defines how many columns to show. -->
3906 <attr name="numColumns" format="integer" min="0">
3907 <!-- Display as many columns as possible to fill the available space. -->
3908 <enum name="auto_fit" value="-1" />
3910 <!-- Specifies the gravity within each cell. -->
3911 <attr name="gravity" />
3912 </declare-styleable>
3913 <declare-styleable name="ImageSwitcher">
3914 </declare-styleable>
3915 <declare-styleable name="ImageView">
3916 <!-- Sets a drawable as the content of this ImageView. -->
3917 <attr name="src" format="reference|color" />
3918 <!-- Controls how the image should be resized or moved to match the size
3919 of this ImageView. See {@link android.widget.ImageView.ScaleType} -->
3920 <attr name="scaleType">
3921 <!-- Scale using the image matrix when drawing. See
3922 {@link android.widget.ImageView#setImageMatrix(Matrix)}. -->
3923 <enum name="matrix" value="0" />
3924 <!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#FILL}. -->
3925 <enum name="fitXY" value="1" />
3926 <!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#START}. -->
3927 <enum name="fitStart" value="2" />
3928 <!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#CENTER}. -->
3929 <enum name="fitCenter" value="3" />
3930 <!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#END}. -->
3931 <enum name="fitEnd" value="4" />
3932 <!-- Center the image in the view, but perform no scaling. -->
3933 <enum name="center" value="5" />
3934 <!-- Scale the image uniformly (maintain the image's aspect ratio) so both dimensions
3935 (width and height) of the image will be equal to or larger than the corresponding
3936 dimension of the view (minus padding). The image is then centered in the view. -->
3937 <enum name="centerCrop" value="6" />
3938 <!-- Scale the image uniformly (maintain the image's aspect ratio) so that both
3939 dimensions (width and height) of the image will be equal to or less than the
3940 corresponding dimension of the view (minus padding). The image is then centered in
3942 <enum name="centerInside" value="7" />
3944 <!-- Set this to true if you want the ImageView to adjust its bounds
3945 to preserve the aspect ratio of its drawable. -->
3946 <attr name="adjustViewBounds" format="boolean" />
3947 <!-- An optional argument to supply a maximum width for this view.
3948 See {see android.widget.ImageView#setMaxWidth} for details. -->
3949 <attr name="maxWidth" format="dimension" />
3950 <!-- An optional argument to supply a maximum height for this view.
3951 See {see android.widget.ImageView#setMaxHeight} for details. -->
3952 <attr name="maxHeight" format="dimension" />
3953 <!-- The tinting color for the image. By default, the tint will blend using SRC_ATOP mode.
3954 Please note that for compatibility reasons, this is NOT consistent with the default
3955 SRC_IN tint mode used by {@link android.widget.ImageView#setImageTintList} and by
3956 similar tint attributes on other views. -->
3957 <attr name="tint" format="color" />
3958 <!-- If true, the image view will be baseline aligned with based on its
3960 <attr name="baselineAlignBottom" format="boolean" />
3961 <!-- If true, the image will be cropped to fit within its padding. -->
3962 <attr name="cropToPadding" format="boolean" />
3963 <!-- The offset of the baseline within this view. See {see android.view.View#getBaseline}
3965 <attr name="baseline" format="dimension" />
3966 <!-- @hide The alpha value (0-255) set on the ImageView's drawable. Equivalent
3967 to calling ImageView.setAlpha(int), not the same as View.setAlpha(float). -->
3968 <attr name="drawableAlpha" format="integer" />
3969 <!-- Blending mode used to apply the image tint. -->
3970 <attr name="tintMode" />
3971 </declare-styleable>
3972 <declare-styleable name="ToggleButton">
3973 <!-- The text for the button when it is checked. -->
3974 <attr name="textOn" format="string" />
3975 <!-- The text for the button when it is not checked. -->
3976 <attr name="textOff" format="string" />
3977 <!-- The alpha to apply to the indicator when disabled. -->
3978 <attr name="disabledAlpha" />
3979 </declare-styleable>
3980 <declare-styleable name="RelativeLayout">
3981 <attr name="gravity" />
3982 <!-- Indicates what view should not be affected by gravity. -->
3983 <attr name="ignoreGravity" format="reference" />
3984 </declare-styleable>
3985 <declare-styleable name="LinearLayout">
3986 <!-- Should the layout be a column or a row? Use "horizontal"
3987 for a row, "vertical" for a column. The default is
3989 <attr name="orientation" />
3990 <attr name="gravity" />
3991 <!-- When set to false, prevents the layout from aligning its children's
3992 baselines. This attribute is particularly useful when the children
3993 use different values for gravity. The default value is true. -->
3994 <attr name="baselineAligned" format="boolean" />
3995 <!-- When a linear layout is part of another layout that is baseline
3996 aligned, it can specify which of its children to baseline align to
3997 (that is, which child TextView).-->
3998 <attr name="baselineAlignedChildIndex" format="integer" min="0"/>
3999 <!-- Defines the maximum weight sum. If unspecified, the sum is computed
4000 by adding the layout_weight of all of the children. This can be
4001 used for instance to give a single child 50% of the total available
4002 space by giving it a layout_weight of 0.5 and setting the weightSum
4004 <attr name="weightSum" format="float" />
4005 <!-- When set to true, all children with a weight will be considered having
4006 the minimum size of the largest child. If false, all children are
4007 measured normally. -->
4008 <attr name="measureWithLargestChild" format="boolean" />
4009 <!-- Drawable to use as a vertical divider between buttons. -->
4010 <attr name="divider" />
4011 <!-- Setting for which dividers to show. -->
4012 <attr name="showDividers">
4013 <flag name="none" value="0" />
4014 <flag name="beginning" value="1" />
4015 <flag name="middle" value="2" />
4016 <flag name="end" value="4" />
4018 <!-- Size of padding on either end of a divider. -->
4019 <attr name="dividerPadding" format="dimension" />
4020 </declare-styleable>
4021 <declare-styleable name="GridLayout">
4022 <!-- The orientation property is not used during layout. It is only used to
4023 allocate row and column parameters when they are not specified by its children's
4024 layout paramters. GridLayout works like LinearLayout in this case;
4025 putting all the components either in a single row or in a single column -
4026 depending on the value of this flag. In the horizontal case, a columnCount
4027 property may be additionally supplied to force new rows to be created when a
4028 row is full. The rowCount attribute may be used similarly in the vertical case.
4029 The default is horizontal. -->
4030 <attr name="orientation" />
4031 <!-- The maxmimum number of rows to create when automatically positioning children. -->
4032 <attr name="rowCount" format="integer" />
4033 <!-- The maxmimum number of columns to create when automatically positioning children. -->
4034 <attr name="columnCount" format="integer" />
4035 <!-- When set to true, tells GridLayout to use default margins when none are specified
4036 in a view's layout parameters.
4037 The default value is false.
4038 See {@link android.widget.GridLayout#setUseDefaultMargins(boolean)}.-->
4039 <attr name="useDefaultMargins" format="boolean" />
4040 <!-- When set to alignMargins, causes alignment to take place between the outer
4041 boundary of a view, as defined by its margins. When set to alignBounds,
4042 causes alignment to take place between the edges of the view.
4043 The default is alignMargins.
4044 See {@link android.widget.GridLayout#setAlignmentMode(int)}.-->
4045 <attr name="alignmentMode" />
4046 <!-- When set to true, forces row boundaries to appear in the same order
4048 The default is true.
4049 See {@link android.widget.GridLayout#setRowOrderPreserved(boolean)}.-->
4050 <attr name="rowOrderPreserved" format="boolean" />
4051 <!-- When set to true, forces column boundaries to appear in the same order
4053 The default is true.
4054 See {@link android.widget.GridLayout#setColumnOrderPreserved(boolean)}.-->
4055 <attr name="columnOrderPreserved" format="boolean" />
4056 </declare-styleable>
4057 <declare-styleable name="ListView">
4058 <!-- Reference to an array resource that will populate the ListView. For static content,
4059 this is simpler than populating the ListView programmatically. -->
4060 <attr name="entries" />
4061 <!-- Drawable or color to draw between list items. -->
4062 <attr name="divider" format="reference|color" />
4063 <!-- Height of the divider. Will use the intrinsic height of the divider if this
4064 is not specified. -->
4065 <attr name="dividerHeight" format="dimension" />
4066 <!-- When set to false, the ListView will not draw the divider after each header view.
4067 The default value is true. -->
4068 <attr name="headerDividersEnabled" format="boolean" />
4069 <!-- When set to false, the ListView will not draw the divider before each footer view.
4070 The default value is true. -->
4071 <attr name="footerDividersEnabled" format="boolean" />
4072 <!-- Drawable to draw above list content. -->
4073 <attr name="overScrollHeader" format="reference|color" />
4074 <!-- Drawable to draw below list content. -->
4075 <attr name="overScrollFooter" format="reference|color" />
4076 </declare-styleable>
4077 <declare-styleable name="PreferenceFrameLayout">
4078 <!-- Padding to use at the top of the prefs content. -->
4079 <attr name="borderTop" format="dimension" />
4080 <!-- Padding to use at the bottom of the prefs content. -->
4081 <attr name="borderBottom" format="dimension" />
4082 <!-- Padding to use at the left of the prefs content. -->
4083 <attr name="borderLeft" format="dimension" />
4084 <!-- Padding to use at the right of the prefs content. -->
4085 <attr name="borderRight" format="dimension" />
4086 </declare-styleable>
4087 <declare-styleable name="PreferenceFrameLayout_Layout">
4088 <!-- Padding to use at the top of the prefs content. -->
4089 <attr name="layout_removeBorders" format="boolean" />
4090 </declare-styleable>
4091 <declare-styleable name="MenuView">
4092 <!-- Default appearance of menu item text. -->
4093 <attr name="itemTextAppearance" format="reference" />
4094 <!-- Default horizontal divider between rows of menu items. -->
4095 <attr name="horizontalDivider" format="reference" />
4096 <!-- Default vertical divider between menu items. -->
4097 <attr name="verticalDivider" format="reference" />
4098 <!-- Default background for the menu header. -->
4099 <attr name="headerBackground" format="color|reference" />
4100 <!-- Default background for each menu item. -->
4101 <attr name="itemBackground" format="color|reference" />
4102 <!-- Default animations for the menu. -->
4103 <attr name="windowAnimationStyle" />
4104 <!-- Default disabled icon alpha for each menu item that shows an icon. -->
4105 <attr name="itemIconDisabledAlpha" format="float" />
4106 <!-- Whether space should be reserved in layout when an icon is missing. -->
4107 <attr name="preserveIconSpacing" format="boolean" />
4108 <!-- Drawable for the arrow icon indicating a particular item is a submenu. -->
4109 <attr name="subMenuArrow" format="reference" />
4110 </declare-styleable>
4111 <declare-styleable name="IconMenuView">
4112 <!-- Defines the height of each row. -->
4113 <attr name="rowHeight" format="dimension" />
4114 <!-- Defines the maximum number of rows displayed. -->
4115 <attr name="maxRows" format="integer" />
4116 <!-- Defines the maximum number of items per row. -->
4117 <attr name="maxItemsPerRow" format="integer" />
4118 <!-- Defines the maximum number of items to show. -->
4119 <attr name="maxItems" format="integer" />
4120 <!-- 'More' icon. -->
4121 <attr name="moreIcon" format="reference" />
4122 </declare-styleable>
4124 <declare-styleable name="ProgressBar">
4125 <!-- Defines the minimum value. -->
4126 <attr name="min" format="integer" />
4127 <!-- Defines the maximum value. -->
4128 <attr name="max" format="integer" />
4129 <!-- Defines the default progress value, between 0 and max. -->
4130 <attr name="progress" format="integer" />
4131 <!-- Defines the secondary progress value, between 0 and max. This progress is drawn between
4132 the primary progress and the background. It can be ideal for media scenarios such as
4133 showing the buffering progress while the default progress shows the play progress. -->
4134 <attr name="secondaryProgress" format="integer" />
4135 <!-- Allows to enable the indeterminate mode. In this mode the progress
4136 bar plays an infinite looping animation. -->
4137 <attr name="indeterminate" format="boolean" />
4138 <!-- Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). -->
4139 <attr name="indeterminateOnly" format="boolean" />
4140 <!-- Drawable used for the indeterminate mode. -->
4141 <attr name="indeterminateDrawable" format="reference" />
4142 <!-- Drawable used for the progress mode. -->
4143 <attr name="progressDrawable" format="reference" />
4144 <!-- Duration of the indeterminate animation. -->
4145 <attr name="indeterminateDuration" format="integer" min="1" />
4146 <!-- Defines how the indeterminate mode should behave when the progress
4148 <attr name="indeterminateBehavior">
4149 <!-- Progress starts over from 0. -->
4150 <enum name="repeat" value="1" />
4151 <!-- Progress keeps the current value and goes back to 0. -->
4152 <enum name="cycle" value="2" />
4154 <attr name="minWidth" format="dimension" />
4155 <attr name="maxWidth" />
4156 <attr name="minHeight" format="dimension" />
4157 <attr name="maxHeight" />
4158 <attr name="interpolator" format="reference" />
4159 <!-- Timeout between frames of animation in milliseconds.
4160 {@deprecated Not used by the framework}. -->
4161 <attr name="animationResolution" format="integer" />
4162 <!-- Defines if the associated drawables need to be mirrored when in RTL mode.
4163 Default is false. -->
4164 <attr name="mirrorForRtl" format="boolean" />
4165 <!-- Tint to apply to the progress indicator. -->
4166 <attr name="progressTint" format="color" />
4167 <!-- Blending mode used to apply the progress indicator tint. -->
4168 <attr name="progressTintMode">
4169 <!-- The tint is drawn on top of the drawable.
4170 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
4171 <enum name="src_over" value="3" />
4172 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
4173 color channels are thrown out. [Sa * Da, Sc * Da] -->
4174 <enum name="src_in" value="5" />
4175 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
4176 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
4177 <enum name="src_atop" value="9" />
4178 <!-- Multiplies the color and alpha channels of the drawable with those of
4179 the tint. [Sa * Da, Sc * Dc] -->
4180 <enum name="multiply" value="14" />
4181 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4182 <enum name="screen" value="15" />
4183 <!-- Combines the tint and drawable color and alpha channels, clamping the
4184 result to valid color values. Saturate(S + D) -->
4185 <enum name="add" value="16" />
4187 <!-- Tint to apply to the progress indicator background. -->
4188 <attr name="progressBackgroundTint" format="color" />
4189 <!-- Blending mode used to apply the progress indicator background tint. -->
4190 <attr name="progressBackgroundTintMode">
4191 <!-- The tint is drawn on top of the drawable.
4192 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
4193 <enum name="src_over" value="3" />
4194 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
4195 color channels are thrown out. [Sa * Da, Sc * Da] -->
4196 <enum name="src_in" value="5" />
4197 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
4198 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
4199 <enum name="src_atop" value="9" />
4200 <!-- Multiplies the color and alpha channels of the drawable with those of
4201 the tint. [Sa * Da, Sc * Dc] -->
4202 <enum name="multiply" value="14" />
4203 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4204 <enum name="screen" value="15" />
4205 <!-- Combines the tint and drawable color and alpha channels, clamping the
4206 result to valid color values. Saturate(S + D) -->
4207 <enum name="add" value="16" />
4209 <!-- Tint to apply to the secondary progress indicator. -->
4210 <attr name="secondaryProgressTint" format="color" />
4211 <!-- Blending mode used to apply the secondary progress indicator tint. -->
4212 <attr name="secondaryProgressTintMode">
4213 <!-- The tint is drawn on top of the drawable.
4214 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
4215 <enum name="src_over" value="3" />
4216 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
4217 color channels are thrown out. [Sa * Da, Sc * Da] -->
4218 <enum name="src_in" value="5" />
4219 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
4220 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
4221 <enum name="src_atop" value="9" />
4222 <!-- Multiplies the color and alpha channels of the drawable with those of
4223 the tint. [Sa * Da, Sc * Dc] -->
4224 <enum name="multiply" value="14" />
4225 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4226 <enum name="screen" value="15" />
4227 <!-- Combines the tint and drawable color and alpha channels, clamping the
4228 result to valid color values. Saturate(S + D) -->
4229 <enum name="add" value="16" />
4231 <!-- Tint to apply to the indeterminate progress indicator. -->
4232 <attr name="indeterminateTint" format="color" />
4233 <!-- Blending mode used to apply the indeterminate progress indicator tint. -->
4234 <attr name="indeterminateTintMode">
4235 <!-- The tint is drawn on top of the drawable.
4236 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
4237 <enum name="src_over" value="3" />
4238 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
4239 color channels are thrown out. [Sa * Da, Sc * Da] -->
4240 <enum name="src_in" value="5" />
4241 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
4242 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
4243 <enum name="src_atop" value="9" />
4244 <!-- Multiplies the color and alpha channels of the drawable with those of
4245 the tint. [Sa * Da, Sc * Dc] -->
4246 <enum name="multiply" value="14" />
4247 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4248 <enum name="screen" value="15" />
4249 <!-- Combines the tint and drawable color and alpha channels, clamping the
4250 result to valid color values. Saturate(S + D) -->
4251 <enum name="add" value="16" />
4253 <!-- Tint to apply to the background. -->
4254 <attr name="backgroundTint" />
4255 <!-- Blending mode used to apply the background tint. -->
4256 <attr name="backgroundTintMode" />
4257 </declare-styleable>
4259 <declare-styleable name="SeekBar">
4260 <!-- Draws the thumb on a seekbar. -->
4261 <attr name="thumb" format="reference" />
4262 <!-- An offset for the thumb that allows it to extend out of the range of the track. -->
4263 <attr name="thumbOffset" format="dimension" />
4264 <!-- Whether to split the track and leave a gap for the thumb drawable. -->
4265 <attr name="splitTrack" format="boolean" />
4266 <!-- Whether to force the track's alpha to ?android:attr/disabledAlpha
4267 when disabled. This is required for Holo and Gingerbread, but
4268 should always be false for Material and beyond.
4269 @hide Developers shouldn't need to change this. -->
4270 <attr name="useDisabledAlpha" format="boolean" />
4271 <!-- Tint to apply to the thumb drawable. -->
4272 <attr name="thumbTint" format="color" />
4273 <!-- Blending mode used to apply the thumb tint. -->
4274 <attr name="thumbTintMode">
4275 <!-- The tint is drawn on top of the drawable.
4276 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
4277 <enum name="src_over" value="3" />
4278 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
4279 color channels are thrown out. [Sa * Da, Sc * Da] -->
4280 <enum name="src_in" value="5" />
4281 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
4282 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
4283 <enum name="src_atop" value="9" />
4284 <!-- Multiplies the color and alpha channels of the drawable with those of
4285 the tint. [Sa * Da, Sc * Dc] -->
4286 <enum name="multiply" value="14" />
4287 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4288 <enum name="screen" value="15" />
4289 <!-- Combines the tint and drawable color and alpha channels, clamping the
4290 result to valid color values. Saturate(S + D) -->
4291 <enum name="add" value="16" />
4293 <!-- Drawable displayed at each progress position on a seekbar. -->
4294 <attr name="tickMark" format="reference" />
4295 <!-- Tint to apply to the tick mark drawable. -->
4296 <attr name="tickMarkTint" format="color" />
4297 <!-- Blending mode used to apply the tick mark tint. -->
4298 <attr name="tickMarkTintMode">
4299 <!-- The tint is drawn on top of the drawable.
4300 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
4301 <enum name="src_over" value="3" />
4302 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
4303 color channels are thrown out. [Sa * Da, Sc * Da] -->
4304 <enum name="src_in" value="5" />
4305 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
4306 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
4307 <enum name="src_atop" value="9" />
4308 <!-- Multiplies the color and alpha channels of the drawable with those of
4309 the tint. [Sa * Da, Sc * Dc] -->
4310 <enum name="multiply" value="14" />
4311 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4312 <enum name="screen" value="15" />
4313 <!-- Combines the tint and drawable color and alpha channels, clamping the
4314 result to valid color values. Saturate(S + D) -->
4315 <enum name="add" value="16" />
4317 </declare-styleable>
4319 <declare-styleable name="StackView">
4320 <!-- Color of the res-out outline. -->
4321 <attr name="resOutColor" format="color" />
4322 <!-- Color of the outline of click feedback. -->
4323 <attr name="clickColor" format="color" />
4324 </declare-styleable>
4326 <declare-styleable name="RatingBar">
4327 <!-- The number of stars (or rating items) to show. -->
4328 <attr name="numStars" format="integer" />
4329 <!-- The rating to set by default. -->
4330 <attr name="rating" format="float" />
4331 <!-- The step size of the rating. -->
4332 <attr name="stepSize" format="float" />
4333 <!-- Whether this rating bar is an indicator (and non-changeable by the user). -->
4334 <attr name="isIndicator" format="boolean" />
4335 </declare-styleable>
4337 <declare-styleable name="RadioGroup">
4338 <!-- The id of the child radio button that should be checked by default
4339 within this radio group. -->
4340 <attr name="checkedButton" format="integer" />
4341 <!-- Should the radio group be a column or a row? Use "horizontal"
4342 for a row, "vertical" for a column. The default is
4344 <attr name="orientation" />
4345 </declare-styleable>
4346 <declare-styleable name="TableLayout">
4347 <!-- The zero-based index of the columns to stretch. The column indices
4348 must be separated by a comma: 1, 2, 5. Illegal and duplicate
4349 indices are ignored. You can stretch all columns by using the
4350 value "*" instead. Note that a column can be marked stretchable
4351 and shrinkable at the same time. -->
4352 <attr name="stretchColumns" format="string" />
4353 <!-- The zero-based index of the columns to shrink. The column indices
4354 must be separated by a comma: 1, 2, 5. Illegal and duplicate
4355 indices are ignored. You can shrink all columns by using the
4356 value "*" instead. Note that a column can be marked stretchable
4357 and shrinkable at the same time. -->
4358 <attr name="shrinkColumns" format="string" />
4359 <!-- The zero-based index of the columns to collapse. The column indices
4360 must be separated by a comma: 1, 2, 5. Illegal and duplicate
4361 indices are ignored. -->
4362 <attr name="collapseColumns" format="string" />
4363 </declare-styleable>
4364 <declare-styleable name="TableRow">
4366 </declare-styleable>
4367 <declare-styleable name="TableRow_Cell">
4368 <!-- The index of the column in which this child should be. -->
4369 <attr name="layout_column" format="integer" />
4370 <!-- Defines how many columns this child should span. Must be >= 1.-->
4371 <attr name="layout_span" format="integer" />
4372 </declare-styleable>
4373 <declare-styleable name="TabWidget">
4374 <!-- Drawable used to draw the divider between tabs. -->
4375 <attr name="divider" />
4376 <!-- Determines whether the strip under the tab indicators is drawn or not. -->
4377 <attr name="tabStripEnabled" format="boolean" />
4378 <!-- Drawable used to draw the left part of the strip underneath the tabs. -->
4379 <attr name="tabStripLeft" format="reference" />
4380 <!-- Drawable used to draw the right part of the strip underneath the tabs. -->
4381 <attr name="tabStripRight" format="reference" />
4382 <!-- Layout used to organize each tab's content. -->
4383 <attr name="tabLayout" format="reference" />
4384 </declare-styleable>
4385 <declare-styleable name="TextAppearance">
4386 <!-- Text color. -->
4387 <attr name="textColor" />
4388 <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
4389 <attr name="textSize" />
4390 <!-- Style (bold, italic, bolditalic) for the text. -->
4391 <attr name="textStyle" />
4392 <!-- Typeface (normal, sans, serif, monospace) for the text. -->
4393 <attr name="typeface" />
4394 <!-- Font family (named by string) for the text. -->
4395 <attr name="fontFamily" />
4396 <!-- Color of the text selection highlight. -->
4397 <attr name="textColorHighlight" />
4398 <!-- Color of the hint text. -->
4399 <attr name="textColorHint" />
4400 <!-- Color of the links. -->
4401 <attr name="textColorLink" />
4402 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
4403 <attr name="textAllCaps" format="boolean" />
4404 <!-- Place a blurred shadow of text underneath the text, drawn with the
4405 specified color. The text shadow produced does not interact with
4406 properties on View that are responsible for real time shadows,
4407 {@link android.R.styleable#View_elevation elevation} and
4408 {@link android.R.styleable#View_translationZ translationZ}. -->
4409 <attr name="shadowColor" format="color" />
4410 <!-- Horizontal offset of the text shadow. -->
4411 <attr name="shadowDx" format="float" />
4412 <!-- Vertical offset of the text shadow. -->
4413 <attr name="shadowDy" format="float" />
4414 <!-- Blur radius of the text shadow. -->
4415 <attr name="shadowRadius" format="float" />
4416 <!-- Elegant text height, especially for less compacted complex script text. -->
4417 <attr name="elegantTextHeight" format="boolean" />
4418 <!-- Text letter-spacing. -->
4419 <attr name="letterSpacing" format="float" />
4420 <!-- Font feature settings. -->
4421 <attr name="fontFeatureSettings" format="string" />
4422 </declare-styleable>
4423 <declare-styleable name="TextClock">
4424 <!-- Specifies the formatting pattern used to show the time and/or date
4425 in 12-hour mode. Please refer to {@link android.text.format.DateFormat}
4426 for a complete description of accepted formatting patterns.
4427 The default pattern is a locale-appropriate equivalent of "h:mm a". -->
4428 <attr name="format12Hour" format="string"/>
4429 <!-- Specifies the formatting pattern used to show the time and/or date
4430 in 24-hour mode. Please refer to {@link android.text.format.DateFormat}
4431 for a complete description of accepted formatting patterns.
4432 The default pattern is a locale-appropriate equivalent of "H:mm". -->
4433 <attr name="format24Hour" format="string"/>
4434 <!-- Specifies the time zone to use. When this attribute is specified, the
4435 TextClock will ignore the time zone of the system. To use the user's
4436 time zone, do not specify this attribute. The default value is the
4437 user's time zone. Please refer to {@link java.util.TimeZone} for more
4438 information about time zone ids. -->
4439 <attr name="timeZone" format="string"/>
4440 </declare-styleable>
4441 <declare-styleable name="TextSwitcher">
4442 </declare-styleable>
4443 <declare-styleable name="TextView">
4444 <!-- Determines the minimum type that getText() will return.
4445 The default is "normal".
4446 Note that EditText and LogTextBox always return Editable,
4447 even if you specify something less powerful here. -->
4448 <attr name="bufferType">
4449 <!-- Can return any CharSequence, possibly a
4450 Spanned one if the source text was Spanned. -->
4451 <enum name="normal" value="0" />
4452 <!-- Can only return Spannable. -->
4453 <enum name="spannable" value="1" />
4454 <!-- Can only return Spannable and Editable. -->
4455 <enum name="editable" value="2" />
4457 <!-- Text to display. -->
4458 <attr name="text" format="string" localization="suggested" />
4459 <!-- Hint text to display when the text is empty. -->
4460 <attr name="hint" format="string" />
4461 <!-- Text color. -->
4462 <attr name="textColor" />
4463 <!-- Color of the text selection highlight. -->
4464 <attr name="textColorHighlight" />
4465 <!-- Color of the hint text. -->
4466 <attr name="textColorHint" />
4467 <!-- Base text color, typeface, size, and style. -->
4468 <attr name="textAppearance" />
4469 <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
4470 <attr name="textSize" />
4471 <!-- Sets the horizontal scaling factor for the text. -->
4472 <attr name="textScaleX" format="float" />
4473 <!-- Typeface (normal, sans, serif, monospace) for the text. -->
4474 <attr name="typeface" />
4475 <!-- Style (bold, italic, bolditalic) for the text. -->
4476 <attr name="textStyle" />
4477 <!-- Font family (named by string) for the text. -->
4478 <attr name="fontFamily" />
4479 <!-- Text color for links. -->
4480 <attr name="textColorLink" />
4481 <!-- Makes the cursor visible (the default) or invisible. -->
4482 <attr name="cursorVisible" format="boolean" />
4483 <!-- Makes the TextView be at most this many lines tall.
4485 When used on an editable text, the <code>inputType</code> attribute's value must be
4486 combined with the <code>textMultiLine</code> flag for the maxLines attribute to apply. -->
4487 <attr name="maxLines" format="integer" min="0" />
4488 <!-- Makes the TextView be at most this many pixels tall. -->
4489 <attr name="maxHeight" />
4490 <!-- Makes the TextView be exactly this many lines tall. -->
4491 <attr name="lines" format="integer" min="0" />
4492 <!-- Makes the TextView be exactly this many pixels tall.
4493 You could get the same effect by specifying this number in the
4494 layout parameters. -->
4495 <attr name="height" format="dimension" />
4496 <!-- Makes the TextView be at least this many lines tall.
4498 When used on an editable text, the <code>inputType</code> attribute's value must be
4499 combined with the <code>textMultiLine</code> flag for the minLines attribute to apply. -->
4500 <attr name="minLines" format="integer" min="0" />
4501 <!-- Makes the TextView be at least this many pixels tall. -->
4502 <attr name="minHeight" />
4503 <!-- Makes the TextView be at most this many ems wide. -->
4504 <attr name="maxEms" format="integer" min="0" />
4505 <!-- Makes the TextView be at most this many pixels wide. -->
4506 <attr name="maxWidth" />
4507 <!-- Makes the TextView be exactly this many ems wide. -->
4508 <attr name="ems" format="integer" min="0" />
4509 <!-- Makes the TextView be exactly this many pixels wide.
4510 You could get the same effect by specifying this number in the
4511 layout parameters. -->
4512 <attr name="width" format="dimension" />
4513 <!-- Makes the TextView be at least this many ems wide. -->
4514 <attr name="minEms" format="integer" min="0" />
4515 <!-- Makes the TextView be at least this many pixels wide. -->
4516 <attr name="minWidth" />
4517 <!-- Specifies how to align the text by the view's x- and/or y-axis
4518 when the text is smaller than the view. -->
4519 <attr name="gravity" />
4520 <!-- Whether the text is allowed to be wider than the view (and
4521 therefore can be scrolled horizontally). -->
4522 <attr name="scrollHorizontally" format="boolean" />
4523 <!-- Whether the characters of the field are displayed as
4524 password dots instead of themselves.
4525 {@deprecated Use inputType instead.} -->
4526 <attr name="password" format="boolean" />
4527 <!-- Constrains the text to a single horizontally scrolling line
4528 instead of letting it wrap onto multiple lines, and advances
4529 focus instead of inserting a newline when you press the
4532 The default value is false (multi-line wrapped text mode) for non-editable text, but if
4533 you specify any value for inputType, the default is true (single-line input field mode).
4535 {@deprecated This attribute is deprecated. Use <code>maxLines</code> instead to change
4536 the layout of a static text, and use the <code>textMultiLine</code> flag in the
4537 inputType attribute instead for editable text views (if both singleLine and inputType
4538 are supplied, the inputType flags will override the value of singleLine). } -->
4539 <attr name="singleLine" format="boolean" />
4540 <!-- Specifies whether the widget is enabled. The interpretation of the enabled state varies by subclass.
4541 For example, a non-enabled EditText prevents the user from editing the contained text, and
4542 a non-enabled Button prevents the user from tapping the button.
4543 The appearance of enabled and non-enabled widgets may differ, if the drawables referenced
4544 from evaluating state_enabled differ. -->
4545 <attr name="enabled" format="boolean" />
4546 <!-- If the text is selectable, select it all when the view takes
4548 <attr name="selectAllOnFocus" format="boolean" />
4549 <!-- Leave enough room for ascenders and descenders instead of
4550 using the font ascent and descent strictly. (Normally true). -->
4551 <attr name="includeFontPadding" format="boolean" />
4552 <!-- Set an input filter to constrain the text length to the
4553 specified number. -->
4554 <attr name="maxLength" format="integer" min="0" />
4555 <!-- Place a blurred shadow of text underneath the text, drawn with the
4556 specified color. The text shadow produced does not interact with
4557 properties on View that are responsible for real time shadows,
4558 {@link android.R.styleable#View_elevation elevation} and
4559 {@link android.R.styleable#View_translationZ translationZ}. -->
4560 <attr name="shadowColor" />
4561 <!-- Horizontal offset of the text shadow. -->
4562 <attr name="shadowDx" />
4563 <!-- Vertical offset of the text shadow. -->
4564 <attr name="shadowDy" />
4565 <!-- Blur radius of the text shadow. -->
4566 <attr name="shadowRadius" />
4567 <attr name="autoLink" />
4568 <!-- If set to false, keeps the movement method from being set
4569 to the link movement method even if autoLink causes links
4571 <attr name="linksClickable" format="boolean" />
4572 <!-- If set, specifies that this TextView has a numeric input method.
4573 The default is false.
4574 {@deprecated Use inputType instead.} -->
4575 <attr name="numeric">
4576 <!-- Input is numeric. -->
4577 <flag name="integer" value="0x01" />
4578 <!-- Input is numeric, with sign allowed. -->
4579 <flag name="signed" value="0x03" />
4580 <!-- Input is numeric, with decimals allowed. -->
4581 <flag name="decimal" value="0x05" />
4583 <!-- If set, specifies that this TextView has a numeric input method
4584 and that these specific characters are the ones that it will
4586 If this is set, numeric is implied to be true.
4587 The default is false. -->
4588 <attr name="digits" format="string" />
4589 <!-- If set, specifies that this TextView has a phone number input
4590 method. The default is false.
4591 {@deprecated Use inputType instead.} -->
4592 <attr name="phoneNumber" format="boolean" />
4593 <!-- If set, specifies that this TextView should use the specified
4594 input method (specified by fully-qualified class name).
4595 {@deprecated Use inputType instead.} -->
4596 <attr name="inputMethod" format="string" />
4597 <!-- If set, specifies that this TextView has a textual input method
4598 and should automatically capitalize what the user types.
4599 The default is "none".
4600 {@deprecated Use inputType instead.} -->
4601 <attr name="capitalize">
4602 <!-- Don't automatically capitalize anything. -->
4603 <enum name="none" value="0" />
4604 <!-- Capitalize the first word of each sentence. -->
4605 <enum name="sentences" value="1" />
4606 <!-- Capitalize the first letter of every word. -->
4607 <enum name="words" value="2" />
4608 <!-- Capitalize every character. -->
4609 <enum name="characters" value="3" />
4611 <!-- If set, specifies that this TextView has a textual input method
4612 and automatically corrects some common spelling errors.
4613 The default is "false".
4614 {@deprecated Use inputType instead.} -->
4615 <attr name="autoText" format="boolean" />
4616 <!-- If set, specifies that this TextView has an input method.
4617 It will be a textual one unless it has otherwise been specified.
4618 For TextView, this is false by default. For EditText, it is
4620 {@deprecated Use inputType instead.} -->
4621 <attr name="editable" format="boolean" />
4622 <!-- If set, the text view will include its current complete text
4623 inside of its frozen icicle in addition to meta-data such as
4624 the current cursor position. By default this is disabled;
4625 it can be useful when the contents of a text view is not stored
4626 in a persistent place such as a content provider. For
4627 {@link android.widget.EditText} it is always enabled, regardless
4628 of the value of the attribute. -->
4629 <attr name="freezesText" format="boolean" />
4630 <!-- If set, causes words that are longer than the view is wide
4631 to be ellipsized instead of broken in the middle.
4632 You will often also want to set scrollHorizontally or singleLine
4633 as well so that the text as a whole is also constrained to
4634 a single line instead of still allowed to be broken onto
4636 <attr name="ellipsize" />
4637 <!-- The drawable to be drawn above the text. -->
4638 <attr name="drawableTop" format="reference|color" />
4639 <!-- The drawable to be drawn below the text. -->
4640 <attr name="drawableBottom" format="reference|color" />
4641 <!-- The drawable to be drawn to the left of the text. -->
4642 <attr name="drawableLeft" format="reference|color" />
4643 <!-- The drawable to be drawn to the right of the text. -->
4644 <attr name="drawableRight" format="reference|color" />
4645 <!-- The drawable to be drawn to the start of the text. -->
4646 <attr name="drawableStart" format="reference|color" />
4647 <!-- The drawable to be drawn to the end of the text. -->
4648 <attr name="drawableEnd" format="reference|color" />
4649 <!-- The padding between the drawables and the text. -->
4650 <attr name="drawablePadding" format="dimension" />
4651 <!-- Tint to apply to the compound (left, top, etc.) drawables. -->
4652 <attr name="drawableTint" format="color" />
4653 <!-- Blending mode used to apply the compound (left, top, etc.) drawables tint. -->
4654 <attr name="drawableTintMode">
4655 <!-- The tint is drawn on top of the drawable.
4656 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
4657 <enum name="src_over" value="3" />
4658 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
4659 color channels are thrown out. [Sa * Da, Sc * Da] -->
4660 <enum name="src_in" value="5" />
4661 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
4662 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
4663 <enum name="src_atop" value="9" />
4664 <!-- Multiplies the color and alpha channels of the drawable with those of
4665 the tint. [Sa * Da, Sc * Dc] -->
4666 <enum name="multiply" value="14" />
4667 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
4668 <enum name="screen" value="15" />
4669 <!-- Combines the tint and drawable color and alpha channels, clamping the
4670 result to valid color values. Saturate(S + D) -->
4671 <enum name="add" value="16" />
4673 <!-- Extra spacing between lines of text. -->
4674 <attr name="lineSpacingExtra" format="dimension" />
4675 <!-- Extra spacing between lines of text, as a multiplier. -->
4676 <attr name="lineSpacingMultiplier" format="float" />
4677 <!-- The number of times to repeat the marquee animation. Only applied if the
4678 TextView has marquee enabled. -->
4679 <attr name="marqueeRepeatLimit" format="integer">
4680 <!-- Indicates that marquee should repeat indefinitely. -->
4681 <enum name="marquee_forever" value="-1" />
4683 <attr name="inputType" />
4684 <!-- Whether undo should be allowed for editable text. Defaults to true. -->
4685 <attr name="allowUndo" format="boolean" />
4686 <attr name="imeOptions" />
4687 <!-- An addition content type description to supply to the input
4688 method attached to the text view, which is private to the
4689 implementation of the input method. This simply fills in
4690 the {@link android.view.inputmethod.EditorInfo#privateImeOptions
4691 EditorInfo.privateImeOptions} field when the input
4692 method is connected. -->
4693 <attr name="privateImeOptions" format="string" />
4694 <!-- Supply a value for
4695 {@link android.view.inputmethod.EditorInfo#actionLabel EditorInfo.actionLabel}
4696 used when an input method is connected to the text view. -->
4697 <attr name="imeActionLabel" format="string" />
4698 <!-- Supply a value for
4699 {@link android.view.inputmethod.EditorInfo#actionId EditorInfo.actionId}
4700 used when an input method is connected to the text view. -->
4701 <attr name="imeActionId" format="integer" />
4702 <!-- Reference to an
4703 {@link android.R.styleable#InputExtras <input-extras>}
4704 XML resource containing additional data to
4705 supply to an input method, which is private to the implementation
4706 of the input method. This simply fills in
4707 the {@link android.view.inputmethod.EditorInfo#extras
4708 EditorInfo.extras} field when the input
4709 method is connected. -->
4710 <attr name="editorExtras" format="reference" />
4712 <!-- Reference to a drawable that will be used to display a text selection
4713 anchor on the left side of a selection region. -->
4714 <attr name="textSelectHandleLeft" />
4715 <!-- Reference to a drawable that will be used to display a text selection
4716 anchor on the right side of a selection region. -->
4717 <attr name="textSelectHandleRight" />
4718 <!-- Reference to a drawable that will be used to display a text selection
4719 anchor for positioning the cursor within text. -->
4720 <attr name="textSelectHandle" />
4721 <!-- The layout of the view that is displayed on top of the cursor to paste inside a
4723 <attr name="textEditPasteWindowLayout" />
4724 <!-- Variation of textEditPasteWindowLayout displayed when the clipboard is empty. -->
4725 <attr name="textEditNoPasteWindowLayout" />
4726 <!-- Used instead of textEditPasteWindowLayout when the window is moved on the side of the
4727 insertion cursor because it would be clipped if it were positioned on top. -->
4728 <attr name="textEditSidePasteWindowLayout" />
4729 <!-- Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. -->
4730 <attr name="textEditSideNoPasteWindowLayout" />
4732 <!-- Layout of the TextView item that will populate the suggestion popup window. -->
4733 <attr name="textEditSuggestionItemLayout" />
4734 <!-- Layout of the container of the suggestion popup window. -->
4735 <attr name="textEditSuggestionContainerLayout" />
4736 <!-- Style of the highlighted string in the suggestion popup window. -->
4737 <attr name="textEditSuggestionHighlightStyle" />
4740 <!-- Reference to a drawable that will be drawn under the insertion cursor. -->
4741 <attr name="textCursorDrawable" />
4743 <!-- Indicates that the content of a non-editable text can be selected. -->
4744 <attr name="textIsSelectable" />
4745 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
4746 <attr name="textAllCaps" />
4747 <!-- Elegant text height, especially for less compacted complex script text. -->
4748 <attr name="elegantTextHeight" />
4749 <!-- Text letter-spacing. -->
4750 <attr name="letterSpacing" />
4751 <!-- Font feature settings. -->
4752 <attr name="fontFeatureSettings" />
4753 <!-- Break strategy (control over paragraph layout). -->
4754 <attr name="breakStrategy">
4755 <!-- Line breaking uses simple strategy. -->
4756 <enum name="simple" value="0" />
4757 <!-- Line breaking uses high-quality strategy, including hyphenation. -->
4758 <enum name="high_quality" value="1" />
4759 <!-- Line breaking strategy balances line lengths. -->
4760 <enum name="balanced" value="2" />
4762 <!-- Frequency of automatic hyphenation. -->
4763 <attr name="hyphenationFrequency">
4764 <!-- No hyphenation. -->
4765 <enum name="none" value="0" />
4766 <!-- Less frequent hyphenation, useful for informal use cases, such
4767 as chat messages. -->
4768 <enum name="normal" value="1" />
4769 <!-- Standard amount of hyphenation, useful for running text and for
4770 screens with limited space for text. -->
4771 <enum name="full" value="2" />
4773 <!-- Specify the type of auto-size. Note that this feature is not supported by EditText,
4774 works only for TextView. -->
4775 <attr name="autoSizeTextType" format="enum">
4776 <!-- No auto-sizing (default). -->
4777 <enum name="none" value="0" />
4778 <!-- Uniform horizontal and vertical text size scaling to fit within the
4780 <enum name="uniform" value="1" />
4782 <!-- Specify the auto-size step size if <code>autoSizeTextType</code> is set to
4783 <code>uniform</code>. The default is 1px. Overwrites
4784 <code>autoSizePresetSizes</code> if set. -->
4785 <attr name="autoSizeStepGranularity" format="dimension" />
4786 <!-- Resource array of dimensions to be used in conjunction with
4787 <code>autoSizeTextType</code> set to <code>uniform</code>. Overrides
4788 <code>autoSizeStepGranularity</code> if set. -->
4789 <attr name="autoSizePresetSizes"/>
4790 <!-- The minimum text size constraint to be used when auto-sizing text. -->
4791 <attr name="autoSizeMinTextSize" format="dimension" />
4792 <!-- The maximum text size constraint to be used when auto-sizing text. -->
4793 <attr name="autoSizeMaxTextSize" format="dimension" />
4794 <!-- Mode for justification. -->
4795 <attr name="justificationMode">
4796 <!-- No justification. -->
4797 <enum name="none" value="0" />
4798 <!-- Justification by stretching word spacing. -->
4799 <enum name="inter_word" value = "1" />
4801 </declare-styleable>
4802 <declare-styleable name="TextViewAppearance">
4803 <!-- Base text color, typeface, size, and style. -->
4804 <attr name="textAppearance" />
4805 </declare-styleable>
4806 <declare-styleable name="SelectionModeDrawables">
4807 <attr name="actionModeSelectAllDrawable" />
4808 <attr name="actionModeCutDrawable" />
4809 <attr name="actionModeCopyDrawable" />
4810 <attr name="actionModePasteDrawable" />
4811 </declare-styleable>
4812 <declare-styleable name="SuggestionSpan">
4813 <attr name="textUnderlineColor" />
4814 <attr name="textUnderlineThickness" />
4815 </declare-styleable>
4816 <!-- An <code>input-extras</code> is a container for extra data to supply to
4817 an input method. Contains
4818 one more more {@link #Extra <extra>} tags. -->
4819 <declare-styleable name="InputExtras">
4820 </declare-styleable>
4821 <declare-styleable name="AutoCompleteTextView">
4822 <!-- Defines the hint displayed in the drop down menu. -->
4823 <attr name="completionHint" format="string" />
4824 <!-- Defines the hint view displayed in the drop down menu. -->
4825 <attr name="completionHintView" format="reference" />
4826 <!-- Defines the number of characters that the user must type before
4827 completion suggestions are displayed in a drop down menu. -->
4828 <attr name="completionThreshold" format="integer" min="1" />
4829 <!-- Selector in a drop down list. -->
4830 <attr name="dropDownSelector" format="reference|color" />
4831 <!-- View to anchor the auto-complete dropdown to. If not specified, the text view itself
4833 <attr name="dropDownAnchor" format="reference" />
4834 <!-- Specifies the basic width of the dropdown. Its value may
4835 be a dimension (such as "12dip") for a constant width,
4836 fill_parent or match_parent to match the width of the
4837 screen, or wrap_content to match the width of
4838 the anchored view. -->
4839 <attr name="dropDownWidth" format="dimension">
4840 <!-- The dropdown should fill the width of the screen.
4841 This constant is deprecated starting from API Level 8 and
4842 is replaced by {@code match_parent}. -->
4843 <enum name="fill_parent" value="-1" />
4844 <!-- The dropdown should fit the width of the screen.
4845 Introduced in API Level 8. -->
4846 <enum name="match_parent" value="-1" />
4847 <!-- The dropdown should fit the width of its anchor. -->
4848 <enum name="wrap_content" value="-2" />
4850 <!-- Specifies the basic height of the dropdown. Its value may
4851 be a dimension (such as "12dip") for a constant height,
4852 fill_parent or match_parent to fill the height of the
4853 screen, or wrap_content to match the height of
4854 the content of the drop down. -->
4855 <attr name="dropDownHeight" format="dimension">
4856 <!-- The dropdown should fit the height of the screen.
4857 This constant is deprecated starting from API Level 8 and
4858 is replaced by {@code match_parent}. -->
4859 <enum name="fill_parent" value="-1" />
4860 <!-- The dropdown should fit the height of the screen.
4861 Introduced in API Level 8. -->
4862 <enum name="match_parent" value="-1" />
4863 <!-- The dropdown should fit the height of the content. -->
4864 <enum name="wrap_content" value="-2" />
4866 <attr name="inputType" />
4867 <!-- Theme to use for the completion popup window. -->
4868 <attr name="popupTheme" />
4869 </declare-styleable>
4870 <declare-styleable name="PopupWindow">
4871 <!-- The background to use for the popup window. -->
4872 <attr name="popupBackground" format="reference|color" />
4873 <!-- Window elevation to use for the popup window. -->
4874 <attr name="popupElevation" format="dimension" />
4875 <!-- The animation style to use for the popup window. -->
4876 <attr name="popupAnimationStyle" format="reference" />
4877 <!-- Whether the popup window should overlap its anchor view. -->
4878 <attr name="overlapAnchor" format="boolean" />
4879 <!-- Transition used to move views into the popup window. -->
4880 <attr name="popupEnterTransition" format="reference" />
4881 <!-- Transition used to move views out of the popup window. -->
4882 <attr name="popupExitTransition" format="reference" />
4883 </declare-styleable>
4884 <declare-styleable name="ListPopupWindow">
4885 <!-- Amount of pixels by which the drop down should be offset vertically. -->
4886 <attr name="dropDownVerticalOffset" format="dimension" />
4887 <!-- Amount of pixels by which the drop down should be offset horizontally. -->
4888 <attr name="dropDownHorizontalOffset" format="dimension" />
4889 </declare-styleable>
4890 <declare-styleable name="ViewAnimator">
4891 <!-- Identifier for the animation to use when a view is shown. -->
4892 <attr name="inAnimation" format="reference" />
4893 <!-- Identifier for the animation to use when a view is hidden. -->
4894 <attr name="outAnimation" format="reference" />
4895 <!-- Defines whether to animate the current View when the ViewAnimation
4896 is first displayed. -->
4897 <attr name="animateFirstView" format="boolean" />
4898 </declare-styleable>
4899 <declare-styleable name="ViewFlipper">
4900 <attr name="flipInterval" format="integer" min="0" />
4901 <!-- When true, automatically start animating. -->
4902 <attr name="autoStart" format="boolean" />
4903 </declare-styleable>
4904 <declare-styleable name="AdapterViewAnimator">
4905 <!-- Identifier for the animation to use when a view is shown. -->
4906 <attr name="inAnimation" />
4907 <!-- Identifier for the animation to use when a view is hidden. -->
4908 <attr name="outAnimation" />
4909 <!--Defines whether the animator loops to the first view once it
4910 has reached the end of the list. -->
4911 <attr name="loopViews" format="boolean" />
4912 <!-- Defines whether to animate the current View when the ViewAnimation
4913 is first displayed. -->
4914 <attr name="animateFirstView" />
4915 </declare-styleable>
4916 <declare-styleable name="AdapterViewFlipper">
4917 <attr name="flipInterval" />
4918 <!-- When true, automatically start animating. -->
4919 <attr name="autoStart" />
4920 </declare-styleable>
4921 <declare-styleable name="ViewSwitcher">
4922 </declare-styleable>
4923 <declare-styleable name="ScrollView">
4924 <!-- Defines whether the scrollview should stretch its content to fill the viewport. -->
4925 <attr name="fillViewport" format="boolean" />
4926 </declare-styleable>
4927 <declare-styleable name="HorizontalScrollView">
4928 <!-- Defines whether the scrollview should stretch its content to fill the viewport. -->
4929 <attr name="fillViewport" />
4930 </declare-styleable>
4931 <declare-styleable name="Spinner">
4932 <!-- The prompt to display when the spinner's dialog is shown. -->
4933 <attr name="prompt" format="reference" />
4934 <!-- Display mode for spinner options. -->
4935 <attr name="spinnerMode" format="enum">
4936 <!-- Spinner options will be presented to the user as a dialog window. -->
4937 <enum name="dialog" value="0" />
4938 <!-- Spinner options will be presented to the user as an inline dropdown
4939 anchored to the spinner widget itself. -->
4940 <enum name="dropdown" value="1" />
4942 <!-- List selector to use for spinnerMode="dropdown" display. -->
4943 <attr name="dropDownSelector" />
4944 <!-- Theme to use for the drop-down or dialog popup window. -->
4945 <attr name="popupTheme" />
4946 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
4947 <attr name="popupBackground" />
4948 <!-- Window elevation to use for the dropdown in spinnerMode="dropdown". -->
4949 <attr name="popupElevation" />
4950 <!-- Width of the dropdown in spinnerMode="dropdown". -->
4951 <attr name="dropDownWidth" />
4952 <!-- Reference to a layout to use for displaying a prompt in the dropdown for
4953 spinnerMode="dropdown". This layout must contain a TextView with the id
4954 {@code @android:id/text1} to be populated with the prompt text. -->
4955 <attr name="popupPromptView" format="reference" />
4956 <!-- Gravity setting for positioning the currently selected item. -->
4957 <attr name="gravity" />
4958 <!-- Whether this spinner should mark child views as enabled/disabled when
4959 the spinner itself is enabled/disabled. -->
4960 <attr name="disableChildrenWhenDisabled" format="boolean" />
4961 </declare-styleable>
4963 <declare-styleable name="DatePicker">
4964 <!-- The first day of week according to {@link java.util.Calendar}. -->
4965 <attr name="firstDayOfWeek" />
4966 <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
4967 <attr name="minDate" format="string" />
4968 <!-- The maximal date shown by this calendar view in mm/dd/yyyy format. -->
4969 <attr name="maxDate" format="string" />
4971 <!-- Whether the spinners are shown. Only valid for "spinner" mode. -->
4972 <attr name="spinnersShown" format="boolean" />
4973 <!-- Whether the calendar view is shown. Only valid for "spinner" mode. -->
4974 <attr name="calendarViewShown" format="boolean" />
4976 <!-- @hide The layout of the date picker. -->
4977 <attr name="internalLayout" format="reference" />
4978 <!-- @hide The layout of the legacy DatePicker. -->
4979 <attr name="legacyLayout" />
4981 <!-- The text color for the selected date header text, ex. "2014" or
4982 "Tue, Mar 18". This should be a color state list where the
4983 activated state will be used when the year picker or day picker is
4985 <attr name="headerTextColor" format="color" />
4986 <!-- The background for the selected date header. -->
4987 <attr name="headerBackground" />
4989 <!-- The list year's text appearance in the list.
4990 {@deprecated Use yearListTextColor. }-->
4991 <attr name="yearListItemTextAppearance" format="reference" />
4992 <!-- @hide The list year's text appearance in the list when activated. -->
4993 <attr name="yearListItemActivatedTextAppearance" format="reference" />
4994 <!-- The text color list of the calendar. -->
4995 <attr name="calendarTextColor" format="color" />
4997 <!-- Defines the look of the widget. Prior to the L release, the only choice was
4998 spinner. As of L, with the Material theme selected, the default layout is calendar,
4999 but this attribute can be used to force spinner to be used instead. -->
5000 <attr name="datePickerMode">
5001 <!-- Date picker with spinner controls to select the date. -->
5002 <enum name="spinner" value="1" />
5003 <!-- Date picker with calendar to select the date. -->
5004 <enum name="calendar" value="2" />
5007 <!-- The first year (inclusive), for example "1940".
5008 {@deprecated Use minDate instead.} -->
5009 <attr name="startYear" format="integer" />
5010 <!-- The last year (inclusive), for example "2010".
5011 {@deprecated Use maxDate instead.} -->
5012 <attr name="endYear" format="integer" />
5013 <!-- The text appearance for the month (ex. May) in the selected date header.
5014 {@deprecated Use headerTextColor instead.} -->
5015 <attr name="headerMonthTextAppearance" format="reference" />
5016 <!-- The text appearance for the day of month (ex. 28) in the selected date header.
5017 {@deprecated Use headerTextColor instead.} -->
5018 <attr name="headerDayOfMonthTextAppearance" format="reference" />
5019 <!-- The text appearance for the year (ex. 2014) in the selected date header.
5020 {@deprecated Use headerTextColor instead.} -->
5021 <attr name="headerYearTextAppearance" format="reference" />
5022 <!-- The background color for the header's day of week.
5023 {@deprecated No longer displayed.} -->
5024 <attr name="dayOfWeekBackground" format="color" />
5025 <!-- The text color for the header's day of week.
5026 {@deprecated No longer displayed.} -->
5027 <attr name="dayOfWeekTextAppearance" format="reference" />
5028 <!-- The list year's selected circle color in the list.
5029 {@deprecated No longer displayed.} -->
5030 <attr name="yearListSelectorColor" format="color" />
5032 <!-- @hide Whether this time picker is being displayed within a dialog,
5033 in which case it may ignore the requested time picker mode due to
5034 space considerations. -->
5035 <attr name="dialogMode" format="boolean" />
5036 </declare-styleable>
5038 <declare-styleable name="TwoLineListItem">
5040 <!-- Always show only the first line. -->
5041 <enum name="oneLine" value="1" />
5042 <!-- When selected show both lines, otherwise show only the first line.
5043 This is the default mode. -->
5044 <enum name="collapsing" value="2" />
5045 <!-- Always show both lines. -->
5046 <enum name="twoLine" value="3" />
5048 </declare-styleable>
5050 <!-- SlidingDrawer specific attributes. These attributes are used to configure
5051 a SlidingDrawer from XML. -->
5052 <declare-styleable name="SlidingDrawer">
5053 <!-- Identifier for the child that represents the drawer's handle. -->
5054 <attr name="handle" format="reference" />
5055 <!-- Identifier for the child that represents the drawer's content. -->
5056 <attr name="content" format="reference" />
5057 <!-- Orientation of the SlidingDrawer. -->
5058 <attr name="orientation" />
5059 <!-- Extra offset for the handle at the bottom of the SlidingDrawer. -->
5060 <attr name="bottomOffset" format="dimension" />
5061 <!-- Extra offset for the handle at the top of the SlidingDrawer. -->
5062 <attr name="topOffset" format="dimension" />
5063 <!-- Indicates whether the drawer can be opened/closed by a single tap
5064 on the handle. (If false, the user must drag or fling, or click
5065 using the trackball, to open/close the drawer.) Default is true. -->
5066 <attr name="allowSingleTap" format="boolean" />
5067 <!-- Indicates whether the drawer should be opened/closed with an animation
5068 when the user clicks the handle. Default is true. -->
5069 <attr name="animateOnClick" format="boolean" />
5070 </declare-styleable>
5072 <!-- GestureOverlayView specific attributes. These attributes are used to configure
5073 a GestureOverlayView from XML. -->
5074 <declare-styleable name="GestureOverlayView">
5075 <!-- Width of the stroke used to draw the gesture. -->
5076 <attr name="gestureStrokeWidth" format="float" />
5077 <!-- Color used to draw a gesture. -->
5078 <attr name="gestureColor" format="color" />
5079 <!-- Color used to draw the user's strokes until we are sure it's a gesture. -->
5080 <attr name="uncertainGestureColor" format="color" />
5081 <!-- Time, in milliseconds, to wait before the gesture fades out after the user
5082 is done drawing it. -->
5083 <attr name="fadeOffset" format="integer" />
5084 <!-- Duration, in milliseconds, of the fade out effect after the user is done
5085 drawing a gesture. -->
5086 <attr name="fadeDuration" format="integer" />
5087 <!-- Defines the type of strokes that define a gesture. -->
5088 <attr name="gestureStrokeType">
5089 <!-- A gesture is made of only one stroke. -->
5090 <enum name="single" value="0" />
5091 <!-- A gesture is made of multiple strokes. -->
5092 <enum name="multiple" value="1" />
5094 <!-- Minimum length of a stroke before it is recognized as a gesture. -->
5095 <attr name="gestureStrokeLengthThreshold" format="float" />
5096 <!-- Squareness threshold of a stroke before it is recognized as a gesture. -->
5097 <attr name="gestureStrokeSquarenessThreshold" format="float" />
5098 <!-- Minimum curve angle a stroke must contain before it is recognized as a gesture. -->
5099 <attr name="gestureStrokeAngleThreshold" format="float" />
5100 <!-- Defines whether the overlay should intercept the motion events when a gesture
5102 <attr name="eventsInterceptionEnabled" format="boolean" />
5103 <!-- Defines whether the gesture will automatically fade out after being recognized. -->
5104 <attr name="fadeEnabled" format="boolean" />
5105 <!-- Indicates whether horizontal (when the orientation is vertical) or vertical
5106 (when orientation is horizontal) strokes automatically define a gesture. -->
5107 <attr name="orientation" />
5108 </declare-styleable>
5110 <declare-styleable name="QuickContactBadge">
5111 <attr name="quickContactWindowSize">
5112 <enum name="modeSmall" value="1" />
5113 <enum name="modeMedium" value="2" />
5114 <enum name="modeLarge" value="3" />
5116 </declare-styleable>
5118 <!-- ======================================= -->
5119 <!-- Widget package parent layout attributes -->
5120 <!-- ======================================= -->
5123 <declare-styleable name="AbsoluteLayout_Layout">
5124 <attr name="layout_x" format="dimension" />
5125 <attr name="layout_y" format="dimension" />
5126 </declare-styleable>
5127 <declare-styleable name="LinearLayout_Layout">
5128 <attr name="layout_width" />
5129 <attr name="layout_height" />
5130 <!-- Indicates how much of the extra space in the LinearLayout is
5131 allocated to the view associated with these LayoutParams. Specify
5132 0 if the view should not be stretched. Otherwise the extra pixels
5133 will be pro-rated among all views whose weight is greater than 0. -->
5134 <attr name="layout_weight" format="float" />
5135 <!-- Gravity specifies how a component should be placed in its group of cells.
5136 The default is {@link android.view.Gravity#TOP}.
5137 See {@link android.widget.LinearLayout#setGravity(int)}. -->
5138 <attr name="layout_gravity" />
5139 </declare-styleable>
5140 <declare-styleable name="GridLayout_Layout">
5141 <!-- The row boundary delimiting the top of the group of cells
5142 occupied by this view. -->
5143 <attr name="layout_row" format="integer" />
5144 <!-- The row span: the difference between the top and bottom
5145 boundaries delimiting the group of cells occupied by this view.
5147 See {@link android.widget.GridLayout.Spec}. -->
5148 <attr name="layout_rowSpan" format="integer" min="1" />
5149 <!-- The relative proportion of vertical space that should be allocated to this view
5150 during excess space distribution. -->
5151 <attr name="layout_rowWeight" format="float" />
5152 <!-- The column boundary delimiting the left of the group of cells
5153 occupied by this view. -->
5154 <attr name="layout_column" />
5155 <!-- The column span: the difference between the right and left
5156 boundaries delimiting the group of cells occupied by this view.
5158 See {@link android.widget.GridLayout.Spec}. -->
5159 <attr name="layout_columnSpan" format="integer" min="1" />
5160 <!-- The relative proportion of horizontal space that should be allocated to this view
5161 during excess space distribution. -->
5162 <attr name="layout_columnWeight" format="float" />
5163 <!-- Gravity specifies how a component should be placed in its group of cells.
5164 The default is LEFT | BASELINE.
5165 See {@link android.widget.GridLayout.LayoutParams#setGravity(int)}. -->
5166 <attr name="layout_gravity" />
5167 </declare-styleable>
5168 <declare-styleable name="FrameLayout_Layout">
5169 <attr name="layout_gravity" />
5170 </declare-styleable>
5171 <declare-styleable name="RelativeLayout_Layout">
5172 <!-- Positions the right edge of this view to the left of the given anchor view ID.
5173 Accommodates right margin of this view and left margin of anchor view. -->
5174 <attr name="layout_toLeftOf" format="reference" />
5175 <!-- Positions the left edge of this view to the right of the given anchor view ID.
5176 Accommodates left margin of this view and right margin of anchor view. -->
5177 <attr name="layout_toRightOf" format="reference" />
5178 <!-- Positions the bottom edge of this view above the given anchor view ID.
5179 Accommodates bottom margin of this view and top margin of anchor view. -->
5180 <attr name="layout_above" format="reference" />
5181 <!-- Positions the top edge of this view below the given anchor view ID.
5182 Accommodates top margin of this view and bottom margin of anchor view. -->
5183 <attr name="layout_below" format="reference" />
5184 <!-- Positions the baseline of this view on the baseline of the given anchor view ID. -->
5185 <attr name="layout_alignBaseline" format="reference" />
5186 <!-- Makes the left edge of this view match the left edge of the given anchor view ID.
5187 Accommodates left margin. -->
5188 <attr name="layout_alignLeft" format="reference" />
5189 <!-- Makes the top edge of this view match the top edge of the given anchor view ID.
5190 Accommodates top margin. -->
5191 <attr name="layout_alignTop" format="reference" />
5192 <!-- Makes the right edge of this view match the right edge of the given anchor view ID.
5193 Accommodates right margin. -->
5194 <attr name="layout_alignRight" format="reference" />
5195 <!-- Makes the bottom edge of this view match the bottom edge of the given anchor view ID.
5196 Accommodates bottom margin. -->
5197 <attr name="layout_alignBottom" format="reference" />
5198 <!-- If true, makes the left edge of this view match the left edge of the parent.
5199 Accommodates left margin. -->
5200 <attr name="layout_alignParentLeft" format="boolean" />
5201 <!-- If true, makes the top edge of this view match the top edge of the parent.
5202 Accommodates top margin. -->
5203 <attr name="layout_alignParentTop" format="boolean" />
5204 <!-- If true, makes the right edge of this view match the right edge of the parent.
5205 Accommodates right margin. -->
5206 <attr name="layout_alignParentRight" format="boolean" />
5207 <!-- If true, makes the bottom edge of this view match the bottom edge of the parent.
5208 Accommodates bottom margin. -->
5209 <attr name="layout_alignParentBottom" format="boolean" />
5210 <!-- If true, centers this child horizontally and vertically within its parent. -->
5211 <attr name="layout_centerInParent" format="boolean" />
5212 <!-- If true, centers this child horizontally within its parent. -->
5213 <attr name="layout_centerHorizontal" format="boolean" />
5214 <!-- If true, centers this child vertically within its parent. -->
5215 <attr name="layout_centerVertical" format="boolean" />
5216 <!-- If set to true, the parent will be used as the anchor when the anchor cannot be
5217 be found for layout_toLeftOf, layout_toRightOf, etc. -->
5218 <attr name="layout_alignWithParentIfMissing" format="boolean" />
5219 <!-- Positions the end edge of this view to the start of the given anchor view ID.
5220 Accommodates end margin of this view and start margin of anchor view. -->
5221 <attr name="layout_toStartOf" format="reference" />
5222 <!-- Positions the start edge of this view to the end of the given anchor view ID.
5223 Accommodates start margin of this view and end margin of anchor view. -->
5224 <attr name="layout_toEndOf" format="reference" />
5225 <!-- Makes the start edge of this view match the start edge of the given anchor view ID.
5226 Accommodates start margin. -->
5227 <attr name="layout_alignStart" format="reference" />
5228 <!-- Makes the end edge of this view match the end edge of the given anchor view ID.
5229 Accommodates end margin. -->
5230 <attr name="layout_alignEnd" format="reference" />
5231 <!-- If true, makes the start edge of this view match the start edge of the parent.
5232 Accommodates start margin. -->
5233 <attr name="layout_alignParentStart" format="boolean" />
5234 <!-- If true, makes the end edge of this view match the end edge of the parent.
5235 Accommodates end margin. -->
5236 <attr name="layout_alignParentEnd" format="boolean" />
5237 </declare-styleable>
5238 <declare-styleable name="VerticalSlider_Layout">
5239 <attr name="layout_scale" format="float" />
5240 </declare-styleable>
5243 <declare-styleable name="WeightedLinearLayout">
5244 <attr name="majorWeightMin" format="float" />
5245 <attr name="minorWeightMin" format="float" />
5246 <attr name="majorWeightMax" format="float" />
5247 <attr name="minorWeightMax" format="float" />
5248 </declare-styleable>
5250 <declare-styleable name="CalendarView">
5251 <!-- The first day of week according to {@link java.util.Calendar}. -->
5252 <attr name="firstDayOfWeek" format="integer" />
5253 <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
5254 <attr name="minDate" />
5255 <!-- The maximal date shown by this calendar view in mm/dd/yyyy format. -->
5256 <attr name="maxDate" />
5257 <!-- The text appearance for the month and year in the calendar header. -->
5258 <attr name="monthTextAppearance" format="reference" />
5259 <!-- The text appearance for the week day abbreviation in the calendar header. -->
5260 <attr name="weekDayTextAppearance" format="reference" />
5261 <!-- The text appearance for the day numbers in the calendar grid. -->
5262 <attr name="dateTextAppearance" format="reference" />
5263 <!-- @hide The background color used for the day selection indicator. -->
5264 <attr name="daySelectorColor" format="color" />
5265 <!-- @hide The background color used for the day highlight indicator. -->
5266 <attr name="dayHighlightColor" format="color" />
5267 <!-- @hide Which style of calendar delegate to use. -->
5268 <attr name="calendarViewMode">
5269 <enum name="holo" value="0" />
5270 <enum name="material" value="1" />
5273 <!-- @deprecated Whether do show week numbers. -->
5274 <attr name="showWeekNumber" format="boolean" />
5275 <!-- @deprecated The number of weeks to be shown. -->
5276 <attr name="shownWeekCount" format="integer"/>
5277 <!-- @deprecated The background color for the selected week. -->
5278 <attr name="selectedWeekBackgroundColor" format="color|reference" />
5279 <!-- @deprecated The color for the dates of the focused month. -->
5280 <attr name="focusedMonthDateColor" format="color|reference" />
5281 <!-- @deprecated The color for the dates of an unfocused month. -->
5282 <attr name="unfocusedMonthDateColor" format="color|reference" />
5283 <!-- @deprecated The color for the week numbers. -->
5284 <attr name="weekNumberColor" format="color|reference" />
5285 <!-- @deprecated The color for the separator line between weeks. -->
5286 <attr name="weekSeparatorLineColor" format="color|reference" />
5287 <!-- @deprecated Drawable for the vertical bar shown at the beginning and at the end of the selected date. -->
5288 <attr name="selectedDateVerticalBar" format="reference" />
5289 </declare-styleable>
5291 <declare-styleable name="NumberPicker">
5292 <!-- @hide Color for the solid color background if such for optimized rendering. -->
5293 <attr name="solidColor" format="color|reference" />
5294 <!-- @hide The divider for making the selection area. -->
5295 <attr name="selectionDivider" format="reference" />
5296 <!-- @hide The height of the selection divider. -->
5297 <attr name="selectionDividerHeight" format="dimension" />
5298 <!-- @hide The distance between the two selection dividers. -->
5299 <attr name="selectionDividersDistance" format="dimension" />
5300 <!-- @hide The min height of the NumberPicker. -->
5301 <attr name="internalMinHeight" format="dimension" />
5302 <!-- @hide The max height of the NumberPicker. -->
5303 <attr name="internalMaxHeight" format="dimension" />
5304 <!-- @hide The min width of the NumberPicker. -->
5305 <attr name="internalMinWidth" format="dimension" />
5306 <!-- @hide The max width of the NumberPicker. -->
5307 <attr name="internalMaxWidth" format="dimension" />
5308 <!-- @hide The layout of the number picker. -->
5309 <attr name="internalLayout" />
5310 <!-- @hide The drawable for pressed virtual (increment/decrement) buttons. -->
5311 <attr name="virtualButtonPressedDrawable" format="reference"/>
5312 <!-- @hide If true then the selector wheel is hidden until the picker has focus. -->
5313 <attr name="hideWheelUntilFocused" format="boolean"/>
5314 </declare-styleable>
5316 <declare-styleable name="TimePicker">
5317 <!-- @hide The layout of the legacy time picker. -->
5318 <attr name="legacyLayout" format="reference" />
5319 <!-- @hide The layout of the time picker. -->
5320 <attr name="internalLayout" />
5322 <!-- The text color for the selected time header text, ex. "12" or
5323 "PM". This should be a color state list where the activated state
5324 will be used when the minute picker or hour picker is active.-->
5325 <attr name="headerTextColor" />
5326 <!-- The background for the header containing the currently selected time. -->
5327 <attr name="headerBackground" />
5329 <!-- The color for the hours/minutes numbers. This should be a color
5330 state list where the activated state will be used when the number
5332 <attr name="numbersTextColor" format="color" />
5333 <!-- The color for the inner hours numbers used in 24-hour mode. This
5334 should be a color state list where the activated state will be
5335 used when the number is active.-->
5336 <attr name="numbersInnerTextColor" format="color" />
5337 <!-- The background color for the hours/minutes numbers. -->
5338 <attr name="numbersBackgroundColor" format="color" />
5339 <!-- The color for the hours/minutes selector. -->
5340 <attr name="numbersSelectorColor" format="color" />
5342 <!-- Defines the look of the widget. Prior to the L release, the only choice was
5343 spinner. As of L, with the Material theme selected, the default layout is clock,
5344 but this attribute can be used to force spinner to be used instead. -->
5345 <attr name="timePickerMode">
5346 <!-- Time picker with spinner controls to select the time. -->
5347 <enum name="spinner" value="1" />
5348 <!-- Time picker with clock face to select the time. -->
5349 <enum name="clock" value="2" />
5352 <!-- The text appearance for the AM/PM header.
5353 @deprecated Use headerTextColor instead. -->
5354 <attr name="headerAmPmTextAppearance" format="reference" />
5355 <!-- The text appearance for the time header.
5356 @deprecated Use headerTextColor instead. -->
5357 <attr name="headerTimeTextAppearance" format="reference" />
5358 <!-- The color for the AM/PM selectors.
5359 {@deprecated Use headerTextColor instead.}-->
5360 <attr name="amPmTextColor" format="color" />
5361 <!-- The background color state list for the AM/PM selectors.
5362 {@deprecated Use headerBackground instead.}-->
5363 <attr name="amPmBackgroundColor" format="color" />
5365 <!-- @hide Whether this time picker is being displayed within a dialog,
5366 in which case it may ignore the requested time picker mode due to
5367 space considerations. -->
5368 <attr name="dialogMode" />
5369 </declare-styleable>
5371 <!-- ========================= -->
5372 <!-- Drawable class attributes -->
5373 <!-- ========================= -->
5376 <!-- Base attributes that are available to all Drawable objects. -->
5377 <declare-styleable name="Drawable">
5378 <!-- Provides initial visibility state of the drawable; the default
5380 {@link android.graphics.drawable.Drawable#setVisible}. -->
5381 <attr name="visible" format="boolean" />
5382 <!-- Indicates if the drawable needs to be mirrored when its layout direction is
5383 RTL (right-to-left). See
5384 {@link android.graphics.drawable.Drawable#setAutoMirrored}. -->
5385 <attr name="autoMirrored" format="boolean" />
5386 </declare-styleable>
5388 <!-- Drawable class used to wrap other drawables. -->
5389 <declare-styleable name="DrawableWrapper">
5390 <!-- The wrapped drawable. -->
5391 <attr name="drawable" />
5392 </declare-styleable>
5394 <!-- Drawable used to render several states. Each state is represented by
5395 a child drawable. -->
5396 <declare-styleable name="StateListDrawable">
5397 <!-- Indicates whether the drawable should be initially visible. -->
5398 <attr name="visible" />
5399 <!-- If true, allows the drawable's padding to change based on the
5400 current state that is selected. If false, the padding will
5401 stay the same (based on the maximum padding of all the states).
5402 Enabling this feature requires that the owner of the drawable
5403 deal with performing layout when the state changes, which is
5404 often not supported. -->
5405 <attr name="variablePadding" format="boolean" />
5406 <!-- If true, the drawable's reported internal size will remain
5407 constant as the state changes; the size is the maximum of all
5408 of the states. If false, the size will vary based on the
5410 <attr name="constantSize" format="boolean" />
5411 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
5412 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
5413 an RGB 565 screen). -->
5414 <attr name="dither" format="boolean" />
5415 <!-- Amount of time (in milliseconds) to fade in a new state drawable. -->
5416 <attr name="enterFadeDuration" format="integer" />
5417 <!-- Amount of time (in milliseconds) to fade out an old state drawable. -->
5418 <attr name="exitFadeDuration" format="integer" />
5419 <!-- Indicates if the drawable needs to be mirrored when its layout direction is
5420 RTL (right-to-left). -->
5421 <attr name="autoMirrored"/>
5422 </declare-styleable>
5424 <!-- Drawable used to render several states with animated transitions. Each state
5425 is represented by a child drawable with an optional keyframe ID. -->
5426 <declare-styleable name="AnimatedStateListDrawable">
5427 <!-- Indicates whether the drawable should be initially visible. -->
5428 <attr name="visible" />
5429 <!-- If true, allows the drawable's padding to change based on the
5430 current state that is selected. If false, the padding will
5431 stay the same (based on the maximum padding of all the states).
5432 Enabling this feature requires that the owner of the drawable
5433 deal with performing layout when the state changes, which is
5434 often not supported. -->
5435 <attr name="variablePadding" />
5436 <!-- If true, the drawable's reported internal size will remain
5437 constant as the state changes; the size is the maximum of all
5438 of the states. If false, the size will vary based on the
5440 <attr name="constantSize" />
5441 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
5442 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
5443 an RGB 565 screen). -->
5444 <attr name="dither" />
5445 <!-- Amount of time (in milliseconds) to fade in a new state drawable. -->
5446 <attr name="enterFadeDuration" />
5447 <!-- Amount of time (in milliseconds) to fade out an old state drawable. -->
5448 <attr name="exitFadeDuration" />
5449 <!-- Indicates if the drawable needs to be mirrored when its layout direction is
5450 RTL (right-to-left). -->
5451 <attr name="autoMirrored"/>
5452 </declare-styleable>
5454 <!-- Represents a single state inside a StateListDrawable. -->
5455 <declare-styleable name="StateListDrawableItem">
5456 <!-- Reference to a drawable resource to use for the state. If not
5457 given, the drawable must be defined by the first child tag. -->
5458 <attr name="drawable" />
5459 </declare-styleable>
5461 <!-- Transition used to animate between states with keyframe IDs. -->
5462 <declare-styleable name="AnimatedStateListDrawableItem">
5463 <!-- Reference to a drawable resource to use for the frame. If not
5464 given, the drawable must be defined by the first child tag. -->
5465 <attr name="drawable" />
5466 <!-- Keyframe identifier for use in specifying transitions. -->
5468 </declare-styleable>
5470 <!-- Transition used to animate between states with keyframe IDs. -->
5471 <declare-styleable name="AnimatedStateListDrawableTransition">
5472 <!-- Keyframe identifier for the starting state. -->
5473 <attr name="fromId" format="reference" />
5474 <!-- Keyframe identifier for the ending state. -->
5475 <attr name="toId" format="reference" />
5476 <!-- Reference to a animation drawable resource to use for the frame. If not
5477 given, the animation drawable must be defined by the first child tag. -->
5478 <attr name="drawable" />
5479 <!-- Whether this transition is reversible. -->
5480 <attr name="reversible" format="boolean" />
5481 </declare-styleable>
5483 <!-- Drawable used to render several animated frames. -->
5484 <declare-styleable name="AnimationDrawable">
5485 <attr name="visible" />
5486 <attr name="variablePadding" />
5487 <!-- If true, the animation will only run a single time and then
5488 stop. If false (the default), it will continually run,
5489 restarting at the first frame after the last has finished. -->
5490 <attr name="oneshot" format="boolean" />
5491 </declare-styleable>
5493 <!-- Represents a single frame inside an AnimationDrawable. -->
5494 <declare-styleable name="AnimationDrawableItem">
5495 <!-- Amount of time (in milliseconds) to display this frame. -->
5496 <attr name="duration" format="integer" />
5497 <!-- Reference to a drawable resource to use for the frame. If not
5498 given, the drawable must be defined by the first child tag. -->
5499 <attr name="drawable" format="reference" />
5500 </declare-styleable>
5502 <!-- Attributes that can be assigned to a StateListAnimator item. -->
5503 <declare-styleable name="StateListAnimatorItem">
5504 <attr name="animation"/>
5505 </declare-styleable>
5507 <!-- Attributes that can be assigned to a ColorStateList item. -->
5508 <declare-styleable name="ColorStateListItem">
5509 <!-- Base color for this state. -->
5510 <attr name="color" />
5511 <!-- Alpha multiplier applied to the base color. -->
5512 <attr name="alpha" />
5513 </declare-styleable>
5515 <!-- Drawable used to render according to the animation scale. Esp. when it is 0 due to battery
5516 saver mode. It should contain one animatable drawable and one static drawable.
5518 <declare-styleable name="AnimationScaleListDrawable">
5519 </declare-styleable>
5521 <!-- Attributes that can be assigned to a AnimationScaleListDrawable item.
5523 <declare-styleable name="AnimationScaleListDrawableItem">
5524 <!-- Reference to a drawable resource to use for the state. If not
5525 given, the drawable must be defined by the first child tag. -->
5526 <attr name="drawable" />
5527 </declare-styleable>
5530 <!-- Drawable used to render a geometric shape, with a gradient or a solid color. -->
5531 <declare-styleable name="GradientDrawable">
5532 <!-- Indicates whether the drawable should intially be visible. -->
5533 <attr name="visible" />
5534 <!-- Enables or disables dithering. -->
5535 <attr name="dither" />
5536 <!-- Indicates what shape to fill with a gradient. -->
5538 <!-- Rectangle shape, with optional rounder corners. -->
5539 <enum name="rectangle" value="0" />
5540 <!-- Oval shape. -->
5541 <enum name="oval" value="1" />
5542 <!-- Line shape. -->
5543 <enum name="line" value="2" />
5544 <!-- Ring shape. -->
5545 <enum name="ring" value="3" />
5547 <!-- Inner radius of the ring expressed as a ratio of the ring's width. For instance,
5548 if innerRadiusRatio=9, then the inner radius equals the ring's width divided by 9.
5549 This value is ignored if innerRadius is defined. Default value is 9. -->
5550 <attr name="innerRadiusRatio" format="float" />
5551 <!-- Thickness of the ring expressed as a ratio of the ring's width. For instance,
5552 if thicknessRatio=3, then the thickness equals the ring's width divided by 3.
5553 This value is ignored if innerRadius is defined. Default value is 3. -->
5554 <attr name="thicknessRatio" format="float" />
5555 <!-- Inner radius of the ring. When defined, innerRadiusRatio is ignored. -->
5556 <attr name="innerRadius" format="dimension" />
5557 <!-- Thickness of the ring. When defined, thicknessRatio is ignored. -->
5558 <attr name="thickness" format="dimension" />
5559 <!-- Whether the drawable level value (see
5560 {@link android.graphics.drawable.Drawable#getLevel()}) is used to scale the shape.
5561 Scaling behavior depends on the shape type. For "ring", the angle is scaled from 0 to
5562 360. For all other types, there is no effect. The default value is true. -->
5563 <attr name="useLevel" />
5564 <!-- If set, specifies the color to apply to the drawable as a tint. By default,
5565 no tint is applied. May be a color state list. -->
5566 <attr name="tint" />
5567 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The
5568 default value is src_in, which treats the drawable as an alpha mask. -->
5569 <attr name="tintMode" />
5570 <!-- Left optical inset.
5571 @hide Until optical insets are fully supported. -->
5572 <attr name="opticalInsetLeft" />
5573 <!-- Top optical inset.
5574 @hide Until optical insets are fully supported. -->
5575 <attr name="opticalInsetTop" />
5576 <!-- Right optical inset.
5577 @hide Until optical insets are fully supported. -->
5578 <attr name="opticalInsetRight" />
5579 <!-- Bottom optical inset.
5580 @hide Until optical insets are fully supported. -->
5581 <attr name="opticalInsetBottom" />
5582 </declare-styleable>
5584 <!-- Used to specify the size of the shape for GradientDrawable. -->
5585 <declare-styleable name="GradientDrawableSize">
5586 <!-- Width of the gradient shape. -->
5587 <attr name="width" />
5588 <!-- Height of the gradient shape. -->
5589 <attr name="height" />
5590 </declare-styleable>
5592 <!-- Used to describe the gradient used to fill the shape of a GradientDrawable. -->
5593 <declare-styleable name="GradientDrawableGradient">
5594 <!-- Start color of the gradient. -->
5595 <attr name="startColor" format="color" />
5596 <!-- Optional center color. For linear gradients, use centerX or centerY to place the center
5598 <attr name="centerColor" format="color" />
5599 <!-- End color of the gradient. -->
5600 <attr name="endColor" format="color" />
5601 <!-- Whether the drawable level value (see
5602 {@link android.graphics.drawable.Drawable#getLevel()}) is used to scale the gradient.
5603 Scaling behavior varies based on gradient type. For "linear", adjusts the ending
5604 position along the gradient's axis of orientation. For "radial", adjusts the outer
5605 radius. For "sweep", adjusts the ending angle. The default value is false. -->
5606 <attr name="useLevel" format="boolean" />
5607 <!-- Angle of the gradient, used only with linear gradient. Must be a multiple of 45 in the
5609 <attr name="angle" format="float" />
5610 <!-- Type of gradient. The default type is linear. -->
5612 <!-- Linear gradient extending across the center point. -->
5613 <enum name="linear" value="0" />
5614 <!-- Radial gradient extending from the center point outward. -->
5615 <enum name="radial" value="1" />
5616 <!-- Sweep (or angular) gradient sweeping counter-clockwise around the center point. -->
5617 <enum name="sweep" value="2" />
5619 <!-- X-position of the center point of the gradient within the shape as a fraction of the
5620 width. The default value is 0.5. -->
5621 <attr name="centerX" format="float|fraction" />
5622 <!-- Y-position of the center point of the gradient within the shape as a fraction of the
5623 height. The default value is 0.5. -->
5624 <attr name="centerY" format="float|fraction" />
5625 <!-- Radius of the gradient, used only with radial gradient. May be an explicit dimension
5626 or a fractional value relative to the shape's minimum dimension. -->
5627 <attr name="gradientRadius" format="float|fraction|dimension" />
5628 </declare-styleable>
5630 <!-- Used to fill the shape of GradientDrawable with a solid color. -->
5631 <declare-styleable name="GradientDrawableSolid">
5632 <!-- Solid color for the gradient shape. -->
5633 <attr name="color" format="color" />
5634 </declare-styleable>
5636 <!-- Used to describe the optional stroke of a GradientDrawable. -->
5637 <declare-styleable name="GradientDrawableStroke">
5638 <!-- Width of the gradient shape's stroke. -->
5639 <attr name="width" />
5640 <!-- Color of the gradient shape's stroke. -->
5641 <attr name="color" />
5642 <!-- Length of a dash in the stroke. -->
5643 <attr name="dashWidth" format="dimension" />
5644 <!-- Gap between dashes in the stroke. -->
5645 <attr name="dashGap" format="dimension" />
5646 </declare-styleable>
5648 <!-- Describes the corners for the rectangle shape of a GradientDrawable.
5649 This can be used to render rounded corners. -->
5650 <declare-styleable name="DrawableCorners">
5651 <!-- Defines the radius of the four corners. -->
5652 <attr name="radius" format="dimension" />
5653 <!-- Radius of the top left corner. -->
5654 <attr name="topLeftRadius" format="dimension" />
5655 <!-- Radius of the top right corner. -->
5656 <attr name="topRightRadius" format="dimension" />
5657 <!-- Radius of the bottom left corner. -->
5658 <attr name="bottomLeftRadius" format="dimension" />
5659 <!-- Radius of the bottom right corner. -->
5660 <attr name="bottomRightRadius" format="dimension" />
5661 </declare-styleable>
5663 <!-- Used to specify the optional padding of a GradientDrawable. -->
5664 <declare-styleable name="GradientDrawablePadding">
5665 <!-- Amount of left padding inside the gradient shape. -->
5666 <attr name="left" format="dimension" />
5667 <!-- Amount of top padding inside the gradient shape. -->
5668 <attr name="top" format="dimension" />
5669 <!-- Amount of right padding inside the gradient shape. -->
5670 <attr name="right" format="dimension" />
5671 <!-- Amount of bottom padding inside the gradient shape. -->
5672 <attr name="bottom" format="dimension" />
5673 </declare-styleable>
5675 <!-- Drawable used to render several drawables stacked on top of each other.
5676 Each child drawable can be controlled individually. -->
5677 <declare-styleable name="LayerDrawable">
5678 <!-- Indicates the opacity of the layer. This can be useful to allow the
5679 system to enable drawing optimizations. The default value is
5681 <attr name="opacity">
5682 <!-- Indicates that the layer is opaque and contains no transparent
5683 nor translucent pixels. -->
5684 <enum name="opaque" value="-1" />
5685 <!-- The layer is completely transparent (no pixel will be drawn). -->
5686 <enum name="transparent" value="-2" />
5687 <!-- The layer has translucent pixels. -->
5688 <enum name="translucent" value="-3" />
5690 <!-- Indicates if the drawable needs to be mirrored when its layout direction is
5691 RTL (right-to-left). -->
5692 <attr name="autoMirrored" />
5693 <!-- Indicates how layer padding should affect the bounds of subsequent layers.
5694 The default padding mode value is nest. -->
5695 <attr name="paddingMode">
5696 <!-- Nest each layer inside the padding of the previous layer. -->
5697 <enum name="nest" value="0" />
5698 <!-- Stack each layer directly atop the previous layer. -->
5699 <enum name="stack" value="1" />
5701 <!-- Explicit top padding. Overrides child padding. -->
5702 <attr name="paddingTop" />
5703 <!-- Explicit bottom padding. Overrides child padding. -->
5704 <attr name="paddingBottom" />
5705 <!-- Explicit left padding. Overrides child padding. -->
5706 <attr name="paddingLeft" />
5707 <!-- Explicit right padding. Overrides child padding. -->
5708 <attr name="paddingRight" />
5709 <!-- Explicit start padding. Overrides child padding. Takes precedence
5710 over absolute padding (for example, left when layout direction is LTR). -->
5711 <attr name="paddingStart" />
5712 <!-- Explicit end padding. Overrides child padding. Takes precedence
5713 over absolute padding (for example, right when layout direction is LTR). -->
5714 <attr name="paddingEnd" />
5715 </declare-styleable>
5717 <!-- Describes an item (or child) of a LayerDrawable. -->
5718 <declare-styleable name="LayerDrawableItem">
5719 <!-- Left inset to apply to the layer. -->
5720 <attr name="left" />
5721 <!-- Top inset to apply to the layer. -->
5723 <!-- Right inset to apply to the layer. -->
5724 <attr name="right" />
5725 <!-- Bottom inset to apply to the layer. -->
5726 <attr name="bottom" />
5727 <!-- Start inset to apply to the layer. Overrides {@code left} or
5728 {@code right} depending on layout direction. -->
5729 <attr name="start" format="dimension" />
5730 <!-- End inset to apply to the layer. Overrides {@code left} or
5731 {@code right} depending on layout direction. -->
5732 <attr name="end" format="dimension" />
5733 <!-- Width of the layer. Defaults to the layer's intrinsic width. -->
5734 <attr name="width" />
5735 <!-- Height of the layer. Defaults to the layer's intrinsic height. -->
5736 <attr name="height" />
5737 <!-- Gravity used to align the layer within its container. If no value
5738 is specified, the default behavior depends on whether an explicit
5739 width or height has been set, If no dimension is set, gravity in
5740 that direction defaults to {@code fill_horizontal} or
5741 {@code fill_vertical}; otherwise, it defaults to {@code left} or
5743 <attr name="gravity" />
5744 <!-- Drawable used to render the layer. -->
5745 <attr name="drawable" />
5746 <!-- Identifier of the layer. This can be used to retrieve the layer
5747 from a drawable container. -->
5749 </declare-styleable>
5751 <declare-styleable name="LevelListDrawableItem">
5752 <!-- The minimum level allowed for this item. -->
5753 <attr name="minLevel" format="integer" />
5754 <!-- The maximum level allowed for this item. -->
5755 <attr name="maxLevel" format="integer" />
5756 <attr name="drawable" />
5757 </declare-styleable>
5759 <!-- Drawable used to rotate another drawable. -->
5760 <declare-styleable name="RotateDrawable">
5761 <attr name="visible" />
5762 <attr name="fromDegrees" format="float" />
5763 <attr name="toDegrees" format="float" />
5764 <attr name="pivotX" format="float|fraction" />
5765 <attr name="pivotY" format="float|fraction" />
5766 <attr name="drawable" />
5767 </declare-styleable>
5769 <declare-styleable name="AnimatedRotateDrawable">
5770 <attr name="visible" />
5771 <attr name="frameDuration" format="integer" />
5772 <attr name="framesCount" format="integer" />
5773 <attr name="pivotX" />
5774 <attr name="pivotY" />
5775 <attr name="drawable" />
5776 </declare-styleable>
5778 <!-- Drawable used to render the Material progress indicator. -->
5779 <declare-styleable name="MaterialProgressDrawable">
5780 <attr name="visible" />
5781 <attr name="thickness" />
5782 <attr name="innerRadius" />
5783 <attr name="width" />
5784 <attr name="height" />
5785 <attr name="color" />
5786 </declare-styleable>
5788 <!-- Drawable used to wrap and inset another drawable. -->
5789 <declare-styleable name="InsetDrawable">
5790 <attr name="visible" />
5791 <attr name="drawable" />
5792 <attr name="inset" format="fraction|dimension"/>
5793 <attr name="insetLeft" format="fraction|dimension" />
5794 <attr name="insetRight" format="fraction|dimension" />
5795 <attr name="insetTop" format="fraction|dimension" />
5796 <attr name="insetBottom" format="fraction|dimension" />
5797 </declare-styleable>
5799 <!-- Drawable used to draw bitmaps. -->
5800 <declare-styleable name="BitmapDrawable">
5801 <!-- Identifier of the bitmap file. This attribute is mandatory. -->
5803 <!-- Enables or disables antialiasing. Antialiasing can be used to smooth the
5804 edges of a bitmap when rotated. Default value is false. -->
5805 <attr name="antialias" format="boolean" />
5806 <!-- Enables or disables bitmap filtering. Filtering is used when the bitmap is
5807 shrunk or stretched to smooth its apperance. Default value is true. -->
5808 <attr name="filter" format="boolean" />
5809 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
5810 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
5811 an RGB 565 screen). Default value is true. -->
5812 <attr name="dither" />
5813 <!-- Defines the gravity for the bitmap. The gravity indicates where to position
5814 the drawable in its container if the bitmap is smaller than the container. -->
5815 <attr name="gravity" />
5816 <!-- Defines the tile mode. When the tile mode is enabled, the bitmap is repeated.
5817 Gravity is ignored when the tile mode is enabled. Default value is "disabled". -->
5818 <attr name="tileMode">
5819 <!-- Do not tile the bitmap. This is the default value. -->
5820 <enum name="disabled" value="-1" />
5821 <!-- Replicates the edge color. -->
5822 <enum name="clamp" value="0" />
5823 <!-- Repeats the bitmap in both direction. -->
5824 <enum name="repeat" value="1" />
5825 <!-- Repeats the shader's image horizontally and vertically, alternating
5826 mirror images so that adjacent images always seam. -->
5827 <enum name="mirror" value="2" />
5829 <!-- Defines the horizontal tile mode. When the tile mode is enabled, the bitmap is repeated.
5830 Gravity is ignored when the tile mode is enabled. Default value is "disabled". -->
5831 <attr name="tileModeX">
5832 <!-- Do not tile the bitmap. This is the default value. -->
5833 <enum name="disabled" value="-1" />
5834 <!-- Replicates the edge color. -->
5835 <enum name="clamp" value="0" />
5836 <!-- Repeats the bitmap horizontally. -->
5837 <enum name="repeat" value="1" />
5838 <!-- Repeats the shader's image horizontally, alternating
5839 mirror images so that adjacent images always seam. -->
5840 <enum name="mirror" value="2" />
5842 <!-- Defines the vertical tile mode. When the tile mode is enabled, the bitmap is repeated.
5843 Gravity is ignored when the tile mode is enabled. Default value is "disabled". -->
5844 <attr name="tileModeY">
5845 <!-- Do not tile the bitmap. This is the default value. -->
5846 <enum name="disabled" value="-1" />
5847 <!-- Replicates the edge color. -->
5848 <enum name="clamp" value="0" />
5849 <!-- Repeats the bitmap vertically. -->
5850 <enum name="repeat" value="1" />
5851 <!-- Repeats the shader's image vertically, alternating
5852 mirror images so that adjacent images always seam. -->
5853 <enum name="mirror" value="2" />
5855 <!-- Enables or disables the mipmap hint. See
5856 {@link android.graphics.Bitmap#setHasMipMap(boolean)} for more information.
5857 Default value is false. -->
5858 <attr name="mipMap" format="boolean" />
5859 <!-- Indicates if the drawable needs to be mirrored when its layout direction is
5860 RTL (right-to-left). -->
5861 <attr name="autoMirrored" />
5862 <!-- If set, specifies the color to apply to the drawable as a tint. By default,
5863 no tint is applied. May be a color state list. -->
5864 <attr name="tint" />
5865 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The
5866 default value is src_in, which treats the drawable as an alpha mask. -->
5867 <attr name="tintMode">
5868 <!-- The tint is drawn on top of the drawable.
5869 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
5870 <enum name="src_over" value="3" />
5871 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
5872 color channels are thrown out. [Sa * Da, Sc * Da] -->
5873 <enum name="src_in" value="5" />
5874 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
5875 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
5876 <enum name="src_atop" value="9" />
5877 <!-- Multiplies the color and alpha channels of the drawable with those of
5878 the tint. [Sa * Da, Sc * Dc] -->
5879 <enum name="multiply" value="14" />
5880 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
5881 <enum name="screen" value="15" />
5882 <!-- Combines the tint and drawable color and alpha channels, clamping the
5883 result to valid color values. Saturate(S + D) -->
5884 <enum name="add" value="16" />
5886 <!-- Specifies the alpha multiplier to apply to the base drawable. -->
5887 <attr name="alpha" />
5888 </declare-styleable>
5890 <!-- Drawable used to draw 9-patches. -->
5891 <declare-styleable name="NinePatchDrawable">
5892 <!-- Identifier of the bitmap file. This attribute is mandatory. -->
5894 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the
5895 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
5896 an RGB 565 screen). -->
5897 <attr name="dither" />
5898 <!-- Indicates if the drawable needs to be mirrored when its layout direction is
5899 RTL (right-to-left). -->
5900 <attr name="autoMirrored" />
5901 <!-- If set, specifies the color to apply to the drawable as a tint. By default,
5902 no tint is applied. May be a color state list. -->
5903 <attr name="tint" />
5904 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The
5905 default value is src_in, which treats the drawable as an alpha mask. -->
5906 <attr name="tintMode" />
5907 <!-- Specifies the alpha multiplier to apply to the base drawable. -->
5908 <attr name="alpha" />
5909 </declare-styleable>
5911 <!-- Drawable used to draw a single color. -->
5912 <declare-styleable name="ColorDrawable">
5913 <!-- The color to use. -->
5914 <attr name="color" />
5915 </declare-styleable>
5917 <!-- Drawable used to draw adaptive icons with foreground and background layers. -->
5918 <declare-styleable name="AdaptiveIconDrawableLayer">
5919 <!-- The drawable to use for the layer. -->
5920 <attr name="drawable" />
5921 </declare-styleable>
5923 <!-- Drawable used to show animated touch feedback. -->
5924 <declare-styleable name="RippleDrawable">
5925 <!-- The color to use for ripple effects. This attribute is required. -->
5926 <attr name="color" />
5927 <!-- The radius of the ripple when fully expanded. By default, the
5928 radius is computed based on the size of the ripple's container. -->
5929 <attr name="radius" />
5930 </declare-styleable>
5932 <declare-styleable name="ScaleDrawable">
5933 <!-- Scale width, expressed as a percentage of the drawable's bound. The value's
5934 format is XX%. For instance: 100%, 12.5%, etc.-->
5935 <attr name="scaleWidth" format="string" />
5936 <!-- Scale height, expressed as a percentage of the drawable's bound. The value's
5937 format is XX%. For instance: 100%, 12.5%, etc.-->
5938 <attr name="scaleHeight" format="string" />
5939 <!-- Specifies where the drawable is positioned after scaling. The default value is
5941 <attr name="scaleGravity">
5942 <!-- Push object to the top of its container, not changing its size. -->
5943 <flag name="top" value="0x30" />
5944 <!-- Push object to the bottom of its container, not changing its size. -->
5945 <flag name="bottom" value="0x50" />
5946 <!-- Push object to the left of its container, not changing its size. -->
5947 <flag name="left" value="0x03" />
5948 <!-- Push object to the right of its container, not changing its size. -->
5949 <flag name="right" value="0x05" />
5950 <!-- Place object in the vertical center of its container, not changing its size. -->
5951 <flag name="center_vertical" value="0x10" />
5952 <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
5953 <flag name="fill_vertical" value="0x70" />
5954 <!-- Place object in the horizontal center of its container, not changing its size. -->
5955 <flag name="center_horizontal" value="0x01" />
5956 <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
5957 <flag name="fill_horizontal" value="0x07" />
5958 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
5959 <flag name="center" value="0x11" />
5960 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
5961 <flag name="fill" value="0x77" />
5962 <!-- Additional option that can be set to have the top and/or bottom edges of
5963 the child clipped to its container's bounds.
5964 The clip will be based on the vertical gravity: a top gravity will clip the bottom
5965 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
5966 <flag name="clip_vertical" value="0x80" />
5967 <!-- Additional option that can be set to have the left and/or right edges of
5968 the child clipped to its container's bounds.
5969 The clip will be based on the horizontal gravity: a left gravity will clip the right
5970 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
5971 <flag name="clip_horizontal" value="0x08" />
5972 <!-- Push object to the beginning of its container, not changing its size. -->
5973 <flag name="start" value="0x00800003" />
5974 <!-- Push object to the end of its container, not changing its size. -->
5975 <flag name="end" value="0x00800005" />
5977 <!-- Specifies the initial drawable level in the range 0 to 10000. -->
5978 <attr name="level" format="integer" />
5979 <!-- Reference to a drawable resource to draw with the specified scale. -->
5980 <attr name="drawable" />
5981 <!-- Use the drawable's intrinsic width and height as minimum size values.
5982 Useful if the target drawable is a 9-patch or otherwise should not be scaled
5983 down beyond a minimum size. -->
5984 <attr name="useIntrinsicSizeAsMinimum" format="boolean" />
5985 </declare-styleable>
5987 <declare-styleable name="ClipDrawable">
5988 <!-- The orientation for the clip. -->
5989 <attr name="clipOrientation">
5990 <!-- Clip the drawable horizontally. -->
5991 <flag name="horizontal" value="1" />
5992 <!-- Clip the drawable vertically. -->
5993 <flag name="vertical" value="2" />
5995 <!-- Specifies where to clip within the drawable. The default value is
5997 <attr name="gravity" />
5998 <!-- Reference to a drawable resource to draw with the specified scale. -->
5999 <attr name="drawable" />
6000 </declare-styleable>
6002 <!-- Defines the padding of a ShapeDrawable. -->
6003 <declare-styleable name="ShapeDrawablePadding">
6004 <!-- Left padding. -->
6005 <attr name="left" />
6006 <!-- Top padding. -->
6008 <!-- Right padding. -->
6009 <attr name="right" />
6010 <!-- Bottom padding. -->
6011 <attr name="bottom" />
6012 </declare-styleable>
6014 <!-- Drawable used to draw shapes. -->
6015 <declare-styleable name="ShapeDrawable">
6016 <!-- Defines the color of the shape. -->
6017 <attr name="color" />
6018 <!-- Defines the width of the shape. -->
6019 <attr name="width" />
6020 <!-- Defines the height of the shape. -->
6021 <attr name="height" />
6022 <!-- Enables or disables dithering. -->
6023 <attr name="dither" />
6024 <!-- If set, specifies the color to apply to the drawable as a tint. By default,
6025 no tint is applied. May be a color state list. -->
6026 <attr name="tint" />
6027 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The
6028 default value is src_in, which treats the drawable as an alpha mask. -->
6029 <attr name="tintMode" />
6030 </declare-styleable>
6032 <!-- ========================== -->
6033 <!-- VectorDrawable class -->
6034 <!-- ========================== -->
6037 <!-- Drawable used to draw vector paths. -->
6038 <declare-styleable name="VectorDrawable">
6039 <!-- If set, specifies the color to apply to the drawable as a tint. By default,
6040 no tint is applied. May be a color state list. -->
6041 <attr name="tint" />
6042 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The
6043 default value is src_in, which treats the drawable as an alpha mask. -->
6044 <attr name="tintMode" />
6045 <!-- Indicates if the drawable needs to be mirrored when its layout direction is
6046 RTL (right-to-left). -->
6047 <attr name="autoMirrored" />
6048 <!-- The intrinsic width of the Vector Drawable. -->
6049 <attr name="width" />
6050 <!-- The intrinsic height of the Vector Drawable. -->
6051 <attr name="height" />
6052 <!-- The width of the canvas the drawing is on. -->
6053 <attr name="viewportWidth" format="float"/>
6054 <!-- The height of the canvas the drawing is on. -->
6055 <attr name="viewportHeight" format="float"/>
6056 <!-- The name of this vector drawable. -->
6057 <attr name="name" />
6058 <!-- The opacity of the whole vector drawable, as a value between 0
6059 (completely transparent) and 1 (completely opaque). -->
6060 <attr name="alpha" />
6061 <!-- Left optical inset.
6062 @hide Until optical insets are fully supported. -->
6063 <attr name="opticalInsetLeft" format="dimension" />
6064 <!-- Top optical inset.
6065 @hide Until optical insets are fully supported. -->
6066 <attr name="opticalInsetTop" format="dimension" />
6067 <!-- Right optical inset.
6068 @hide Until optical insets are fully supported. -->
6069 <attr name="opticalInsetRight" format="dimension" />
6070 <!-- Bottom optical inset.
6071 @hide Until optical insets are fully supported. -->
6072 <attr name="opticalInsetBottom" format="dimension" />
6073 </declare-styleable>
6075 <!-- Defines the group used in VectorDrawables. -->
6076 <declare-styleable name="VectorDrawableGroup">
6077 <!-- The name of this group. -->
6078 <attr name="name" />
6079 <!-- The amount to rotate the group. -->
6080 <attr name="rotation" />
6081 <!-- The X coordinate of the center of rotation of a group. -->
6082 <attr name="pivotX" />
6083 <!-- The Y coordinate of the center of rotation of a group. -->
6084 <attr name="pivotY" />
6085 <!-- The amount to translate the group on X coordinate. -->
6086 <attr name="translateX" format="float"/>
6087 <!-- The amount to translate the group on Y coordinate. -->
6088 <attr name="translateY" format="float"/>
6089 <!-- The amount to scale the group on X coordinate. -->
6090 <attr name="scaleX" />
6091 <!-- The amount to scale the group on X coordinate. -->
6092 <attr name="scaleY" />
6093 </declare-styleable>
6095 <!-- Defines the path used in VectorDrawables. -->
6096 <declare-styleable name="VectorDrawablePath">
6097 <!-- The name of this path. -->
6098 <attr name="name" />
6099 <!-- The width a path stroke. -->
6100 <attr name="strokeWidth" format="float" />
6101 <!-- The color to stroke the path if not defined implies no stroke. -->
6102 <attr name="strokeColor" format="color" />
6103 <!-- The opacity of a path stroke, as a value between 0 (completely transparent)
6104 and 1 (completely opaque). -->
6105 <attr name="strokeAlpha" format="float" />
6106 <!-- The color to fill the path if not defined implies no fill. -->
6107 <attr name="fillColor" format="color" />
6108 <!-- The alpha of the path fill, as a value between 0 (completely transparent)
6109 and 1 (completely opaque). -->
6110 <attr name="fillAlpha" format="float" />
6111 <!-- The specification of the operations that define the path. -->
6112 <attr name="pathData" format="string" />
6113 <!-- The fraction of the path to trim from the start from 0 to 1. -->
6114 <attr name="trimPathStart" format="float" />
6115 <!-- The fraction of the path to trim from the end from 0 to 1 . -->
6116 <attr name="trimPathEnd" format="float" />
6117 <!-- Shift trim region (allows visible region to include the start and end) from 0 to 1. -->
6118 <attr name="trimPathOffset" format="float" />
6119 <!-- sets the linecap for a stroked path. -->
6120 <attr name="strokeLineCap" format="enum">
6121 <enum name="butt" value="0"/>
6122 <enum name="round" value="1"/>
6123 <enum name="square" value="2"/>
6125 <!-- sets the lineJoin for a stroked path. -->
6126 <attr name="strokeLineJoin" format="enum">
6127 <enum name="miter" value="0"/>
6128 <enum name="round" value="1"/>
6129 <enum name="bevel" value="2"/>
6131 <!-- sets the Miter limit for a stroked path. -->
6132 <attr name="strokeMiterLimit" format="float"/>
6133 <!-- sets the fillType for a path. It is the same as SVG's "fill-rule" properties.
6134 For more details, see https://www.w3.org/TR/SVG/painting.html#FillRuleProperty. -->
6135 <attr name="fillType" format="enum">
6136 <enum name="nonZero" value="0"/>
6137 <enum name="evenOdd" value="1"/>
6139 </declare-styleable>
6141 <!-- Defines the clip path used in VectorDrawables. -->
6142 <declare-styleable name="VectorDrawableClipPath">
6143 <!-- The Name of this path. -->
6144 <attr name="name" />
6145 <!-- The specification of the operations that define the path. -->
6146 <attr name="pathData"/>
6147 </declare-styleable>
6149 <!-- ========================== -->
6150 <!-- AnimatedVectorDrawable class -->
6151 <!-- ========================== -->
6154 <!-- Define the AnimatedVectorDrawable. -->
6155 <declare-styleable name="AnimatedVectorDrawable">
6156 <!-- The static vector drawable. -->
6157 <attr name="drawable" />
6158 </declare-styleable>
6160 <!-- Defines the target used in the AnimatedVectorDrawable. -->
6161 <declare-styleable name="AnimatedVectorDrawableTarget">
6162 <!-- The name of the target path, group or vector drawable. -->
6163 <attr name="name" />
6164 <!-- The animation for the target path, group or vector drawable. -->
6165 <attr name="animation" />
6166 </declare-styleable>
6168 <!-- ========================== -->
6169 <!-- Animation class attributes -->
6170 <!-- ========================== -->
6173 <declare-styleable name="Animation">
6174 <!-- Defines the interpolator used to smooth the animation movement in time. -->
6175 <attr name="interpolator" />
6176 <!-- When set to true, the value of fillBefore is taken into account. -->
6177 <attr name="fillEnabled" format="boolean" />
6178 <!-- When set to true or when fillEnabled is not set to true, the animation transformation
6179 is applied before the animation has started. The default value is true. -->
6180 <attr name="fillBefore" format="boolean" />
6181 <!-- When set to true, the animation transformation is applied after the animation is
6182 over. The default value is false. If fillEnabled is not set to true and the
6183 animation is not set on a View, fillAfter is assumed to be true.-->
6184 <attr name="fillAfter" format="boolean" />
6185 <!-- Amount of time (in milliseconds) for the animation to run. -->
6186 <attr name="duration" />
6187 <!-- Delay in milliseconds before the animation runs, once start time is reached. -->
6188 <attr name="startOffset" format="integer" />
6189 <!-- Defines how many times the animation should repeat. The default value is 0. -->
6190 <attr name="repeatCount" format="integer">
6191 <enum name="infinite" value="-1" />
6193 <!-- Defines the animation behavior when it reaches the end and the repeat count is
6194 greater than 0 or infinite. The default value is restart. -->
6195 <attr name="repeatMode">
6196 <!-- The animation starts again from the beginning. -->
6197 <enum name="restart" value="1" />
6198 <!-- The animation plays backward. -->
6199 <enum name="reverse" value="2" />
6201 <!-- Allows for an adjustment of the Z ordering of the content being
6202 animated for the duration of the animation. The default value is normal. -->
6203 <attr name="zAdjustment">
6204 <!-- The content being animated be kept in its current Z order. -->
6205 <enum name="normal" value="0" />
6206 <!-- The content being animated is forced on top of all other
6207 content for the duration of the animation. -->
6208 <enum name="top" value="1" />
6209 <!-- The content being animated is forced under all other
6210 content for the duration of the animation. -->
6211 <enum name="bottom" value="-1" />
6213 <!-- Special background behind animation. Only for use with window
6214 animations. Can only be a color, and only black. If 0, the
6215 default, there is no background. -->
6216 <attr name="background" />
6217 <!-- Special option for window animations: if this window is on top
6218 of a wallpaper, don't animate the wallpaper with it. -->
6219 <attr name="detachWallpaper" format="boolean" />
6220 </declare-styleable>
6222 <declare-styleable name="AnimationSet">
6223 <attr name="shareInterpolator" format="boolean" />
6224 <attr name="fillBefore" />
6225 <attr name="fillAfter" />
6226 <attr name="duration" />
6227 <attr name="startOffset" />
6228 <attr name="repeatMode" />
6229 </declare-styleable>
6231 <declare-styleable name="RotateAnimation">
6232 <attr name="fromDegrees" />
6233 <attr name="toDegrees" />
6234 <attr name="pivotX" />
6235 <attr name="pivotY" />
6236 </declare-styleable>
6238 <declare-styleable name="ScaleAnimation">
6239 <attr name="fromXScale" format="float|fraction|dimension" />
6240 <attr name="toXScale" format="float|fraction|dimension" />
6241 <attr name="fromYScale" format="float|fraction|dimension" />
6242 <attr name="toYScale" format="float|fraction|dimension" />
6243 <attr name="pivotX" />
6244 <attr name="pivotY" />
6245 </declare-styleable>
6247 <declare-styleable name="TranslateAnimation">
6248 <attr name="fromXDelta" format="float|fraction" />
6249 <attr name="toXDelta" format="float|fraction" />
6250 <attr name="fromYDelta" format="float|fraction" />
6251 <attr name="toYDelta" format="float|fraction" />
6252 </declare-styleable>
6254 <declare-styleable name="AlphaAnimation">
6255 <attr name="fromAlpha" format="float" />
6256 <attr name="toAlpha" format="float" />
6257 </declare-styleable>
6259 <declare-styleable name="LayoutAnimation">
6260 <!-- Fraction of the animation duration used to delay the beginning of
6261 the animation of each child. -->
6262 <attr name="delay" format="float|fraction" />
6263 <!-- Animation to use on each child. -->
6264 <attr name="animation" format="reference" />
6265 <!-- The order in which the animations will be started. -->
6266 <attr name="animationOrder">
6267 <!-- Animations are started in the natural order. -->
6268 <enum name="normal" value="0" />
6269 <!-- Animations are started in the reverse order. -->
6270 <enum name="reverse" value="1" />
6271 <!-- Animations are started randomly. -->
6272 <enum name="random" value="2" />
6274 <!-- Interpolator used to interpolate the delay between the start of
6276 <attr name="interpolator" />
6277 </declare-styleable>
6279 <declare-styleable name="GridLayoutAnimation">
6280 <!-- Fraction of the animation duration used to delay the beginning of
6281 the animation of each column. -->
6282 <attr name="columnDelay" format="float|fraction" />
6283 <!-- Fraction of the animation duration used to delay the beginning of
6284 the animation of each row. -->
6285 <attr name="rowDelay" format="float|fraction" />
6286 <!-- Direction of the animation in the grid. -->
6287 <attr name="direction">
6288 <!-- Animates columns from left to right. -->
6289 <flag name="left_to_right" value="0x0" />
6290 <!-- Animates columns from right to left. -->
6291 <flag name="right_to_left" value="0x1" />
6292 <!-- Animates rows from top to bottom. -->
6293 <flag name="top_to_bottom" value="0x0" />
6294 <!-- Animates rows from bottom to top. -->
6295 <flag name="bottom_to_top" value="0x2" />
6297 <!-- Priority of the rows and columns. When the priority is none,
6298 both rows and columns have the same priority. When the priority is
6299 column, the animations will be applied on the columns first. The same
6301 <attr name="directionPriority">
6302 <!-- Rows and columns are animated at the same time. -->
6303 <enum name="none" value="0" />
6304 <!-- Columns are animated first. -->
6305 <enum name="column" value="1" />
6306 <!-- Rows are animated first. -->
6307 <enum name="row" value="2" />
6309 </declare-styleable>
6311 <declare-styleable name="AccelerateInterpolator">
6312 <!-- This is the amount of deceleration to add when easing in. -->
6313 <attr name="factor" format="float" />
6314 </declare-styleable>
6316 <declare-styleable name="DecelerateInterpolator">
6317 <!-- This is the amount of acceleration to add when easing out. -->
6318 <attr name="factor" />
6319 </declare-styleable>
6321 <declare-styleable name="CycleInterpolator">
6322 <attr name="cycles" format="float" />
6323 </declare-styleable>
6325 <declare-styleable name="AnticipateInterpolator">
6326 <!-- This is the amount of tension. -->
6327 <attr name="tension" format="float" />
6328 </declare-styleable>
6330 <declare-styleable name="OvershootInterpolator">
6331 <!-- This is the amount of tension. -->
6332 <attr name="tension" />
6333 </declare-styleable>
6335 <declare-styleable name="AnticipateOvershootInterpolator">
6336 <!-- This is the amount of tension. -->
6337 <attr name="tension" />
6338 <!-- This is the amount by which to multiply the tension. -->
6339 <attr name="extraTension" format="float" />
6340 </declare-styleable>
6342 <declare-styleable name="PathInterpolator">
6343 <!-- The x coordinate of the first control point of the cubic Bezier. -->
6344 <attr name="controlX1" format="float" />
6345 <!-- The y coordinate of the first control point of the cubic Bezier. -->
6346 <attr name="controlY1" format="float" />
6347 <!-- The x coordinate of the second control point of the cubic Bezier. -->
6348 <attr name="controlX2" format="float" />
6349 <!-- The y coordinate of the second control point of the cubic Bezier. -->
6350 <attr name="controlY2" format="float" />
6351 <!-- The control points defined as a path.
6352 When pathData is defined, then both of the control points of the
6353 cubic Bezier will be ignored. -->
6354 <attr name="pathData"/>
6355 </declare-styleable>
6357 <!-- ========================== -->
6358 <!-- Transition attributes -->
6359 <!-- ========================== -->
6362 <!-- Use specific transition subclass names as the root tag of the XML resource that
6363 describes a {@link android.transition.Transition Transition},
6364 such as <code>changeBounds</code>, <code>fade</code>, and <code>transitionSet</code>. -->
6365 <declare-styleable name="Transition">
6366 <!-- Amount of time (in milliseconds) that the transition should run. -->
6367 <attr name="duration" />
6368 <!-- Delay in milliseconds before the transition starts. -->
6369 <attr name="startDelay" format="integer" />
6370 <!-- Interpolator to be used in the animations spawned by this transition. -->
6371 <attr name="interpolator" />
6372 <!-- The match order to use for the transition. This is a comma-separated
6373 list of values, containing one or more of the following:
6374 id, itemId, name, instance. These correspond to
6375 {@link android.transition.Transition#MATCH_ID},
6376 {@link android.transition.Transition#MATCH_ITEM_ID},
6377 {@link android.transition.Transition#MATCH_NAME}, and
6378 {@link android.transition.Transition#MATCH_INSTANCE}, respectively.
6379 This corresponds to {@link android.transition.Transition#setMatchOrder(int...)}. -->
6380 <attr name="matchOrder" format="string" />
6381 </declare-styleable>
6383 <!-- @hide For internal use only. Use only as directed. -->
6384 <declare-styleable name="EpicenterTranslateClipReveal">
6385 <attr name="interpolatorX" format="reference" />
6386 <attr name="interpolatorY" format="reference" />
6387 <attr name="interpolatorZ" format="reference" />
6388 </declare-styleable>
6390 <!-- Use <code>fade</code>as the root tag of the XML resource that
6391 describes a {@link android.transition.Fade Fade} transition.
6392 The attributes of the {@link android.R.styleable#Transition Transition}
6393 resource are available in addition to the specific attributes of Fade
6395 <declare-styleable name="Fade">
6396 <!-- Equivalent to <code>transitionVisibilityMode</code>, fadingMode works only
6397 with the Fade transition. -->
6398 <attr name="fadingMode">
6399 <!-- Fade will only fade appearing items in. -->
6400 <enum name="fade_in" value="1" />
6401 <!-- Fade will only fade disappearing items out. -->
6402 <enum name="fade_out" value="2" />
6403 <!-- Fade will fade appearing items in and disappearing items out. -->
6404 <enum name="fade_in_out" value="3" />
6406 </declare-styleable>
6408 <!-- Use <code>slide</code>as the root tag of the XML resource that
6409 describes a {@link android.transition.Slide Slide} transition.
6410 The attributes of the {@link android.R.styleable#Transition Transition}
6411 resource are available in addition to the specific attributes of Slide
6413 <declare-styleable name="Slide">
6414 <attr name="slideEdge">
6415 <!-- Slide to and from the left edge of the Scene. -->
6416 <enum name="left" value="0x03" />
6417 <!-- Slide to and from the top edge of the Scene. -->
6418 <enum name="top" value="0x30" />
6419 <!-- Slide to and from the right edge of the Scene. -->
6420 <enum name="right" value="0x05" />
6421 <!-- Slide to and from the bottom edge of the Scene. -->
6422 <enum name="bottom" value="0x50" />
6423 <!-- Slide to and from the x-axis position at the start of the Scene root. -->
6424 <enum name="start" value="0x00800003"/>
6425 <!-- Slide to and from the x-axis position at the end of the Scene root. -->
6426 <enum name="end" value="0x00800005"/>
6428 </declare-styleable>
6430 <!-- Use with {@link android.transition.Visibility} transitions, such as
6431 <code>slide</code>, <code>explode</code>, and <code>fade</code> to mark which
6432 views are supported. -->
6433 <declare-styleable name="VisibilityTransition">
6434 <!-- Changes whether the transition supports appearing and/or disappearing Views.
6435 Corresponds to {@link android.transition.Visibility#setMode(int)}. -->
6436 <attr name="transitionVisibilityMode">
6437 <!-- Only appearing Views will be supported. -->
6438 <flag name="mode_in" value="1" />
6439 <!-- Only disappearing Views will be supported. -->
6440 <flag name="mode_out" value="2" />
6442 </declare-styleable>
6443 <!-- Use <code>target</code> as the root tag of the XML resource that
6444 describes a {@link android.transition.Transition#addTarget(int)
6445 targetId} of a transition. There can be one or more targets inside
6446 a <code>targets</code> tag, which is itself inside an appropriate
6447 {@link android.R.styleable#Transition Transition} tag.
6449 <declare-styleable name="TransitionTarget">
6450 <!-- The id of a target on which this transition will animate changes. -->
6451 <attr name="targetId" format="reference" />
6452 <!-- The id of a target to exclude from this transition. -->
6453 <attr name="excludeId" format="reference" />
6454 <!-- The fully-qualified name of the Class to include in this transition. -->
6455 <attr name="targetClass" />
6456 <!-- The fully-qualified name of the Class to exclude from this transition. -->
6457 <attr name="excludeClass" format="string" />
6458 <!-- The transitionName of the target on which this transition will animation changes. -->
6459 <attr name="targetName" format="string" />
6460 <!-- The transitionName of the target to exclude from this transition. -->
6461 <attr name="excludeName" format="string" />
6462 </declare-styleable>
6464 <!-- Use <code>set</code> as the root tag of the XML resource that
6465 describes a {@link android.transition.TransitionSet
6466 TransitionSet} transition. -->
6467 <declare-styleable name="TransitionSet">
6468 <attr name="transitionOrdering">
6469 <!-- child transitions should be played together. -->
6470 <enum name="together" value="0" />
6471 <!-- child transitions should be played sequentially, in the same order
6473 <enum name="sequential" value="1" />
6475 </declare-styleable>
6477 <!-- Use <code>changeTransform</code> as the root tag of the XML resource that
6478 describes a {@link android.transition.ChangeTransform} transition. -->
6479 <declare-styleable name="ChangeTransform">
6480 <!-- A parent change should use an overlay or affect the transform of the
6481 transitionining View. Default is true. Corresponds to
6482 {@link android.transition.ChangeTransform#setReparentWithOverlay(boolean)}. -->
6483 <attr name="reparentWithOverlay" format="boolean"/>
6485 <!-- Tells ChangeTransform to track parent changes. Default is true. Corresponds to
6486 {@link android.transition.ChangeTransform#setReparent(boolean)}. -->
6487 <attr name="reparent" format="boolean"/>
6488 </declare-styleable>
6490 <!-- Use <code>changeBounds</code>as the root tag of the XML resource that
6491 describes a {@link android.transition.ChangeBounds} transition.
6492 The attributes of the {@link android.R.styleable#Transition Transition}
6493 resource are available in addition to the specific attributes of ChangeBounds
6495 <declare-styleable name="ChangeBounds">
6496 <!-- Resize the view by adjusting the clipBounds rather than changing the
6497 dimensions of the view itself. The default value is false. -->
6498 <attr name="resizeClip" format="boolean"/>
6499 </declare-styleable>
6501 <!-- Use <code>transitionManager</code> as the root tag of the XML resource that
6502 describes a {@link android.transition.TransitionManager
6503 TransitionManager}. -->
6504 <declare-styleable name="TransitionManager">
6505 <!-- The id of a transition to be used in a particular scene change. -->
6506 <attr name="transition" format="reference" />
6507 <!-- The originating scene in this scene change. -->
6508 <attr name="fromScene" format="reference" />
6509 <!-- The destination scene in this scene change. -->
6510 <attr name="toScene" format="reference" />
6511 </declare-styleable>
6513 <!-- Use <code>arcMotion</code> as the root tag of the XML resource that
6514 describes a {@link android.transition.ArcMotion}. This must be used
6515 within a transition with which the PathMotion should be associated. -->
6516 <declare-styleable name="ArcMotion">
6517 <!-- The minimum arc angle in degrees between the start and end points when
6518 they are close to horizontal. -->
6519 <attr name="minimumHorizontalAngle" format="float" />
6520 <!-- The minimum arc angle in degrees between the start and end points when
6521 they are close to vertical. -->
6522 <attr name="minimumVerticalAngle" format="float" />
6523 <!-- The maximum arc angle in degrees between the start and end points. -->
6524 <attr name="maximumAngle" format="float" />
6525 </declare-styleable>
6527 <!-- Use <code>patternPathMotion</code> as the root tag of the XML resource that
6528 describes a {@link android.transition.PatternPathMotion}. This must be used
6529 within a transition with which the PathMotion should be associated. -->
6530 <declare-styleable name="PatternPathMotion">
6531 <!-- The path string describing the pattern to use for the PathPathMotion. -->
6532 <attr name="patternPathData" format="string" />
6533 </declare-styleable>
6535 <!-- ========================== -->
6536 <!-- ValueAnimator class attributes -->
6537 <!-- ========================== -->
6540 <declare-styleable name="Animator">
6541 <!-- Defines the interpolator used to smooth the animation movement in time. -->
6542 <attr name="interpolator" />
6543 <!-- Amount of time (in milliseconds) for the animation to run. -->
6544 <attr name="duration" />
6545 <!-- Delay in milliseconds before the animation runs, once start time is reached. -->
6546 <attr name="startOffset"/>
6547 <!-- Defines how many times the animation should repeat. The default value is 0. -->
6548 <attr name="repeatCount"/>
6549 <!-- Defines the animation behavior when it reaches the end and the repeat count is
6550 greater than 0 or infinite. The default value is restart. -->
6551 <attr name="repeatMode"/>
6552 <!-- Value the animation starts from. -->
6553 <attr name="valueFrom" format="float|integer|color|dimension|string"/>
6554 <!-- Value the animation animates to. -->
6555 <attr name="valueTo" format="float|integer|color|dimension|string"/>
6556 <!-- The type of valueFrom and valueTo. -->
6557 <attr name="valueType">
6558 <!-- The given values are floats. This is the default value if valueType is
6559 unspecified. Note that if any value attribute has a color value
6560 (beginning with "#"), then this attribute is ignored and the color values are
6561 interpreted as integers. -->
6562 <enum name="floatType" value="0" />
6563 <!-- values are integers. -->
6564 <enum name="intType" value="1" />
6565 <!-- values are paths defined as strings.
6566 This type is used for path morphing in AnimatedVectorDrawable. -->
6567 <enum name="pathType" value="2" />
6568 <!-- values are colors, which are integers starting with "#". -->
6569 <enum name="colorType" value="3" />
6571 <!-- Placeholder for a deleted attribute. This should be removed before M release. -->
6572 <attr name="removeBeforeMRelease" format="integer" />
6573 </declare-styleable>
6575 <declare-styleable name="PropertyValuesHolder">
6576 <attr name="valueType" />
6577 <attr name="propertyName" />
6578 <attr name="valueFrom" />
6579 <attr name="valueTo" />
6580 </declare-styleable>
6582 <declare-styleable name="Keyframe">
6583 <attr name="valueType" />
6584 <attr name="value" />
6585 <attr name="fraction" format="float" />
6586 <!-- Defines a per-interval interpolator for this keyframe. This interpolator will be used
6587 to interpolate between this keyframe and the previous keyframe. -->
6588 <attr name="interpolator" />
6589 </declare-styleable>
6591 <!-- ========================== -->
6592 <!-- ObjectAnimator class attributes -->
6593 <!-- ========================== -->
6596 <declare-styleable name="PropertyAnimator">
6597 <!-- Name of the property being animated. -->
6598 <attr name="propertyName" format="string"/>
6599 <!-- Name of the property being animated as the X coordinate of the pathData. -->
6600 <attr name="propertyXName" format="string"/>
6601 <!-- Name of the property being animated as the Y coordinate of the pathData. -->
6602 <attr name="propertyYName" format="string"/>
6603 <!-- The path used to animate the properties in the ObjectAnimator. -->
6604 <attr name="pathData"/>
6605 </declare-styleable>
6608 <!-- ========================== -->
6609 <!-- AnimatorSet class attributes -->
6610 <!-- ========================== -->
6613 <declare-styleable name="AnimatorSet">
6614 <!-- Name of the property being animated. -->
6615 <attr name="ordering">
6616 <!-- child animations should be played together. -->
6617 <enum name="together" value="0" />
6618 <!-- child animations should be played sequentially, in the same order as the xml. -->
6619 <enum name="sequentially" value="1" />
6621 </declare-styleable>
6623 <!-- ========================== -->
6624 <!-- State attributes -->
6625 <!-- ========================== -->
6628 <!-- Set of framework-provided states that may be specified on a Drawable. Actual usage of
6629 states may vary between view implementations, as documented on the individual state
6631 <declare-styleable name="DrawableStates">
6632 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6633 set when a view has input focus. -->
6634 <attr name="state_focused" format="boolean" />
6635 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6636 set when a view's window has input focus. -->
6637 <attr name="state_window_focused" format="boolean" />
6638 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6639 set when a view is enabled. -->
6640 <attr name="state_enabled" format="boolean" />
6641 <!-- State identifier indicating that the object <var>may</var> display a check mark. See
6642 {@link android.R.attr#state_checked} for the identifier that indicates whether it is
6643 actually checked. -->
6644 <attr name="state_checkable" format="boolean"/>
6645 <!-- State identifier indicating that the object is currently checked. See
6646 {@link android.R.attr#state_checkable} for an additional identifier that can indicate
6647 if any object may ever display a check, regardless of whether state_checked is
6649 <attr name="state_checked" format="boolean"/>
6650 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6651 set when a view (or one of its parents) is currently selected. -->
6652 <attr name="state_selected" format="boolean" />
6653 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6654 set when the user is pressing down in a view. -->
6655 <attr name="state_pressed" format="boolean" />
6656 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6657 set when a view or its parent has been "activated" meaning the user has currently
6658 marked it as being of interest. This is an alternative representation of
6659 state_checked for when the state should be propagated down the view hierarchy. -->
6660 <attr name="state_activated" format="boolean" />
6661 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6662 set when a view or drawable is considered "active" by its host. Actual usage may vary
6663 between views. Consult the host view documentation for details. -->
6664 <attr name="state_active" format="boolean" />
6665 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6666 set when a view or drawable is considered "single" by its host. Actual usage may vary
6667 between views. Consult the host view documentation for details. -->
6668 <attr name="state_single" format="boolean" />
6669 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6670 set when a view or drawable is in the first position in an ordered set. Actual usage
6671 may vary between views. Consult the host view documentation for details. -->
6672 <attr name="state_first" format="boolean" />
6673 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6674 set when a view or drawable is in the middle position in an ordered set. Actual usage
6675 may vary between views. Consult the host view documentation for details. -->
6676 <attr name="state_middle" format="boolean" />
6677 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6678 set when a view or drawable is in the last position in an ordered set. Actual usage
6679 may vary between views. Consult the host view documentation for details. -->
6680 <attr name="state_last" format="boolean" />
6681 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6682 indicating that the Drawable is in a view that is hardware accelerated.
6683 This means that the device can at least render a full-screen scaled
6684 bitmap with one layer of text and bitmaps composited on top of it
6685 at 60fps. When this is set, the colorBackgroundCacheHint will be
6686 ignored even if it specifies a solid color, since that optimization
6688 <attr name="state_accelerated" format="boolean" />
6689 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable},
6690 set when a pointer is hovering over the view. -->
6691 <attr name="state_hovered" format="boolean" />
6692 <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
6693 indicating that the Drawable is in a view that is capable of accepting a drop of
6694 the content currently being manipulated in a drag-and-drop operation. -->
6695 <attr name="state_drag_can_accept" format="boolean" />
6696 <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
6697 indicating that a drag operation (for which the Drawable's view is a valid recipient)
6698 is currently positioned over the Drawable. -->
6699 <attr name="state_drag_hovered" format="boolean" />
6700 <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable}
6701 indicating that a View has accessibility focus. -->
6702 <attr name="state_accessibility_focused" format="boolean" />
6703 </declare-styleable>
6704 <declare-styleable name="ViewDrawableStates">
6705 <attr name="state_pressed" />
6706 <attr name="state_focused" />
6707 <attr name="state_selected" />
6708 <attr name="state_window_focused" />
6709 <attr name="state_enabled" />
6710 <attr name="state_activated" />
6711 <attr name="state_accelerated" />
6712 <attr name="state_hovered" />
6713 <attr name="state_drag_can_accept" />
6714 <attr name="state_drag_hovered" />
6715 </declare-styleable>
6716 <!-- State array representing a menu item that is currently checked. -->
6717 <declare-styleable name="MenuItemCheckedState">
6718 <attr name="state_checkable" />
6719 <attr name="state_checked" />
6720 </declare-styleable>
6721 <!-- State array representing a menu item that is checkable but is not currently checked. -->
6722 <declare-styleable name="MenuItemUncheckedState">
6723 <attr name="state_checkable" />
6724 </declare-styleable>
6725 <!-- State array representing a menu item that is currently focused and checked. -->
6726 <declare-styleable name="MenuItemCheckedFocusedState">
6727 <attr name="state_checkable" />
6728 <attr name="state_checked" />
6729 <attr name="state_focused" />
6730 </declare-styleable>
6731 <!-- State array representing a menu item that is focused and checkable but is not currently checked. -->
6732 <declare-styleable name="MenuItemUncheckedFocusedState">
6733 <attr name="state_checkable" />
6734 <attr name="state_focused" />
6735 </declare-styleable>
6736 <!-- State array representing an expandable list child's indicator. -->
6737 <declare-styleable name="ExpandableListChildIndicatorState">
6738 <!-- State identifier indicating the child is the last child within its group. -->
6739 <attr name="state_last" />
6740 </declare-styleable>
6741 <!-- State array representing an expandable list group's indicator. -->
6742 <declare-styleable name="ExpandableListGroupIndicatorState">
6743 <!-- State identifier indicating the group is expanded. -->
6744 <attr name="state_expanded" format="boolean" />
6745 <!-- State identifier indicating the group is empty (has no children). -->
6746 <attr name="state_empty" format="boolean" />
6747 </declare-styleable>
6748 <declare-styleable name="PopupWindowBackgroundState">
6749 <!-- State identifier indicating the popup will be above the anchor. -->
6750 <attr name="state_above_anchor" format="boolean" />
6751 </declare-styleable>
6752 <declare-styleable name="TextViewMultiLineBackgroundState">
6753 <!-- State identifier indicating a TextView has a multi-line layout. -->
6754 <attr name="state_multiline" format="boolean" />
6755 </declare-styleable>
6757 <!-- ***************************************************************** -->
6758 <!-- Support for Searchable activities. -->
6759 <!-- ***************************************************************** -->
6762 <!-- Searchable activities and applications must provide search configuration information
6763 in an XML file, typically called searchable.xml. This file is referenced in your manifest.
6764 For a more in-depth discussion of search configuration, please refer to
6765 {@link android.app.SearchManager}. -->
6766 <declare-styleable name="Searchable">
6767 <!--<strong>This is deprecated.</strong><br/>The default
6768 application icon is now always used, so this attribute is
6770 <attr name="icon" />
6771 <!-- This is the user-displayed name of the searchable activity. <i>Required
6773 <attr name="label" />
6774 <!-- If supplied, this string will be displayed as a hint to the user. <i>Optional
6776 <attr name="hint" />
6777 <!-- If supplied, this string will be displayed as the text of the "Search" button.
6778 <i>Optional attribute.</i>
6779 {@deprecated This will create a non-standard UI appearance, because the search bar UI is
6780 changing to use only icons for its buttons.}-->
6781 <attr name="searchButtonText" format="string" />
6782 <attr name="inputType" />
6783 <attr name="imeOptions" />
6785 <!-- Additional features are controlled by mode bits in this field. Omitting
6786 this field, or setting to zero, provides default behavior. <i>Optional attribute.</i>
6788 <attr name="searchMode">
6789 <!-- If set, this flag enables the display of the search target (label) within the
6790 search bar. If neither bad mode is selected, no badge will be shown. -->
6791 <flag name="showSearchLabelAsBadge" value="0x04" />
6792 <!--<strong>This is deprecated.</strong><br/>The default
6793 application icon is now always used, so this option is
6795 <flag name="showSearchIconAsBadge" value="0x08" />
6796 <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to
6797 be considered as the text for suggestion query rewriting. This should only
6798 be used when the values in SUGGEST_COLUMN_INTENT_DATA are suitable for user
6799 inspection and editing - typically, HTTP/HTTPS Uri's. -->
6800 <flag name="queryRewriteFromData" value="0x10" />
6801 <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_TEXT_1 to
6802 be considered as the text for suggestion query rewriting. This should be used
6803 for suggestions in which no query text is provided and the SUGGEST_COLUMN_INTENT_DATA
6804 values are not suitable for user inspection and editing. -->
6805 <flag name="queryRewriteFromText" value="0x20" />
6808 <!-- Voice search features are controlled by mode bits in this field. Omitting
6809 this field, or setting to zero, provides default behavior.
6810 If showVoiceSearchButton is set, then launchWebSearch or launchRecognizer must
6811 also be set. <i>Optional attribute.</i>
6813 <attr name="voiceSearchMode">
6814 <!-- If set, display a voice search button. This only takes effect if voice search is
6815 available on the device. -->
6816 <flag name="showVoiceSearchButton" value="0x01" />
6817 <!-- If set, the voice search button will take the user directly to a built-in
6818 voice web search activity. Most applications will not use this flag, as it
6819 will take the user away from the activity in which search was invoked. -->
6820 <flag name="launchWebSearch" value="0x02" />
6821 <!-- If set, the voice search button will take the user directly to a built-in
6822 voice recording activity. This activity will prompt the user to speak,
6823 transcribe the spoken text, and forward the resulting query
6824 text to the searchable activity, just as if the user had typed it into
6825 the search UI and clicked the search button. -->
6826 <flag name="launchRecognizer" value="0x04" />
6829 <!-- If provided, this specifies the language model that should be used by the
6830 voice recognition system. See
6831 {@link android.speech.RecognizerIntent#EXTRA_LANGUAGE_MODEL } for more information.
6832 If not provided, the default value
6833 {@link android.speech.RecognizerIntent#LANGUAGE_MODEL_FREE_FORM } will be used. -->
6834 <attr name="voiceLanguageModel" format="string" />
6835 <!-- If provided, this specifies a prompt that will be displayed during voice input. -->
6836 <attr name="voicePromptText" format="string" />
6837 <!-- If provided, this specifies the spoken language to be expected, and that it will be
6838 different than the one set in the {@link java.util.Locale#getDefault()}. -->
6839 <attr name="voiceLanguage" format="string" />
6840 <!-- If provided, enforces the maximum number of results to return, including the "best"
6841 result which will always be provided as the SEARCH intent's primary query. Must be one
6842 or greater. If not provided, the recognizer will choose how many results to return.
6844 <attr name="voiceMaxResults" format="integer" />
6846 <!-- If provided, this is the trigger indicating that the searchable activity
6847 provides suggestions as well. The value must be a fully-qualified content provider
6848 authority (for example, "com.example.android.apis.SuggestionProvider") and should match
6849 the "android:authorities" tag in your content provider's manifest entry. <i>Optional
6851 <attr name="searchSuggestAuthority" format="string" />
6852 <!-- If provided, this will be inserted in the suggestions query Uri, after the authority
6853 you have provide but before the standard suggestions path. <i>Optional attribute.</i>
6855 <attr name="searchSuggestPath" format="string" />
6856 <!-- If provided, suggestion queries will be passed into your query function
6857 as the <i>selection</i> parameter. Typically this will be a WHERE clause for your
6858 database, and will contain a single question mark, which represents the actual query
6859 string that has been typed by the user. If not provided, then the user query text
6860 will be appended to the query Uri (after an additional "/".) <i>Optional
6862 <attr name="searchSuggestSelection" format="string" />
6864 <!-- If provided, and not overridden by an action in the selected suggestion, this
6865 string will be placed in the action field of the {@link android.content.Intent Intent}
6866 when the user clicks a suggestion. <i>Optional attribute.</i> -->
6867 <attr name="searchSuggestIntentAction" format="string" />
6868 <!-- If provided, and not overridden by an action in the selected suggestion, this
6869 string will be placed in the data field of the {@link android.content.Intent Intent}
6870 when the user clicks a suggestion. <i>Optional attribute.</i> -->
6871 <attr name="searchSuggestIntentData" format="string" />
6873 <!-- If provided, this is the minimum number of characters needed to trigger
6874 search suggestions. The default value is 0. <i>Optional attribute.</i> -->
6875 <attr name="searchSuggestThreshold" format="integer" />
6877 <!-- If provided and <code>true</code>, this searchable activity will be
6878 included in any global lists of search targets.
6879 The default value is <code>false</code>. <i>Optional attribute.</i>. -->
6880 <attr name="includeInGlobalSearch" format="boolean" />
6882 <!-- If provided and <code>true</code>, this searchable activity will be invoked for all
6883 queries in a particular session. If set to <code>false</code> and the activity
6884 returned zero results for a query, it will not be invoked again in that session for
6885 supersets of that zero-results query. For example, if the activity returned zero
6886 results for "bo", it would not be queried again for "bob".
6887 The default value is <code>false</code>. <i>Optional attribute.</i>. -->
6888 <attr name="queryAfterZeroResults" format="boolean" />
6889 <!-- If provided, this string will be used to describe the searchable item in the
6890 searchable items settings within system search settings. <i>Optional
6892 <attr name="searchSettingsDescription" format="string" />
6894 <!-- If provided and <code>true</code>, URLs entered in the search dialog while searching
6895 within this activity would be detected and treated as URLs (show a 'go' button in the
6896 keyboard and invoke the browser directly when user launches the URL instead of passing
6897 the URL to the activity). If set to <code>false</code> any URLs entered are treated as
6899 The default value is <code>false</code>. <i>Optional attribute.</i>. -->
6900 <attr name="autoUrlDetect" format="boolean" />
6902 </declare-styleable>
6904 <!-- In order to process special action keys during search, you must define them using
6905 one or more "ActionKey" elements in your Searchable metadata. For a more in-depth
6906 discussion of action code handling, please refer to {@link android.app.SearchManager}.
6908 <declare-styleable name="SearchableActionKey">
6909 <!-- This attribute denotes the action key you wish to respond to. Note that not
6910 all action keys are actually supported using this mechanism, as many of them are
6911 used for typing, navigation, or system functions. This will be added to the
6912 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
6913 searchable activity. To examine the key code, use
6914 {@link android.content.Intent#getIntExtra getIntExtra(SearchManager.ACTION_KEY)}.
6915 <p>Note, in addition to the keycode, you must also provide one or more of the action
6916 specifier attributes. <i>Required attribute.</i> -->
6917 <attr name="keycode" />
6919 <!-- If you wish to handle an action key during normal search query entry, you
6920 must define an action string here. This will be added to the
6921 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
6922 searchable activity. To examine the string, use
6923 {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}.
6924 <i>Optional attribute.</i> -->
6925 <attr name="queryActionMsg" format="string" />
6927 <!-- If you wish to handle an action key while a suggestion is being displayed <i>and
6928 selected</i>, there are two ways to handle this. If <i>all</i> of your suggestions
6929 can handle the action key, you can simply define the action message using this
6930 attribute. This will be added to the
6931 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your
6932 searchable activity. To examine the string, use
6933 {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}.
6934 <i>Optional attribute.</i> -->
6935 <attr name="suggestActionMsg" format="string" />
6937 <!-- If you wish to handle an action key while a suggestion is being displayed <i>and
6938 selected</i>, but you do not wish to enable this action key for every suggestion,
6939 then you can use this attribute to control it on a suggestion-by-suggestion basis.
6940 First, you must define a column (and name it here) where your suggestions will include
6941 the action string. Then, in your content provider, you must provide this column, and
6942 when desired, provide data in this column.
6943 The search manager will look at your suggestion cursor, using the string
6944 provided here in order to select a column, and will use that to select a string from
6945 the cursor. That string will be added to the
6946 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to
6947 your searchable activity. To examine the string, use
6948 {@link android.content.Intent#getStringExtra
6949 getStringExtra(SearchManager.ACTION_MSG)}. <i>If the data does not exist for the
6950 selection suggestion, the action key will be ignored.</i><i>Optional attribute.</i> -->
6951 <attr name="suggestActionMsgColumn" format="string" />
6953 </declare-styleable>
6955 <!-- ***************************************************************** -->
6956 <!-- Support for MapView. -->
6957 <!-- ***************************************************************** -->
6960 <!-- The set of attributes for a MapView. -->
6961 <declare-styleable name="MapView">
6962 <!-- Value is a string that specifies the Maps API Key to use. -->
6963 <attr name="apiKey" format="string" />
6964 </declare-styleable>
6966 <!-- **************************************************************** -->
6967 <!-- Menu XML inflation. -->
6968 <!-- **************************************************************** -->
6971 <!-- Base attributes that are available to all Menu objects. -->
6972 <declare-styleable name="Menu">
6973 </declare-styleable>
6975 <!-- Base attributes that are available to all groups. -->
6976 <declare-styleable name="MenuGroup">
6978 <!-- The ID of the group. -->
6981 <!-- The category applied to all items within this group.
6982 (This will be or'ed with the orderInCategory attribute.) -->
6983 <attr name="menuCategory">
6984 <!-- Items are part of a container. -->
6985 <enum name="container" value="0x00010000" />
6986 <!-- Items are provided by the system. -->
6987 <enum name="system" value="0x00020000" />
6988 <!-- Items are user-supplied secondary (infrequently used). -->
6989 <enum name="secondary" value="0x00030000" />
6990 <!-- Items are alternative actions. -->
6991 <enum name="alternative" value="0x00040000" />
6994 <!-- The order within the category applied to all items within this group.
6995 (This will be or'ed with the category attribute.) -->
6996 <attr name="orderInCategory" format="integer" />
6998 <!-- Whether the items are capable of displaying a check mark. -->
6999 <attr name="checkableBehavior">
7000 <!-- The items are not checkable. -->
7001 <enum name="none" value="0" />
7002 <!-- The items are all checkable. -->
7003 <enum name="all" value="1" />
7004 <!-- The items are checkable and there will only be a single checked item in
7006 <enum name="single" value="2" />
7009 <!-- Whether the items are shown/visible. -->
7010 <attr name="visible" />
7012 <!-- Whether the items are enabled. -->
7013 <attr name="enabled" />
7015 </declare-styleable>
7017 <!-- Base attributes that are available to all Item objects. -->
7018 <declare-styleable name="MenuItem">
7020 <!-- The ID of the item. -->
7023 <!-- The category applied to the item.
7024 (This will be or'ed with the orderInCategory attribute.) -->
7025 <attr name="menuCategory" />
7027 <!-- The order within the category applied to the item.
7028 (This will be or'ed with the category attribute.) -->
7029 <attr name="orderInCategory" />
7031 <!-- The title associated with the item. -->
7032 <attr name="title" format="string" />
7034 <!-- The condensed title associated with the item. This is used in situations where the
7035 normal title may be too long to be displayed. -->
7036 <attr name="titleCondensed" format="string" />
7038 <!-- The icon associated with this item. This icon will not always be shown, so
7039 the title should be sufficient in describing this item. -->
7040 <attr name="icon" />
7042 <!-- Tint to apply to the icon. -->
7043 <attr name="iconTint" format="color" />
7045 <!-- Blending mode used to apply the icon tint. -->
7046 <attr name="iconTintMode">
7047 <!-- The tint is drawn on top of the icon.
7048 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
7049 <enum name="src_over" value="3" />
7050 <!-- The tint is masked by the alpha channel of the icon. The icon’s
7051 color channels are thrown out. [Sa * Da, Sc * Da] -->
7052 <enum name="src_in" value="5" />
7053 <!-- The tint is drawn above the icon, but with the icon’s alpha
7054 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
7055 <enum name="src_atop" value="9" />
7056 <!-- Multiplies the color and alpha channels of the icon with those of
7057 the tint. [Sa * Da, Sc * Dc] -->
7058 <enum name="multiply" value="14" />
7059 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
7060 <enum name="screen" value="15" />
7061 <!-- Combines the tint and icon color and alpha channels, clamping the
7062 result to valid color values. Saturate(S + D) -->
7063 <enum name="add" value="16" />
7066 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard
7067 with alphabetic keys. -->
7068 <attr name="alphabeticShortcut" format="string" />
7070 <!-- The alphabetic modifier key. This is the modifier when using a keyboard
7071 with alphabetic keys. The values should be kept in sync with KeyEvent -->
7072 <attr name="alphabeticModifiers">
7073 <flag name="META" value="0x10000" />
7074 <flag name="CTRL" value="0x1000" />
7075 <flag name="ALT" value="0x02" />
7076 <flag name="SHIFT" value="0x1" />
7077 <flag name="SYM" value="0x4" />
7078 <flag name="FUNCTION" value="0x8" />
7081 <!-- The numeric shortcut key. This is the shortcut when using a numeric (for example,
7082 12-key) keyboard. -->
7083 <attr name="numericShortcut" format="string" />
7085 <!-- The numeric modifier key. This is the modifier when using a numeric (for example,
7086 12-key) keyboard. The values should be kept in sync with KeyEvent -->
7087 <attr name="numericModifiers">
7088 <flag name="META" value="0x10000" />
7089 <flag name="CTRL" value="0x1000" />
7090 <flag name="ALT" value="0x02" />
7091 <flag name="SHIFT" value="0x1" />
7092 <flag name="SYM" value="0x4" />
7093 <flag name="FUNCTION" value="0x8" />
7096 <!-- Whether the item is capable of displaying a check mark. -->
7097 <attr name="checkable" format="boolean" />
7099 <!-- Whether the item is checked. Note that you must first have enabled checking with
7100 the checkable attribute or else the check mark will not appear. -->
7101 <attr name="checked" />
7103 <!-- Whether the item is shown/visible. -->
7104 <attr name="visible" />
7106 <!-- Whether the item is enabled. -->
7107 <attr name="enabled" />
7109 <!-- Name of a method on the Context used to inflate the menu that will be
7110 called when the item is clicked. -->
7111 <attr name="onClick" />
7113 <!-- How this item should display in the Action Bar, if present. -->
7114 <attr name="showAsAction">
7115 <!-- Never show this item in an action bar, show it in the overflow menu instead.
7116 Mutually exclusive with "ifRoom" and "always". -->
7117 <flag name="never" value="0" />
7118 <!-- Show this item in an action bar if there is room for it as determined
7119 by the system. Favor this option over "always" where possible.
7120 Mutually exclusive with "never" and "always". -->
7121 <flag name="ifRoom" value="1" />
7122 <!-- Always show this item in an actionbar, even if it would override
7123 the system's limits of how much stuff to put there. This may make
7124 your action bar look bad on some screens. In most cases you should
7125 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
7126 <flag name="always" value="2" />
7127 <!-- When this item is shown as an action in the action bar, show a text
7128 label with it even if it has an icon representation. -->
7129 <flag name="withText" value="4" />
7130 <!-- This item's action view collapses to a normal menu
7131 item. When expanded, the action view takes over a
7132 larger segment of its container. -->
7133 <flag name="collapseActionView" value="8" />
7136 <!-- An optional layout to be used as an action view.
7137 See {@link android.view.MenuItem#setActionView(android.view.View)}
7139 <attr name="actionLayout" format="reference" />
7141 <!-- The name of an optional View class to instantiate and use as an
7142 action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
7144 <attr name="actionViewClass" format="string" />
7146 <!-- The name of an optional ActionProvider class to instantiate an action view
7147 and perform operations such as default action for that menu item.
7148 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
7150 <attr name="actionProviderClass" format="string" />
7152 <!-- The content description associated with the item. -->
7153 <attr name="contentDescription" format="string" />
7155 <!-- The tooltip text associated with the item. -->
7156 <attr name="tooltipText" format="string" />
7158 </declare-styleable>
7160 <!-- Attrbitutes for a ActvityChooserView. -->
7161 <declare-styleable name="ActivityChooserView">
7162 <!-- The maximal number of items initially shown in the activity list. -->
7163 <attr name="initialActivityCount" format="string" />
7164 <!-- The drawable to show in the button for expanding the activities overflow popup.
7165 <strong>Note:</strong> Clients would like to set this drawable
7166 as a clue about the action the chosen activity will perform. For
7167 example, if share activity is to be chosen the drawable should
7168 give a clue that sharing is to be performed.
7170 <attr name="expandActivityOverflowButtonDrawable" format="reference" />
7171 </declare-styleable>
7173 <!-- **************************************************************** -->
7174 <!-- Preferences framework. -->
7175 <!-- **************************************************************** -->
7178 <!-- Base attributes available to PreferenceGroup. -->
7179 <declare-styleable name="PreferenceGroup">
7180 <!-- Whether to order the Preference under this group as they appear in the XML file.
7181 If this is false, the ordering will follow the Preference order attribute and
7182 default to alphabetic for those without the order attribute. -->
7183 <attr name="orderingFromXml" format="boolean" />
7184 </declare-styleable>
7186 <!-- Attribute for a header describing the item shown in the top-level list
7187 from which the selects the set of preference to dig in to. -->
7188 <declare-styleable name="PreferenceHeader">
7189 <!-- Identifier value for the header. -->
7191 <!-- The title of the item that is shown to the user. -->
7192 <attr name="title" />
7193 <!-- The summary for the item. -->
7194 <attr name="summary" format="string" />
7195 <!-- The title for the bread crumb of this item. -->
7196 <attr name="breadCrumbTitle" format="string" />
7197 <!-- The short title for the bread crumb of this item. -->
7198 <attr name="breadCrumbShortTitle" format="string" />
7199 <!-- An icon for the item. -->
7200 <attr name="icon" />
7201 <!-- The fragment that is displayed when the user selects this item. -->
7202 <attr name="fragment" format="string" />
7203 </declare-styleable>
7205 <!-- WARNING: If adding attributes to Preference, make sure it does not conflict
7206 with a View's attributes. Some subclasses (for example, EditTextPreference)
7207 proxy all attributes to its EditText widget. -->
7210 <!-- Base attributes available to Preference. -->
7211 <declare-styleable name="Preference">
7212 <!-- The optional icon for the preference. -->
7213 <attr name="icon" />
7214 <!-- The key to store the Preference value. -->
7215 <attr name="key" format="string" />
7216 <!-- The title for the Preference. In API 25 and earlier, this value is read as a
7217 plain string with styling information stripped. -->
7218 <attr name="title" />
7219 <!-- The summary for the Preference. In API 25 and earlier, this value is read as a
7220 plain string with styling information stripped. -->
7221 <attr name="summary" />
7222 <!-- The order for the Preference (lower values are to be ordered first). If this is not
7223 specified, the default ordering will be alphabetic. -->
7224 <attr name="order" format="integer" />
7225 <!-- When used inside of a modern PreferenceActivity, this declares
7226 a new PreferenceFragment to be shown when the user selects this item. -->
7227 <attr name="fragment" />
7228 <!-- The layout for the Preference in a PreferenceActivity screen. This should
7229 rarely need to be changed, look at widgetLayout instead. -->
7230 <attr name="layout" />
7231 <!-- The layout for the controllable widget portion of a Preference. This is inflated
7232 into the layout for a Preference and should be used more frequently than
7233 the layout attribute. For example, a checkbox preference would specify
7234 a custom layout (consisting of just the CheckBox) here. -->
7235 <attr name="widgetLayout" format="reference" />
7236 <!-- Whether the Preference is enabled. -->
7237 <attr name="enabled" />
7238 <!-- Whether the Preference is selectable. -->
7239 <attr name="selectable" format="boolean" />
7240 <!-- The key of another Preference that this Preference will depend on. If the other
7241 Preference is not set or is off, this Preference will be disabled. -->
7242 <attr name="dependency" format="string" />
7243 <!-- Whether the Preference stores its value to the storage. -->
7244 <attr name="persistent" />
7245 <!-- The default value for the preference, which will be set either if persistence
7246 is off or persistence is on and the preference is not found in the persistent
7248 <attr name="defaultValue" format="string|boolean|integer|reference|float" />
7249 <!-- Whether the view of this Preference should be disabled when
7250 this Preference is disabled. -->
7251 <attr name="shouldDisableView" format="boolean" />
7252 <!-- Whether the preference has enabled to have its view recycled when used in the list
7253 view. This is true by default. -->
7254 <attr name="recycleEnabled" format="boolean" />
7255 <!-- Whether to use single line for the preference title text. By default, preference title
7256 will be constrained to one line, so the default value of this attribute is true. -->
7257 <attr name="singleLineTitle" format="boolean" />
7258 <!-- Whether the space for the preference icon view will be reserved. By default, preference
7259 icon view visibility will be set to GONE when there is no icon provided, so the default
7260 value of this attribute is false. -->
7261 <attr name="iconSpaceReserved" format="boolean" />
7262 </declare-styleable>
7264 <!-- Base attributes available to CheckBoxPreference. -->
7265 <declare-styleable name="CheckBoxPreference">
7266 <!-- The summary for the Preference in a PreferenceActivity screen when the
7267 CheckBoxPreference is checked. If separate on/off summaries are not
7268 needed, the summary attribute can be used instead. -->
7269 <attr name="summaryOn" format="string" />
7270 <!-- The summary for the Preference in a PreferenceActivity screen when the
7271 CheckBoxPreference is unchecked. If separate on/off summaries are not
7272 needed, the summary attribute can be used instead. -->
7273 <attr name="summaryOff" format="string" />
7274 <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default,
7275 dependents will be disabled when this is unchecked, so the value of this preference is false. -->
7276 <attr name="disableDependentsState" format="boolean" />
7277 </declare-styleable>
7279 <!-- Base attributes available to DialogPreference. -->
7280 <declare-styleable name="DialogPreference">
7281 <!-- The title in the dialog. -->
7282 <attr name="dialogTitle" format="string" />
7283 <!-- The message in the dialog. If a dialogLayout is provided and contains
7284 a TextView with ID android:id/message, this message will be placed in there. -->
7285 <attr name="dialogMessage" format="string" />
7286 <!-- The icon for the dialog. -->
7287 <attr name="dialogIcon" format="reference" />
7288 <!-- The positive button text for the dialog. Set to @null to hide the positive button. -->
7289 <attr name="positiveButtonText" format="string" />
7290 <!-- The negative button text for the dialog. Set to @null to hide the negative button. -->
7291 <attr name="negativeButtonText" format="string" />
7292 <!-- A layout to be used as the content View for the dialog. By default, this shouldn't
7293 be needed. If a custom DialogPreference is required, this should be set. For example,
7294 the EditTextPreference uses a layout with an EditText as this attribute. -->
7295 <attr name="dialogLayout" format="reference" />
7296 </declare-styleable>
7298 <!-- Base attributes available to ListPreference. -->
7299 <declare-styleable name="ListPreference">
7300 <!-- The human-readable array to present as a list. Each entry must have a corresponding
7301 index in entryValues. -->
7302 <attr name="entries" />
7303 <!-- The array to find the value to save for a preference when an entry from
7304 entries is selected. If a user clicks on the second item in entries, the
7305 second item in this array will be saved to the preference. -->
7306 <attr name="entryValues" format="reference" />
7307 </declare-styleable>
7309 <declare-styleable name="MultiSelectListPreference">
7310 <!-- The human-readable array to present as a list. Each entry must have a corresponding
7311 index in entryValues. -->
7312 <attr name="entries" />
7313 <!-- The array to find the value to save for a preference when an entry from
7314 entries is selected. If a user clicks the second item in entries, the
7315 second item in this array will be saved to the preference. -->
7316 <attr name="entryValues" />
7317 </declare-styleable>
7319 <!-- Base attributes available to RingtonePreference. -->
7320 <declare-styleable name="RingtonePreference">
7321 <!-- Which ringtone type(s) to show in the picker. -->
7322 <attr name="ringtoneType">
7324 <flag name="ringtone" value="1" />
7325 <!-- Notification sounds. -->
7326 <flag name="notification" value="2" />
7327 <!-- Alarm sounds. -->
7328 <flag name="alarm" value="4" />
7329 <!-- All available ringtone sounds. -->
7330 <flag name="all" value="7" />
7332 <!-- Whether to show an item for a default sound. -->
7333 <attr name="showDefault" format="boolean" />
7334 <!-- Whether to show an item for 'Silent'. -->
7335 <attr name="showSilent" format="boolean" />
7336 </declare-styleable>
7338 <!-- Base attributes available to VolumePreference. -->
7339 <declare-styleable name="VolumePreference">
7340 <!-- Different audio stream types. -->
7341 <attr name="streamType">
7342 <enum name="voice" value="0" />
7343 <enum name="system" value="1" />
7344 <enum name="ring" value="2" />
7345 <enum name="music" value="3" />
7346 <enum name="alarm" value="4" />
7348 </declare-styleable>
7350 <declare-styleable name="InputMethodService">
7351 <!-- Background to use for entire input method when it is being
7352 shown in fullscreen mode with the extract view, to ensure
7353 that it completely covers the application. This allows,
7354 for example, the candidate view to be hidden
7355 while in fullscreen mode without having the application show through
7357 <attr name="imeFullscreenBackground" format="reference|color" />
7358 <!-- Animation to use when showing the fullscreen extract UI after
7359 it had previously been hidden. -->
7360 <attr name="imeExtractEnterAnimation" format="reference" />
7361 <!-- Animation to use when hiding the fullscreen extract UI after
7362 it had previously been shown. -->
7363 <attr name="imeExtractExitAnimation" format="reference" />
7364 </declare-styleable>
7366 <declare-styleable name="VoiceInteractionSession">
7367 </declare-styleable>
7369 <declare-styleable name="KeyboardView">
7370 <!-- Default KeyboardView style. -->
7371 <attr name="keyboardViewStyle" format="reference" />
7373 <!-- Image for the key. This image needs to be a StateListDrawable, with the following
7374 possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
7375 checkable+checked+pressed. -->
7376 <attr name="keyBackground" format="reference" />
7378 <!-- Size of the text for character keys. -->
7379 <attr name="keyTextSize" format="dimension" />
7381 <!-- Size of the text for custom keys with some text and no icon. -->
7382 <attr name="labelTextSize" format="dimension" />
7384 <!-- Color to use for the label in a key. -->
7385 <attr name="keyTextColor" format="color" />
7387 <!-- Layout resource for key press feedback.-->
7388 <attr name="keyPreviewLayout" format="reference" />
7390 <!-- Vertical offset of the key press feedback from the key. -->
7391 <attr name="keyPreviewOffset" format="dimension" />
7393 <!-- Height of the key press feedback popup. -->
7394 <attr name="keyPreviewHeight" format="dimension" />
7396 <!-- Amount to offset the touch Y coordinate by, for bias correction. -->
7397 <attr name="verticalCorrection" format="dimension" />
7399 <!-- Layout resource for popup keyboards. -->
7400 <attr name="popupLayout" format="reference" />
7402 <attr name="shadowColor" />
7403 <attr name="shadowRadius" />
7404 </declare-styleable>
7406 <declare-styleable name="KeyboardViewPreviewState">
7407 <!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView}
7408 key preview background. -->
7409 <attr name="state_long_pressable" format="boolean" />
7410 </declare-styleable>
7412 <declare-styleable name="Keyboard">
7413 <!-- Default width of a key, in pixels or percentage of display width. -->
7414 <attr name="keyWidth" format="dimension|fraction" />
7415 <!-- Default height of a key, in pixels or percentage of display width. -->
7416 <attr name="keyHeight" format="dimension|fraction" />
7417 <!-- Default horizontal gap between keys. -->
7418 <attr name="horizontalGap" format="dimension|fraction" />
7419 <!-- Default vertical gap between rows of keys. -->
7420 <attr name="verticalGap" format="dimension|fraction" />
7421 </declare-styleable>
7423 <declare-styleable name="Keyboard_Row">
7424 <!-- Row edge flags. -->
7425 <attr name="rowEdgeFlags">
7426 <!-- Row is anchored to the top of the keyboard. -->
7427 <flag name="top" value="4" />
7428 <!-- Row is anchored to the bottom of the keyboard. -->
7429 <flag name="bottom" value="8" />
7431 <!-- Mode of the keyboard. If the mode doesn't match the
7432 requested keyboard mode, the row will be skipped. -->
7433 <attr name="keyboardMode" format="reference" />
7434 </declare-styleable>
7436 <declare-styleable name="Keyboard_Key">
7437 <!-- The unicode value or comma-separated values that this key outputs. -->
7438 <attr name="codes" format="integer|string" />
7439 <!-- The XML keyboard layout of any popup keyboard. -->
7440 <attr name="popupKeyboard" format="reference" />
7441 <!-- The characters to display in the popup keyboard. -->
7442 <attr name="popupCharacters" format="string" />
7443 <!-- Key edge flags. -->
7444 <attr name="keyEdgeFlags">
7445 <!-- Key is anchored to the left of the keyboard. -->
7446 <flag name="left" value="1" />
7447 <!-- Key is anchored to the right of the keyboard. -->
7448 <flag name="right" value="2" />
7450 <!-- Whether this is a modifier key such as Alt or Shift. -->
7451 <attr name="isModifier" format="boolean" />
7452 <!-- Whether this is a toggle key. -->
7453 <attr name="isSticky" format="boolean" />
7454 <!-- Whether long-pressing on this key will make it repeat. -->
7455 <attr name="isRepeatable" format="boolean" />
7456 <!-- The icon to show in the popup preview. -->
7457 <attr name="iconPreview" format="reference" />
7458 <!-- The string of characters to output when this key is pressed. -->
7459 <attr name="keyOutputText" format="string" />
7460 <!-- The label to display on the key. -->
7461 <attr name="keyLabel" format="string" />
7462 <!-- The icon to display on the key instead of the label. -->
7463 <attr name="keyIcon" format="reference" />
7464 <!-- Mode of the keyboard. If the mode doesn't match the
7465 requested keyboard mode, the key will be skipped. -->
7466 <attr name="keyboardMode" />
7467 </declare-styleable>
7469 <!-- =============================== -->
7470 <!-- AppWidget package class attributes -->
7471 <!-- =============================== -->
7474 <!-- Use <code>appwidget-provider</code> as the root tag of the XML resource that
7475 describes an AppWidget provider. See {@link android.appwidget android.appwidget}
7476 package for more info.
7478 <declare-styleable name="AppWidgetProviderInfo">
7479 <!-- Minimum width of the AppWidget. -->
7480 <attr name="minWidth"/>
7481 <!-- Minimum height of the AppWidget. -->
7482 <attr name="minHeight"/>
7483 <!-- Minimum width that the AppWidget can be resized to. -->
7484 <attr name="minResizeWidth" format="dimension"/>
7485 <!-- Minimum height that the AppWidget can be resized to. -->
7486 <attr name="minResizeHeight" format="dimension"/>
7487 <!-- Update period in milliseconds, or 0 if the AppWidget will update itself. -->
7488 <attr name="updatePeriodMillis" format="integer" />
7489 <!-- A resource id of a layout. -->
7490 <attr name="initialLayout" format="reference" />
7491 <!-- A resource id of a layout. -->
7492 <attr name="initialKeyguardLayout" format="reference" />
7493 <!-- A class name in the AppWidget's package to be launched to configure.
7494 If not supplied, then no activity will be launched. -->
7495 <attr name="configure" format="string" />
7496 <!-- A preview of what the AppWidget will look like after it's configured.
7497 If not supplied, the AppWidget's icon will be used. -->
7498 <attr name="previewImage" format="reference" />
7499 <!-- The view id of the AppWidget subview which should be auto-advanced.
7500 by the widget's host. -->
7501 <attr name="autoAdvanceViewId" format="reference" />
7502 <!-- Optional parameter which indicates if and how this widget can be
7503 resized. Supports combined values using | operator. -->
7504 <attr name="resizeMode" format="integer">
7505 <flag name="none" value="0x0" />
7506 <flag name="horizontal" value="0x1" />
7507 <flag name="vertical" value="0x2" />
7509 <!-- Optional parameter which indicates where this widget can be shown,
7510 ie. home screen, keyguard, search bar or any combination thereof.
7511 Supports combined values using | operator. -->
7512 <attr name="widgetCategory" format="integer">
7513 <flag name="home_screen" value="0x1" />
7514 <flag name="keyguard" value="0x2" />
7515 <flag name="searchbox" value="0x4" />
7517 </declare-styleable>
7519 <!-- =============================== -->
7520 <!-- Wallpaper preview attributes -->
7521 <!-- =============================== -->
7524 <!-- Use <code>wallpaper-preview</code> as the root tag of the XML resource that
7525 describes a wallpaper preview. -->
7526 <declare-styleable name="WallpaperPreviewInfo">
7527 <!-- A resource id of a static drawable. -->
7528 <attr name="staticWallpaperPreview" format="reference" />
7529 </declare-styleable>
7531 <!-- =============================== -->
7532 <!-- App package class attributes -->
7533 <!-- =============================== -->
7536 <!-- ============================= -->
7537 <!-- View package class attributes -->
7538 <!-- ============================= -->
7541 <!-- Attributes that can be used with <code><fragment></code>
7542 tags inside of the layout of an Activity. This instantiates
7543 the given {@link android.app.Fragment} and inserts its content
7544 view into the current location in the layout. -->
7545 <declare-styleable name="Fragment">
7546 <!-- Supply the name of the fragment class to instantiate. -->
7547 <attr name="name" />
7549 <!-- Supply an identifier name for the top-level view, to later retrieve it
7550 with {@link android.view.View#findViewById View.findViewById()} or
7551 {@link android.app.Activity#findViewById Activity.findViewById()}.
7553 resource reference; typically you set this using the
7554 <code>@+</code> syntax to create a new ID resources.
7555 For example: <code>android:id="@+id/my_id"</code> which
7556 allows you to later retrieve the view
7557 with <code>findViewById(R.id.my_id)</code>. -->
7560 <!-- Supply a tag for the top-level view containing a String, to be retrieved
7561 later with {@link android.view.View#getTag View.getTag()} or
7562 searched for with {@link android.view.View#findViewWithTag
7563 View.findViewWithTag()}. It is generally preferable to use
7564 IDs (through the android:id attribute) instead of tags because
7565 they are faster and allow for compile-time type checking. -->
7568 <!-- The Transition that will be used to move Views out of the scene when the
7569 fragment is removed, hidden, or detached when not popping the back stack.
7570 Corresponds to {@link android.app.Fragment#setExitTransition(
7571 android.transition.Transition)} -->
7572 <attr name="fragmentExitTransition" format="reference"/>
7574 <!-- The Transition that will be used to move Views into the initial scene.
7575 Corresponds to {@link android.app.Fragment#setEnterTransition(
7576 android.transition.Transition)} -->
7577 <attr name="fragmentEnterTransition" format="reference"/>
7579 <!-- The Transition that will be used for shared elements transferred into the content
7581 Corresponds to {@link android.app.Fragment#setSharedElementEnterTransition(
7582 android.transition.Transition)} -->
7583 <attr name="fragmentSharedElementEnterTransition" format="reference"/>
7585 <!-- The Transition that will be used to move Views out of the scene when the Fragment is
7586 preparing to be removed, hidden, or detached because of popping the back stack.
7587 Corresponds to {@link android.app.Fragment#setReturnTransition(
7588 android.transition.Transition)} -->
7589 <attr name="fragmentReturnTransition" format="reference"/>
7591 <!-- The Transition that will be used for shared elements transferred back during a
7592 pop of the back stack. This Transition acts in the leaving Fragment.
7593 Corresponds to {@link android.app.Fragment#setSharedElementReturnTransition(
7594 android.transition.Transition)} -->
7595 <attr name="fragmentSharedElementReturnTransition" format="reference"/>
7597 <!-- The Transition that will be used to move Views in to the scene when returning due
7598 to popping a back stack.
7599 Corresponds to {@link android.app.Fragment#setReenterTransition(
7600 android.transition.Transition)} -->
7601 <attr name="fragmentReenterTransition" format="reference"/>
7603 <!-- Sets whether the enter and exit transitions should overlap when transitioning
7605 Corresponds to {@link android.app.Fragment#setAllowEnterTransitionOverlap(
7607 <attr name="fragmentAllowEnterTransitionOverlap" format="reference"/>
7609 <!-- Sets whether the enter and exit transitions should overlap when transitioning
7610 because of popping the back stack.
7611 Corresponds to {@link android.app.Fragment#setAllowReturnTransitionOverlap(
7613 <attr name="fragmentAllowReturnTransitionOverlap" format="reference"/>
7614 </declare-styleable>
7616 <!-- Use <code>device-admin</code> as the root tag of the XML resource that
7618 {@link android.app.admin.DeviceAdminReceiver}, which is
7620 {@link android.app.admin.DeviceAdminReceiver#DEVICE_ADMIN_META_DATA}
7621 meta-data entry. Described here are the attributes that can be
7622 included in that tag. -->
7623 <declare-styleable name="DeviceAdmin">
7624 <!-- Control whether the admin is visible to the user, even when it
7625 is not enabled. This is true by default. You may want to make
7626 it false if your admin does not make sense to be turned on
7627 unless some explicit action happens in your app. -->
7628 <attr name="visible" />
7629 </declare-styleable>
7631 <!-- Use <code>wallpaper</code> as the root tag of the XML resource that
7633 {@link android.service.wallpaper.WallpaperService}, which is
7635 {@link android.service.wallpaper.WallpaperService#SERVICE_META_DATA}
7636 meta-data entry. Described here are the attributes that can be
7637 included in that tag. -->
7638 <declare-styleable name="Wallpaper">
7639 <attr name="settingsActivity" />
7641 <!-- Reference to the wallpaper's thumbnail bitmap. -->
7642 <attr name="thumbnail" format="reference" />
7644 <!-- Name of the author and/or source/collection of this component, for example,
7645 Art Collection, Picasso. -->
7646 <attr name="author" format="reference" />
7648 <!-- Short description of the component's purpose or behavior. -->
7649 <attr name="description" />
7651 <!-- Uri that specifies a link for further context of this wallpaper, for example,
7652 http://www.picasso.org. -->
7653 <attr name="contextUri" format="reference" />
7655 <!-- Title of the uri that specifies a link for further context of this wallpaper,
7656 for example, Explore collection. -->
7657 <attr name="contextDescription" format="reference" />
7659 <!-- Whether to show any metadata when previewing the wallpaper. If this value is
7660 set to true, any component that shows a preview of this live wallpaper should also show
7661 accompanying information like the title, the description, the author and the context
7662 description of this wallpaper so the user gets to know further information about this
7664 <attr name="showMetadataInPreview" format="boolean" />
7666 </declare-styleable>
7668 <!-- Use <code>dream</code> as the root tag of the XML resource that
7670 {@link android.service.dreams.DreamService}, which is
7672 {@link android.service.dreams.DreamService#DREAM_META_DATA}
7673 meta-data entry. Described here are the attributes that can be
7674 included in that tag. -->
7675 <declare-styleable name="Dream">
7676 <!-- Component name of an activity that allows the user to modify
7677 the settings for this dream. -->
7678 <attr name="settingsActivity" />
7679 </declare-styleable>
7681 <!-- @SystemApi Use <code>trust-agent</code> as the root tag of the XML resource that
7682 describes an {@link android.service.trust.TrustAgentService}, which is
7683 referenced from its {@link android.service.trust.TrustAgentService#TRUST_AGENT_META_DATA}
7684 meta-data entry. Described here are the attributes that can be included in that tag.
7686 <declare-styleable name="TrustAgent">
7687 <!-- @SystemApi Component name of an activity that allows the user to modify
7688 the settings for this trust agent. @hide -->
7689 <attr name="settingsActivity" />
7690 <!-- @SystemApi Title for a preference that allows that user to launch the
7691 activity to modify trust agent settings. @hide -->
7692 <attr name="title" />
7693 <!-- @SystemApi Summary for the same preference as the title. @hide -->
7694 <attr name="summary" />
7695 <!-- @SystemApi Whether trust agent can unlock a user profile @hide -->
7696 <attr name="unlockProfile" format="boolean"/>
7697 </declare-styleable>
7699 <!-- =============================== -->
7700 <!-- Accounts package class attributes -->
7701 <!-- =============================== -->
7704 <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
7705 describes an account authenticator.
7707 <declare-styleable name="AccountAuthenticator">
7708 <!-- The account type this authenticator handles. -->
7709 <attr name="accountType" format="string"/>
7710 <!-- The user-visible name of the authenticator. -->
7711 <attr name="label"/>
7712 <!-- The icon of the authenticator. -->
7714 <!-- Smaller icon of the authenticator. -->
7715 <attr name="smallIcon" format="reference"/>
7716 <!-- A preferences.xml file for authenticator-specific settings. -->
7717 <attr name="accountPreferences" format="reference"/>
7718 <!-- Account handles its own token storage and permissions.
7721 <attr name="customTokens" format="boolean"/>
7722 </declare-styleable>
7724 <!-- =============================== -->
7725 <!-- Accounts package class attributes -->
7726 <!-- =============================== -->
7729 <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
7730 describes an account authenticator.
7732 <declare-styleable name="SyncAdapter">
7733 <!-- the authority of a content provider. -->
7734 <attr name="contentAuthority" format="string"/>
7735 <attr name="accountType"/>
7736 <attr name="userVisible" format="boolean"/>
7737 <attr name="supportsUploading" format="boolean"/>
7738 <!-- Set to true to tell the SyncManager that this SyncAdapter supports
7739 multiple simultaneous syncs for the same account type and authority.
7740 Otherwise the SyncManager will be sure not to issue a start sync request
7741 to this SyncAdapter if the SyncAdapter is already syncing another account.
7744 <attr name="allowParallelSyncs" format="boolean"/>
7745 <!-- Set to true to tell the SyncManager to automatically call setIsSyncable(..., ..., 1)
7746 for the SyncAdapter instead of issuaing an initialization sync to the SyncAdapter.
7749 <attr name="isAlwaysSyncable" format="boolean"/>
7750 <!-- If provided, specifies the action of the settings
7751 activity for this SyncAdapter.
7753 <attr name="settingsActivity"/>
7754 </declare-styleable>
7756 <!-- =============================== -->
7757 <!-- Autofill attributes -->
7758 <!-- =============================== -->
7761 <!-- Use <code>autofill-service</code> as the root tag of the XML resource that describes a
7762 {@link android.service.autofill.AutofillService}, which is referenced from its
7763 {@link android.service.autofill#SERVICE_META_DATA} meta-data entry.
7765 <declare-styleable name="AutofillService">
7766 <!-- Fully qualified class name of an activity that allows the user to modify
7767 the settings for this service. -->
7768 <attr name="settingsActivity" />
7769 </declare-styleable>
7771 <!-- =============================== -->
7772 <!-- Contacts meta-data attributes -->
7773 <!-- =============================== -->
7776 <!-- TODO: remove this deprecated styleable. -->
7778 <declare-styleable name="Icon">
7779 <attr name="icon" />
7780 <attr name="mimeType" />
7781 </declare-styleable>
7783 <!-- TODO: remove this deprecated styleable -->
7785 <declare-styleable name="IconDefault">
7786 <attr name="icon" />
7787 </declare-styleable>
7789 <!-- Maps a specific contact data MIME-type to styling information. -->
7790 <declare-styleable name="ContactsDataKind">
7791 <!-- Mime-type handled by this mapping. -->
7792 <attr name="mimeType" />
7793 <!-- Icon used to represent data of this kind. -->
7794 <attr name="icon" />
7795 <!-- Column in data table that summarizes this data. -->
7796 <attr name="summaryColumn" format="string" />
7797 <!-- Column in data table that contains details for this data. -->
7798 <attr name="detailColumn" format="string" />
7799 <!-- Flag indicating that detail should be built from SocialProvider. -->
7800 <attr name="detailSocialSummary" format="boolean" />
7801 <!-- Resource representing the term "All Contacts" (for example, "All Friends" or
7802 "All connections"). Optional (Default is "All Contacts"). -->
7803 <attr name="allContactsName" format="string" />
7804 </declare-styleable>
7806 <!-- =============================== -->
7807 <!-- TabSelector class attributes -->
7808 <!-- =============================== -->
7811 <declare-styleable name="SlidingTab">
7812 <!-- Use "horizontal" for a row, "vertical" for a column. The default is horizontal. -->
7813 <attr name="orientation" />
7814 </declare-styleable>
7816 <!-- =============================== -->
7817 <!-- GlowPadView class attributes -->
7818 <!-- =============================== -->
7820 <declare-styleable name="GlowPadView">
7821 <!-- Reference to an array resource that be used as description for the targets around the circle.
7822 {@deprecated Removed.} -->
7823 <attr name="targetDescriptions" format="reference" />
7825 <!-- Reference to an array resource that be used to announce the directions with targets around the circle.
7826 {@deprecated Removed.} -->
7827 <attr name="directionDescriptions" format="reference" />
7828 </declare-styleable>
7830 <!-- =============================== -->
7831 <!-- Location package class attributes -->
7832 <!-- =============================== -->
7835 <!-- Use <code>injected-location-setting</code> as the root tag of the XML resource that
7836 describes an injected "Location services" setting. Note that the status value (subtitle)
7837 for the setting is specified dynamically by a subclass of SettingInjectorService.
7839 <declare-styleable name="SettingInjectorService">
7840 <!-- The title for the preference. -->
7841 <attr name="title"/>
7842 <!-- The icon for the preference, should refer to all apps covered by the setting. Typically
7843 a generic icon for the developer. -->
7845 <!-- The activity to launch when the setting is clicked on. -->
7846 <attr name="settingsActivity"/>
7847 </declare-styleable>
7849 <!-- =============================== -->
7850 <!-- LockPatternView class attributes -->
7851 <!-- =============================== -->
7854 <declare-styleable name="LockPatternView">
7855 <!-- Aspect to use when drawing LockPatternView. Choices are "square"(default), "lock_width"
7856 or "lock_height" -->
7857 <attr name="aspect" format="string" />
7858 <!-- Color to use when drawing LockPatternView paths. -->
7859 <attr name="pathColor" format="color|reference" />
7860 <!-- The regular pattern color -->
7861 <attr name="regularColor" format="color|reference" />
7862 <!-- The error color -->
7863 <attr name="errorColor" format="color|reference" />
7864 <!-- The success color -->
7865 <attr name="successColor" format="color|reference"/>
7866 </declare-styleable>
7868 <!-- Use <code>recognition-service</code> as the root tag of the XML resource that
7869 describes a {@link android.speech.RecognitionService}, which is referenced from
7870 its {@link android.speech.RecognitionService#SERVICE_META_DATA} meta-data entry.
7871 Described here are the attributes that can be included in that tag. -->
7872 <declare-styleable name="RecognitionService">
7873 <attr name="settingsActivity" />
7874 </declare-styleable>
7876 <!-- Use <code>voice-interaction-service</code> as the root tag of the XML resource that
7877 describes a {@link android.service.voice.VoiceInteractionService}, which is referenced from
7878 its {@link android.service.voice.VoiceInteractionService#SERVICE_META_DATA} meta-data entry.
7879 Described here are the attributes that can be included in that tag. -->
7880 <declare-styleable name="VoiceInteractionService">
7881 <!-- The service that hosts active voice interaction sessions. This is required. -->
7882 <attr name="sessionService" format="string" />
7883 <!-- The service that provides voice recognition. This is required. When the user
7884 selects this voice interaction service, they will also be implicitly selecting
7885 the component here for their recognition service. -->
7886 <attr name="recognitionService" format="string" />
7887 <attr name="settingsActivity" />
7888 <!-- Flag indicating whether this voice interaction service is capable of handling the
7890 <attr name="supportsAssist" format="boolean" />
7891 <!-- Flag indicating whether this voice interaction service is capable of being launched
7892 from the keyguard. -->
7893 <attr name="supportsLaunchVoiceAssistFromKeyguard" format="boolean" />
7894 <!-- Flag indicating whether this voice interaction service can handle local voice
7895 interaction requests from an Activity. This flag is new in
7896 {@link android.os.Build.VERSION_CODES#N} and not used in previous versions. -->
7897 <attr name="supportsLocalInteraction" format="boolean" />
7898 </declare-styleable>
7900 <!-- Use <code>voice-enrollment-application</code>
7901 as the root tag of the XML resource that escribes the supported keyphrases (hotwords)
7902 by the enrollment application.
7903 Described here are the attributes that can be included in that tag.
7906 <declare-styleable name="VoiceEnrollmentApplication">
7907 <!-- A globally unique ID for the keyphrase. @hide @SystemApi -->
7908 <attr name="searchKeyphraseId" format="integer" />
7909 <!-- The actual keyphrase/hint text, or empty if not keyphrase dependent. @hide @SystemApi -->
7910 <attr name="searchKeyphrase" format="string" />
7911 <!-- A comma separated list of BCP-47 language tag for locales that are supported
7912 for this keyphrase, or empty if not locale dependent. @hide @SystemApi -->
7913 <attr name="searchKeyphraseSupportedLocales" format="string" />
7914 <!-- Flags for supported recognition modes. @hide @SystemApi -->
7915 <attr name="searchKeyphraseRecognitionFlags">
7916 <flag name="none" value="0" />
7917 <flag name="voiceTrigger" value="0x1" />
7918 <flag name="userIdentification" value="0x2" />
7920 </declare-styleable>
7922 <!-- Attributes used to style the Action Bar. -->
7923 <declare-styleable name="ActionBar">
7924 <!-- The type of navigation to use. -->
7925 <attr name="navigationMode">
7926 <!-- Normal static title text. -->
7927 <enum name="normal" value="0" />
7928 <!-- The action bar will use a selection list for navigation. -->
7929 <enum name="listMode" value="1" />
7930 <!-- The action bar will use a series of horizontal tabs for navigation. -->
7931 <enum name="tabMode" value="2" />
7933 <!-- Options affecting how the action bar is displayed. -->
7934 <attr name="displayOptions">
7935 <flag name="none" value="0" />
7936 <flag name="useLogo" value="0x1" />
7937 <flag name="showHome" value="0x2" />
7938 <flag name="homeAsUp" value="0x4" />
7939 <flag name="showTitle" value="0x8" />
7940 <flag name="showCustom" value="0x10" />
7941 <flag name="disableHome" value="0x20" />
7943 <!-- Specifies title text used for navigationMode="normal". -->
7944 <attr name="title" />
7945 <!-- Specifies subtitle text used for navigationMode="normal". -->
7946 <attr name="subtitle" format="string" />
7947 <!-- Specifies a style to use for title text. -->
7948 <attr name="titleTextStyle" format="reference" />
7949 <!-- Specifies a style to use for subtitle text. -->
7950 <attr name="subtitleTextStyle" format="reference" />
7951 <!-- Specifies the drawable used for the application icon. -->
7952 <attr name="icon" />
7953 <!-- Specifies the drawable used for the application logo. -->
7954 <attr name="logo" />
7955 <!-- Specifies the drawable used for item dividers. -->
7956 <attr name="divider" />
7957 <!-- Specifies a background drawable for the action bar. -->
7958 <attr name="background" />
7959 <!-- Specifies a background drawable for a second stacked row of the action bar. -->
7960 <attr name="backgroundStacked" format="reference|color" />
7961 <!-- Specifies a background drawable for the bottom component of a split action bar. -->
7962 <attr name="backgroundSplit" format="reference|color" />
7963 <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
7964 <attr name="customNavigationLayout" format="reference" />
7965 <!-- Specifies a fixed height. -->
7966 <attr name="height" />
7967 <!-- Specifies a layout to use for the "home" section of the action bar. -->
7968 <attr name="homeLayout" format="reference" />
7969 <!-- Specifies a style resource to use for an embedded progress bar. -->
7970 <attr name="progressBarStyle" />
7971 <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
7972 <attr name="indeterminateProgressStyle" format="reference" />
7973 <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
7974 <attr name="progressBarPadding" format="dimension" />
7975 <!-- Up navigation glyph. -->
7976 <attr name="homeAsUpIndicator" />
7977 <!-- Specifies padding that should be applied to the left and right sides of
7978 system-provided items in the bar. -->
7979 <attr name="itemPadding" format="dimension" />
7980 <!-- Set true to hide the action bar on a vertical nested scroll of content. -->
7981 <attr name="hideOnContentScroll" format="boolean" />
7982 <!-- Minimum inset for content views within a bar. Navigation buttons and
7983 menu views are excepted. Only valid for some themes and configurations. -->
7984 <attr name="contentInsetStart" format="dimension" />
7985 <!-- Minimum inset for content views within a bar. Navigation buttons and
7986 menu views are excepted. Only valid for some themes and configurations. -->
7987 <attr name="contentInsetEnd" format="dimension" />
7988 <!-- Minimum inset for content views within a bar. Navigation buttons and
7989 menu views are excepted. Only valid for some themes and configurations. -->
7990 <attr name="contentInsetLeft" format="dimension" />
7991 <!-- Minimum inset for content views within a bar. Navigation buttons and
7992 menu views are excepted. Only valid for some themes and configurations. -->
7993 <attr name="contentInsetRight" format="dimension" />
7994 <!-- Minimum inset for content views within a bar when a navigation button
7995 is present, such as the Up button. Only valid for some themes and configurations. -->
7996 <attr name="contentInsetStartWithNavigation" format="dimension" />
7997 <!-- Minimum inset for content views within a bar when actions from a menu
7998 are present. Only valid for some themes and configurations. -->
7999 <attr name="contentInsetEndWithActions" format="dimension" />
8000 <!-- Elevation for the action bar itself. -->
8001 <attr name="elevation" />
8002 <!-- Reference to a theme that should be used to inflate popups
8003 shown by widgets in the action bar. -->
8004 <attr name="popupTheme" />
8005 </declare-styleable>
8007 <declare-styleable name="ActionMode">
8008 <!-- Specifies a style to use for title text. -->
8009 <attr name="titleTextStyle" />
8010 <!-- Specifies a style to use for subtitle text. -->
8011 <attr name="subtitleTextStyle" />
8012 <!-- Specifies a background for the action mode bar. -->
8013 <attr name="background" />
8014 <!-- Specifies a background for the split action mode bar. -->
8015 <attr name="backgroundSplit" />
8016 <!-- Specifies a fixed height for the action mode bar. -->
8017 <attr name="height" />
8018 <!-- Specifies a layout to use for the "close" item at the starting edge. -->
8019 <attr name="closeItemLayout" format="reference" />
8020 </declare-styleable>
8022 <declare-styleable name="SearchView">
8023 <!-- The layout to use for the search view. -->
8024 <attr name="layout" />
8025 <!-- The default state of the SearchView. If true, it will be iconified when not in
8026 use and expanded when clicked. -->
8027 <attr name="iconifiedByDefault" format="boolean" />
8028 <!-- An optional maximum width of the SearchView. -->
8029 <attr name="maxWidth" />
8030 <!-- An optional query hint string to be displayed in the empty query field. -->
8031 <attr name="queryHint" format="string" />
8032 <!-- Default query hint used when {@code queryHint} is undefined and
8033 the search view's {@code SearchableInfo} does not provide a hint.
8035 <attr name="defaultQueryHint" format="string" />
8036 <!-- The IME options to set on the query text field. -->
8037 <attr name="imeOptions" />
8038 <!-- The input type to set on the query text field. -->
8039 <attr name="inputType" />
8040 <!-- Close button icon. -->
8041 <attr name="closeIcon" format="reference" />
8042 <!-- Go button icon. -->
8043 <attr name="goIcon" format="reference" />
8044 <!-- Search icon. -->
8045 <attr name="searchIcon" format="reference" />
8046 <!-- Search icon displayed as a text field hint. -->
8047 <attr name="searchHintIcon" format="reference" />
8048 <!-- Voice button icon. -->
8049 <attr name="voiceIcon" format="reference" />
8050 <!-- Commit icon shown in the query suggestion row. -->
8051 <attr name="commitIcon" format="reference" />
8052 <!-- Layout for query suggestion rows. -->
8053 <attr name="suggestionRowLayout" format="reference" />
8054 <!-- Background for the section containing the search query. -->
8055 <attr name="queryBackground" format="reference" />
8056 <!-- Background for the section containing the action (for example, voice search). -->
8057 <attr name="submitBackground" format="reference" />
8058 </declare-styleable>
8060 <declare-styleable name="Switch">
8061 <!-- Drawable to use as the "thumb" that switches back and forth. -->
8062 <attr name="thumb" />
8063 <!-- Tint to apply to the thumb. -->
8064 <attr name="thumbTint" />
8065 <!-- Blending mode used to apply the thumb tint. -->
8066 <attr name="thumbTintMode" />
8067 <!-- Drawable to use as the "track" that the switch thumb slides within. -->
8068 <attr name="track" format="reference" />
8069 <!-- Tint to apply to the track. -->
8070 <attr name="trackTint" format="color" />
8071 <!-- Blending mode used to apply the track tint. -->
8072 <attr name="trackTintMode">
8073 <!-- The tint is drawn on top of the drawable.
8074 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
8075 <enum name="src_over" value="3" />
8076 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
8077 color channels are thrown out. [Sa * Da, Sc * Da] -->
8078 <enum name="src_in" value="5" />
8079 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
8080 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
8081 <enum name="src_atop" value="9" />
8082 <!-- Multiplies the color and alpha channels of the drawable with those of
8083 the tint. [Sa * Da, Sc * Dc] -->
8084 <enum name="multiply" value="14" />
8085 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
8086 <enum name="screen" value="15" />
8087 <!-- Combines the tint and drawable color and alpha channels, clamping the
8088 result to valid color values. Saturate(S + D) -->
8089 <enum name="add" value="16" />
8091 <!-- Text to use when the switch is in the checked/"on" state. -->
8092 <attr name="textOn" />
8093 <!-- Text to use when the switch is in the unchecked/"off" state. -->
8094 <attr name="textOff" />
8095 <!-- Amount of padding on either side of text within the switch thumb. -->
8096 <attr name="thumbTextPadding" format="dimension" />
8097 <!-- TextAppearance style for text displayed on the switch thumb. -->
8098 <attr name="switchTextAppearance" format="reference" />
8099 <!-- Minimum width for the switch component. -->
8100 <attr name="switchMinWidth" format="dimension" />
8101 <!-- Minimum space between the switch and caption text. -->
8102 <attr name="switchPadding" format="dimension" />
8103 <!-- Whether to split the track and leave a gap for the thumb drawable. -->
8104 <attr name="splitTrack" />
8105 <!-- Whether to draw on/off text. -->
8106 <attr name="showText" format="boolean" />
8107 </declare-styleable>
8109 <declare-styleable name="Pointer">
8110 <!-- Reference to a pointer icon drawable with STYLE_ARROW. -->
8111 <attr name="pointerIconArrow" format="reference" />
8112 <!-- Reference to a pointer icon drawable with STYLE_SPOT_HOVER. -->
8113 <attr name="pointerIconSpotHover" format="reference" />
8114 <!-- Reference to a pointer icon drawable with STYLE_SPOT_TOUCH. -->
8115 <attr name="pointerIconSpotTouch" format="reference" />
8116 <!-- Reference to a pointer icon drawable with STYLE_SPOT_ANCHOR. -->
8117 <attr name="pointerIconSpotAnchor" format="reference" />
8118 <!-- Reference to a pointer drawable with STYLE_CONTEXT_MENU. -->
8119 <attr name="pointerIconContextMenu" format="reference"/>
8120 <!-- Reference to a pointer drawable with STYLE_HAND. -->
8121 <attr name="pointerIconHand" format="reference"/>
8122 <!-- Reference to a pointer drawable with STYLE_HELP. -->
8123 <attr name="pointerIconHelp" format="reference"/>
8124 <!-- Reference to a pointer drawable with STYLE_WAIT. -->
8125 <attr name="pointerIconWait" format="reference"/>
8126 <!-- Reference to a pointer drawable with STYLE_CELL. -->
8127 <attr name="pointerIconCell" format="reference"/>
8128 <!-- Reference to a pointer drawable with STYLE_CROSSHAIR. -->
8129 <attr name="pointerIconCrosshair" format="reference"/>
8130 <!-- Reference to a pointer drawable with STYLE_TEXT. -->
8131 <attr name="pointerIconText" format="reference"/>
8132 <!-- Reference to a pointer drawable with STYLE_VERTICAL_TEXT. -->
8133 <attr name="pointerIconVerticalText" format="reference"/>
8134 <!-- Reference to a pointer drawable with STYLE_ALIAS. -->
8135 <attr name="pointerIconAlias" format="reference"/>
8136 <!-- Reference to a pointer drawable with STYLE_COPY. -->
8137 <attr name="pointerIconCopy" format="reference"/>
8138 <!-- Reference to a pointer drawable with STYLE_NODROP. -->
8139 <attr name="pointerIconNodrop" format="reference"/>
8140 <!-- Reference to a pointer drawable with STYLE_ALL_SCROLL. -->
8141 <attr name="pointerIconAllScroll" format="reference"/>
8142 <!-- Reference to a pointer drawable with STYLE_HORIZONTAL_DOUBLE_ARROW. -->
8143 <attr name="pointerIconHorizontalDoubleArrow" format="reference"/>
8144 <!-- Reference to a pointer drawable with STYLE_VERTICAL_DOUBLE_ARROW. -->
8145 <attr name="pointerIconVerticalDoubleArrow" format="reference"/>
8146 <!-- Reference to a pointer drawable with STYLE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW. -->
8147 <attr name="pointerIconTopRightDiagonalDoubleArrow" format="reference"/>
8148 <!-- Reference to a pointer drawable with STYLE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW. -->
8149 <attr name="pointerIconTopLeftDiagonalDoubleArrow" format="reference"/>
8150 <!-- Reference to a pointer drawable with STYLE_ZOOM_IN. -->
8151 <attr name="pointerIconZoomIn" format="reference"/>
8152 <!-- Reference to a pointer drawable with STYLE_ZOOM_OUT. -->
8153 <attr name="pointerIconZoomOut" format="reference"/>
8154 <!-- Reference to a pointer drawable with STYLE_GRAB. -->
8155 <attr name="pointerIconGrab" format="reference"/>
8156 <!-- Reference to a pointer drawable with STYLE_GRABBING. -->
8157 <attr name="pointerIconGrabbing" format="reference"/>
8158 </declare-styleable>
8160 <declare-styleable name="PointerIcon">
8161 <!-- Drawable to use as the icon bitmap. -->
8162 <attr name="bitmap" format="reference" />
8163 <!-- X coordinate of the icon hot spot. -->
8164 <attr name="hotSpotX" format="dimension" />
8165 <!-- Y coordinate of the icon hot spot. -->
8166 <attr name="hotSpotY" format="dimension" />
8167 </declare-styleable>
8169 <declare-styleable name="Storage">
8170 <!-- path to mount point for the storage. -->
8171 <attr name="mountPoint" format="string" />
8172 <!-- user visible description of the storage. -->
8173 <attr name="storageDescription" format="string" />
8174 <!-- true if the storage is the primary external storage. -->
8175 <attr name="primary" format="boolean" />
8176 <!-- true if the storage is removable. -->
8177 <attr name="removable" format="boolean" />
8178 <!-- true if the storage is emulated via the FUSE sdcard daemon. -->
8179 <attr name="emulated" format="boolean" />
8180 <!-- number of megabytes of storage MTP should reserve for free storage
8181 (used for emulated storage that is shared with system's data partition). -->
8182 <attr name="mtpReserve" format="integer" />
8183 <!-- true if the storage can be shared via USB mass storage. -->
8184 <attr name="allowMassStorage" format="boolean" />
8185 <!-- maximum file size for the volume in megabytes, zero or unspecified if it is unbounded. -->
8186 <attr name="maxFileSize" format="integer" />
8187 </declare-styleable>
8189 <declare-styleable name="SwitchPreference">
8190 <!-- The summary for the Preference in a PreferenceActivity screen when the
8191 SwitchPreference is checked. If separate on/off summaries are not
8192 needed, the summary attribute can be used instead. -->
8193 <attr name="summaryOn" />
8194 <!-- The summary for the Preference in a PreferenceActivity screen when the
8195 SwitchPreference is unchecked. If separate on/off summaries are not
8196 needed, the summary attribute can be used instead. -->
8197 <attr name="summaryOff" />
8198 <!-- The text used on the switch itself when in the "on" state.
8199 This should be a very SHORT string, as it appears in a small space. -->
8200 <attr name="switchTextOn" format="string" />
8201 <!-- The text used on the switch itself when in the "off" state.
8202 This should be a very SHORT string, as it appears in a small space. -->
8203 <attr name="switchTextOff" format="string" />
8204 <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default,
8205 dependents will be disabled when this is unchecked, so the value of this preference is false. -->
8206 <attr name="disableDependentsState" />
8207 </declare-styleable>
8209 <declare-styleable name="SeekBarPreference">
8210 <attr name="layout" />
8211 <!-- Attribute indicating whether the slider within this preference can be adjusted, that is
8212 pressing left/right keys when this preference is focused will move the slider accordingly
8213 (for example, inline adjustable preferences). False, if the slider within the preference is
8214 read-only and cannot be adjusted. By default, the seekbar is adjustable. -->
8215 <attr name="adjustable" format="boolean" />
8216 <!-- Flag indicating whether the TextView next to the seekbar that shows the current seekbar value will be
8217 displayed. If true, the view is VISIBLE; if false, the view will be GONE. By default, this view is VISIBLE. -->
8218 <attr name="showSeekBarValue" format="boolean" />
8219 </declare-styleable>
8221 <!-- Base attributes available to PreferenceFragment. -->
8222 <declare-styleable name="PreferenceFragment">
8223 <!-- The layout for the PreferenceFragment. This should rarely need to be changed. -->
8224 <attr name="layout" />
8225 <attr name="divider" />
8226 </declare-styleable>
8228 <!-- Base attributes available to PreferenceScreen. -->
8229 <declare-styleable name="PreferenceScreen">
8230 <!-- The layout for the PreferenceScreen. This should rarely need to be changed. -->
8231 <attr name="screenLayout" format="reference" />
8232 <attr name="divider" />
8233 </declare-styleable>
8235 <!-- Base attributes available to PreferenceActivity. -->
8236 <declare-styleable name="PreferenceActivity">
8237 <!-- The layout for the Preference Activity. This should rarely need to be changed. -->
8238 <attr name="layout" />
8239 <!-- The layout for the Preference Header. This should rarely need to be changed. -->
8240 <attr name="headerLayout" format="reference" />
8241 <!-- true if the Icon view will be removed when there is none and thus not showing
8242 the fixed margins. -->
8243 <attr name="headerRemoveIconIfEmpty" format="boolean" />
8244 </declare-styleable>
8246 <!-- Use <code>tts-engine</code> as the root tag of the XML resource that
8247 describes a text to speech engine implemented as a subclass of
8248 {@link android.speech.tts.TextToSpeechService}.
8250 The XML resource must be referenced from its
8251 {@link android.speech.tts.TextToSpeech.Engine#SERVICE_META_DATA} meta-data
8253 <declare-styleable name="TextToSpeechEngine">
8254 <attr name="settingsActivity" />
8255 </declare-styleable>
8257 <!-- Use <code>keyboard-layouts</code> as the root tag of the XML resource that
8258 describes a collection of keyboard layouts provided by an application.
8259 Each keyboard layout is declared by a <code>keyboard-layout</code> tag
8260 with these attributes.
8262 The XML resource that contains the keyboard layouts must be referenced from its
8263 {@link android.hardware.input.InputManager#META_DATA_KEYBOARD_LAYOUTS}
8264 meta-data entry used with broadcast receivers for
8265 {@link android.hardware.input.InputManager#ACTION_QUERY_KEYBOARD_LAYOUTS}. -->
8266 <declare-styleable name="KeyboardLayout">
8267 <!-- The name of the keyboard layout, must be unique in the receiver. -->
8268 <attr name="name" />
8269 <!-- The display label of the keyboard layout. -->
8270 <attr name="label" />
8271 <!-- The key character map file resource. -->
8272 <attr name="keyboardLayout" format="reference" />
8273 <!-- The locales the given keyboard layout corresponds to. -->
8274 <attr name="locale" format="string" />
8275 <!-- The vendor ID of the hardware the given layout corresponds to. @hide -->
8276 <attr name="vendorId" format="integer" />
8277 <!-- The product ID of the hardware the given layout corresponds to. @hide -->
8278 <attr name="productId" format="integer" />
8279 </declare-styleable>
8281 <declare-styleable name="MediaRouteButton">
8282 <!-- This drawable is a state list where the "activated" state
8283 indicates active media routing. Non-activated indicates
8284 that media is playing to the local device only.
8286 <attr name="externalRouteEnabledDrawable" format="reference" />
8288 <!-- The types of media routes the button and its resulting
8289 chooser will filter by. -->
8290 <attr name="mediaRouteTypes" format="integer">
8291 <!-- Allow selection of live audio routes. -->
8292 <enum name="liveAudio" value="0x1" />
8293 <!-- Allow selection of user (app-specified) routes. -->
8294 <enum name="user" value="0x800000" />
8297 <attr name="minWidth" />
8298 <attr name="minHeight" />
8299 </declare-styleable>
8301 <!-- PagedView specific attributes. These attributes are used to customize
8302 a PagedView view in XML files. -->
8303 <declare-styleable name="PagedView">
8304 <!-- The space between adjacent pages of the PagedView. -->
8305 <attr name="pageSpacing" format="dimension" />
8306 <!-- The padding for the scroll indicator area. -->
8307 <attr name="scrollIndicatorPaddingLeft" format="dimension" />
8308 <attr name="scrollIndicatorPaddingRight" format="dimension" />
8309 </declare-styleable>
8311 <declare-styleable name="KeyguardGlowStripView">
8312 <attr name="dotSize" format="dimension" />
8313 <attr name="numDots" format="integer" />
8314 <attr name="glowDot" format="reference" />
8315 <attr name="leftToRight" format="boolean" />
8316 </declare-styleable>
8318 <!-- Some child types have special behavior. -->
8319 <attr name="layout_childType">
8320 <!-- No special behavior. Layout will proceed as normal. -->
8321 <enum name="none" value="0" />
8322 <!-- Widget container.
8323 This will be resized in response to certain events. -->
8324 <enum name="widget" value="1" />
8325 <!-- Security challenge container.
8326 This will be dismissed/shown in response to certain events,
8327 possibly obscuring widget elements. -->
8328 <enum name="challenge" value="2" />
8330 This will consume space from the total layout area. -->
8331 <enum name="userSwitcher" value="3" />
8332 <!-- Scrim. This will block access to child views that
8333 come before it in the child list in bouncer mode. -->
8334 <enum name="scrim" value="4" />
8335 <!-- The home for widgets. All widgets will be descendents of this. -->
8336 <enum name="widgets" value="5" />
8337 <!-- This is a handle that is used for expanding the
8338 security challenge container when it is collapsed. -->
8339 <enum name="expandChallengeHandle" value="6" />
8340 <!-- Delete drop target. This will be the drop target to delete pages. -->
8341 <enum name="pageDeleteDropTarget" value="7" />
8344 <!-- Attributes that can be used with <code><FragmentBreadCrumbs></code>
8346 <declare-styleable name="FragmentBreadCrumbs">
8347 <attr name="gravity" />
8348 <attr name="itemLayout" format="reference" />
8349 <attr name="itemColor" format="color|reference" />
8350 </declare-styleable>
8352 <declare-styleable name="Toolbar">
8353 <attr name="titleTextAppearance" format="reference" />
8354 <attr name="subtitleTextAppearance" format="reference" />
8355 <attr name="title" />
8356 <attr name="subtitle" />
8357 <attr name="gravity" />
8358 <!-- Specifies extra space on the left, start, right and end sides
8359 of the toolbar's title. Margin values should be positive. -->
8360 <attr name="titleMargin" format="dimension" />
8361 <!-- Specifies extra space on the start side of the toolbar's title.
8362 If both this attribute and titleMargin are specified, then this
8363 attribute takes precedence. Margin values should be positive. -->
8364 <attr name="titleMarginStart" format="dimension" />
8365 <!-- Specifies extra space on the end side of the toolbar's title.
8366 If both this attribute and titleMargin are specified, then this
8367 attribute takes precedence. Margin values should be positive. -->
8368 <attr name="titleMarginEnd" format="dimension" />
8369 <!-- Specifies extra space on the top side of the toolbar's title.
8370 If both this attribute and titleMargin are specified, then this
8371 attribute takes precedence. Margin values should be positive. -->
8372 <attr name="titleMarginTop" format="dimension" />
8373 <!-- Specifies extra space on the bottom side of the toolbar's title.
8374 If both this attribute and titleMargin are specified, then this
8375 attribute takes precedence. Margin values should be positive. -->
8376 <attr name="titleMarginBottom" format="dimension" />
8377 <attr name="contentInsetStart" />
8378 <attr name="contentInsetEnd" />
8379 <attr name="contentInsetLeft" />
8380 <attr name="contentInsetRight" />
8381 <attr name="contentInsetStartWithNavigation" />
8382 <attr name="contentInsetEndWithActions" />
8383 <attr name="maxButtonHeight" format="dimension" />
8384 <attr name="navigationButtonStyle" format="reference" />
8385 <attr name="buttonGravity">
8386 <!-- Push object to the top of its container, not changing its size. -->
8387 <flag name="top" value="0x30" />
8388 <!-- Push object to the bottom of its container, not changing its size. -->
8389 <flag name="bottom" value="0x50" />
8391 <!-- Icon drawable to use for the collapse button. -->
8392 <attr name="collapseIcon" format="reference" />
8393 <!-- Text to set as the content description for the collapse button. -->
8394 <attr name="collapseContentDescription" format="string" />
8395 <!-- Reference to a theme that should be used to inflate popups
8396 shown by widgets in the toolbar. -->
8397 <attr name="popupTheme" format="reference" />
8398 <!-- Icon drawable to use for the navigation button located at
8399 the start of the toolbar. -->
8400 <attr name="navigationIcon" format="reference" />
8401 <!-- Text to set as the content description for the navigation button
8402 located at the start of the toolbar. -->
8403 <attr name="navigationContentDescription" format="string" />
8404 <!-- Drawable to set as the logo that appears at the starting side of
8405 the Toolbar, just after the navigation button. -->
8406 <attr name="logo" />
8407 <!-- A content description string to describe the appearance of the
8408 associated logo image. -->
8409 <attr name="logoDescription" format="string" />
8410 <!-- A color to apply to the title string. -->
8411 <attr name="titleTextColor" format="color" />
8412 <!-- A color to apply to the subtitle string. -->
8413 <attr name="subtitleTextColor" format="color" />
8414 </declare-styleable>
8416 <declare-styleable name="Toolbar_LayoutParams">
8417 <attr name="layout_gravity" />
8418 </declare-styleable>
8420 <declare-styleable name="ActionBar_LayoutParams">
8421 <attr name="layout_gravity" />
8422 </declare-styleable>
8424 <!-- Used as a filter array on the theme to pull out only the EdgeEffect-relevant bits. -->
8425 <declare-styleable name="EdgeEffect">
8426 <attr name="colorEdgeEffect" />
8427 </declare-styleable>
8429 <!-- Use <code>tv-input</code> as the root tag of the XML resource that describes a
8430 {@link android.media.tv.TvInputService}, which is referenced from its
8431 {@link android.media.tv.TvInputService#SERVICE_META_DATA} meta-data entry.
8432 Described here are the attributes that can be included in that tag. -->
8433 <declare-styleable name="TvInputService">
8434 <!-- Component name of an activity that allows the user to set up this service. -->
8435 <attr name="setupActivity" format="string" />
8436 <!-- Component name of an activity that allows the user to modify the settings for this
8438 {@deprecated This value is deprecated and not used by the framework starting from API
8439 level 26. Use setupActivity instead.} -->
8440 <attr name="settingsActivity" />
8441 <!-- Attribute whether the TV input service can record programs. This value can be changed
8442 at runtime by calling
8443 {@link android.media.tv.TvInputManager#updateTvInputInfo(android.media.tv.TvInputInfo)}. -->
8444 <attr name="canRecord" format="boolean" />
8445 <!-- The number of tuners that the TV input service is associated with. This value can be
8446 changed at runtime by calling
8447 {@link android.media.tv.TvInputManager#updateTvInputInfo(android.media.tv.TvInputInfo)}. -->
8448 <attr name="tunerCount" format="integer" />
8449 </declare-styleable>
8451 <!-- Attributes that can be used with <code>rating-system-definition</code> tags inside of the
8452 XML resource that describes TV content rating of a {@link android.media.tv.TvInputService},
8453 which is referenced from its
8454 {@link android.media.tv.TvInputManager#META_DATA_CONTENT_RATING_SYSTEMS}. -->
8455 <declare-styleable name="RatingSystemDefinition">
8456 <!-- The unique name of the content rating system. -->
8457 <attr name="name" />
8458 <!-- The title of the content rating system which is shown to the user. -->
8459 <attr name="title" />
8460 <!-- The short description of the content rating system. -->
8461 <attr name="description" />
8462 <!-- The country code associated with the content rating system, which consists of two
8463 uppercase letters that conform to the ISO 3166 standard. -->
8464 <attr name="country" format="string" />
8465 </declare-styleable>
8467 <!-- Attributes that can be used with <code>rating-definition</code> tags inside of the XML
8468 resource that describes TV content rating of a {@link android.media.tv.TvInputService},
8469 which is referenced from its
8470 {@link android.media.tv.TvInputManager#META_DATA_CONTENT_RATING_SYSTEMS}. -->
8471 <declare-styleable name="RatingDefinition">
8472 <!-- The unique name of the content rating. -->
8473 <attr name="name" />
8474 <!-- The title of the content rating which is shown to the user. -->
8475 <attr name="title" />
8476 <!-- The short description of the content rating. -->
8477 <attr name="description" />
8478 <!-- The age associated with the content rating. The content of this rating is suitable for
8479 people of this age or above. -->
8480 <attr name="contentAgeHint" format="integer" />
8481 </declare-styleable>
8483 <declare-styleable name="ResolverDrawerLayout">
8484 <attr name="maxWidth" />
8485 <attr name="maxCollapsedHeight" format="dimension" />
8486 <attr name="maxCollapsedHeightSmall" format="dimension" />
8487 </declare-styleable>
8489 <declare-styleable name="MessagingLinearLayout">
8490 <attr name="spacing" />
8491 </declare-styleable>
8493 <declare-styleable name="DateTimeView">
8494 <attr name="showRelative" format="boolean" />
8495 </declare-styleable>
8497 <declare-styleable name="ResolverDrawerLayout_LayoutParams">
8498 <attr name="layout_alwaysShow" format="boolean" />
8499 <attr name="layout_ignoreOffset" format="boolean" />
8500 <attr name="layout_gravity" />
8501 <attr name="layout_hasNestedScrollIndicator" format="boolean" />
8502 </declare-styleable>
8505 <declare-styleable name="Lighting">
8506 <attr name="lightY" />
8507 <attr name="lightZ" />
8508 <attr name="lightRadius" />
8509 <attr name="ambientShadowAlpha" />
8510 <attr name="spotShadowAlpha" />
8511 </declare-styleable>
8513 <declare-styleable name="RestrictionEntry">
8515 <attr name="restrictionType">
8516 <enum name="hidden" value="0" />
8517 <enum name="bool" value="1" />
8518 <enum name="choice" value="2" />
8519 <enum name="multi-select" value="4" />
8520 <enum name="integer" value="5" />
8521 <enum name="string" value="6" />
8522 <enum name="bundle" value="7" />
8523 <enum name="bundle_array" value="8" />
8525 <attr name="title" />
8526 <attr name="description" />
8527 <attr name="defaultValue" />
8528 <attr name="entries" />
8529 <attr name="entryValues" />
8530 </declare-styleable>
8532 <!-- Used to describe the gradient for fill or stroke in a path of VectorDrawable. -->
8533 <declare-styleable name="GradientColor">
8534 <!-- Start color of the gradient. -->
8535 <attr name="startColor" />
8536 <!-- Optional center color. -->
8537 <attr name="centerColor" />
8538 <!-- End color of the gradient. -->
8539 <attr name="endColor" />
8540 <!-- Type of gradient. The default type is linear. -->
8541 <attr name="type" />
8543 <!-- Only applied to RadialGradient-->
8544 <!-- Radius of the gradient, used only with radial gradient. -->
8545 <attr name="gradientRadius" />
8547 <!-- Only applied to SweepGradient / RadialGradient-->
8548 <!-- X coordinate of the center of the gradient within the path. -->
8549 <attr name="centerX" />
8550 <!-- Y coordinate of the center of the gradient within the path. -->
8551 <attr name="centerY" />
8553 <!-- LinearGradient specific -->
8554 <!-- X coordinate of the start point origin of the gradient.
8555 Defined in same coordinates as the path itself -->
8556 <attr name="startX" format="float" />
8557 <!-- Y coordinate of the start point of the gradient within the shape.
8558 Defined in same coordinates as the path itself -->
8559 <attr name="startY" format="float" />
8560 <!-- X coordinate of the end point origin of the gradient.
8561 Defined in same coordinates as the path itself -->
8562 <attr name="endX" format="float" />
8563 <!-- Y coordinate of the end point of the gradient within the shape.
8564 Defined in same coordinates as the path itself -->
8565 <attr name="endY" format="float" />
8567 <!-- Defines the tile mode of the gradient. SweepGradient don't support tiling. -->
8568 <attr name="tileMode"/>
8569 </declare-styleable>
8571 <!-- Describes an item of a GradientColor. Minimally need 2 items to define the gradient
8572 Colors defined in <item> override the simple color attributes such as
8573 "startColor / centerColor / endColor" are ignored. -->
8574 <declare-styleable name="GradientColorItem">
8575 <!-- The offset (or ratio) of this current color item inside the gradient.
8576 The value is only meaningful when it is between 0 and 1. -->
8577 <attr name="offset" format="float" />
8578 <!-- The current color for the offset inside the gradient. -->
8579 <attr name="color" />
8580 </declare-styleable>
8582 <!-- @hide Attributes which will be read by the Activity to intialize the
8583 base activity TaskDescription. -->
8584 <declare-styleable name="ActivityTaskDescription">
8585 <!-- @hide From Theme.colorPrimary, used for the TaskDescription primary
8587 <attr name="colorPrimary" />
8588 <!-- @hide From Theme.colorBackground, used for the TaskDescription background
8590 <attr name="colorBackground" />
8591 <!-- @hide From Theme.statusBarColor, used for the TaskDescription status bar color. -->
8592 <attr name="statusBarColor"/>
8593 <!-- @hide From Theme.navigationBarColor, used for the TaskDescription navigation bar
8595 <attr name="navigationBarColor"/>
8596 </declare-styleable>
8598 <declare-styleable name="Shortcut">
8599 <attr name="shortcutId" format="string" />
8600 <attr name="enabled" />
8601 <attr name="icon" />
8602 <attr name="shortcutShortLabel" format="reference" />
8603 <attr name="shortcutLongLabel" format="reference" />
8604 <attr name="shortcutDisabledMessage" format="reference" />
8605 </declare-styleable>
8607 <declare-styleable name="ShortcutCategories">
8608 <attr name="name" />
8609 </declare-styleable>
8611 <!-- Attributes that are read when parsing a <font> tag, which is a child of
8612 <font-family>. This represents an actual font file and its attributes. -->
8613 <declare-styleable name="FontFamilyFont">
8614 <!-- The style of the given font file. This will be used when the font is being loaded into
8615 the font stack and will override any style information in the font's header tables. If
8616 unspecified, the value in the font's header tables will be used. -->
8617 <attr name="fontStyle">
8618 <enum name="normal" value="0" />
8619 <enum name="italic" value="1" />
8621 <!-- The reference to the font file to be used. This should be a file in the res/font folder
8622 and should therefore have an R reference value. E.g. @font/myfont -->
8623 <attr name="font" format="reference" />
8624 <!-- The weight of the given font file. This will be used when the font is being loaded into
8625 the font stack and will override any weight information in the font's header tables. Must
8626 be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
8627 common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
8628 in the font's header tables will be used. -->
8629 <attr name="fontWeight" format="integer" />
8630 </declare-styleable>
8632 <!-- Attributes that are read when parsing a <fontfamily> tag. -->
8633 <declare-styleable name="FontFamily">
8634 <!-- The authority of the Font Provider to be used for the request. -->
8635 <attr name="fontProviderAuthority" format="string" />
8636 <!-- The package for the Font Provider to be used for the request. This is used to verify
8637 the identity of the provider. -->
8638 <attr name="fontProviderPackage" format="string" />
8639 <!-- The query to be sent over to the provider. Refer to your font provider's documentation
8640 on the format of this string. -->
8641 <attr name="fontProviderQuery" format="string" />
8642 <!-- The sets of hashes for the certificates the provider should be signed with. This is
8643 used to verify the identity of the provider, and is only required if the provider is not
8644 part of the system image. This value may point to one list or a list of lists, where each
8645 individual list represents one collection of signature hashes. Refer to your font provider's
8646 documentation for these values. -->
8647 <attr name="fontProviderCerts" format="reference" />
8648 </declare-styleable>
8651 <declare-styleable name="RecyclerView">
8652 <attr name="layoutManager" format="string" />
8653 <attr name="orientation" />
8654 <attr name="descendantFocusability" />
8655 <attr name="spanCount" format="integer"/>
8656 <attr name="reverseLayout" format="boolean" />
8657 <attr name="stackFromEnd" format="boolean" />
8658 </declare-styleable>
8661 <declare-styleable name="NotificationTheme">
8662 <attr name="notificationHeaderStyle" format="reference" />
8663 <attr name="notificationHeaderTextAppearance" format="reference" />
8664 <attr name="notificationHeaderIconSize" format="dimension" />
8665 </declare-styleable>
8667 <attr name="lockPatternStyle" format="reference" />