attrs.xml revision d89cf81f80f17c58abf564728d0e10c4754ab600
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2006 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<!-- Formatting note: terminate all comments with a period, to avoid breaking 18 the documentation output. To suppress comment lines from the documentation 19 output, insert an eat-comment element after the comment lines. 20--> 21 22<resources> 23 <!-- These are the standard attributes that make up a complete theme. --> 24 <declare-styleable name="Theme"> 25 <!-- ============== --> 26 <!-- Generic styles --> 27 <!-- ============== --> 28 <eat-comment /> 29 30 <!-- Specifies that a theme has a light background with dark text on top. --> 31 <attr name="isLightTheme" format="boolean" /> 32 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" /> 48 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 60 mode. --> 61 <attr name="colorMultiSelectHighlight" format="color" /> 62 63 <!-- Default disabled alpha for widgets that set enabled/disabled alpha programmatically. --> 64 <attr name="disabledAlpha" format="float" /> 65 <!-- The alpha applied to the foreground color to create the primary text color. --> 66 <attr name="primaryContentAlpha" format="float" /> 67 <!-- The alpha applied to the foreground color to create the secondary text color. --> 68 <attr name="secondaryContentAlpha" format="float" /> 69 <!-- Default background dim amount when a menu, dialog, or something similar pops up. --> 70 <attr name="backgroundDimAmount" format="float" /> 71 <!-- Control whether dimming behind the window is enabled. The default 72 theme does not set this value, meaning it is based on whether the 73 window is floating. --> 74 <attr name="backgroundDimEnabled" format="boolean" /> 75 76 <!-- =========== --> 77 <!-- Text styles --> 78 <!-- =========== --> 79 <eat-comment /> 80 81 <!-- Default appearance of text: color, typeface, size, and style. --> 82 <attr name="textAppearance" format="reference" /> 83 <!-- Default appearance of text against an inverted background: 84 color, typeface, size, and style. --> 85 <attr name="textAppearanceInverse" format="reference" /> 86 87 <!-- The most prominent text color. --> 88 <attr name="textColorPrimary" format="reference|color" /> 89 <!-- Secondary text color. --> 90 <attr name="textColorSecondary" format="reference|color" /> 91 <!-- Tertiary text color. --> 92 <attr name="textColorTertiary" format="reference|color" /> 93 94 <!-- Primary inverse text color, useful for inverted backgrounds. --> 95 <attr name="textColorPrimaryInverse" format="reference|color" /> 96 <!-- Secondary inverse text color, useful for inverted backgrounds. --> 97 <attr name="textColorSecondaryInverse" format="reference|color" /> 98 <!-- Tertiary inverse text color, useful for inverted backgrounds. --> 99 <attr name="textColorTertiaryInverse" format="reference|color" /> 100 101 <!-- Inverse hint text color. --> 102 <attr name="textColorHintInverse" format="reference|color" /> 103 104 <!-- Bright text color. Only differentiates based on the disabled state. --> 105 <attr name="textColorPrimaryDisableOnly" format="reference|color" /> 106 107 <!-- Bright inverse text color. Only differentiates based on the disabled state. --> 108 <attr name="textColorPrimaryInverseDisableOnly" format="reference|color" /> 109 110 <!-- Bright text color. This does not differentiate the disabled state. As an example, 111 buttons use this since they display the disabled state via the background and not the 112 foreground text color. --> 113 <attr name="textColorPrimaryNoDisable" format="reference|color" /> 114 <!-- Dim text color. This does not differentiate the disabled state. --> 115 <attr name="textColorSecondaryNoDisable" format="reference|color" /> 116 117 <!-- Bright inverse text color. This does not differentiate the disabled state. --> 118 <attr name="textColorPrimaryInverseNoDisable" format="reference|color" /> 119 <!-- Dim inverse text color. This does not differentiate the disabled state. --> 120 <attr name="textColorSecondaryInverseNoDisable" format="reference|color" /> 121 122 <!-- Bright text color for use over activated backgrounds. --> 123 <attr name="textColorPrimaryActivated" format="reference|color" /> 124 <!-- Dim text color for use over activated backgrounds. --> 125 <attr name="textColorSecondaryActivated" format="reference|color" /> 126 127 <!-- Text color for urls in search suggestions, used by things like global search and the browser. @hide --> 128 <attr name="textColorSearchUrl" format="reference|color" /> 129 130 <!-- Color of highlighted text, when used in a light theme. --> 131 <attr name="textColorHighlightInverse" format="reference|color" /> 132 <!-- Color of link text (URLs), when used in a light theme. --> 133 <attr name="textColorLinkInverse" format="reference|color" /> 134 135 <!-- Color of list item text in alert dialogs. --> 136 <attr name="textColorAlertDialogListItem" format="reference|color" /> 137 138 <!-- Text color for errors. --> 139 <attr name="textColorError" format="reference|color" /> 140 141 <!-- Search widget more corpus result item background. --> 142 <attr name="searchWidgetCorpusItemBackground" format="reference|color" /> 143 144 <!-- Text color, typeface, size, and style for "large" text. Defaults to primary text color. --> 145 <attr name="textAppearanceLarge" format="reference" /> 146 <!-- Text color, typeface, size, and style for "medium" text. Defaults to primary text color. --> 147 <attr name="textAppearanceMedium" format="reference" /> 148 <!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. --> 149 <attr name="textAppearanceSmall" format="reference" /> 150 151 <!-- Text color, typeface, size, and style for "large" inverse text. Defaults to primary inverse text color. --> 152 <attr name="textAppearanceLargeInverse" format="reference" /> 153 <!-- Text color, typeface, size, and style for "medium" inverse text. Defaults to primary inverse text color. --> 154 <attr name="textAppearanceMediumInverse" format="reference" /> 155 <!-- Text color, typeface, size, and style for "small" inverse text. Defaults to secondary inverse text color. --> 156 <attr name="textAppearanceSmallInverse" format="reference" /> 157 158 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --> 159 <attr name="textAppearanceSearchResultTitle" format="reference" /> 160 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --> 161 <attr name="textAppearanceSearchResultSubtitle" format="reference" /> 162 163 <!-- Text color, typeface, size, and style for the text inside of a button. --> 164 <attr name="textAppearanceButton" format="reference" /> 165 166 <!-- Text color, typeface, size, and style for the text inside of a popup menu. --> 167 <attr name="textAppearanceLargePopupMenu" format="reference" /> 168 169 <!-- Text color, typeface, size, and style for small text inside of a popup menu. --> 170 <attr name="textAppearanceSmallPopupMenu" format="reference" /> 171 172 <!-- Text color, typeface, size, and style for header text inside of a popup menu. --> 173 <attr name="textAppearancePopupMenuHeader" format="reference" /> 174 175 <!-- The underline color and thickness for easy correct suggestion --> 176 <attr name="textAppearanceEasyCorrectSuggestion" format="reference" /> 177 178 <!-- The underline color and thickness for misspelled suggestion --> 179 <attr name="textAppearanceMisspelledSuggestion" format="reference" /> 180 181 <!-- The underline color and thickness for auto correction suggestion --> 182 <attr name="textAppearanceAutoCorrectionSuggestion" format="reference" /> 183 184 <!-- The underline color --> 185 <attr name="textUnderlineColor" format="reference|color" /> 186 <!-- The underline thickness --> 187 <attr name="textUnderlineThickness" format="reference|dimension" /> 188 189 <!-- EditText text foreground color. --> 190 <attr name="editTextColor" format="reference|color" /> 191 <!-- EditText background drawable. --> 192 <attr name="editTextBackground" format="reference" /> 193 194 <!-- Popup text displayed in TextView when setError is used. --> 195 <attr name="errorMessageBackground" format="reference" /> 196 <!-- Background used instead of errorMessageBackground when the popup has to be above. --> 197 <attr name="errorMessageAboveBackground" format="reference" /> 198 199 <!-- A styled string, specifying the style to be used for showing 200 inline candidate text when composing with an input method. The 201 text itself will be ignored, but the style spans will be applied 202 to the candidate text as it is edited. --> 203 <attr name="candidatesTextStyleSpans" format="reference|string" /> 204 205 <!-- Drawable to use for check marks. --> 206 <attr name="textCheckMark" format="reference" /> 207 <attr name="textCheckMarkInverse" format="reference" /> 208 209 <!-- Drawable to use for multiple choice indicators. --> 210 <attr name="listChoiceIndicatorMultiple" format="reference" /> 211 212 <!-- Drawable to use for single choice indicators. --> 213 <attr name="listChoiceIndicatorSingle" format="reference" /> 214 215 <!-- Drawable used as a background for selected list items. --> 216 <attr name="listChoiceBackgroundIndicator" format="reference" /> 217 218 <!-- Drawable used as a background for activated items. --> 219 <attr name="activatedBackgroundIndicator" format="reference" /> 220 221 <!-- ============= --> 222 <!-- Button styles --> 223 <!-- ============= --> 224 <eat-comment /> 225 226 <!-- Normal Button style. --> 227 <attr name="buttonStyle" format="reference" /> 228 229 <!-- Small Button style. --> 230 <attr name="buttonStyleSmall" format="reference" /> 231 232 <!-- Button style to inset into an EditText. --> 233 <attr name="buttonStyleInset" format="reference" /> 234 235 <!-- ToggleButton style. --> 236 <attr name="buttonStyleToggle" format="reference" /> 237 238 <!-- ============== --> 239 <!-- Gallery styles --> 240 <!-- ============== --> 241 <eat-comment /> 242 243 <!-- The preferred background for gallery items. This should be set 244 as the background of any Views you provide from the Adapter. --> 245 <attr name="galleryItemBackground" format="reference" /> 246 247 <!-- =========== --> 248 <!-- List styles --> 249 <!-- =========== --> 250 <eat-comment /> 251 252 <!-- The preferred list item height. --> 253 <attr name="listPreferredItemHeight" format="dimension" /> 254 <!-- A smaller, sleeker list item height. --> 255 <attr name="listPreferredItemHeightSmall" format="dimension" /> 256 <!-- A larger, more robust list item height. --> 257 <attr name="listPreferredItemHeightLarge" format="dimension" /> 258 <!-- The list item height for search results. @hide --> 259 <attr name="searchResultListItemHeight" format="dimension" /> 260 261 <!-- The preferred padding along the left edge of list items. --> 262 <attr name="listPreferredItemPaddingLeft" format="dimension" /> 263 <!-- The preferred padding along the right edge of list items. --> 264 <attr name="listPreferredItemPaddingRight" format="dimension" /> 265 266 <!-- The preferred TextAppearance for the primary text of list items. --> 267 <attr name="textAppearanceListItem" format="reference" /> 268 <!-- The preferred TextAppearance for the secondary text of list items. --> 269 <attr name="textAppearanceListItemSecondary" format="reference" /> 270 <!-- The preferred TextAppearance for the primary text of small list items. --> 271 <attr name="textAppearanceListItemSmall" format="reference" /> 272 273 <!-- The drawable for the list divider. --> 274 <attr name="listDivider" format="reference" /> 275 <!-- The list divider used in alert dialogs. --> 276 <attr name="listDividerAlertDialog" format="reference" /> 277 <!-- TextView style for list separators. --> 278 <attr name="listSeparatorTextViewStyle" format="reference" /> 279 <!-- The preferred left padding for an expandable list item (for child-specific layouts, 280 use expandableListPreferredChildPaddingLeft). This takes into account 281 the indicator that will be shown to next to the item. --> 282 <attr name="expandableListPreferredItemPaddingLeft" format="dimension" /> 283 <!-- The preferred left padding for an expandable list item that is a child. 284 If this is not provided, it defaults to the expandableListPreferredItemPaddingLeft. --> 285 <attr name="expandableListPreferredChildPaddingLeft" format="dimension" /> 286 <!-- The preferred left bound for an expandable list item's indicator. For a child-specific 287 indicator, use expandableListPreferredChildIndicatorLeft. --> 288 <attr name="expandableListPreferredItemIndicatorLeft" format="dimension" /> 289 <!-- The preferred right bound for an expandable list item's indicator. For a child-specific 290 indicator, use expandableListPreferredChildIndicatorRight. --> 291 <attr name="expandableListPreferredItemIndicatorRight" format="dimension" /> 292 <!-- The preferred left bound for an expandable list child's indicator. --> 293 <attr name="expandableListPreferredChildIndicatorLeft" format="dimension" /> 294 <!-- The preferred right bound for an expandable list child's indicator. --> 295 <attr name="expandableListPreferredChildIndicatorRight" format="dimension" /> 296 297 <!-- The preferred item height for dropdown lists. --> 298 <attr name="dropdownListPreferredItemHeight" format="dimension" /> 299 300 <!-- The preferred padding along the start edge of list items. --> 301 <attr name="listPreferredItemPaddingStart" format="dimension" /> 302 <!-- The preferred padding along the end edge of list items. --> 303 <attr name="listPreferredItemPaddingEnd" format="dimension" /> 304 305 <!-- ============= --> 306 <!-- Window styles --> 307 <!-- ============= --> 308 <eat-comment /> 309 310 <!-- Drawable to use as the overall window background. As of 311 {@link android.os.Build.VERSION_CODES#HONEYCOMB}, this may 312 be a selector that uses state_accelerated to pick a non-solid 313 color when running on devices that can draw such a bitmap 314 with complex compositing on top at 60fps. 315 316 <p>There are a few special considerations to use when setting this 317 drawable: 318 <ul> 319 <li> This information will be used to infer the pixel format 320 for your window's surface. If the drawable has any 321 non-opaque pixels, your window will be translucent 322 (32 bpp). 323 <li> If you want to draw the entire background 324 yourself, you should set this drawable to some solid 325 color that closely matches that background (so the 326 system's preview of your window will match), and 327 then in code manually set your window's background to 328 null so it will not be drawn. 329 </ul> --> 330 <attr name="windowBackground" format="reference" /> 331 <!-- Drawable to draw selectively within the inset areas when the windowBackground 332 has been set to null. This protects against seeing visual garbage in the 333 surface when the app has not drawn any content into this area. One example is 334 when the user is resizing a window of an activity that has 335 {@link android.R.attr#resizeableActivity} set for multi-window mode. --> 336 <attr name="windowBackgroundFallback" format="reference" /> 337 <!-- Drawable to use as a frame around the window. --> 338 <attr name="windowFrame" format="reference" /> 339 <!-- Flag indicating whether there should be no title on this window. --> 340 <attr name="windowNoTitle" format="boolean" /> 341 <!-- Flag indicating whether this window should fill the entire screen. Corresponds 342 to {@link android.view.WindowManager.LayoutParams#FLAG_FULLSCREEN}. --> 343 <attr name="windowFullscreen" format="boolean" /> 344 <!-- Flag indicating whether this window should extend into overscan region. Corresponds 345 to {@link android.view.WindowManager.LayoutParams#FLAG_LAYOUT_IN_OVERSCAN}. --> 346 <attr name="windowOverscan" format="boolean" /> 347 <!-- Flag indicating whether this is a floating window. --> 348 <attr name="windowIsFloating" format="boolean" /> 349 <!-- Flag indicating whether this is a translucent window. If this attribute is unset (but 350 not if set to false), the window might still be considered translucent, if 351 windowSwipeToDismiss is set to true. --> 352 <attr name="windowIsTranslucent" format="boolean" /> 353 <!-- Flag indicating that this window's background should be the 354 user's current wallpaper. Corresponds 355 to {@link android.view.WindowManager.LayoutParams#FLAG_SHOW_WALLPAPER}. --> 356 <attr name="windowShowWallpaper" format="boolean" /> 357 <!-- This Drawable is overlaid over the foreground of the Window's content area, usually 358 to place a shadow below the title. --> 359 <attr name="windowContentOverlay" format="reference" /> 360 <!-- The style resource to use for a window's title bar height. --> 361 <attr name="windowTitleSize" format="dimension" /> 362 <!-- The style resource to use for a window's title text. --> 363 <attr name="windowTitleStyle" format="reference" /> 364 <!-- The style resource to use for a window's title area. --> 365 <attr name="windowTitleBackgroundStyle" format="reference" /> 366 367 <!-- Reference to a style resource holding 368 the set of window animations to use, which can be 369 any of the attributes defined by 370 {@link android.R.styleable#WindowAnimation}. --> 371 <attr name="windowAnimationStyle" format="reference" /> 372 373 <!-- Flag indicating whether this window should have an Action Bar 374 in place of the usual title bar. --> 375 <attr name="windowActionBar" format="boolean" /> 376 377 <!-- Flag indicating whether this window's Action Bar should overlay 378 application content. Does nothing if the window would not 379 have an Action Bar. --> 380 <attr name="windowActionBarOverlay" format="boolean" /> 381 382 <!-- Flag indicating whether action modes should overlay window content 383 when there is not reserved space for their UI (such as an Action Bar). --> 384 <attr name="windowActionModeOverlay" format="boolean" /> 385 386 <!-- Defines the default soft input state that this window would 387 like when it is displayed. Corresponds 388 to {@link android.view.WindowManager.LayoutParams#softInputMode}. --> 389 <attr name="windowSoftInputMode"> 390 <!-- Not specified, use what the system thinks is best. This 391 is the default. --> 392 <flag name="stateUnspecified" value="0" /> 393 <!-- Leave the soft input window as-is, in whatever state it 394 last was. --> 395 <flag name="stateUnchanged" value="1" /> 396 <!-- Make the soft input area hidden when normally appropriate 397 (when the user is navigating forward to your window). --> 398 <flag name="stateHidden" value="2" /> 399 <!-- Always make the soft input area hidden when this window 400 has input focus. --> 401 <flag name="stateAlwaysHidden" value="3" /> 402 <!-- Make the soft input area visible when normally appropriate 403 (when the user is navigating forward to your window). --> 404 <flag name="stateVisible" value="4" /> 405 <!-- Always make the soft input area visible when this window 406 has input focus. --> 407 <flag name="stateAlwaysVisible" value="5" /> 408 409 <!-- The window resize/pan adjustment has not been specified, 410 the system will automatically select between resize and pan 411 modes, depending 412 on whether the content of the window has any layout views 413 that can scroll their contents. If there is such a view, 414 then the window will be resized, with the assumption being 415 that the resizeable area can be reduced to make room for 416 the input UI. --> 417 <flag name="adjustUnspecified" value="0x00" /> 418 <!-- Always resize the window: the content area of the window is 419 reduced to make room for the soft input area. --> 420 <flag name="adjustResize" value="0x10" /> 421 <!-- Don't resize the window to make room for the soft input area; 422 instead pan the contents of the window as focus moves inside 423 of it so that the user can see what they are typing. This is 424 generally less desireable than panning because the user may 425 need to close the input area to get at and interact with 426 parts of the window. --> 427 <flag name="adjustPan" value="0x20" /> 428 <!-- Don't resize <em>or</em> pan the window to make room for the 429 soft input area; the window is never adjusted for it. --> 430 <flag name="adjustNothing" value="0x30" /> 431 </attr> 432 433 <!-- Flag allowing you to disable the preview animation for a window. 434 The default value is false; if set to true, the system can never 435 use the window's theme to show a preview of it before your 436 actual instance is shown to the user. --> 437 <attr name="windowDisablePreview" format="boolean" /> 438 439 <!-- Flag indicating that this window should not be displayed at all. 440 The default value is false; if set to true, and this window is 441 the main window of an Activity, then it will never actually 442 be added to the window manager. This means that your activity 443 must immediately quit without waiting for user interaction, 444 because there will be no such interaction coming. --> 445 <attr name="windowNoDisplay" format="boolean" /> 446 447 <!-- Flag indicating that this window should allow touches to be split 448 across other windows that also support split touch. 449 The default value is true for applications with a targetSdkVersion 450 of Honeycomb or newer; false otherwise. 451 When this flag is false, the first pointer that goes down determines 452 the window to which all subsequent touches go until all pointers go up. 453 When this flag is true, each pointer (not necessarily the first) that 454 goes down determines the window to which all subsequent touches of that 455 pointer will go until that pointers go up thereby enabling touches 456 with multiple pointers to be split across multiple windows. --> 457 <attr name="windowEnableSplitTouch" format="boolean" /> 458 459 <!-- Control whether a container should automatically close itself if 460 the user touches outside of it. This only applies to activities 461 and dialogs. 462 463 <p>Note: this attribute will only be respected for applications 464 that are targeting {@link android.os.Build.VERSION_CODES#HONEYCOMB} 465 or later. --> 466 <attr name="windowCloseOnTouchOutside" format="boolean" /> 467 468 <!-- Flag indicating whether this window requests a translucent status bar. Corresponds 469 to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_STATUS}. --> 470 <attr name="windowTranslucentStatus" format="boolean" /> 471 472 <!-- Flag indicating whether this window requests a translucent navigation bar. Corresponds 473 to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_NAVIGATION}. --> 474 <attr name="windowTranslucentNavigation" format="boolean" /> 475 476 <!-- Flag to indicate that a window can be swiped away to be dismissed. 477 Corresponds to {@link android.view.Window#FEATURE_SWIPE_TO_DISMISS}. It will also 478 dynamically change translucency of the window, if the windowIsTranslucent is not set. 479 If windowIsTranslucent is set (to either true or false) it will obey that setting. --> 480 <attr name="windowSwipeToDismiss" format="boolean" /> 481 482 <!-- Flag indicating whether this window requests that content changes be performed 483 as scene changes with transitions. Corresponds to 484 {@link android.view.Window#FEATURE_CONTENT_TRANSITIONS}. --> 485 <attr name="windowContentTransitions" format="boolean" /> 486 487 <!-- Reference to a TransitionManager XML resource defining the desired 488 transitions between different window content. --> 489 <attr name="windowContentTransitionManager" format="reference" /> 490 491 <!-- Flag indicating whether this window allows Activity Transitions. 492 Corresponds to {@link android.view.Window#FEATURE_ACTIVITY_TRANSITIONS}. --> 493 <attr name="windowActivityTransitions" format="boolean" /> 494 495 <!-- Reference to a Transition XML resource defining the desired Transition 496 used to move Views into the initial Window's content Scene. Corresponds to 497 {@link android.view.Window#setEnterTransition(android.transition.Transition)}. --> 498 <attr name="windowEnterTransition" format="reference"/> 499 500 <!-- Reference to a Transition XML resource defining the desired Transition 501 used to move Views out of the scene when the Window is 502 preparing to close. Corresponds to 503 {@link android.view.Window#setReturnTransition(android.transition.Transition)}. --> 504 <attr name="windowReturnTransition" format="reference"/> 505 506 <!-- Reference to a Transition XML resource defining the desired Transition 507 used to move Views out of the Window's content Scene when launching a new Activity. 508 Corresponds to 509 {@link android.view.Window#setExitTransition(android.transition.Transition)}. --> 510 <attr name="windowExitTransition" format="reference"/> 511 512 <!-- Reference to a Transition XML resource defining the desired Transition 513 used to move Views in to the scene when returning from a previously-started Activity. 514 Corresponds to 515 {@link android.view.Window#setReenterTransition(android.transition.Transition)}. --> 516 <attr name="windowReenterTransition" format="reference"/> 517 518 <!-- Reference to a Transition XML resource defining the desired Transition 519 used to move shared elements transferred into the Window's initial content Scene. 520 Corresponds to {@link android.view.Window#setSharedElementEnterTransition( 521 android.transition.Transition)}. --> 522 <attr name="windowSharedElementEnterTransition" format="reference"/> 523 524 <!-- Reference to a Transition XML resource defining the desired Transition 525 used to move shared elements transferred back to a calling Activity. 526 Corresponds to {@link android.view.Window#setSharedElementReturnTransition( 527 android.transition.Transition)}. --> 528 <attr name="windowSharedElementReturnTransition" format="reference"/> 529 530 <!-- Reference to a Transition XML resource defining the desired Transition 531 used when starting a new Activity to move shared elements prior to transferring 532 to the called Activity. 533 Corresponds to {@link android.view.Window#setSharedElementExitTransition( 534 android.transition.Transition)}. --> 535 <attr name="windowSharedElementExitTransition" format="reference"/> 536 537 <!-- Reference to a Transition XML resource defining the desired Transition 538 used for shared elements transferred back to a calling Activity. 539 Corresponds to {@link android.view.Window#setSharedElementReenterTransition( 540 android.transition.Transition)}. --> 541 <attr name="windowSharedElementReenterTransition" format="reference"/> 542 543 <!-- Flag indicating whether this Window's transition should overlap with 544 the exiting transition of the calling Activity. Corresponds to 545 {@link android.view.Window#setAllowEnterTransitionOverlap(boolean)}. 546 The default value is true. --> 547 <attr name="windowAllowEnterTransitionOverlap" format="boolean"/> 548 549 <!-- Flag indicating whether this Window's transition should overlap with 550 the exiting transition of the called Activity when the called Activity 551 finishes. Corresponds to 552 {@link android.view.Window#setAllowReturnTransitionOverlap(boolean)}. 553 The default value is true. --> 554 <attr name="windowAllowReturnTransitionOverlap" format="boolean"/> 555 556 <!-- Indicates whether or not shared elements should use an overlay 557 during transitions. The default value is true. --> 558 <attr name="windowSharedElementsUseOverlay" format="boolean"/> 559 560 <!-- Internal layout used internally for window decor --> 561 <attr name="windowActionBarFullscreenDecorLayout" format="reference" /> 562 563 <!-- The duration, in milliseconds, of the window background fade duration 564 when transitioning into or away from an Activity when called with an 565 Activity Transition. Corresponds to 566 {@link android.view.Window#setTransitionBackgroundFadeDuration(long)}. --> 567 <attr name="windowTransitionBackgroundFadeDuration" format="integer"/> 568 569 <!-- ============ --> 570 <!-- Floating toolbar styles --> 571 <!-- ============ --> 572 <eat-comment /> 573 <attr name="floatingToolbarCloseDrawable" format="reference" /> 574 <attr name="floatingToolbarForegroundColor" format="reference|color" /> 575 <attr name="floatingToolbarItemBackgroundBorderlessDrawable" format="reference" /> 576 <attr name="floatingToolbarItemBackgroundDrawable" format="reference" /> 577 <attr name="floatingToolbarOpenDrawable" format="reference" /> 578 <attr name="floatingToolbarPopupBackgroundDrawable" format="reference" /> 579 580 <!-- ============ --> 581 <!-- Alert Dialog styles --> 582 <!-- ============ --> 583 <eat-comment /> 584 <attr name="alertDialogStyle" format="reference" /> 585 <attr name="alertDialogButtonGroupStyle" format="reference" /> 586 <attr name="alertDialogCenterButtons" format="boolean" /> 587 588 <!-- ============== --> 589 <!-- Image elements --> 590 <!-- ============== --> 591 <eat-comment /> 592 593 <!-- Background that can be used behind parts of a UI that provide 594 details on data the user is selecting. For example, this is 595 the background element of PreferenceActivity's embedded 596 preference fragment. --> 597 <attr name="detailsElementBackground" format="reference" /> 598 599 <!-- Icon that should be used to indicate that an app is waiting for a fingerprint scan. 600 This should be used whenever an app is requesting the user to place a finger on the 601 fingerprint sensor. It can be combined with other drawables such as colored circles, so 602 the appearance matches the branding of the app requesting the fingerprint scan.--> 603 <attr name="fingerprintAuthDrawable" format="reference" /> 604 605 <!-- ============ --> 606 <!-- Panel styles --> 607 <!-- ============ --> 608 <eat-comment /> 609 610 <!-- The background of a panel when it is inset from the left and right edges of the screen. --> 611 <attr name="panelBackground" format="reference|color" /> 612 <!-- The background of a panel when it extends to the left and right edges of the screen. --> 613 <attr name="panelFullBackground" format="reference|color" /> 614 <!-- Default color of foreground panel imagery. --> 615 <attr name="panelColorForeground" format="reference|color" /> 616 <!-- Color that matches (as closely as possible) the panel background. --> 617 <attr name="panelColorBackground" format="reference|color" /> 618 <!-- Default appearance of panel text. --> 619 <attr name="panelTextAppearance" format="reference" /> 620 621 <attr name="panelMenuIsCompact" format="boolean" /> 622 <attr name="panelMenuListWidth" format="dimension" /> 623 <attr name="panelMenuListTheme" format="reference" /> 624 625 <!-- =================== --> 626 <!-- Other widget styles --> 627 <!-- =================== --> 628 <eat-comment /> 629 630 <!-- Default AbsListView style. --> 631 <attr name="absListViewStyle" format="reference" /> 632 <!-- Default AutoCompleteTextView style. --> 633 <attr name="autoCompleteTextViewStyle" format="reference" /> 634 <!-- Default Checkbox style. --> 635 <attr name="checkboxStyle" format="reference" /> 636 <!-- Default CheckedTextView style. --> 637 <attr name="checkedTextViewStyle" format="reference" /> 638 <!-- Default ListView style for drop downs. --> 639 <attr name="dropDownListViewStyle" format="reference" /> 640 <!-- Default EditText style. --> 641 <attr name="editTextStyle" format="reference" /> 642 <!-- Default ExpandableListView style. --> 643 <attr name="expandableListViewStyle" format="reference" /> 644 <!-- ExpandableListView with white background. --> 645 <attr name="expandableListViewWhiteStyle" format="reference" /> 646 <!-- Default Gallery style. --> 647 <attr name="galleryStyle" format="reference" /> 648 <!-- Default GestureOverlayView style. --> 649 <attr name="gestureOverlayViewStyle" format="reference" /> 650 <!-- Default GridView style. --> 651 <attr name="gridViewStyle" format="reference" /> 652 <!-- The style resource to use for an ImageButton. --> 653 <attr name="imageButtonStyle" format="reference" /> 654 <!-- The style resource to use for an ImageButton that is an image well. --> 655 <attr name="imageWellStyle" format="reference" /> 656 <!-- Default menu-style ListView style. --> 657 <attr name="listMenuViewStyle" format="reference" /> 658 <!-- Default ListView style. --> 659 <attr name="listViewStyle" format="reference" /> 660 <!-- ListView with white background. --> 661 <attr name="listViewWhiteStyle" format="reference" /> 662 <!-- Default PopupWindow style. --> 663 <attr name="popupWindowStyle" format="reference" /> 664 <!-- Default ProgressBar style. This is a medium circular progress bar. --> 665 <attr name="progressBarStyle" format="reference" /> 666 <!-- Horizontal ProgressBar style. This is a horizontal progress bar. --> 667 <attr name="progressBarStyleHorizontal" format="reference" /> 668 <!-- Small ProgressBar style. This is a small circular progress bar. --> 669 <attr name="progressBarStyleSmall" format="reference" /> 670 <!-- Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars. --> 671 <attr name="progressBarStyleSmallTitle" format="reference" /> 672 <!-- Large ProgressBar style. This is a large circular progress bar. --> 673 <attr name="progressBarStyleLarge" format="reference" /> 674 <!-- Inverse ProgressBar style. This is a medium circular progress bar. --> 675 <attr name="progressBarStyleInverse" format="reference" /> 676 <!-- Small inverse ProgressBar style. This is a small circular progress bar. --> 677 <attr name="progressBarStyleSmallInverse" format="reference" /> 678 <!-- Large inverse ProgressBar style. This is a large circular progress bar. --> 679 <attr name="progressBarStyleLargeInverse" format="reference" /> 680 <!-- Default SeekBar style. --> 681 <attr name="seekBarStyle" format="reference" /> 682 <!-- Default RatingBar style. --> 683 <attr name="ratingBarStyle" format="reference" /> 684 <!-- Indicator RatingBar style. --> 685 <attr name="ratingBarStyleIndicator" format="reference" /> 686 <!-- Small indicator RatingBar style. --> 687 <attr name="ratingBarStyleSmall" format="reference" /> 688 <!-- Default RadioButton style. --> 689 <attr name="radioButtonStyle" format="reference" /> 690 <!-- Default ScrollView style. --> 691 <attr name="scrollViewStyle" format="reference" /> 692 <!-- Default HorizontalScrollView style. --> 693 <attr name="horizontalScrollViewStyle" format="reference" /> 694 <!-- Default Spinner style. --> 695 <attr name="spinnerStyle" format="reference" /> 696 <!-- Default dropdown Spinner style. --> 697 <attr name="dropDownSpinnerStyle" format="reference" /> 698 <!-- Default ActionBar dropdown style. --> 699 <attr name="actionDropDownStyle" format="reference" /> 700 <!-- Default action button style. --> 701 <attr name="actionButtonStyle" format="reference" /> 702 <!-- Default Star style. --> 703 <attr name="starStyle" format="reference" /> 704 <!-- Default TabWidget style. --> 705 <attr name="tabWidgetStyle" format="reference" /> 706 <!-- Default TextView style. --> 707 <attr name="textViewStyle" format="reference" /> 708 <!-- Default WebTextView style. --> 709 <attr name="webTextViewStyle" format="reference" /> 710 <!-- Default WebView style. --> 711 <attr name="webViewStyle" format="reference" /> 712 <!-- Default style for drop down items. --> 713 <attr name="dropDownItemStyle" format="reference" /> 714 <!-- Default style for spinner drop down items. --> 715 <attr name="spinnerDropDownItemStyle" format="reference" /> 716 <!-- Default style for drop down hints. --> 717 <attr name="dropDownHintAppearance" format="reference" /> 718 <!-- Default spinner item style. --> 719 <attr name="spinnerItemStyle" format="reference" /> 720 <!-- Default MapView style. --> 721 <attr name="mapViewStyle" format="reference" /> 722 <!-- Drawable used as an overlay on top of quickcontact photos. --> 723 <attr name="quickContactBadgeOverlay" format="reference" /> 724 <!-- Default quickcontact badge style with small quickcontact window. --> 725 <attr name="quickContactBadgeStyleWindowSmall" format="reference" /> 726 <!-- Default quickcontact badge style with medium quickcontact window. --> 727 <attr name="quickContactBadgeStyleWindowMedium" format="reference" /> 728 <!-- Default quickcontact badge style with large quickcontact window. --> 729 <attr name="quickContactBadgeStyleWindowLarge" format="reference" /> 730 <!-- Default quickcontact badge style with small quickcontact window. --> 731 <attr name="quickContactBadgeStyleSmallWindowSmall" format="reference" /> 732 <!-- Default quickcontact badge style with medium quickcontact window. --> 733 <attr name="quickContactBadgeStyleSmallWindowMedium" format="reference" /> 734 <!-- Default quickcontact badge style with large quickcontact window. --> 735 <attr name="quickContactBadgeStyleSmallWindowLarge" format="reference" /> 736 <!-- Reference to a style that will be used for the window containing a text 737 selection anchor. --> 738 <attr name="textSelectHandleWindowStyle" format="reference" /> 739 <!-- Reference to a style that will be used for the window containing a list of possible 740 text suggestions in an EditText. --> 741 <attr name="textSuggestionsWindowStyle" format="reference" /> 742 <!-- Default ListPopupWindow style. --> 743 <attr name="listPopupWindowStyle" format="reference" /> 744 <!-- Default PopupMenu style. --> 745 <attr name="popupMenuStyle" format="reference" /> 746 <!-- Default context menu PopupMenu style. --> 747 <attr name="contextPopupMenuStyle" format="reference" /> 748 <!-- Default StackView style. --> 749 <attr name="stackViewStyle" format="reference" /> 750 751 <!-- Default style for the FragmentBreadCrumbs widget. This widget is deprecated 752 starting in API level 21 ({@link android.os.Build.VERSION_CODES#.L}). --> 753 <attr name="fragmentBreadCrumbsStyle" format="reference" /> 754 755 <!-- NumberPicker style. --> 756 <attr name="numberPickerStyle" format="reference" /> 757 758 <!-- The CalendarView style. --> 759 <attr name="calendarViewStyle" format="reference" /> 760 761 <!-- The TimePicker style. --> 762 <attr name="timePickerStyle" format="reference" /> 763 764 <!-- The TimePicker dialog theme. --> 765 <attr name="timePickerDialogTheme" format="reference" /> 766 767 <!-- The DatePicker style. --> 768 <attr name="datePickerStyle" format="reference" /> 769 770 <!-- The DatePicker dialog theme. --> 771 <attr name="datePickerDialogTheme" format="reference" /> 772 773 <!-- Default ActivityChooserView style. --> 774 <attr name="activityChooserViewStyle" format="reference" /> 775 776 <!-- Default Toolbar style. --> 777 <attr name="toolbarStyle" format="reference" /> 778 779 <!-- Fast scroller styles --> 780 <eat-comment /> 781 782 <!-- Drawable to use as the fast scroll thumb. --> 783 <attr name="fastScrollThumbDrawable" format="reference" /> 784 <!-- Drawable to use as the fast scroll index preview window background 785 when shown on the right. --> 786 <attr name="fastScrollPreviewBackgroundRight" format="reference" /> 787 <!-- Drawable to use as the fast scroll index preview window background 788 when shown on the left. --> 789 <attr name="fastScrollPreviewBackgroundLeft" format="reference" /> 790 <!-- Drawable to use as the track for the fast scroll thumb. 791 This may be null. --> 792 <attr name="fastScrollTrackDrawable" format="reference" /> 793 <!-- Position of the fast scroll index overlay window. --> 794 <attr name="fastScrollOverlayPosition"> 795 <enum name="floating" value="0" /> 796 <enum name="atThumb" value="1" /> 797 <enum name="aboveThumb" value="2" /> 798 </attr> 799 <!-- Text color for the fast scroll index overlay. Make sure it 800 plays nicely with fastScrollPreviewBackground[Left|Right]. --> 801 <attr name="fastScrollTextColor" format="color" /> 802 803 <!-- =================== --> 804 <!-- Action bar styles --> 805 <!-- =================== --> 806 <eat-comment /> 807 <!-- Default style for tabs within an action bar --> 808 <attr name="actionBarTabStyle" format="reference" /> 809 <attr name="actionBarTabBarStyle" format="reference" /> 810 <attr name="actionBarTabTextStyle" format="reference" /> 811 <attr name="actionOverflowButtonStyle" format="reference" /> 812 <attr name="actionOverflowMenuStyle" format="reference" /> 813 <!-- Reference to a theme that should be used to inflate popups 814 shown by widgets in the action bar. --> 815 <attr name="actionBarPopupTheme" format="reference" /> 816 <!-- Reference to a style for the Action Bar --> 817 <attr name="actionBarStyle" format="reference" /> 818 <!-- Reference to a style for the split Action Bar. This style 819 controls the split component that holds the menu/action 820 buttons. actionBarStyle is still used for the primary 821 bar. --> 822 <attr name="actionBarSplitStyle" format="reference" /> 823 <!-- Reference to a theme that should be used to inflate the 824 action bar. This will be inherited by any widget inflated 825 into the action bar. --> 826 <attr name="actionBarTheme" format="reference" /> 827 <!-- Reference to a theme that should be used to inflate widgets 828 and layouts destined for the action bar. Most of the time 829 this will be a reference to the current theme, but when 830 the action bar has a significantly different contrast 831 profile than the rest of the activity the difference 832 can become important. If this is set to @null the current 833 theme will be used.--> 834 <attr name="actionBarWidgetTheme" format="reference" /> 835 <!-- Size of the Action Bar, including the contextual 836 bar used to present Action Modes. --> 837 <attr name="actionBarSize" format="dimension" > 838 <enum name="wrap_content" value="0" /> 839 </attr> 840 <!-- Custom divider drawable to use for elements in the action bar. --> 841 <attr name="actionBarDivider" format="reference" /> 842 <!-- Custom item state list drawable background for action bar items. --> 843 <attr name="actionBarItemBackground" format="reference" /> 844 <!-- TextAppearance style that will be applied to text that 845 appears within action menu items. --> 846 <attr name="actionMenuTextAppearance" format="reference" /> 847 <!-- Color for text that appears within action menu items. --> 848 <attr name="actionMenuTextColor" format="color|reference" /> 849 850 <!-- =================== --> 851 <!-- Action mode styles --> 852 <!-- =================== --> 853 <eat-comment /> 854 <attr name="actionModeStyle" format="reference" /> 855 <attr name="actionModeCloseButtonStyle" format="reference" /> 856 <!-- Background drawable to use for action mode UI --> 857 <attr name="actionModeBackground" format="reference" /> 858 <!-- Background drawable to use for action mode UI in the lower split bar --> 859 <attr name="actionModeSplitBackground" format="reference" /> 860 <!-- Drawable to use for the close action mode button --> 861 <attr name="actionModeCloseDrawable" format="reference" /> 862 863 <!-- Drawable to use for the Cut action button in Contextual Action Bar --> 864 <attr name="actionModeCutDrawable" format="reference" /> 865 <!-- Drawable to use for the Copy action button in Contextual Action Bar --> 866 <attr name="actionModeCopyDrawable" format="reference" /> 867 <!-- Drawable to use for the Paste action button in Contextual Action Bar --> 868 <attr name="actionModePasteDrawable" format="reference" /> 869 <!-- Drawable to use for the Select all action button in Contextual Action Bar --> 870 <attr name="actionModeSelectAllDrawable" format="reference" /> 871 <!-- Drawable to use for the Share action button in WebView selection action modes --> 872 <attr name="actionModeShareDrawable" format="reference" /> 873 <!-- Drawable to use for the Find action button in WebView selection action modes --> 874 <attr name="actionModeFindDrawable" format="reference" /> 875 <!-- Drawable to use for the Web Search action button in WebView selection action modes --> 876 <attr name="actionModeWebSearchDrawable" format="reference" /> 877 878 <!-- PopupWindow style to use for action modes when showing as a window overlay. --> 879 <attr name="actionModePopupWindowStyle" format="reference" /> 880 881 <!-- =================== --> 882 <!-- Preference styles --> 883 <!-- =================== --> 884 <eat-comment /> 885 886 <!-- Default style for PreferenceScreen. --> 887 <attr name="preferenceScreenStyle" format="reference" /> 888 <!-- Default style for the PreferenceActivity. --> 889 <attr name="preferenceActivityStyle" format="reference" /> 890 <!-- Default style for Headers pane in PreferenceActivity. --> 891 <attr name="preferenceFragmentStyle" format="reference" /> 892 <!-- Default style for PreferenceCategory. --> 893 <attr name="preferenceCategoryStyle" format="reference" /> 894 <!-- Default style for Preference. --> 895 <attr name="preferenceStyle" format="reference" /> 896 <!-- Default style for informational Preference. --> 897 <attr name="preferenceInformationStyle" format="reference" /> 898 <!-- Default style for CheckBoxPreference. --> 899 <attr name="checkBoxPreferenceStyle" format="reference" /> 900 <!-- Default style for YesNoPreference. --> 901 <attr name="yesNoPreferenceStyle" format="reference" /> 902 <!-- Default style for DialogPreference. --> 903 <attr name="dialogPreferenceStyle" format="reference" /> 904 <!-- Default style for EditTextPreference. --> 905 <attr name="editTextPreferenceStyle" format="reference" /> 906 <!-- @hide Default style for SeekBarDialogPreference. --> 907 <attr name="seekBarDialogPreferenceStyle" format="reference" /> 908 <!-- Default style for RingtonePreference. --> 909 <attr name="ringtonePreferenceStyle" format="reference" /> 910 <!-- The preference layout that has the child/tabbed effect. --> 911 <attr name="preferenceLayoutChild" format="reference" /> 912 <!-- Preference panel style --> 913 <attr name="preferencePanelStyle" format="reference" /> 914 <!-- Preference headers panel style --> 915 <attr name="preferenceHeaderPanelStyle" format="reference" /> 916 <!-- Preference list style --> 917 <attr name="preferenceListStyle" format="reference" /> 918 <!-- Preference fragment list style --> 919 <attr name="preferenceFragmentListStyle" format="reference" /> 920 <!-- Preference fragment padding side --> 921 <attr name="preferenceFragmentPaddingSide" format="dimension" /> 922 <!-- Default style for switch preferences. --> 923 <attr name="switchPreferenceStyle" format="reference" /> 924 <!-- Default style for seekbar preferences. --> 925 <attr name="seekBarPreferenceStyle" format="reference" /> 926 927 <!-- ============================ --> 928 <!-- Text selection handle styles --> 929 <!-- ============================ --> 930 <eat-comment /> 931 932 <!-- Reference to a drawable that will be used to display a text selection 933 anchor on the left side of a selection region. --> 934 <attr name="textSelectHandleLeft" format="reference" /> 935 <!-- Reference to a drawable that will be used to display a text selection 936 anchor on the right side of a selection region. --> 937 <attr name="textSelectHandleRight" format="reference" /> 938 <!-- Reference to a drawable that will be used to display a text selection 939 anchor for positioning the cursor within text. --> 940 <attr name="textSelectHandle" format="reference" /> 941 <!-- The layout of the view that is displayed on top of the cursor to paste inside a 942 TextEdit field. --> 943 <attr name="textEditPasteWindowLayout" format="reference" /> 944 <!-- Variation of textEditPasteWindowLayout displayed when the clipboard is empty. --> 945 <attr name="textEditNoPasteWindowLayout" format="reference" /> 946 <!-- Used instead of textEditPasteWindowLayout when the window is moved on the side of the 947 insertion cursor because it would be clipped if it were positioned on top. --> 948 <attr name="textEditSidePasteWindowLayout" format="reference" /> 949 <!-- Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. --> 950 <attr name="textEditSideNoPasteWindowLayout" format="reference" /> 951 952 <!-- Layout of the TextView item that will populate the suggestion popup window. --> 953 <attr name="textEditSuggestionItemLayout" format="reference" /> 954 <!-- Layout of the container of the suggestion popup window. --> 955 <attr name="textEditSuggestionContainerLayout" format="reference" /> 956 <!-- Text appearance of the focused words to be replaced by suggested word. --> 957 <attr name="textEditSuggestionHighlightStyle" format="reference" /> 958 959 <!-- Theme to use for dialogs spawned from this theme. --> 960 <attr name="dialogTheme" format="reference" /> 961 <!-- Window decor layout to use in dialog mode with icons. --> 962 <attr name="dialogTitleIconsDecorLayout" format="reference" /> 963 <!-- Window decor layout to use in dialog mode with custom titles. --> 964 <attr name="dialogCustomTitleDecorLayout" format="reference" /> 965 <!-- Window decor layout to use in dialog mode with title only. --> 966 <attr name="dialogTitleDecorLayout" format="reference" /> 967 <!-- Preferred padding for dialog content. --> 968 <attr name="dialogPreferredPadding" format="dimension" /> 969 970 <!-- Theme to use for alert dialogs spawned from this theme. --> 971 <attr name="alertDialogTheme" format="reference" /> 972 <!-- Icon drawable to use for alerts --> 973 <attr name="alertDialogIcon" format="reference" /> 974 975 <!-- Theme to use for presentations spawned from this theme. --> 976 <attr name="presentationTheme" format="reference" /> 977 978 <!-- Drawable to use for generic vertical dividers. --> 979 <attr name="dividerVertical" format="reference" /> 980 981 <!-- Drawable to use for generic horizontal dividers. --> 982 <attr name="dividerHorizontal" format="reference" /> 983 984 <!-- Style for button bars --> 985 <attr name="buttonBarStyle" format="reference" /> 986 987 <!-- Style for buttons within button bars --> 988 <attr name="buttonBarButtonStyle" format="reference" /> 989 990 <!-- Style for the "positive" buttons within button bars --> 991 <attr name="buttonBarPositiveButtonStyle" format="reference" /> 992 993 <!-- Style for the "negative" buttons within button bars --> 994 <attr name="buttonBarNegativeButtonStyle" format="reference" /> 995 996 <!-- Style for the "neutral" buttons within button bars --> 997 <attr name="buttonBarNeutralButtonStyle" format="reference" /> 998 999 <!-- Style for the search query widget. --> 1000 <attr name="searchViewStyle" format="reference" /> 1001 1002 <!-- Style for segmented buttons - a container that houses several buttons 1003 with the appearance of a singel button broken into segments. --> 1004 <attr name="segmentedButtonStyle" format="reference" /> 1005 1006 <!-- Background drawable for bordered standalone items that need focus/pressed states. --> 1007 <attr name="selectableItemBackground" format="reference" /> 1008 1009 <!-- Background drawable for borderless standalone items that need focus/pressed states. --> 1010 <attr name="selectableItemBackgroundBorderless" format="reference" /> 1011 1012 <!-- Style for buttons without an explicit border, often used in groups. --> 1013 <attr name="borderlessButtonStyle" format="reference" /> 1014 1015 <!-- Background to use for toasts --> 1016 <attr name="toastFrameBackground" format="reference" /> 1017 1018 <!-- Background to use for tooltip popups --> 1019 <attr name="tooltipFrameBackground" format="reference" /> 1020 1021 <!-- Foreground color to use for tooltip popups --> 1022 <attr name="tooltipForegroundColor" format="reference|color" /> 1023 1024 <!-- Background color to use for tooltip popups --> 1025 <attr name="tooltipBackgroundColor" format="reference|color" /> 1026 1027 <!-- Theme to use for Search Dialogs --> 1028 <attr name="searchDialogTheme" format="reference" /> 1029 1030 <!-- Specifies a drawable to use for the 'home as up' indicator. --> 1031 <attr name="homeAsUpIndicator" format="reference" /> 1032 1033 <!-- Preference frame layout styles. --> 1034 <attr name="preferenceFrameLayoutStyle" format="reference" /> 1035 1036 <!-- Default style for the Switch widget. --> 1037 <attr name="switchStyle" format="reference" /> 1038 1039 <!-- Default style for the MediaRouteButton widget. --> 1040 <attr name="mediaRouteButtonStyle" format="reference" /> 1041 1042 <!-- ============== --> 1043 <!-- Pointer styles --> 1044 <!-- ============== --> 1045 <eat-comment /> 1046 1047 <!-- The drawable for accessibility focused views. --> 1048 <attr name="accessibilityFocusedDrawable" format="reference" /> 1049 1050 <!-- Drawable for WebView find-on-page dialogue's "next" button. @hide --> 1051 <attr name="findOnPageNextDrawable" format="reference" /> 1052 1053 <!-- Drawable for WebView find-on-page dialogue's "previous" button. @hide --> 1054 <attr name="findOnPagePreviousDrawable" format="reference" /> 1055 1056 <!-- ============= --> 1057 <!-- Color palette --> 1058 <!-- ============= --> 1059 <eat-comment /> 1060 1061 <!-- The primary branding color for the app. By default, this is the color applied to the 1062 action bar background. --> 1063 <attr name="colorPrimary" format="color" /> 1064 1065 <!-- Dark variant of the primary branding color. By default, this is the color applied to 1066 the status bar (via statusBarColor) and navigation bar (via navigationBarColor). --> 1067 <attr name="colorPrimaryDark" format="color" /> 1068 1069 <!-- The secondary branding color for the app. --> 1070 <attr name="colorSecondary" format="color" /> 1071 1072 <!-- Bright complement to the primary branding color. By default, this is the color applied 1073 to framework controls (via colorControlActivated). --> 1074 <attr name="colorAccent" format="color" /> 1075 1076 <!-- The color applied to framework controls in their normal state. --> 1077 <attr name="colorControlNormal" format="color" /> 1078 1079 <!-- The color applied to framework controls in their activated (ex. checked) state. --> 1080 <attr name="colorControlActivated" format="color" /> 1081 1082 <!-- The color applied to framework control highlights (ex. ripples, list selectors). --> 1083 <attr name="colorControlHighlight" format="color" /> 1084 1085 <!-- The color applied to framework buttons in their normal state. --> 1086 <attr name="colorButtonNormal" format="color" /> 1087 1088 <!-- The color applied to framework switch thumbs in their normal state. --> 1089 <attr name="colorSwitchThumbNormal" format="color" /> 1090 1091 <!-- The color applied to the edge effect on scrolling containers. --> 1092 <attr name="colorEdgeEffect" format="color" /> 1093 1094 <!-- =================== --> 1095 <!-- Lighting properties --> 1096 <!-- =================== --> 1097 <eat-comment /> 1098 1099 <!-- @hide The default Y position of the light used to project view shadows. --> 1100 <attr name="lightY" format="dimension" /> 1101 1102 <!-- @hide The default Z position of the light used to project view shadows. --> 1103 <attr name="lightZ" format="dimension" /> 1104 1105 <!-- @hide The default radius of the light used to project view shadows. --> 1106 <attr name="lightRadius" format="dimension" /> 1107 1108 <!-- Alpha value of the ambient shadow projected by elevated views, between 0 and 1. --> 1109 <attr name="ambientShadowAlpha" format="float" /> 1110 1111 <!-- Alpha value of the spot shadow projected by elevated views, between 0 and 1. --> 1112 <attr name="spotShadowAlpha" format="float" /> 1113 </declare-styleable> 1114 1115 <!-- **************************************************************** --> 1116 <!-- Other non-theme attributes. --> 1117 <!-- **************************************************************** --> 1118 <eat-comment /> 1119 1120 <!-- Size of text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). 1121 Supported values include the following:<p/> 1122 <ul> 1123 <li><b>px</b> Pixels</li> 1124 <li><b>sp</b> Scaled pixels (scaled to relative pixel size on screen). See {@link android.util.DisplayMetrics} for more information.</li> 1125 <li><b>pt</b> Points</li> 1126 <li><b>dip</b> Device independent pixels. See {@link android.util.DisplayMetrics} for more information.</li> 1127 </ul> 1128 --> 1129 <attr name="textSize" format="dimension" /> 1130 1131 <!-- Default font family. --> 1132 <attr name="fontFamily" format="string" /> 1133 1134 <!-- Default text typeface. --> 1135 <attr name="typeface"> 1136 <enum name="normal" value="0" /> 1137 <enum name="sans" value="1" /> 1138 <enum name="serif" value="2" /> 1139 <enum name="monospace" value="3" /> 1140 </attr> 1141 1142 <!-- Default text typeface style. --> 1143 <attr name="textStyle"> 1144 <flag name="normal" value="0" /> 1145 <flag name="bold" value="1" /> 1146 <flag name="italic" value="2" /> 1147 </attr> 1148 1149 <!-- Color of text (usually same as colorForeground). --> 1150 <attr name="textColor" format="reference|color" /> 1151 1152 <!-- Color of highlighted text. --> 1153 <attr name="textColorHighlight" format="reference|color" /> 1154 1155 <!-- Color of hint text (displayed when the field is empty). --> 1156 <attr name="textColorHint" format="reference|color" /> 1157 1158 <!-- Color of link text (URLs). --> 1159 <attr name="textColorLink" format="reference|color" /> 1160 1161 <!-- Reference to a drawable that will be drawn under the insertion cursor. --> 1162 <attr name="textCursorDrawable" format="reference" /> 1163 1164 <!-- Indicates that the content of a non-editable TextView can be selected. 1165 Default value is false. EditText content is always selectable. --> 1166 <attr name="textIsSelectable" format="boolean" /> 1167 1168 <!-- Where to ellipsize text. --> 1169 <attr name="ellipsize"> 1170 <enum name="none" value="0" /> 1171 <enum name="start" value="1" /> 1172 <enum name="middle" value="2" /> 1173 <enum name="end" value="3" /> 1174 <enum name="marquee" value="4" /> 1175 </attr> 1176 1177 <!-- The type of data being placed in a text field, used to help an 1178 input method decide how to let the user enter text. The constants 1179 here correspond to those defined by 1180 {@link android.text.InputType}. Generally you can select 1181 a single value, though some can be combined together as 1182 indicated. Setting this attribute to anything besides 1183 <var>none</var> also implies that the text is editable. --> 1184 <attr name="inputType"> 1185 <!-- There is no content type. The text is not editable. --> 1186 <flag name="none" value="0x00000000" /> 1187 <!-- Just plain old text. Corresponds to 1188 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1189 {@link android.text.InputType#TYPE_TEXT_VARIATION_NORMAL}. --> 1190 <flag name="text" value="0x00000001" /> 1191 <!-- Can be combined with <var>text</var> and its variations to 1192 request capitalization of all characters. Corresponds to 1193 {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_CHARACTERS}. --> 1194 <flag name="textCapCharacters" value="0x00001001" /> 1195 <!-- Can be combined with <var>text</var> and its variations to 1196 request capitalization of the first character of every word. Corresponds to 1197 {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_WORDS}. --> 1198 <flag name="textCapWords" value="0x00002001" /> 1199 <!-- Can be combined with <var>text</var> and its variations to 1200 request capitalization of the first character of every sentence. Corresponds to 1201 {@link android.text.InputType#TYPE_TEXT_FLAG_CAP_SENTENCES}. --> 1202 <flag name="textCapSentences" value="0x00004001" /> 1203 <!-- Can be combined with <var>text</var> and its variations to 1204 request auto-correction of text being input. Corresponds to 1205 {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_CORRECT}. --> 1206 <flag name="textAutoCorrect" value="0x00008001" /> 1207 <!-- Can be combined with <var>text</var> and its variations to 1208 specify that this field will be doing its own auto-completion and 1209 talking with the input method appropriately. Corresponds to 1210 {@link android.text.InputType#TYPE_TEXT_FLAG_AUTO_COMPLETE}. --> 1211 <flag name="textAutoComplete" value="0x00010001" /> 1212 <!-- Can be combined with <var>text</var> and its variations to 1213 allow multiple lines of text in the field. If this flag is not set, 1214 the text field will be constrained to a single line. Corresponds to 1215 {@link android.text.InputType#TYPE_TEXT_FLAG_MULTI_LINE}. --> 1216 <flag name="textMultiLine" value="0x00020001" /> 1217 <!-- Can be combined with <var>text</var> and its variations to 1218 indicate that though the regular text view should not be multiple 1219 lines, the IME should provide multiple lines if it can. Corresponds to 1220 {@link android.text.InputType#TYPE_TEXT_FLAG_IME_MULTI_LINE}. --> 1221 <flag name="textImeMultiLine" value="0x00040001" /> 1222 <!-- Can be combined with <var>text</var> and its variations to 1223 indicate that the IME should not show any 1224 dictionary-based word suggestions. Corresponds to 1225 {@link android.text.InputType#TYPE_TEXT_FLAG_NO_SUGGESTIONS}. --> 1226 <flag name="textNoSuggestions" value="0x00080001" /> 1227 <!-- Text that will be used as a URI. Corresponds to 1228 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1229 {@link android.text.InputType#TYPE_TEXT_VARIATION_URI}. --> 1230 <flag name="textUri" value="0x00000011" /> 1231 <!-- Text that will be used as an e-mail address. Corresponds to 1232 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1233 {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_ADDRESS}. --> 1234 <flag name="textEmailAddress" value="0x00000021" /> 1235 <!-- Text that is being supplied as the subject of an e-mail. Corresponds to 1236 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1237 {@link android.text.InputType#TYPE_TEXT_VARIATION_EMAIL_SUBJECT}. --> 1238 <flag name="textEmailSubject" value="0x00000031" /> 1239 <!-- Text that is the content of a short message. Corresponds to 1240 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1241 {@link android.text.InputType#TYPE_TEXT_VARIATION_SHORT_MESSAGE}. --> 1242 <flag name="textShortMessage" value="0x00000041" /> 1243 <!-- Text that is the content of a long message. Corresponds to 1244 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1245 {@link android.text.InputType#TYPE_TEXT_VARIATION_LONG_MESSAGE}. --> 1246 <flag name="textLongMessage" value="0x00000051" /> 1247 <!-- Text that is the name of a person. Corresponds to 1248 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1249 {@link android.text.InputType#TYPE_TEXT_VARIATION_PERSON_NAME}. --> 1250 <flag name="textPersonName" value="0x00000061" /> 1251 <!-- Text that is being supplied as a postal mailing address. Corresponds to 1252 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1253 {@link android.text.InputType#TYPE_TEXT_VARIATION_POSTAL_ADDRESS}. --> 1254 <flag name="textPostalAddress" value="0x00000071" /> 1255 <!-- Text that is a password. Corresponds to 1256 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1257 {@link android.text.InputType#TYPE_TEXT_VARIATION_PASSWORD}. --> 1258 <flag name="textPassword" value="0x00000081" /> 1259 <!-- Text that is a password that should be visible. Corresponds to 1260 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1261 {@link android.text.InputType#TYPE_TEXT_VARIATION_VISIBLE_PASSWORD}. --> 1262 <flag name="textVisiblePassword" value="0x00000091" /> 1263 <!-- Text that is being supplied as text in a web form. Corresponds to 1264 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1265 {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EDIT_TEXT}. --> 1266 <flag name="textWebEditText" value="0x000000a1" /> 1267 <!-- Text that is filtering some other data. Corresponds to 1268 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1269 {@link android.text.InputType#TYPE_TEXT_VARIATION_FILTER}. --> 1270 <flag name="textFilter" value="0x000000b1" /> 1271 <!-- Text that is for phonetic pronunciation, such as a phonetic name 1272 field in a contact entry. Corresponds to 1273 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1274 {@link android.text.InputType#TYPE_TEXT_VARIATION_PHONETIC}. --> 1275 <flag name="textPhonetic" value="0x000000c1" /> 1276 <!-- Text that will be used as an e-mail address on a web form. Corresponds to 1277 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1278 {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS}. --> 1279 <flag name="textWebEmailAddress" value="0x000000d1" /> 1280 <!-- Text that will be used as a password on a web form. Corresponds to 1281 {@link android.text.InputType#TYPE_CLASS_TEXT} | 1282 {@link android.text.InputType#TYPE_TEXT_VARIATION_WEB_PASSWORD}. --> 1283 <flag name="textWebPassword" value="0x000000e1" /> 1284 <!-- A numeric only field. Corresponds to 1285 {@link android.text.InputType#TYPE_CLASS_NUMBER} | 1286 {@link android.text.InputType#TYPE_NUMBER_VARIATION_NORMAL}. --> 1287 <flag name="number" value="0x00000002" /> 1288 <!-- Can be combined with <var>number</var> and its other options to 1289 allow a signed number. Corresponds to 1290 {@link android.text.InputType#TYPE_CLASS_NUMBER} | 1291 {@link android.text.InputType#TYPE_NUMBER_FLAG_SIGNED}. --> 1292 <flag name="numberSigned" value="0x00001002" /> 1293 <!-- Can be combined with <var>number</var> and its other options to 1294 allow a decimal (fractional) number. Corresponds to 1295 {@link android.text.InputType#TYPE_CLASS_NUMBER} | 1296 {@link android.text.InputType#TYPE_NUMBER_FLAG_DECIMAL}. --> 1297 <flag name="numberDecimal" value="0x00002002" /> 1298 <!-- A numeric password field. Corresponds to 1299 {@link android.text.InputType#TYPE_CLASS_NUMBER} | 1300 {@link android.text.InputType#TYPE_NUMBER_VARIATION_PASSWORD}. --> 1301 <flag name="numberPassword" value="0x00000012" /> 1302 <!-- For entering a phone number. Corresponds to 1303 {@link android.text.InputType#TYPE_CLASS_PHONE}. --> 1304 <flag name="phone" value="0x00000003" /> 1305 <!-- For entering a date and time. Corresponds to 1306 {@link android.text.InputType#TYPE_CLASS_DATETIME} | 1307 {@link android.text.InputType#TYPE_DATETIME_VARIATION_NORMAL}. --> 1308 <flag name="datetime" value="0x00000004" /> 1309 <!-- For entering a date. Corresponds to 1310 {@link android.text.InputType#TYPE_CLASS_DATETIME} | 1311 {@link android.text.InputType#TYPE_DATETIME_VARIATION_DATE}. --> 1312 <flag name="date" value="0x00000014" /> 1313 <!-- For entering a time. Corresponds to 1314 {@link android.text.InputType#TYPE_CLASS_DATETIME} | 1315 {@link android.text.InputType#TYPE_DATETIME_VARIATION_TIME}. --> 1316 <flag name="time" value="0x00000024" /> 1317 </attr> 1318 1319 <!-- Additional features you can enable in an IME associated with an editor 1320 to improve the integration with your application. The constants 1321 here correspond to those defined by 1322 {@link android.view.inputmethod.EditorInfo#imeOptions}. --> 1323 <attr name="imeOptions"> 1324 <!-- There are no special semantics associated with this editor. --> 1325 <flag name="normal" value="0x00000000" /> 1326 <!-- There is no specific action associated with this editor, let the 1327 editor come up with its own if it can. 1328 Corresponds to 1329 {@link android.view.inputmethod.EditorInfo#IME_NULL}. --> 1330 <flag name="actionUnspecified" value="0x00000000" /> 1331 <!-- This editor has no action associated with it. 1332 Corresponds to 1333 {@link android.view.inputmethod.EditorInfo#IME_ACTION_NONE}. --> 1334 <flag name="actionNone" value="0x00000001" /> 1335 <!-- The action key performs a "go" 1336 operation to take the user to the target of the text they typed. 1337 Typically used, for example, when entering a URL. 1338 Corresponds to 1339 {@link android.view.inputmethod.EditorInfo#IME_ACTION_GO}. --> 1340 <flag name="actionGo" value="0x00000002" /> 1341 <!-- The action key performs a "search" 1342 operation, taking the user to the results of searching for the text 1343 the have typed (in whatever context is appropriate). 1344 Corresponds to 1345 {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEARCH}. --> 1346 <flag name="actionSearch" value="0x00000003" /> 1347 <!-- The action key performs a "send" 1348 operation, delivering the text to its target. This is typically used 1349 when composing a message. 1350 Corresponds to 1351 {@link android.view.inputmethod.EditorInfo#IME_ACTION_SEND}. --> 1352 <flag name="actionSend" value="0x00000004" /> 1353 <!-- The action key performs a "next" 1354 operation, taking the user to the next field that will accept text. 1355 Corresponds to 1356 {@link android.view.inputmethod.EditorInfo#IME_ACTION_NEXT}. --> 1357 <flag name="actionNext" value="0x00000005" /> 1358 <!-- The action key performs a "done" 1359 operation, closing the soft input method. 1360 Corresponds to 1361 {@link android.view.inputmethod.EditorInfo#IME_ACTION_DONE}. --> 1362 <flag name="actionDone" value="0x00000006" /> 1363 <!-- The action key performs a "previous" 1364 operation, taking the user to the previous field that will accept text. 1365 Corresponds to 1366 {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. --> 1367 <flag name="actionPrevious" value="0x00000007" /> 1368 <!-- Used to request that the IME never go 1369 into fullscreen mode. Applications need to be aware that the flag is not 1370 a guarantee, and not all IMEs will respect it. 1371 <p>Corresponds to 1372 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_FULLSCREEN}. --> 1373 <flag name="flagNoFullscreen" value="0x2000000" /> 1374 <!-- Like flagNavigateNext, but 1375 specifies there is something interesting that a backward navigation 1376 can focus on. If the user selects the IME's facility to backward 1377 navigate, this will show up in the application as an actionPrevious 1378 at {@link android.view.inputmethod.InputConnection#performEditorAction(int) 1379 InputConnection.performEditorAction(int)}. 1380 <p>Corresponds to 1381 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_FULLSCREEN}. --> 1382 <flag name="flagNavigatePrevious" value="0x4000000" /> 1383 <!-- Used to specify that there is something 1384 interesting that a forward navigation can focus on. This is like using 1385 actionNext, except allows the IME to be multiline (with 1386 an enter key) as well as provide forward navigation. Note that some 1387 IMEs may not be able to do this, especially when running on a small 1388 screen where there is little space. In that case it does not need to 1389 present a UI for this option. Like actionNext, if the 1390 user selects the IME's facility to forward navigate, this will show up 1391 in the application at 1392 {@link android.view.inputmethod.InputConnection#performEditorAction(int) 1393 InputConnection.performEditorAction(int)}. 1394 <p>Corresponds to 1395 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NAVIGATE_NEXT}. --> 1396 <flag name="flagNavigateNext" value="0x8000000" /> 1397 <!-- Used to specify that the IME does not need 1398 to show its extracted text UI. For input methods that may be fullscreen, 1399 often when in landscape mode, this allows them to be smaller and let part 1400 of the application be shown behind. Though there will likely be limited 1401 access to the application available from the user, it can make the 1402 experience of a (mostly) fullscreen IME less jarring. Note that when 1403 this flag is specified the IME may <em>not</em> be set up to be able 1404 to display text, so it should only be used in situations where this is 1405 not needed. 1406 <p>Corresponds to 1407 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_EXTRACT_UI}. --> 1408 <flag name="flagNoExtractUi" value="0x10000000" /> 1409 <!-- Used in conjunction with a custom action, this indicates that the 1410 action should not be available as an accessory button when the 1411 input method is full-screen. 1412 Note that by setting this flag, there can be cases where the action 1413 is simply never available to the user. Setting this generally means 1414 that you think showing text being edited is more important than the 1415 action you have supplied. 1416 <p>Corresponds to 1417 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ACCESSORY_ACTION}. --> 1418 <flag name="flagNoAccessoryAction" value="0x20000000" /> 1419 <!-- Used in conjunction with a custom action, 1420 this indicates that the action should not be available in-line as 1421 a replacement for the "enter" key. Typically this is 1422 because the action has such a significant impact or is not recoverable 1423 enough that accidentally hitting it should be avoided, such as sending 1424 a message. Note that {@link android.widget.TextView} will 1425 automatically set this flag for you on multi-line text views. 1426 <p>Corresponds to 1427 {@link android.view.inputmethod.EditorInfo#IME_FLAG_NO_ENTER_ACTION}. --> 1428 <flag name="flagNoEnterAction" value="0x40000000" /> 1429 <!-- Used to request that the IME should be capable of inputting ASCII 1430 characters. The intention of this flag is to ensure that the user 1431 can type Roman alphabet characters in a {@link android.widget.TextView} 1432 used for, typically, account ID or password input. It is expected that IMEs 1433 normally are able to input ASCII even without being told so (such IMEs 1434 already respect this flag in a sense), but there could be some cases they 1435 aren't when, for instance, only non-ASCII input languagaes like Arabic, 1436 Greek, Hebrew, Russian are enabled in the IME. Applications need to be 1437 aware that the flag is not a guarantee, and not all IMEs will respect it. 1438 However, it is strongly recommended for IME authors to respect this flag 1439 especially when their IME could end up with a state that has only non-ASCII 1440 input languages enabled. 1441 <p>Corresponds to 1442 {@link android.view.inputmethod.EditorInfo#IME_FLAG_FORCE_ASCII}. --> 1443 <flag name="flagForceAscii" value="0x80000000" /> 1444 </attr> 1445 1446 <!-- A coordinate in the X dimension. --> 1447 <attr name="x" format="dimension" /> 1448 <!-- A coordinate in the Y dimension. --> 1449 <attr name="y" format="dimension" /> 1450 1451 <!-- Specifies how an object should position its content, on both the X and Y axes, 1452 within its own bounds. --> 1453 <attr name="gravity"> 1454 <!-- Push object to the top of its container, not changing its size. --> 1455 <flag name="top" value="0x30" /> 1456 <!-- Push object to the bottom of its container, not changing its size. --> 1457 <flag name="bottom" value="0x50" /> 1458 <!-- Push object to the left of its container, not changing its size. --> 1459 <flag name="left" value="0x03" /> 1460 <!-- Push object to the right of its container, not changing its size. --> 1461 <flag name="right" value="0x05" /> 1462 <!-- Place object in the vertical center of its container, not changing its size. --> 1463 <flag name="center_vertical" value="0x10" /> 1464 <!-- Grow the vertical size of the object if needed so it completely fills its container. --> 1465 <flag name="fill_vertical" value="0x70" /> 1466 <!-- Place object in the horizontal center of its container, not changing its size. --> 1467 <flag name="center_horizontal" value="0x01" /> 1468 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 1469 <flag name="fill_horizontal" value="0x07" /> 1470 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> 1471 <flag name="center" value="0x11" /> 1472 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> 1473 <flag name="fill" value="0x77" /> 1474 <!-- Additional option that can be set to have the top and/or bottom edges of 1475 the child clipped to its container's bounds. 1476 The clip will be based on the vertical gravity: a top gravity will clip the bottom 1477 edge, a bottom gravity will clip the top edge, and neither will clip both edges. --> 1478 <flag name="clip_vertical" value="0x80" /> 1479 <!-- Additional option that can be set to have the left and/or right edges of 1480 the child clipped to its container's bounds. 1481 The clip will be based on the horizontal gravity: a left gravity will clip the right 1482 edge, a right gravity will clip the left edge, and neither will clip both edges. --> 1483 <flag name="clip_horizontal" value="0x08" /> 1484 <!-- Push object to the beginning of its container, not changing its size. --> 1485 <flag name="start" value="0x00800003" /> 1486 <!-- Push object to the end of its container, not changing its size. --> 1487 <flag name="end" value="0x00800005" /> 1488 </attr> 1489 1490 <!-- Controls whether links such as urls and email addresses are 1491 automatically found and converted to clickable links. The default 1492 value is "none", disabling this feature. --> 1493 <attr name="autoLink"> 1494 <!-- Match no patterns (default). --> 1495 <flag name="none" value="0x00" /> 1496 <!-- Match Web URLs. --> 1497 <flag name="web" value="0x01" /> 1498 <!-- Match email addresses. --> 1499 <flag name="email" value="0x02" /> 1500 <!-- Match phone numbers. --> 1501 <flag name="phone" value="0x04" /> 1502 <!-- Match map addresses. --> 1503 <flag name="map" value="0x08" /> 1504 <!-- Match all patterns (equivalent to web|email|phone|map). --> 1505 <flag name="all" value="0x0f" /> 1506 </attr> 1507 1508 <!-- Reference to an array resource that will populate a list/adapter. --> 1509 <attr name="entries" format="reference" /> 1510 1511 <!-- Standard gravity constant that a child supplies to its parent. 1512 Defines how the child view should be positioned, on both the X and Y axes, within its enclosing layout. --> 1513 <attr name="layout_gravity"> 1514 <!-- Push object to the top of its container, not changing its size. --> 1515 <flag name="top" value="0x30" /> 1516 <!-- Push object to the bottom of its container, not changing its size. --> 1517 <flag name="bottom" value="0x50" /> 1518 <!-- Push object to the left of its container, not changing its size. --> 1519 <flag name="left" value="0x03" /> 1520 <!-- Push object to the right of its container, not changing its size. --> 1521 <flag name="right" value="0x05" /> 1522 <!-- Place object in the vertical center of its container, not changing its size. --> 1523 <flag name="center_vertical" value="0x10" /> 1524 <!-- Grow the vertical size of the object if needed so it completely fills its container. --> 1525 <flag name="fill_vertical" value="0x70" /> 1526 <!-- Place object in the horizontal center of its container, not changing its size. --> 1527 <flag name="center_horizontal" value="0x01" /> 1528 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 1529 <flag name="fill_horizontal" value="0x07" /> 1530 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> 1531 <flag name="center" value="0x11" /> 1532 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> 1533 <flag name="fill" value="0x77" /> 1534 <!-- Additional option that can be set to have the top and/or bottom edges of 1535 the child clipped to its container's bounds. 1536 The clip will be based on the vertical gravity: a top gravity will clip the bottom 1537 edge, a bottom gravity will clip the top edge, and neither will clip both edges. --> 1538 <flag name="clip_vertical" value="0x80" /> 1539 <!-- Additional option that can be set to have the left and/or right edges of 1540 the child clipped to its container's bounds. 1541 The clip will be based on the horizontal gravity: a left gravity will clip the right 1542 edge, a right gravity will clip the left edge, and neither will clip both edges. --> 1543 <flag name="clip_horizontal" value="0x08" /> 1544 <!-- Push object to the beginning of its container, not changing its size. --> 1545 <flag name="start" value="0x00800003" /> 1546 <!-- Push object to the end of its container, not changing its size. --> 1547 <flag name="end" value="0x00800005" /> 1548 </attr> 1549 1550 <!-- Standard orientation constant. --> 1551 <attr name="orientation"> 1552 <!-- Defines an horizontal widget. --> 1553 <enum name="horizontal" value="0" /> 1554 <!-- Defines a vertical widget. --> 1555 <enum name="vertical" value="1" /> 1556 </attr> 1557 1558 <!-- Alignment constants. --> 1559 <attr name="alignmentMode"> 1560 <!-- Align the bounds of the children. 1561 See {@link android.widget.GridLayout#ALIGN_BOUNDS}. --> 1562 <enum name="alignBounds" value="0" /> 1563 <!-- Align the margins of the children. 1564 See {@link android.widget.GridLayout#ALIGN_MARGINS}. --> 1565 <enum name="alignMargins" value="1" /> 1566 </attr> 1567 1568 <!-- ========================== --> 1569 <!-- Key Codes --> 1570 <!-- ========================== --> 1571 <eat-comment /> 1572 1573 <!-- This enum provides the same keycode values as can be found in 1574 {@link android.view.KeyEvent}. --> 1575 <attr name="keycode"> 1576 <enum name="KEYCODE_UNKNOWN" value="0" /> 1577 <enum name="KEYCODE_SOFT_LEFT" value="1" /> 1578 <enum name="KEYCODE_SOFT_RIGHT" value="2" /> 1579 <enum name="KEYCODE_HOME" value="3" /> 1580 <enum name="KEYCODE_BACK" value="4" /> 1581 <enum name="KEYCODE_CALL" value="5" /> 1582 <enum name="KEYCODE_ENDCALL" value="6" /> 1583 <enum name="KEYCODE_0" value="7" /> 1584 <enum name="KEYCODE_1" value="8" /> 1585 <enum name="KEYCODE_2" value="9" /> 1586 <enum name="KEYCODE_3" value="10" /> 1587 <enum name="KEYCODE_4" value="11" /> 1588 <enum name="KEYCODE_5" value="12" /> 1589 <enum name="KEYCODE_6" value="13" /> 1590 <enum name="KEYCODE_7" value="14" /> 1591 <enum name="KEYCODE_8" value="15" /> 1592 <enum name="KEYCODE_9" value="16" /> 1593 <enum name="KEYCODE_STAR" value="17" /> 1594 <enum name="KEYCODE_POUND" value="18" /> 1595 <enum name="KEYCODE_DPAD_UP" value="19" /> 1596 <enum name="KEYCODE_DPAD_DOWN" value="20" /> 1597 <enum name="KEYCODE_DPAD_LEFT" value="21" /> 1598 <enum name="KEYCODE_DPAD_RIGHT" value="22" /> 1599 <enum name="KEYCODE_DPAD_CENTER" value="23" /> 1600 <enum name="KEYCODE_VOLUME_UP" value="24" /> 1601 <enum name="KEYCODE_VOLUME_DOWN" value="25" /> 1602 <enum name="KEYCODE_POWER" value="26" /> 1603 <enum name="KEYCODE_CAMERA" value="27" /> 1604 <enum name="KEYCODE_CLEAR" value="28" /> 1605 <enum name="KEYCODE_A" value="29" /> 1606 <enum name="KEYCODE_B" value="30" /> 1607 <enum name="KEYCODE_C" value="31" /> 1608 <enum name="KEYCODE_D" value="32" /> 1609 <enum name="KEYCODE_E" value="33" /> 1610 <enum name="KEYCODE_F" value="34" /> 1611 <enum name="KEYCODE_G" value="35" /> 1612 <enum name="KEYCODE_H" value="36" /> 1613 <enum name="KEYCODE_I" value="37" /> 1614 <enum name="KEYCODE_J" value="38" /> 1615 <enum name="KEYCODE_K" value="39" /> 1616 <enum name="KEYCODE_L" value="40" /> 1617 <enum name="KEYCODE_M" value="41" /> 1618 <enum name="KEYCODE_N" value="42" /> 1619 <enum name="KEYCODE_O" value="43" /> 1620 <enum name="KEYCODE_P" value="44" /> 1621 <enum name="KEYCODE_Q" value="45" /> 1622 <enum name="KEYCODE_R" value="46" /> 1623 <enum name="KEYCODE_S" value="47" /> 1624 <enum name="KEYCODE_T" value="48" /> 1625 <enum name="KEYCODE_U" value="49" /> 1626 <enum name="KEYCODE_V" value="50" /> 1627 <enum name="KEYCODE_W" value="51" /> 1628 <enum name="KEYCODE_X" value="52" /> 1629 <enum name="KEYCODE_Y" value="53" /> 1630 <enum name="KEYCODE_Z" value="54" /> 1631 <enum name="KEYCODE_COMMA" value="55" /> 1632 <enum name="KEYCODE_PERIOD" value="56" /> 1633 <enum name="KEYCODE_ALT_LEFT" value="57" /> 1634 <enum name="KEYCODE_ALT_RIGHT" value="58" /> 1635 <enum name="KEYCODE_SHIFT_LEFT" value="59" /> 1636 <enum name="KEYCODE_SHIFT_RIGHT" value="60" /> 1637 <enum name="KEYCODE_TAB" value="61" /> 1638 <enum name="KEYCODE_SPACE" value="62" /> 1639 <enum name="KEYCODE_SYM" value="63" /> 1640 <enum name="KEYCODE_EXPLORER" value="64" /> 1641 <enum name="KEYCODE_ENVELOPE" value="65" /> 1642 <enum name="KEYCODE_ENTER" value="66" /> 1643 <enum name="KEYCODE_DEL" value="67" /> 1644 <enum name="KEYCODE_GRAVE" value="68" /> 1645 <enum name="KEYCODE_MINUS" value="69" /> 1646 <enum name="KEYCODE_EQUALS" value="70" /> 1647 <enum name="KEYCODE_LEFT_BRACKET" value="71" /> 1648 <enum name="KEYCODE_RIGHT_BRACKET" value="72" /> 1649 <enum name="KEYCODE_BACKSLASH" value="73" /> 1650 <enum name="KEYCODE_SEMICOLON" value="74" /> 1651 <enum name="KEYCODE_APOSTROPHE" value="75" /> 1652 <enum name="KEYCODE_SLASH" value="76" /> 1653 <enum name="KEYCODE_AT" value="77" /> 1654 <enum name="KEYCODE_NUM" value="78" /> 1655 <enum name="KEYCODE_HEADSETHOOK" value="79" /> 1656 <enum name="KEYCODE_FOCUS" value="80" /> 1657 <enum name="KEYCODE_PLUS" value="81" /> 1658 <enum name="KEYCODE_MENU" value="82" /> 1659 <enum name="KEYCODE_NOTIFICATION" value="83" /> 1660 <enum name="KEYCODE_SEARCH" value="84" /> 1661 <enum name="KEYCODE_MEDIA_PLAY_PAUSE" value="85" /> 1662 <enum name="KEYCODE_MEDIA_STOP" value="86" /> 1663 <enum name="KEYCODE_MEDIA_NEXT" value="87" /> 1664 <enum name="KEYCODE_MEDIA_PREVIOUS" value="88" /> 1665 <enum name="KEYCODE_MEDIA_REWIND" value="89" /> 1666 <enum name="KEYCODE_MEDIA_FAST_FORWARD" value="90" /> 1667 <enum name="KEYCODE_MUTE" value="91" /> 1668 <enum name="KEYCODE_PAGE_UP" value="92" /> 1669 <enum name="KEYCODE_PAGE_DOWN" value="93" /> 1670 <enum name="KEYCODE_PICTSYMBOLS" value="94" /> 1671 <enum name="KEYCODE_SWITCH_CHARSET" value="95" /> 1672 <enum name="KEYCODE_BUTTON_A" value="96" /> 1673 <enum name="KEYCODE_BUTTON_B" value="97" /> 1674 <enum name="KEYCODE_BUTTON_C" value="98" /> 1675 <enum name="KEYCODE_BUTTON_X" value="99" /> 1676 <enum name="KEYCODE_BUTTON_Y" value="100" /> 1677 <enum name="KEYCODE_BUTTON_Z" value="101" /> 1678 <enum name="KEYCODE_BUTTON_L1" value="102" /> 1679 <enum name="KEYCODE_BUTTON_R1" value="103" /> 1680 <enum name="KEYCODE_BUTTON_L2" value="104" /> 1681 <enum name="KEYCODE_BUTTON_R2" value="105" /> 1682 <enum name="KEYCODE_BUTTON_THUMBL" value="106" /> 1683 <enum name="KEYCODE_BUTTON_THUMBR" value="107" /> 1684 <enum name="KEYCODE_BUTTON_START" value="108" /> 1685 <enum name="KEYCODE_BUTTON_SELECT" value="109" /> 1686 <enum name="KEYCODE_BUTTON_MODE" value="110" /> 1687 <enum name="KEYCODE_ESCAPE" value="111" /> 1688 <enum name="KEYCODE_FORWARD_DEL" value="112" /> 1689 <enum name="KEYCODE_CTRL_LEFT" value="113" /> 1690 <enum name="KEYCODE_CTRL_RIGHT" value="114" /> 1691 <enum name="KEYCODE_CAPS_LOCK" value="115" /> 1692 <enum name="KEYCODE_SCROLL_LOCK" value="116" /> 1693 <enum name="KEYCODE_META_LEFT" value="117" /> 1694 <enum name="KEYCODE_META_RIGHT" value="118" /> 1695 <enum name="KEYCODE_FUNCTION" value="119" /> 1696 <enum name="KEYCODE_SYSRQ" value="120" /> 1697 <enum name="KEYCODE_BREAK" value="121" /> 1698 <enum name="KEYCODE_MOVE_HOME" value="122" /> 1699 <enum name="KEYCODE_MOVE_END" value="123" /> 1700 <enum name="KEYCODE_INSERT" value="124" /> 1701 <enum name="KEYCODE_FORWARD" value="125" /> 1702 <enum name="KEYCODE_MEDIA_PLAY" value="126" /> 1703 <enum name="KEYCODE_MEDIA_PAUSE" value="127" /> 1704 <enum name="KEYCODE_MEDIA_CLOSE" value="128" /> 1705 <enum name="KEYCODE_MEDIA_EJECT" value="129" /> 1706 <enum name="KEYCODE_MEDIA_RECORD" value="130" /> 1707 <enum name="KEYCODE_F1" value="131" /> 1708 <enum name="KEYCODE_F2" value="132" /> 1709 <enum name="KEYCODE_F3" value="133" /> 1710 <enum name="KEYCODE_F4" value="134" /> 1711 <enum name="KEYCODE_F5" value="135" /> 1712 <enum name="KEYCODE_F6" value="136" /> 1713 <enum name="KEYCODE_F7" value="137" /> 1714 <enum name="KEYCODE_F8" value="138" /> 1715 <enum name="KEYCODE_F9" value="139" /> 1716 <enum name="KEYCODE_F10" value="140" /> 1717 <enum name="KEYCODE_F11" value="141" /> 1718 <enum name="KEYCODE_F12" value="142" /> 1719 <enum name="KEYCODE_NUM_LOCK" value="143" /> 1720 <enum name="KEYCODE_NUMPAD_0" value="144" /> 1721 <enum name="KEYCODE_NUMPAD_1" value="145" /> 1722 <enum name="KEYCODE_NUMPAD_2" value="146" /> 1723 <enum name="KEYCODE_NUMPAD_3" value="147" /> 1724 <enum name="KEYCODE_NUMPAD_4" value="148" /> 1725 <enum name="KEYCODE_NUMPAD_5" value="149" /> 1726 <enum name="KEYCODE_NUMPAD_6" value="150" /> 1727 <enum name="KEYCODE_NUMPAD_7" value="151" /> 1728 <enum name="KEYCODE_NUMPAD_8" value="152" /> 1729 <enum name="KEYCODE_NUMPAD_9" value="153" /> 1730 <enum name="KEYCODE_NUMPAD_DIVIDE" value="154" /> 1731 <enum name="KEYCODE_NUMPAD_MULTIPLY" value="155" /> 1732 <enum name="KEYCODE_NUMPAD_SUBTRACT" value="156" /> 1733 <enum name="KEYCODE_NUMPAD_ADD" value="157" /> 1734 <enum name="KEYCODE_NUMPAD_DOT" value="158" /> 1735 <enum name="KEYCODE_NUMPAD_COMMA" value="159" /> 1736 <enum name="KEYCODE_NUMPAD_ENTER" value="160" /> 1737 <enum name="KEYCODE_NUMPAD_EQUALS" value="161" /> 1738 <enum name="KEYCODE_NUMPAD_LEFT_PAREN" value="162" /> 1739 <enum name="KEYCODE_NUMPAD_RIGHT_PAREN" value="163" /> 1740 <enum name="KEYCODE_VOLUME_MUTE" value="164" /> 1741 <enum name="KEYCODE_INFO" value="165" /> 1742 <enum name="KEYCODE_CHANNEL_UP" value="166" /> 1743 <enum name="KEYCODE_CHANNEL_DOWN" value="167" /> 1744 <enum name="KEYCODE_ZOOM_IN" value="168" /> 1745 <enum name="KEYCODE_ZOOM_OUT" value="169" /> 1746 <enum name="KEYCODE_TV" value="170" /> 1747 <enum name="KEYCODE_WINDOW" value="171" /> 1748 <enum name="KEYCODE_GUIDE" value="172" /> 1749 <enum name="KEYCODE_DVR" value="173" /> 1750 <enum name="KEYCODE_BOOKMARK" value="174" /> 1751 <enum name="KEYCODE_CAPTIONS" value="175" /> 1752 <enum name="KEYCODE_SETTINGS" value="176" /> 1753 <enum name="KEYCODE_TV_POWER" value="177" /> 1754 <enum name="KEYCODE_TV_INPUT" value="178" /> 1755 <enum name="KEYCODE_STB_POWER" value="179" /> 1756 <enum name="KEYCODE_STB_INPUT" value="180" /> 1757 <enum name="KEYCODE_AVR_POWER" value="181" /> 1758 <enum name="KEYCODE_AVR_INPUT" value="182" /> 1759 <enum name="KEYCODE_PROG_GRED" value="183" /> 1760 <enum name="KEYCODE_PROG_GREEN" value="184" /> 1761 <enum name="KEYCODE_PROG_YELLOW" value="185" /> 1762 <enum name="KEYCODE_PROG_BLUE" value="186" /> 1763 <enum name="KEYCODE_APP_SWITCH" value="187" /> 1764 <enum name="KEYCODE_BUTTON_1" value="188" /> 1765 <enum name="KEYCODE_BUTTON_2" value="189" /> 1766 <enum name="KEYCODE_BUTTON_3" value="190" /> 1767 <enum name="KEYCODE_BUTTON_4" value="191" /> 1768 <enum name="KEYCODE_BUTTON_5" value="192" /> 1769 <enum name="KEYCODE_BUTTON_6" value="193" /> 1770 <enum name="KEYCODE_BUTTON_7" value="194" /> 1771 <enum name="KEYCODE_BUTTON_8" value="195" /> 1772 <enum name="KEYCODE_BUTTON_9" value="196" /> 1773 <enum name="KEYCODE_BUTTON_10" value="197" /> 1774 <enum name="KEYCODE_BUTTON_11" value="198" /> 1775 <enum name="KEYCODE_BUTTON_12" value="199" /> 1776 <enum name="KEYCODE_BUTTON_13" value="200" /> 1777 <enum name="KEYCODE_BUTTON_14" value="201" /> 1778 <enum name="KEYCODE_BUTTON_15" value="202" /> 1779 <enum name="KEYCODE_BUTTON_16" value="203" /> 1780 <enum name="KEYCODE_LANGUAGE_SWITCH" value="204" /> 1781 <enum name="KEYCODE_MANNER_MODE" value="205" /> 1782 <enum name="KEYCODE_3D_MODE" value="206" /> 1783 <enum name="KEYCODE_CONTACTS" value="207" /> 1784 <enum name="KEYCODE_CALENDAR" value="208" /> 1785 <enum name="KEYCODE_MUSIC" value="209" /> 1786 <enum name="KEYCODE_CALCULATOR" value="210" /> 1787 <enum name="KEYCODE_ZENKAKU_HANKAKU" value="211" /> 1788 <enum name="KEYCODE_EISU" value="212" /> 1789 <enum name="KEYCODE_MUHENKAN" value="213" /> 1790 <enum name="KEYCODE_HENKAN" value="214" /> 1791 <enum name="KEYCODE_KATAKANA_HIRAGANA" value="215" /> 1792 <enum name="KEYCODE_YEN" value="216" /> 1793 <enum name="KEYCODE_RO" value="217" /> 1794 <enum name="KEYCODE_KANA" value="218" /> 1795 <enum name="KEYCODE_ASSIST" value="219" /> 1796 <enum name="KEYCODE_BRIGHTNESS_DOWN" value="220" /> 1797 <enum name="KEYCODE_BRIGHTNESS_UP" value="221" /> 1798 <enum name="KEYCODE_MEDIA_AUDIO_TRACK" value="222" /> 1799 <enum name="KEYCODE_MEDIA_SLEEP" value="223" /> 1800 <enum name="KEYCODE_MEDIA_WAKEUP" value="224" /> 1801 <enum name="KEYCODE_PAIRING" value="225" /> 1802 <enum name="KEYCODE_MEDIA_TOP_MENU" value="226" /> 1803 <enum name="KEYCODE_11" value="227" /> 1804 <enum name="KEYCODE_12" value="228" /> 1805 <enum name="KEYCODE_LAST_CHANNEL" value="229" /> 1806 <enum name="KEYCODE_TV_DATA_SERVICE" value="230" /> 1807 <enum name="KEYCODE_VOICE_ASSIST" value="231" /> 1808 <enum name="KEYCODE_TV_RADIO_SERVICE" value="232" /> 1809 <enum name="KEYCODE_TV_TELETEXT" value="233" /> 1810 <enum name="KEYCODE_TV_NUMBER_ENTRY" value="234" /> 1811 <enum name="KEYCODE_TV_TERRESTRIAL_ANALOG" value="235" /> 1812 <enum name="KEYCODE_TV_TERRESTRIAL_DIGITAL" value="236" /> 1813 <enum name="KEYCODE_TV_SATELLITE" value="237" /> 1814 <enum name="KEYCODE_TV_SATELLITE_BS" value="238" /> 1815 <enum name="KEYCODE_TV_SATELLITE_CS" value="239" /> 1816 <enum name="KEYCODE_TV_SATELLITE_SERVICE" value="240" /> 1817 <enum name="KEYCODE_TV_NETWORK" value="241" /> 1818 <enum name="KEYCODE_TV_ANTENNA_CABLE" value="242" /> 1819 <enum name="KEYCODE_TV_INPUT_HDMI_1" value="243" /> 1820 <enum name="KEYCODE_TV_INPUT_HDMI_2" value="244" /> 1821 <enum name="KEYCODE_TV_INPUT_HDMI_3" value="245" /> 1822 <enum name="KEYCODE_TV_INPUT_HDMI_4" value="246" /> 1823 <enum name="KEYCODE_TV_INPUT_COMPOSITE_1" value="247" /> 1824 <enum name="KEYCODE_TV_INPUT_COMPOSITE_2" value="248" /> 1825 <enum name="KEYCODE_TV_INPUT_COMPONENT_1" value="249" /> 1826 <enum name="KEYCODE_TV_INPUT_COMPONENT_2" value="250" /> 1827 <enum name="KEYCODE_TV_INPUT_VGA_1" value="251" /> 1828 <enum name="KEYCODE_TV_AUDIO_DESCRIPTION" value="252" /> 1829 <enum name="KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP" value="253" /> 1830 <enum name="KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN" value="254" /> 1831 <enum name="KEYCODE_TV_ZOOM_MODE" value="255" /> 1832 <enum name="KEYCODE_TV_CONTENTS_MENU" value="256" /> 1833 <enum name="KEYCODE_TV_MEDIA_CONTEXT_MENU" value="257" /> 1834 <enum name="KEYCODE_TV_TIMER_PROGRAMMING" value="258" /> 1835 <enum name="KEYCODE_HELP" value="259" /> 1836 <enum name="KEYCODE_NAVIGATE_PREVIOUS" value="260" /> 1837 <enum name="KEYCODE_NAVIGATE_NEXT" value="261" /> 1838 <enum name="KEYCODE_NAVIGATE_IN" value="262" /> 1839 <enum name="KEYCODE_NAVIGATE_OUT" value="263" /> 1840 <enum name="KEYCODE_STEM_PRIMARY" value="264" /> 1841 <enum name="KEYCODE_STEM_1" value="265" /> 1842 <enum name="KEYCODE_STEM_2" value="266" /> 1843 <enum name="KEYCODE_STEM_3" value="267" /> 1844 <enum name="KEYCODE_DPAD_UP_LEFT" value="268" /> 1845 <enum name="KEYCODE_DPAD_DOWN_LEFT" value="269" /> 1846 <enum name="KEYCODE_DPAD_UP_RIGHT" value="270" /> 1847 <enum name="KEYCODE_DPAD_DOWN_RIGHT" value="271" /> 1848 <enum name="KEYCODE_MEDIA_SKIP_FORWARD" value="272" /> 1849 <enum name="KEYCODE_MEDIA_SKIP_BACKWARD" value="273" /> 1850 <enum name="KEYCODE_MEDIA_STEP_FORWARD" value="274" /> 1851 <enum name="KEYCODE_MEDIA_STEP_BACKWARD" value="275" /> 1852 <enum name="KEYCODE_SOFT_SLEEP" value="276" /> 1853 <enum name="KEYCODE_CUT" value="277" /> 1854 <enum name="KEYCODE_COPY" value="278" /> 1855 <enum name="KEYCODE_PASTE" value="279" /> 1856 <enum name="KEYCODE_SYSTEM_NAVIGATION_UP" value="280" /> 1857 <enum name="KEYCODE_SYSTEM_NAVIGATION_DOWN" value="281" /> 1858 <enum name="KEYCODE_SYSTEM_NAVIGATION_LEFT" value="282" /> 1859 <enum name="KEYCODE_SYSTEM_NAVIGATION_RIGHT" value="283" /> 1860 </attr> 1861 1862 <!-- ***************************************************************** --> 1863 <!-- These define collections of attributes that can are with classes. --> 1864 <!-- ***************************************************************** --> 1865 1866 <!-- ========================== --> 1867 <!-- Special attribute classes. --> 1868 <!-- ========================== --> 1869 <eat-comment /> 1870 1871 <!-- The set of attributes that describe a Windows's theme. --> 1872 <declare-styleable name="Window"> 1873 <attr name="windowBackground" /> 1874 <attr name="windowBackgroundFallback" /> 1875 <attr name="windowContentOverlay" /> 1876 <attr name="windowFrame" /> 1877 <attr name="windowNoTitle" /> 1878 <attr name="windowFullscreen" /> 1879 <attr name="windowOverscan" /> 1880 <attr name="windowIsFloating" /> 1881 <attr name="windowIsTranslucent" /> 1882 <attr name="windowShowWallpaper" /> 1883 <attr name="windowAnimationStyle" /> 1884 <attr name="windowSoftInputMode" /> 1885 <attr name="windowDisablePreview" /> 1886 <attr name="windowNoDisplay" /> 1887 <attr name="textColor" /> 1888 <attr name="backgroundDimEnabled" /> 1889 <attr name="backgroundDimAmount" /> 1890 <attr name="windowActionBar" /> 1891 <attr name="windowActionModeOverlay" /> 1892 <attr name="windowActionBarOverlay" /> 1893 <attr name="windowEnableSplitTouch" /> 1894 <attr name="windowCloseOnTouchOutside" /> 1895 <attr name="windowTranslucentStatus" /> 1896 <attr name="windowTranslucentNavigation" /> 1897 <attr name="windowSwipeToDismiss" /> 1898 <attr name="windowContentTransitions" /> 1899 <attr name="windowActivityTransitions" /> 1900 <attr name="windowContentTransitionManager" /> 1901 <attr name="windowActionBarFullscreenDecorLayout" /> 1902 1903 <!-- The minimum width the window is allowed to be, along the major 1904 axis of the screen. That is, when in landscape. Can be either 1905 an absolute dimension or a fraction of the screen size in that 1906 dimension. --> 1907 <attr name="windowMinWidthMajor" format="dimension|fraction" /> 1908 <!-- The minimum width the window is allowed to be, along the minor 1909 axis of the screen. That is, when in portrait. Can be either 1910 an absolute dimension or a fraction of the screen size in that 1911 dimension. --> 1912 <attr name="windowMinWidthMinor" format="dimension|fraction" /> 1913 1914 <!-- A fixed width for the window along the major axis of the screen, 1915 that is, when in landscape. Can be either an absolute dimension 1916 or a fraction of the screen size in that dimension. --> 1917 <attr name="windowFixedWidthMajor" format="dimension|fraction" /> 1918 <!-- A fixed height for the window along the minor axis of the screen, 1919 that is, when in landscape. Can be either an absolute dimension 1920 or a fraction of the screen size in that dimension. --> 1921 <attr name="windowFixedHeightMinor" format="dimension|fraction" /> 1922 1923 <!-- A fixed width for the window along the minor axis of the screen, 1924 that is, when in portrait. Can be either an absolute dimension 1925 or a fraction of the screen size in that dimension. --> 1926 <attr name="windowFixedWidthMinor" format="dimension|fraction" /> 1927 <!-- A fixed height for the window along the major axis of the screen, 1928 that is, when in portrait. Can be either an absolute dimension 1929 or a fraction of the screen size in that dimension. --> 1930 <attr name="windowFixedHeightMajor" format="dimension|fraction" /> 1931 <attr name="windowOutsetBottom" format="dimension" /> 1932 <!-- Reference to a Transition XML resource defining the desired Transition 1933 used to move Views into the initial Window's content Scene. Corresponds to 1934 {@link android.view.Window#setEnterTransition(android.transition.Transition)}. --> 1935 <attr name="windowEnterTransition"/> 1936 1937 <!-- Reference to a Transition XML resource defining the desired Transition 1938 used to move Views out of the scene when the Window is 1939 preparing to close. Corresponds to 1940 {@link android.view.Window#setReturnTransition(android.transition.Transition)}. --> 1941 <attr name="windowReturnTransition"/> 1942 1943 <!-- Reference to a Transition XML resource defining the desired Transition 1944 used to move Views out of the Window's content Scene when launching a new Activity. 1945 Corresponds to 1946 {@link android.view.Window#setExitTransition(android.transition.Transition)}. --> 1947 <attr name="windowExitTransition"/> 1948 1949 <!-- Reference to a Transition XML resource defining the desired Transition 1950 used to move Views in to the scene when returning from a previously-started Activity. 1951 Corresponds to 1952 {@link android.view.Window#setReenterTransition(android.transition.Transition)}. --> 1953 <attr name="windowReenterTransition"/> 1954 1955 <!-- Reference to a Transition XML resource defining the desired Transition 1956 used to move shared elements transferred into the Window's initial content Scene. 1957 Corresponds to {@link android.view.Window#setSharedElementEnterTransition( 1958 android.transition.Transition)}. --> 1959 <attr name="windowSharedElementEnterTransition"/> 1960 1961 <!-- Reference to a Transition XML resource defining the desired Transition 1962 used to move shared elements transferred back to a calling Activity. 1963 Corresponds to {@link android.view.Window#setSharedElementReturnTransition( 1964 android.transition.Transition)}. --> 1965 <attr name="windowSharedElementReturnTransition"/> 1966 1967 <!-- Reference to a Transition XML resource defining the desired Transition 1968 used when starting a new Activity to move shared elements prior to transferring 1969 to the called Activity. 1970 Corresponds to {@link android.view.Window#setSharedElementExitTransition( 1971 android.transition.Transition)}. --> 1972 <attr name="windowSharedElementExitTransition"/> 1973 1974 <!-- Reference to a Transition XML resource defining the desired Transition 1975 used for shared elements transferred back to a calling Activity. 1976 Corresponds to {@link android.view.Window#setSharedElementReenterTransition( 1977 android.transition.Transition)}. --> 1978 <attr name="windowSharedElementReenterTransition"/> 1979 1980 1981 <!-- Flag indicating whether this Window's transition should overlap with 1982 the exiting transition of the calling Activity. Corresponds to 1983 {@link android.view.Window#setAllowEnterTransitionOverlap(boolean)}. --> 1984 <attr name="windowAllowEnterTransitionOverlap"/> 1985 1986 <!-- Flag indicating whether this Window's transition should overlap with 1987 the exiting transition of the called Activity when the called Activity 1988 finishes. Corresponds to 1989 {@link android.view.Window#setAllowReturnTransitionOverlap(boolean)}. --> 1990 <attr name="windowAllowReturnTransitionOverlap"/> 1991 1992 <!-- Indicates whether or not shared elements should use an overlay 1993 during transitions. The default value is true. --> 1994 <attr name="windowSharedElementsUseOverlay"/> 1995 1996 <!-- Flag indicating whether this Window is responsible for drawing the background for the 1997 system bars. If true and the window is not floating, the system bars are drawn with a 1998 transparent background and the corresponding areas in this window are filled with the 1999 colors specified in {@link android.R.attr#statusBarColor} and 2000 {@link android.R.attr#navigationBarColor}. Corresponds to 2001 {@link android.view.WindowManager.LayoutParams#FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS}. --> 2002 <attr name="windowDrawsSystemBarBackgrounds" format="boolean" /> 2003 2004 <!-- The color for the status bar. If the color is not opaque, consider setting 2005 {@link android.view.View#SYSTEM_UI_FLAG_LAYOUT_STABLE} and 2006 {@link android.view.View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN}. 2007 For this to take effect, the window must be drawing the system bar backgrounds with 2008 {@link android.R.attr#windowDrawsSystemBarBackgrounds} and the status bar must not 2009 have been requested to be translucent with 2010 {@link android.R.attr#windowTranslucentStatus}. 2011 Corresponds to {@link android.view.Window#setStatusBarColor(int)}. --> 2012 <attr name="statusBarColor" format="color" /> 2013 2014 <!-- The color for the navigation bar. If the color is not opaque, consider setting 2015 {@link android.view.View#SYSTEM_UI_FLAG_LAYOUT_STABLE} and 2016 {@link android.view.View#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION}. 2017 For this to take effect, the window must be drawing the system bar backgrounds with 2018 {@link android.R.attr#windowDrawsSystemBarBackgrounds} and the navigation bar must not 2019 have been requested to be translucent with 2020 {@link android.R.attr#windowTranslucentNavigation}. 2021 Corresponds to {@link android.view.Window#setNavigationBarColor(int)}. --> 2022 <attr name="navigationBarColor" format="color" /> 2023 2024 <!-- The duration, in milliseconds, of the window background fade duration 2025 when transitioning into or away from an Activity when called with an 2026 Activity Transition. Corresponds to 2027 {@link android.view.Window#setTransitionBackgroundFadeDuration(long)}. --> 2028 <attr name="windowTransitionBackgroundFadeDuration" /> 2029 2030 <!-- Elevation to use for the window. --> 2031 <attr name="windowElevation" format="dimension" /> 2032 2033 <!-- Whether to clip window content to the outline of the window background. --> 2034 <attr name="windowClipToOutline" format="boolean" /> 2035 2036 <!-- If set, the status bar will be drawn such that it is compatible with a light 2037 status bar background. 2038 <p>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 setting {@link android.view.View#SYSTEM_UI_FLAG_LIGHT_STATUS_BAR} on 2043 the decor view. --> 2044 <attr name="windowLightStatusBar" format="boolean" /> 2045 </declare-styleable> 2046 2047 <!-- The set of attributes that describe a AlertDialog's theme. --> 2048 <declare-styleable name="AlertDialog"> 2049 <attr name="fullDark" format="reference|color" /> 2050 <attr name="topDark" format="reference|color" /> 2051 <attr name="centerDark" format="reference|color" /> 2052 <attr name="bottomDark" format="reference|color" /> 2053 <attr name="fullBright" format="reference|color" /> 2054 <attr name="topBright" format="reference|color" /> 2055 <attr name="centerBright" format="reference|color" /> 2056 <attr name="bottomBright" format="reference|color" /> 2057 <attr name="bottomMedium" format="reference|color" /> 2058 <attr name="centerMedium" format="reference|color" /> 2059 <attr name="layout" /> 2060 <attr name="buttonPanelSideLayout" format="reference" /> 2061 <attr name="listLayout" format="reference" /> 2062 <attr name="multiChoiceItemLayout" format="reference" /> 2063 <attr name="singleChoiceItemLayout" format="reference" /> 2064 <attr name="listItemLayout" format="reference" /> 2065 <attr name="progressLayout" format="reference" /> 2066 <attr name="horizontalProgressLayout" format="reference" /> 2067 <!-- @hide Not ready for public use. --> 2068 <attr name="showTitle" format="boolean" /> 2069 <!-- @hide Whether fullDark, etc. should use default values if null. --> 2070 <attr name="needsDefaultBackgrounds" format="boolean" /> 2071 <!-- @hide Workaround until we replace AlertController with custom layout. --> 2072 <attr name="controllerType"> 2073 <!-- The default controller. --> 2074 <enum name="normal" value="0" /> 2075 <!-- Controller for micro specific layout. --> 2076 <enum name="micro" value="1" /> 2077 </attr> 2078 <!-- @hide Offset when scrolling to a selection. --> 2079 <attr name="selectionScrollOffset" format="dimension" /> 2080 </declare-styleable> 2081 2082 <!-- @hide --> 2083 <declare-styleable name="ButtonBarLayout"> 2084 <!-- Whether to automatically stack the buttons when there is not 2085 enough space to lay them out side-by-side. --> 2086 <attr name="allowStacking" format="boolean" /> 2087 </declare-styleable> 2088 2089 <!-- Fragment animation class attributes. --> 2090 <declare-styleable name="FragmentAnimation"> 2091 <attr name="fragmentOpenEnterAnimation" format="reference" /> 2092 <attr name="fragmentOpenExitAnimation" format="reference" /> 2093 <attr name="fragmentCloseEnterAnimation" format="reference" /> 2094 <attr name="fragmentCloseExitAnimation" format="reference" /> 2095 <attr name="fragmentFadeEnterAnimation" format="reference" /> 2096 <attr name="fragmentFadeExitAnimation" format="reference" /> 2097 </declare-styleable> 2098 2099 <!-- Window animation class attributes. --> 2100 <declare-styleable name="WindowAnimation"> 2101 <!-- The animation used when a window is being added. --> 2102 <attr name="windowEnterAnimation" format="reference" /> 2103 <!-- The animation used when a window is being removed. --> 2104 <attr name="windowExitAnimation" format="reference" /> 2105 <!-- The animation used when a window is going from INVISIBLE to VISIBLE. --> 2106 <attr name="windowShowAnimation" format="reference" /> 2107 <!-- The animation used when a window is going from VISIBLE to INVISIBLE. --> 2108 <attr name="windowHideAnimation" format="reference" /> 2109 2110 <!-- When opening a new activity, this is the animation that is 2111 run on the next activity (which is entering the screen). --> 2112 <attr name="activityOpenEnterAnimation" format="reference" /> 2113 <!-- When opening a new activity, this is the animation that is 2114 run on the previous activity (which is exiting the screen). --> 2115 <attr name="activityOpenExitAnimation" format="reference" /> 2116 <!-- When closing the current activity, this is the animation that is 2117 run on the next activity (which is entering the screen). --> 2118 <attr name="activityCloseEnterAnimation" format="reference" /> 2119 <!-- When closing the current activity, this is the animation that is 2120 run on the current activity (which is exiting the screen). --> 2121 <attr name="activityCloseExitAnimation" format="reference" /> 2122 <!-- When opening an activity in a new task, this is the animation that is 2123 run on the activity of the new task (which is entering the screen). --> 2124 <attr name="taskOpenEnterAnimation" format="reference" /> 2125 <!-- When opening an activity in a new task, this is the animation that is 2126 run on the activity of the old task (which is exiting the screen). --> 2127 <attr name="taskOpenExitAnimation" format="reference" /> 2128 <!-- When opening an activity in a new task using Intent/FLAG_ACTIVITY_LAUNCH_BEHIND, 2129 this is the animation that is run on the activity of the new task (which is 2130 entering the screen and then leaving). --> 2131 <attr name="launchTaskBehindTargetAnimation" format="reference" /> 2132 <!-- When opening an activity in a new task using Intent.FLAG_ACTIVITY_LAUNCH_BEHIND, 2133 this is the animation that is run on the activity of the old task (which is 2134 already on the screen and then stays on). --> 2135 <attr name="launchTaskBehindSourceAnimation" format="reference" /> 2136 <!-- When closing the last activity of a task, this is the animation that is 2137 run on the activity of the next task (which is entering the screen). --> 2138 <attr name="taskCloseEnterAnimation" format="reference" /> 2139 <!-- When opening an activity in a new task, this is the animation that is 2140 run on the activity of the old task (which is exiting the screen). --> 2141 <attr name="taskCloseExitAnimation" format="reference" /> 2142 <!-- When bringing an existing task to the foreground, this is the 2143 animation that is run on the top activity of the task being brought 2144 to the foreground (which is entering the screen). --> 2145 <attr name="taskToFrontEnterAnimation" format="reference" /> 2146 <!-- When bringing an existing task to the foreground, this is the 2147 animation that is run on the current foreground activity 2148 (which is exiting the screen). --> 2149 <attr name="taskToFrontExitAnimation" format="reference" /> 2150 <!-- When sending the current task to the background, this is the 2151 animation that is run on the top activity of the task behind 2152 it (which is entering the screen). --> 2153 <attr name="taskToBackEnterAnimation" format="reference" /> 2154 <!-- When sending the current task to the background, this is the 2155 animation that is run on the top activity of the current task 2156 (which is exiting the screen). --> 2157 <attr name="taskToBackExitAnimation" format="reference" /> 2158 2159 <!-- When opening a new activity that shows the wallpaper, while 2160 currently not showing the wallpaper, this is the animation that 2161 is run on the new wallpaper activity (which is entering the screen). --> 2162 <attr name="wallpaperOpenEnterAnimation" format="reference" /> 2163 <!-- When opening a new activity that shows the wallpaper, while 2164 currently not showing the wallpaper, this is the animation that 2165 is run on the current activity (which is exiting the screen). --> 2166 <attr name="wallpaperOpenExitAnimation" format="reference" /> 2167 <!-- When opening a new activity that hides the wallpaper, while 2168 currently showing the wallpaper, this is the animation that 2169 is run on the new activity (which is entering the screen). --> 2170 <attr name="wallpaperCloseEnterAnimation" format="reference" /> 2171 <!-- When opening a new activity that hides the wallpaper, while 2172 currently showing the wallpaper, this is the animation that 2173 is run on the old wallpaper activity (which is exiting the screen). --> 2174 <attr name="wallpaperCloseExitAnimation" format="reference" /> 2175 2176 <!-- When opening a new activity that is on top of the wallpaper 2177 when the current activity is also on top of the wallpaper, 2178 this is the animation that is run on the new activity 2179 (which is entering the screen). The wallpaper remains 2180 static behind the animation. --> 2181 <attr name="wallpaperIntraOpenEnterAnimation" format="reference" /> 2182 <!-- When opening a new activity that is on top of the wallpaper 2183 when the current activity is also on top of the wallpaper, 2184 this is the animation that is run on the current activity 2185 (which is exiting the screen). The wallpaper remains 2186 static behind the animation. --> 2187 <attr name="wallpaperIntraOpenExitAnimation" format="reference" /> 2188 <!-- When closing a foreround activity that is on top of the wallpaper 2189 when the previous activity is also on top of the wallpaper, 2190 this is the animation that is run on the previous activity 2191 (which is entering the screen). The wallpaper remains 2192 static behind the animation. --> 2193 <attr name="wallpaperIntraCloseEnterAnimation" format="reference" /> 2194 <!-- When closing a foreround activity that is on top of the wallpaper 2195 when the previous activity is also on top of the wallpaper, 2196 this is the animation that is run on the current activity 2197 (which is exiting the screen). The wallpaper remains 2198 static behind the animation. --> 2199 <attr name="wallpaperIntraCloseExitAnimation" format="reference" /> 2200 2201 <!-- When opening a new activity from a RemoteViews, this is the 2202 animation that is run on the next activity (which is entering the 2203 screen). Requires config_overrideRemoteViewsActivityTransition to 2204 be true. --> 2205 <attr name="activityOpenRemoteViewsEnterAnimation" format="reference" /> 2206 2207 </declare-styleable> 2208 2209 <!-- ============================= --> 2210 <!-- View package class attributes --> 2211 <!-- ============================= --> 2212 <eat-comment /> 2213 2214 <!-- Attributes that can be used with {@link android.view.View} or 2215 any of its subclasses. Also see {@link #ViewGroup_Layout} for 2216 attributes that are processed by the view's parent. --> 2217 <declare-styleable name="View"> 2218 <!-- Supply an identifier name for this view, to later retrieve it 2219 with {@link android.view.View#findViewById View.findViewById()} or 2220 {@link android.app.Activity#findViewById Activity.findViewById()}. 2221 This must be a 2222 resource reference; typically you set this using the 2223 <code>@+</code> syntax to create a new ID resources. 2224 For example: <code>android:id="@+id/my_id"</code> which 2225 allows you to later retrieve the view 2226 with <code>findViewById(R.id.my_id)</code>. --> 2227 <attr name="id" format="reference" /> 2228 2229 <!-- Supply a tag for this view containing a String, to be retrieved 2230 later with {@link android.view.View#getTag View.getTag()} or 2231 searched for with {@link android.view.View#findViewWithTag 2232 View.findViewWithTag()}. It is generally preferable to use 2233 IDs (through the android:id attribute) instead of tags because 2234 they are faster and allow for compile-time type checking. --> 2235 <attr name="tag" format="string" /> 2236 2237 <!-- The initial horizontal scroll offset, in pixels.--> 2238 <attr name="scrollX" format="dimension" /> 2239 2240 <!-- The initial vertical scroll offset, in pixels. --> 2241 <attr name="scrollY" format="dimension" /> 2242 2243 <!-- A drawable to use as the background. This can be either a reference 2244 to a full drawable resource (such as a PNG image, 9-patch, 2245 XML state list description, etc), or a solid color such as "#ff000000" 2246 (black). --> 2247 <attr name="background" format="reference|color" /> 2248 2249 <!-- Sets the padding, in pixels, of all four edges. Padding is defined as 2250 space between the edges of the view and the view's content. This value will take 2251 precedence over any of the edge-specific values, including 2252 paddingHorizontal and paddingVertical, if set. A view's size 2253 will include its padding. If a {@link android.R.attr#background} 2254 is provided, the padding will initially be set to that (0 if the 2255 drawable does not have padding). Explicitly setting a padding value 2256 will override the corresponding padding found in the background. --> 2257 <attr name="padding" format="dimension" /> 2258 <!-- Sets the padding, in pixels, of the left and right edges; see 2259 {@link android.R.attr#padding}. This value will take precedence over 2260 paddingLeft, paddingRight, paddingStart, and paddingEnd, if set. --> 2261 <attr name="paddingHorizontal" format="dimension" /> 2262 <!-- Sets the padding, in pixels, of the top and bottom edges; see 2263 {@link android.R.attr#padding}. This value will take precedence over 2264 paddingTop and paddingBottom, if set. --> 2265 <attr name="paddingVertical" format="dimension" /> 2266 <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. --> 2267 <attr name="paddingLeft" format="dimension" /> 2268 <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. --> 2269 <attr name="paddingTop" format="dimension" /> 2270 <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. --> 2271 <attr name="paddingRight" format="dimension" /> 2272 <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. --> 2273 <attr name="paddingBottom" format="dimension" /> 2274 <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. --> 2275 <attr name="paddingStart" format="dimension" /> 2276 <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. --> 2277 <attr name="paddingEnd" format="dimension" /> 2278 2279 <!-- Controls whether a view can take focus. By default, this is "auto" which lets the 2280 framework determine whether a user can move focus to a view. By setting this attribute 2281 to true the view is allowed to take focus. By setting it to "false" the view will not 2282 take focus. This value does not impact the behavior of 2283 directly calling {@link android.view.View#requestFocus}, which will 2284 always request focus regardless of this view. It only impacts where 2285 focus navigation will try to move focus. --> 2286 <attr name="focusable" format="boolean|enum"> 2287 <enum name="auto" value="0x00000010" /> 2288 </attr> 2289 2290 <!-- Controls the auto-fill behavior for this view --> 2291 <attr name="autoFillMode"> 2292 <!-- Inherit the behavior from the parent. If there is no parent it is auto. --> 2293 <enum name="inherit" value="0" /> 2294 <!-- Allows this view to automatically trigger an auto-fill request when it get focus. 2295 --> 2296 <enum name="auto" value="1" /> 2297 <!-- The user has to manually force an auto-fill request for this view. --> 2298 <enum name="manual" value="2" /> 2299 </attr> 2300 2301 <!-- Boolean that controls whether a view can take focus while in touch mode. 2302 If this is true for a view, that view can gain focus when clicked on, and can keep 2303 focus if another view is clicked on that doesn't have this attribute set to true. --> 2304 <attr name="focusableInTouchMode" format="boolean" /> 2305 2306 <!-- Controls the initial visibility of the view. --> 2307 <attr name="visibility"> 2308 <!-- Visible on screen; the default value. --> 2309 <enum name="visible" value="0" /> 2310 <!-- Not displayed, but taken into account during layout (space is left for it). --> 2311 <enum name="invisible" value="1" /> 2312 <!-- Completely hidden, as if the view had not been added. --> 2313 <enum name="gone" value="2" /> 2314 </attr> 2315 2316 <!-- Boolean internal attribute to adjust view layout based on 2317 system windows such as the status bar. 2318 If true, adjusts the padding of this view to leave space for the system windows. 2319 Will only take effect if this view is in a non-embedded activity. --> 2320 <attr name="fitsSystemWindows" format="boolean" /> 2321 2322 <!-- Defines which scrollbars should be displayed on scrolling or not. --> 2323 <attr name="scrollbars"> 2324 <!-- No scrollbar is displayed. --> 2325 <flag name="none" value="0x00000000" /> 2326 <!-- Displays horizontal scrollbar only. --> 2327 <flag name="horizontal" value="0x00000100" /> 2328 <!-- Displays vertical scrollbar only. --> 2329 <flag name="vertical" value="0x00000200" /> 2330 </attr> 2331 2332 <!-- Controls the scrollbar style and position. The scrollbars can be overlaid or 2333 inset. When inset, they add to the padding of the view. And the 2334 scrollbars can be drawn inside the padding area or on the edge of 2335 the view. For example, if a view has a background drawable and you 2336 want to draw the scrollbars inside the padding specified by the 2337 drawable, you can use insideOverlay or insideInset. If you want them 2338 to appear at the edge of the view, ignoring the padding, then you can 2339 use outsideOverlay or outsideInset.--> 2340 <attr name="scrollbarStyle"> 2341 <!-- Inside the padding and overlaid --> 2342 <enum name="insideOverlay" value="0x0" /> 2343 <!-- Inside the padding and inset --> 2344 <enum name="insideInset" value="0x01000000" /> 2345 <!-- Edge of the view and overlaid --> 2346 <enum name="outsideOverlay" value="0x02000000" /> 2347 <!-- Edge of the view and inset --> 2348 <enum name="outsideInset" value="0x03000000" /> 2349 </attr> 2350 2351 <!-- Set this if the view will serve as a scrolling container, meaning 2352 that it can be resized to shrink its overall window so that there 2353 will be space for an input method. If not set, the default 2354 value will be true if "scrollbars" has the vertical scrollbar 2355 set, else it will be false. --> 2356 <attr name="isScrollContainer" format="boolean" /> 2357 2358 <!-- Defines whether to fade out scrollbars when they are not in use. --> 2359 <attr name="fadeScrollbars" format="boolean" /> 2360 <!-- Defines the delay in milliseconds that a scrollbar takes to fade out. --> 2361 <attr name="scrollbarFadeDuration" format="integer" /> 2362 <!-- Defines the delay in milliseconds that a scrollbar waits before fade out. --> 2363 <attr name="scrollbarDefaultDelayBeforeFade" format="integer" /> 2364 <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. --> 2365 <attr name="scrollbarSize" format="dimension" /> 2366 <!-- Defines the horizontal scrollbar thumb drawable. --> 2367 <attr name="scrollbarThumbHorizontal" format="reference" /> 2368 <!-- Defines the vertical scrollbar thumb drawable. --> 2369 <attr name="scrollbarThumbVertical" format="reference" /> 2370 <!-- Defines the horizontal scrollbar track drawable. --> 2371 <attr name="scrollbarTrackHorizontal" format="reference" /> 2372 <!-- Defines the vertical scrollbar track drawable. --> 2373 <attr name="scrollbarTrackVertical" format="reference" /> 2374 <!-- Defines whether the horizontal scrollbar track should always be drawn. --> 2375 <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" /> 2376 <!-- Defines whether the vertical scrollbar track should always be drawn. --> 2377 <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" /> 2378 2379 <!-- This attribute is ignored in API level 14 2380 ({@link android.os.Build.VERSION_CODES#ICE_CREAM_SANDWICH}) and higher. 2381 Using fading edges may introduce noticeable performance 2382 degradations and should be used only when required by the application's 2383 visual design. To request fading edges with API level 14 and above, 2384 use the <code>android:requiresFadingEdge</code> attribute instead. --> 2385 <attr name="fadingEdge"> 2386 <!-- No edge is faded. --> 2387 <flag name="none" value="0x00000000" /> 2388 <!-- Fades horizontal edges only. --> 2389 <flag name="horizontal" value="0x00001000" /> 2390 <!-- Fades vertical edges only. --> 2391 <flag name="vertical" value="0x00002000" /> 2392 </attr> 2393 <!-- Defines which edges should be faded on scrolling. --> 2394 <attr name="requiresFadingEdge"> 2395 <!-- No edge is faded. --> 2396 <flag name="none" value="0x00000000" /> 2397 <!-- Fades horizontal edges only. --> 2398 <flag name="horizontal" value="0x00001000" /> 2399 <!-- Fades vertical edges only. --> 2400 <flag name="vertical" value="0x00002000" /> 2401 </attr> 2402 <!-- Defines the length of the fading edges. --> 2403 <attr name="fadingEdgeLength" format="dimension" /> 2404 2405 <!-- Defines the next view to give focus to when the next focus is 2406 {@link android.view.View#FOCUS_LEFT}. 2407 2408 If the reference refers to a view that does not exist or is part 2409 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 2410 will result when the reference is accessed.--> 2411 <attr name="nextFocusLeft" format="reference"/> 2412 2413 <!-- Defines the next view to give focus to when the next focus is 2414 {@link android.view.View#FOCUS_RIGHT} 2415 2416 If the reference refers to a view that does not exist or is part 2417 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 2418 will result when the reference is accessed.--> 2419 <attr name="nextFocusRight" format="reference"/> 2420 2421 <!-- Defines the next view to give focus to when the next focus is 2422 {@link android.view.View#FOCUS_UP} 2423 2424 If the reference refers to a view that does not exist or is part 2425 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 2426 will result when the reference is accessed.--> 2427 <attr name="nextFocusUp" format="reference"/> 2428 2429 <!-- Defines the next view to give focus to when the next focus is 2430 {@link android.view.View#FOCUS_DOWN} 2431 2432 If the reference refers to a view that does not exist or is part 2433 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 2434 will result when the reference is accessed.--> 2435 <attr name="nextFocusDown" format="reference"/> 2436 2437 <!-- Defines the next view to give focus to when the next focus is 2438 {@link android.view.View#FOCUS_FORWARD} 2439 2440 If the reference refers to a view that does not exist or is part 2441 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 2442 will result when the reference is accessed.--> 2443 <attr name="nextFocusForward" format="reference"/> 2444 2445 <!-- Defines whether this view reacts to click events. --> 2446 <attr name="clickable" format="boolean" /> 2447 2448 <!-- Defines whether this view reacts to long click events. --> 2449 <attr name="longClickable" format="boolean" /> 2450 2451 <!-- Defines whether this view reacts to context click events. --> 2452 <attr name="contextClickable" format="boolean" /> 2453 2454 <!-- If false, no state will be saved for this view when it is being 2455 frozen. The default is true, allowing the view to be saved 2456 (however it also must have an ID assigned to it for its 2457 state to be saved). Setting this to false only disables the 2458 state for this view, not for its children which may still 2459 be saved. --> 2460 <attr name="saveEnabled" format="boolean" /> 2461 2462 <!-- Specifies whether to filter touches when the view's window is obscured by 2463 another visible window. When set to true, the view will not receive touches 2464 whenever a toast, dialog or other window appears above the view's window. 2465 Refer to the {@link android.view.View} security documentation for more details. --> 2466 <attr name="filterTouchesWhenObscured" format="boolean" /> 2467 2468 <!-- Defines the quality of translucent drawing caches. This property is used 2469 only when the drawing cache is enabled and translucent. The default value is auto. --> 2470 <attr name="drawingCacheQuality"> 2471 <!-- Lets the framework decide what quality level should be used 2472 for the drawing cache. --> 2473 <enum name="auto" value="0" /> 2474 <!-- Low quality. When set to low quality, the drawing cache uses a lower color 2475 depth, thus losing precision in rendering gradients, but uses less memory. --> 2476 <enum name="low" value="1" /> 2477 <!-- High quality. When set to high quality, the drawing cache uses a higher 2478 color depth but uses more memory. --> 2479 <enum name="high" value="2" /> 2480 </attr> 2481 2482 <!-- Controls whether the view's window should keep the screen on 2483 while visible. --> 2484 <attr name="keepScreenOn" format="boolean" /> 2485 2486 <!-- When this attribute is set to true, the view gets its drawable state 2487 (focused, pressed, etc.) from its direct parent rather than from itself. --> 2488 <attr name="duplicateParentState" format="boolean" /> 2489 2490 <!-- Defines the minimum height of the view. It is not guaranteed 2491 the view will be able to achieve this minimum height (for example, 2492 if its parent layout constrains it with less available height). --> 2493 <attr name="minHeight" /> 2494 2495 <!-- Defines the minimum width of the view. It is not guaranteed 2496 the view will be able to achieve this minimum width (for example, 2497 if its parent layout constrains it with less available width). --> 2498 <attr name="minWidth" /> 2499 2500 <!-- Boolean that controls whether a view should have sound effects 2501 enabled for events such as clicking and touching. --> 2502 <attr name="soundEffectsEnabled" format="boolean" /> 2503 2504 <!-- Boolean that controls whether a view should have haptic feedback 2505 enabled for events such as long presses. --> 2506 <attr name="hapticFeedbackEnabled" format="boolean" /> 2507 2508 <!-- Defines text that briefly describes content of the view. This property is used 2509 primarily for accessibility. Since some views do not have textual 2510 representation this attribute can be used for providing such. --> 2511 <attr name="contentDescription" format="string" localization="suggested" /> 2512 2513 <!-- Sets the id of a view before which this one is visited in accessibility traversal. 2514 A screen-reader must visit the content of this view before the content of the one 2515 it precedes. 2516 {@see android.view.View#setAccessibilityTraversalBefore(int)} --> 2517 <attr name="accessibilityTraversalBefore" format="integer" /> 2518 2519 <!-- Sets the id of a view after which this one is visited in accessibility traversal. 2520 A screen-reader must visit the content of the other view before the content of 2521 this one. 2522 {@see android.view.View#setAccessibilityTraversalAfter(int)} --> 2523 <attr name="accessibilityTraversalAfter" format="integer" /> 2524 2525 <!-- Name of the method in this View's context to invoke when the view is 2526 clicked. This name must correspond to a public method that takes 2527 exactly one parameter of type View. For instance, if you specify 2528 <code>android:onClick="sayHello"</code>, you must declare a 2529 <code>public void sayHello(View v)</code> method of your context 2530 (typically, your Activity). --> 2531 <attr name="onClick" format="string" /> 2532 2533 <!-- Defines over-scrolling behavior. This property is used only if the 2534 View is scrollable. Over-scrolling is the ability for the user to 2535 receive feedback when attempting to scroll beyond meaningful content. --> 2536 <attr name="overScrollMode"> 2537 <!-- Always show over-scroll effects, even if the content fits entirely 2538 within the available space. --> 2539 <enum name="always" value="0" /> 2540 <!-- Only show over-scroll effects if the content is large 2541 enough to meaningfully scroll. --> 2542 <enum name="ifContentScrolls" value="1" /> 2543 <!-- Never show over-scroll effects. --> 2544 <enum name="never" value="2" /> 2545 </attr> 2546 2547 <!-- alpha property of the view, as a value between 0 (completely transparent) and 1 2548 (completely opaque). --> 2549 <attr name="alpha" format="float" /> 2550 2551 <!-- base z depth of the view --> 2552 <attr name="elevation" format="dimension" /> 2553 2554 <!-- translation in x of the view. This value is added post-layout to the left 2555 property of the view, which is set by its layout. --> 2556 <attr name="translationX" format="dimension" /> 2557 2558 <!-- translation in y of the view. This value is added post-layout to the top 2559 property of the view, which is set by its layout. --> 2560 <attr name="translationY" format="dimension" /> 2561 2562 <!-- translation in z of the view. This value is added to its elevation. --> 2563 <attr name="translationZ" format="dimension" /> 2564 2565 <!-- x location of the pivot point around which the view will rotate and scale. 2566 This xml attribute sets the pivotX property of the View. --> 2567 <attr name="transformPivotX" format="dimension" /> 2568 2569 <!-- y location of the pivot point around which the view will rotate and scale. 2570 This xml attribute sets the pivotY property of the View. --> 2571 <attr name="transformPivotY" format="dimension" /> 2572 2573 <!-- rotation of the view, in degrees. --> 2574 <attr name="rotation" format="float" /> 2575 2576 <!-- rotation of the view around the x axis, in degrees. --> 2577 <attr name="rotationX" format="float" /> 2578 2579 <!-- rotation of the view around the y axis, in degrees. --> 2580 <attr name="rotationY" format="float" /> 2581 2582 <!-- scale of the view in the x direction. --> 2583 <attr name="scaleX" format="float" /> 2584 2585 <!-- scale of the view in the y direction. --> 2586 <attr name="scaleY" format="float" /> 2587 2588 <!-- Determines which side the vertical scroll bar should be placed on. --> 2589 <attr name="verticalScrollbarPosition"> 2590 <!-- Place the scroll bar wherever the system default determines. --> 2591 <enum name="defaultPosition" value="0" /> 2592 <!-- Place the scroll bar on the left. --> 2593 <enum name="left" value="1" /> 2594 <!-- Place the scroll bar on the right. --> 2595 <enum name="right" value="2" /> 2596 </attr> 2597 2598 <!-- Specifies the type of layer backing this view. The default value is none. 2599 Refer to {@link android.view.View#setLayerType(int, android.graphics.Paint)} 2600 for more information.--> 2601 <attr name="layerType"> 2602 <!-- Don't use a layer. --> 2603 <enum name="none" value="0" /> 2604 <!-- Use a software layer. Refer to 2605 {@link android.view.View#setLayerType(int, android.graphics.Paint)} for 2606 more information. --> 2607 <enum name="software" value="1" /> 2608 <!-- Use a hardware layer. Refer to 2609 {@link android.view.View#setLayerType(int, android.graphics.Paint)} for 2610 more information. --> 2611 <enum name="hardware" value="2" /> 2612 </attr> 2613 2614 <!-- Defines the direction of layout drawing. This typically is associated with writing 2615 direction of the language script used. The possible values are "ltr" for Left-to-Right, 2616 "rtl" for Right-to-Left, "locale", and "inherit" from parent view. If there is nothing 2617 to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction 2618 used in "en-US". The default for this attribute is "inherit". --> 2619 <attr name="layoutDirection"> 2620 <!-- Left-to-Right --> 2621 <enum name="ltr" value="0" /> 2622 <!-- Right-to-Left --> 2623 <enum name="rtl" value="1" /> 2624 <!-- Inherit from parent --> 2625 <enum name="inherit" value="2" /> 2626 <!-- Locale --> 2627 <enum name="locale" value="3" /> 2628 </attr> 2629 2630 <!-- Defines the direction of the text. --> 2631 <attr name="textDirection" format="integer"> 2632 <!-- Default --> 2633 <enum name="inherit" value="0" /> 2634 <!-- Default for the root view. The first strong directional character determines the 2635 paragraph direction. If there is no strong directional character, the paragraph 2636 direction is the view’s resolved layout direction. --> 2637 <enum name="firstStrong" value="1" /> 2638 <!-- The paragraph direction is RTL if it contains any strong RTL character, otherwise 2639 it is LTR if it contains any strong LTR characters. If there are neither, the 2640 paragraph direction is the view’s resolved layout direction. --> 2641 <enum name="anyRtl" value="2" /> 2642 <!-- The paragraph direction is left to right. --> 2643 <enum name="ltr" value="3" /> 2644 <!-- The paragraph direction is right to left. --> 2645 <enum name="rtl" value="4" /> 2646 <!-- The paragraph direction is coming from the system Locale. --> 2647 <enum name="locale" value="5" /> 2648 <!-- The first strong directional character determines the paragraph direction. If 2649 there is no strong directional character, the paragraph direction is LTR. --> 2650 <enum name="firstStrongLtr" value="6" /> 2651 <!-- The first strong directional character determines the paragraph direction. If 2652 there is no strong directional character, the paragraph direction is RTL. --> 2653 <enum name="firstStrongRtl" value="7" /> 2654 </attr> 2655 2656 <!-- Defines the alignment of the text. --> 2657 <attr name="textAlignment" format="integer"> 2658 <!-- Default --> 2659 <enum name="inherit" value="0" /> 2660 <!-- Default for the root view. The gravity determines the alignment, ALIGN_NORMAL, 2661 ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s 2662 text direction --> 2663 <enum name="gravity" value="1" /> 2664 <!-- Align to the start of the paragraph, e.g. ALIGN_NORMAL. --> 2665 <enum name="textStart" value="2" /> 2666 <!-- Align to the end of the paragraph, e.g. ALIGN_OPPOSITE. --> 2667 <enum name="textEnd" value="3" /> 2668 <!-- Center the paragraph, e.g. ALIGN_CENTER. --> 2669 <enum name="center" value="4" /> 2670 <!-- Align to the start of the view, which is ALIGN_LEFT if the view’s resolved 2671 layoutDirection is LTR, and ALIGN_RIGHT otherwise. --> 2672 <enum name="viewStart" value="5" /> 2673 <!-- Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved 2674 layoutDirection is LTR, and ALIGN_LEFT otherwise --> 2675 <enum name="viewEnd" value="6" /> 2676 </attr> 2677 2678 <!-- Describes whether or not this view is important for accessibility. 2679 If it is important, the view fires accessibility events and is 2680 reported to accessibility services that query the screen. Note: 2681 While not recommended, an accessibility service may decide to 2682 ignore this attribute and operate on all views in the view tree. --> 2683 <attr name="importantForAccessibility" format="integer"> 2684 <!-- The system determines whether the view is important for accessibility - default 2685 (recommended). --> 2686 <enum name="auto" value="0" /> 2687 <!-- The view is important for accessibility. --> 2688 <enum name="yes" value="1" /> 2689 <!-- The view is not important for accessibility. --> 2690 <enum name="no" value="2" /> 2691 <!-- The view is not important for accessibility, nor are any of its descendant 2692 views. --> 2693 <enum name="noHideDescendants" value="4" /> 2694 </attr> 2695 2696 <!-- Indicates to accessibility services whether the user should be notified when 2697 this view changes. --> 2698 <attr name="accessibilityLiveRegion" format="integer"> 2699 <!-- Accessibility services should not announce changes to this view. --> 2700 <enum name="none" value="0" /> 2701 <!-- Accessibility services should announce changes to this view. --> 2702 <enum name="polite" value="1" /> 2703 <!-- Accessibility services should interrupt ongoing speech to immediately 2704 announce changes to this view. --> 2705 <enum name="assertive" value="2" /> 2706 </attr> 2707 2708 <!-- Specifies the id of a view for which this view serves as a label for 2709 accessibility purposes. For example, a TextView before an EditText in 2710 the UI usually specifies what infomation is contained in the EditText. 2711 Hence, the TextView is a label for the EditText. --> 2712 <attr name="labelFor" format="reference" /> 2713 2714 <!-- Specifies a theme override for a view. When a theme override is set, the 2715 view will be inflated using a {@link android.content.Context} themed with 2716 the specified resource. During XML inflation, any child views under the 2717 view with a theme override will inherit the themed context. --> 2718 <attr name="theme" /> 2719 2720 <!-- Names a View such that it can be identified for Transitions. Names should be 2721 unique in the View hierarchy. --> 2722 <attr name="transitionName" format="string" /> 2723 2724 <!-- Specifies that this view should permit nested scrolling within a compatible 2725 ancestor view. --> 2726 <attr name="nestedScrollingEnabled" format="boolean" /> 2727 2728 <!-- Sets the state-based animator for the View. --> 2729 <attr name="stateListAnimator" format="reference"/> 2730 2731 <!-- Tint to apply to the background. --> 2732 <attr name="backgroundTint" format="color" /> 2733 2734 <!-- Blending mode used to apply the background tint. --> 2735 <attr name="backgroundTintMode"> 2736 <!-- The tint is drawn on top of the drawable. 2737 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 2738 <enum name="src_over" value="3" /> 2739 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 2740 color channels are thrown out. [Sa * Da, Sc * Da] --> 2741 <enum name="src_in" value="5" /> 2742 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 2743 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 2744 <enum name="src_atop" value="9" /> 2745 <!-- Multiplies the color and alpha channels of the drawable with those of 2746 the tint. [Sa * Da, Sc * Dc] --> 2747 <enum name="multiply" value="14" /> 2748 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 2749 <enum name="screen" value="15" /> 2750 <!-- Combines the tint and drawable color and alpha channels, clamping the 2751 result to valid color values. Saturate(S + D) --> 2752 <enum name="add" value="16" /> 2753 </attr> 2754 2755 <!-- ViewOutlineProvider used to determine the View's Outline. --> 2756 <attr name="outlineProvider"> 2757 <!-- Default, background drawable-driven outline. --> 2758 <enum name="background" value="0" /> 2759 <!-- No outline provider. --> 2760 <enum name="none" value="1" /> 2761 <!-- Generates an opaque outline for the bounds of the view. --> 2762 <enum name="bounds" value="2" /> 2763 <!-- Generates an opaque outline for the padded bounds of the view. --> 2764 <enum name="paddedBounds" value="3" /> 2765 </attr> 2766 2767 <!-- Defines the drawable to draw over the content. This can be used as an overlay. 2768 The foreground drawable participates in the padding of the content if the gravity 2769 is set to fill. --> 2770 <attr name="foreground" format="reference|color" /> 2771 <!-- Defines the gravity to apply to the foreground drawable. The gravity defaults 2772 to fill. --> 2773 <attr name="foregroundGravity"> 2774 <!-- Push object to the top of its container, not changing its size. --> 2775 <flag name="top" value="0x30" /> 2776 <!-- Push object to the bottom of its container, not changing its size. --> 2777 <flag name="bottom" value="0x50" /> 2778 <!-- Push object to the left of its container, not changing its size. --> 2779 <flag name="left" value="0x03" /> 2780 <!-- Push object to the right of its container, not changing its size. --> 2781 <flag name="right" value="0x05" /> 2782 <!-- Place object in the vertical center of its container, not changing its size. --> 2783 <flag name="center_vertical" value="0x10" /> 2784 <!-- Grow the vertical size of the object if needed so it completely fills its container. --> 2785 <flag name="fill_vertical" value="0x70" /> 2786 <!-- Place object in the horizontal center of its container, not changing its size. --> 2787 <flag name="center_horizontal" value="0x01" /> 2788 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 2789 <flag name="fill_horizontal" value="0x07" /> 2790 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> 2791 <flag name="center" value="0x11" /> 2792 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> 2793 <flag name="fill" value="0x77" /> 2794 <!-- Additional option that can be set to have the top and/or bottom edges of 2795 the child clipped to its container's bounds. 2796 The clip will be based on the vertical gravity: a top gravity will clip the bottom 2797 edge, a bottom gravity will clip the top edge, and neither will clip both edges. --> 2798 <flag name="clip_vertical" value="0x80" /> 2799 <!-- Additional option that can be set to have the left and/or right edges of 2800 the child clipped to its container's bounds. 2801 The clip will be based on the horizontal gravity: a left gravity will clip the right 2802 edge, a right gravity will clip the left edge, and neither will clip both edges. --> 2803 <flag name="clip_horizontal" value="0x08" /> 2804 </attr> 2805 <!-- Defines whether the foreground drawable should be drawn inside the padding. 2806 This property is turned on by default. --> 2807 <attr name="foregroundInsidePadding" format="boolean" /> 2808 <!-- Tint to apply to the foreground. --> 2809 <attr name="foregroundTint" format="color" /> 2810 <!-- Blending mode used to apply the foreground tint. --> 2811 <attr name="foregroundTintMode"> 2812 <!-- The tint is drawn on top of the drawable. 2813 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 2814 <enum name="src_over" value="3" /> 2815 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 2816 color channels are thrown out. [Sa * Da, Sc * Da] --> 2817 <enum name="src_in" value="5" /> 2818 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 2819 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 2820 <enum name="src_atop" value="9" /> 2821 <!-- Multiplies the color and alpha channels of the drawable with those of 2822 the tint. [Sa * Da, Sc * Dc] --> 2823 <enum name="multiply" value="14" /> 2824 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 2825 <enum name="screen" value="15" /> 2826 <!-- Combines the tint and drawable color and alpha channels, clamping the 2827 result to valid color values. Saturate(S + D) --> 2828 <enum name="add" value="16" /> 2829 </attr> 2830 2831 <!-- Defines which scroll indicators should be displayed when the view 2832 can be scrolled. Multiple values may be combined using logical OR, 2833 for example "top|bottom". --> 2834 <attr name="scrollIndicators"> 2835 <!-- No scroll indicators are displayed. --> 2836 <flag name="none" value="0x00" /> 2837 <!-- Displays top scroll indicator when view can be scrolled up. --> 2838 <flag name="top" value="0x01" /> 2839 <!-- Displays bottom scroll indicator when vew can be scrolled down. --> 2840 <flag name="bottom" value="0x02" /> 2841 <!-- Displays left scroll indicator when vew can be scrolled left. --> 2842 <flag name="left" value="0x04" /> 2843 <!-- Displays right scroll indicator when vew can be scrolled right. --> 2844 <flag name="right" value="0x08" /> 2845 <!-- Displays right scroll indicator when vew can be scrolled in the 2846 start direction. --> 2847 <flag name="start" value="0x10" /> 2848 <!-- Displays right scroll indicator when vew can be scrolled in the 2849 end direction. --> 2850 <flag name="end" value="0x20" /> 2851 </attr> 2852 2853 <attr name="pointerIcon"> 2854 <!-- Null icon, pointer becomes invisible. --> 2855 <enum name="none" value="0" /> 2856 <!-- The default icon of arrow pointer. --> 2857 <enum name="arrow" value="1000" /> 2858 <!-- Pointer icon indicating context-menu will appear. --> 2859 <enum name="context_menu" value="1001" /> 2860 <!-- Pointer icon of a hand with the index finger. --> 2861 <enum name="hand" value="1002" /> 2862 <!-- Pointer icon indicating help. --> 2863 <enum name="help" value="1003" /> 2864 <!-- Pointer icon indicating something is going on and waiting. --> 2865 <enum name="wait" value="1004" /> 2866 <!-- Pointer icon for cell and grid. --> 2867 <enum name="cell" value="1006" /> 2868 <!-- Pointer icon of crosshair, indicating to spot a location. --> 2869 <enum name="crosshair" value="1007" /> 2870 <!-- Pointer icon of I-beam, usually for text. --> 2871 <enum name="text" value="1008" /> 2872 <!-- Pointer icon of I-beam with 90-degree rotated, for vertical text. --> 2873 <enum name="vertical_text" value="1009" /> 2874 <!-- Pointer icon of 'alias', indicating an alias of/shortcut to something is to be 2875 created. --> 2876 <enum name="alias" value="1010" /> 2877 <!-- Pointer icon of 'copy', used for drag/drop. --> 2878 <enum name="copy" value="1011" /> 2879 <!-- Pointer icon of 'no-drop', indicating the drop will not be accepted at the 2880 current location. --> 2881 <enum name="no_drop" value="1012" /> 2882 <!-- Pointer icon of four-way arrows, indicating scrolling all direction. --> 2883 <enum name="all_scroll" value="1013" /> 2884 <!-- Pointer icon of horizontal double arrow, indicating horizontal resize. --> 2885 <enum name="horizontal_double_arrow" value="1014" /> 2886 <!-- Pointer icon of vertical double arrow, indicating vertical resize. --> 2887 <enum name="vertical_double_arrow" value="1015" /> 2888 <!-- Pointer icon of diagonal double arrow, starting from top-right to bottom-left. 2889 Indicating freeform resize. --> 2890 <enum name="top_right_diagonal_double_arrow" value="1016" /> 2891 <!-- Pointer icon of diagonal double arrow, starting from top-left to bottom-right. 2892 Indicating freeform resize. --> 2893 <enum name="top_left_diagonal_double_arrow" value="1017" /> 2894 <!-- Pointer icon indicating zoom-in. --> 2895 <enum name="zoom_in" value="1018" /> 2896 <!-- Pointer icon indicating zoom-out. --> 2897 <enum name="zoom_out" value="1019" /> 2898 <!-- Pointer icon of a hand sign to grab something. --> 2899 <enum name="grab" value="1020" /> 2900 <!-- Pointer icon of a hand sign while grabbing something. --> 2901 <enum name="grabbing" value="1021" /> 2902 </attr> 2903 2904 <!-- Whether this view has elements that may overlap when drawn. See 2905 {@link android.view.View#forceHasOverlappingRendering(boolean)}. --> 2906 <attr name="forceHasOverlappingRendering" format="boolean" /> 2907 2908 <!-- Defines text displayed in a small popup window on hover or long press. --> 2909 <attr name="tooltipText" format="string" localization="suggested" /> 2910 2911 <!-- Whether this view is a root of a keyboard navigation cluster. 2912 See {@link android.view.View#setKeyboardNavigationCluster(boolean)}. --> 2913 <attr name="keyboardNavigationCluster" format="boolean" /> 2914 2915 <attr name="__removed0" format="boolean" /> 2916 2917 <!-- Defines the next keyboard navigation cluster. 2918 2919 If the reference refers to a view that does not exist or is part 2920 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 2921 will result when the reference is accessed.--> 2922 <attr name="nextClusterForward" format="reference"/> 2923 2924 <attr name="__removed1" format="reference"/> 2925 2926 <!-- Whether this view is a default-focus view. 2927 Only one view per keyboard navigation cluster can have this attribute set to true. 2928 See {@link android.view.View#setFocusedByDefault(boolean)}. --> 2929 <attr name="focusedByDefault" format="boolean" /> 2930 2931 </declare-styleable> 2932 2933 <!-- Attributes that can be assigned to a tag for a particular View. --> 2934 <declare-styleable name="ViewTag"> 2935 <!-- Specifies the key identifying a tag. This must be a resource reference. --> 2936 <attr name="id" /> 2937 <!-- Specifies the value with which to tag the view. --> 2938 <attr name="value" /> 2939 </declare-styleable> 2940 2941 <!-- Attributes that can be assigned to an <include> tag. 2942 @hide --> 2943 <declare-styleable name="Include"> 2944 <attr name="id" /> 2945 <attr name="visibility" /> 2946 </declare-styleable> 2947 2948 <!-- Attributes that can be used with a {@link android.view.ViewGroup} or any 2949 of its subclasses. Also see {@link #ViewGroup_Layout} for 2950 attributes that this class processes in its children. --> 2951 <declare-styleable name="ViewGroup"> 2952 <!-- Defines whether changes in layout (caused by adding and removing items) should 2953 cause a LayoutTransition to run. When this flag is set to true, a default 2954 LayoutTransition object will be set on the ViewGroup container and default 2955 animations will run when these layout changes occur.--> 2956 <attr name="animateLayoutChanges" format="boolean" /> 2957 <!-- Defines whether a child is limited to draw inside of its bounds or not. 2958 This is useful with animations that scale the size of the children to more 2959 than 100% for instance. In such a case, this property should be set to false 2960 to allow the children to draw outside of their bounds. The default value of 2961 this property is true. --> 2962 <attr name="clipChildren" format="boolean" /> 2963 <!-- Defines whether the ViewGroup will clip its children and resize (but not clip) any 2964 EdgeEffect to its padding, if padding is not zero. This property is set to true by 2965 default. --> 2966 <attr name="clipToPadding" format="boolean" /> 2967 <!-- Defines the layout animation to use the first time the ViewGroup is laid out. 2968 Layout animations can also be started manually after the first layout. --> 2969 <attr name="layoutAnimation" format="reference" /> 2970 <!-- Defines whether layout animations should create a drawing cache for their 2971 children. Enabling the animation cache consumes more memory and requires 2972 a longer initialization but provides better performance. The animation 2973 cache is enabled by default. --> 2974 <attr name="animationCache" format="boolean" /> 2975 <!-- Defines the persistence of the drawing cache. The drawing cache might be 2976 enabled by a ViewGroup for all its children in specific situations (for 2977 instance during a scrolling.) This property lets you persist the cache 2978 in memory after its initial usage. Persisting the cache consumes more 2979 memory but may prevent frequent garbage collection is the cache is created 2980 over and over again. By default the persistence is set to scrolling. --> 2981 <attr name="persistentDrawingCache"> 2982 <!-- The drawing cache is not persisted after use. --> 2983 <flag name="none" value="0x0" /> 2984 <!-- The drawing cache is persisted after a layout animation. --> 2985 <flag name="animation" value="0x1" /> 2986 <!-- The drawing cache is persisted after a scroll. --> 2987 <flag name="scrolling" value="0x2" /> 2988 <!-- The drawing cache is always persisted. --> 2989 <flag name="all" value="0x3" /> 2990 </attr> 2991 <!-- Defines whether the ViewGroup should always draw its children using their 2992 drawing cache or not. The default value is true. --> 2993 <attr name="alwaysDrawnWithCache" format="boolean" /> 2994 <!-- Sets whether this ViewGroup's drawable states also include 2995 its children's drawable states. This is used, for example, to 2996 make a group appear to be focused when its child EditText or button 2997 is focused. --> 2998 <attr name="addStatesFromChildren" format="boolean" /> 2999 3000 <!-- Defines the relationship between the ViewGroup and its descendants 3001 when looking for a View to take focus. --> 3002 <attr name="descendantFocusability"> 3003 <!-- The ViewGroup will get focus before any of its descendants. --> 3004 <enum name="beforeDescendants" value="0" /> 3005 <!-- The ViewGroup will get focus only if none of its descendants want it. --> 3006 <enum name="afterDescendants" value="1" /> 3007 <!-- The ViewGroup will block its descendants from receiving focus. --> 3008 <enum name="blocksDescendants" value="2" /> 3009 </attr> 3010 3011 <!-- Set to true if this ViewGroup blocks focus in the presence of a touchscreen. --> 3012 <attr name="touchscreenBlocksFocus" format="boolean" /> 3013 3014 <!-- Sets whether this ViewGroup should split MotionEvents 3015 to separate child views during touch event dispatch. 3016 If false (default), touch events will be dispatched to 3017 the child view where the first pointer went down until 3018 the last pointer goes up. 3019 If true, touch events may be dispatched to multiple children. 3020 MotionEvents for each pointer will be dispatched to the child 3021 view where the initial ACTION_DOWN event happened. 3022 See {@link android.view.ViewGroup#setMotionEventSplittingEnabled(boolean)} 3023 for more information. --> 3024 <attr name="splitMotionEvents" format="boolean" /> 3025 3026 <!-- Defines the layout mode of this ViewGroup. --> 3027 <attr name="layoutMode"> 3028 <!-- Use the children's clip bounds when laying out this container. --> 3029 <enum name="clipBounds" value="0" /> 3030 <!-- Use the children's optical bounds when laying out this container. --> 3031 <enum name="opticalBounds" value="1" /> 3032 </attr> 3033 3034 <!-- Sets whether or not this ViewGroup should be treated as a single entity 3035 when doing an Activity transition. Typically, the elements inside a 3036 ViewGroup are each transitioned from the scene individually. The default 3037 for a ViewGroup is false unless it has a background. See 3038 {@link android.app.ActivityOptions#makeSceneTransitionAnimation(android.app.Activity, 3039 android.view.View, String)} for more information. Corresponds to 3040 {@link android.view.ViewGroup#setTransitionGroup(boolean)}.--> 3041 <attr name="transitionGroup" format="boolean" /> 3042 </declare-styleable> 3043 3044 <!-- A {@link android.view.ViewStub} lets you lazily include other XML layouts 3045 inside your application at runtime. --> 3046 <declare-styleable name="ViewStub"> 3047 <!-- Supply an identifier name for this view. --> 3048 <attr name="id" /> 3049 <!-- Supply an identifier for the layout resource to inflate when the ViewStub 3050 becomes visible or when forced to do so. The layout resource must be a 3051 valid reference to a layout. --> 3052 <attr name="layout" format="reference" /> 3053 <!-- Overrides the id of the inflated View with this value. --> 3054 <attr name="inflatedId" format="reference" /> 3055 </declare-styleable> 3056 3057 <!-- ===================================== --> 3058 <!-- View package parent layout attributes --> 3059 <!-- ===================================== --> 3060 <eat-comment /> 3061 3062 <!-- This is the basic set of layout attributes that are common to all 3063 layout managers. These attributes are specified with the rest of 3064 a view's normal attributes (such as {@link android.R.attr#background}, 3065 but will be parsed by the view's parent and ignored by the child. 3066 <p>The values defined here correspond to the base layout attribute 3067 class {@link android.view.ViewGroup.LayoutParams}. --> 3068 <declare-styleable name="ViewGroup_Layout"> 3069 <!-- Specifies the basic width of the view. This is a required attribute 3070 for any view inside of a containing layout manager. Its value may 3071 be a dimension (such as "12dip") for a constant width or one of 3072 the special constants. --> 3073 <attr name="layout_width" format="dimension"> 3074 <!-- The view should be as big as its parent (minus padding). 3075 This constant is deprecated starting from API Level 8 and 3076 is replaced by {@code match_parent}. --> 3077 <enum name="fill_parent" value="-1" /> 3078 <!-- The view should be as big as its parent (minus padding). 3079 Introduced in API Level 8. --> 3080 <enum name="match_parent" value="-1" /> 3081 <!-- The view should be only big enough to enclose its content (plus padding). --> 3082 <enum name="wrap_content" value="-2" /> 3083 </attr> 3084 3085 <!-- Specifies the basic height of the view. This is a required attribute 3086 for any view inside of a containing layout manager. Its value may 3087 be a dimension (such as "12dip") for a constant height or one of 3088 the special constants. --> 3089 <attr name="layout_height" format="dimension"> 3090 <!-- The view should be as big as its parent (minus padding). 3091 This constant is deprecated starting from API Level 8 and 3092 is replaced by {@code match_parent}. --> 3093 <enum name="fill_parent" value="-1" /> 3094 <!-- The view should be as big as its parent (minus padding). 3095 Introduced in API Level 8. --> 3096 <enum name="match_parent" value="-1" /> 3097 <!-- The view should be only big enough to enclose its content (plus padding). --> 3098 <enum name="wrap_content" value="-2" /> 3099 </attr> 3100 </declare-styleable> 3101 3102 <!-- This is the basic set of layout attributes for layout managers that 3103 wish to place margins around their child views. 3104 These attributes are specified with the rest of 3105 a view's normal attributes (such as {@link android.R.attr#background}, 3106 but will be parsed by the view's parent and ignored by the child. 3107 <p>The values defined here correspond to the base layout attribute 3108 class {@link android.view.ViewGroup.MarginLayoutParams}. --> 3109 <declare-styleable name="ViewGroup_MarginLayout"> 3110 <attr name="layout_width" /> 3111 <attr name="layout_height" /> 3112 <!-- Specifies extra space on the left, top, right and bottom 3113 sides of this view. If both layout_margin and any of layout_marginLeft, 3114 layout_marginRight, layout_marginStart, layout_marginEnd, 3115 layout_marginTop, and layout_marginBottom are 3116 also specified, the layout_margin value will take precedence over the 3117 edge-specific values. This space is outside this view's bounds. 3118 Margin values should be positive. --> 3119 <attr name="layout_margin" format="dimension" /> 3120 <!-- Specifies extra space on the left side of this view. 3121 This space is outside this view's bounds. 3122 Margin values should be positive. --> 3123 <attr name="layout_marginLeft" format="dimension" /> 3124 <!-- Specifies extra space on the top side of this view. 3125 This space is outside this view's bounds. 3126 Margin values should be positive.--> 3127 <attr name="layout_marginTop" format="dimension" /> 3128 <!-- Specifies extra space on the right side of this view. 3129 This space is outside this view's bounds. 3130 Margin values should be positive.--> 3131 <attr name="layout_marginRight" format="dimension" /> 3132 <!-- Specifies extra space on the bottom side of this view. 3133 This space is outside this view's bounds. 3134 Margin values should be positive.--> 3135 <attr name="layout_marginBottom" format="dimension" /> 3136 <!-- Specifies extra space on the start side of this view. 3137 This space is outside this view's bounds. 3138 Margin values should be positive.--> 3139 <attr name="layout_marginStart" format="dimension" /> 3140 <!-- Specifies extra space on the end side of this view. 3141 This space is outside this view's bounds. 3142 Margin values should be positive.--> 3143 <attr name="layout_marginEnd" format="dimension" /> 3144 <!-- Specifies extra space on the left and right sides of this view. 3145 Specifying layout_marginHorizontal is equivalent to specifying 3146 either layout_marginLeft and layout_marginRight or 3147 layout_marginStart and layout_marginEnd with that same value. 3148 If both layout_marginHorizontal and any of layout_marginLeft, 3149 layout_marginRight, layout_marginStart, and layout_marginEnd are 3150 also specified, the layout_marginHorizontal value will take precedence over the 3151 edge-specific values. Also, layout_margin will always take precendent over 3152 any of these values, including layout_marginHorizontal. 3153 This space is outside this view's bounds. 3154 Margin values should be positive.--> 3155 <attr name="layout_marginHorizontal" format="dimension" /> 3156 <!-- Specifies extra space on the tyop and bottom sides of this view. 3157 Specifying layout_marginVertical is equivalent to specifying 3158 layout_marginTop and layout_marginBottom with that same value. 3159 If both layout_marginVertical and either/both layout_marginTop and 3160 layout_marginBottom are also specified, the layout_marginVertical value 3161 will take precedence over the edge-specific values. 3162 Also, layout_margin will always take precendent over 3163 any of these values, including layout_marginHorizontal. 3164 This space is outside this view's bounds. 3165 Margin values should be positive.--> 3166 <attr name="layout_marginVertical" format="dimension" /> 3167 </declare-styleable> 3168 3169 <!-- Use <code>input-method</code> as the root tag of the XML resource that 3170 describes an 3171 {@link android.view.inputmethod.InputMethod} service, which is 3172 referenced from its 3173 {@link android.view.inputmethod.InputMethod#SERVICE_META_DATA} 3174 meta-data entry. Described here are the attributes that can be 3175 included in that tag. --> 3176 <declare-styleable name="InputMethod"> 3177 <!-- Component name of an activity that allows the user to modify 3178 the settings for this service. --> 3179 <attr name="settingsActivity" format="string" /> 3180 <!-- Set to true in all of the configurations for which this input 3181 method should be considered an option as the default. --> 3182 <attr name="isDefault" format="boolean" /> 3183 <!-- Set to true if this input method supports ways to switch to 3184 a next input method (e.g. a globe key.). When this is true and 3185 InputMethodManager#shouldOfferSwitchingToNextInputMethod() returns true, 3186 the IME has to offer ways to invoke InputMethodManager#switchToNextInputMethod() 3187 accordingly. 3188 <p> Note that the system determines the most appropriate next input method 3189 and subtype in order to provide the consistent user experience in switching 3190 between IMEs and subtypes. --> 3191 <attr name="supportsSwitchingToNextInputMethod" format="boolean" /> 3192 <!-- Set to true if this input method supports ways to dismiss the windows assigned to 3193 the input method (e.g. a dismiss button rendered by the input method itself). The 3194 System UI may optimize the UI by not showing system-level dismiss button if this 3195 value is true. 3196 <p> Must be a boolean value, either "true" or "false". The default value is "false". 3197 <p> This may also be a reference to a resource (in the form "@[package:]type:name") 3198 or theme attribute (in the form "?[package:]type:name") containing a value of this 3199 type. 3200 <p> A UI element that dismisses the input method window should report 3201 {@link android.view.accessibility.AccessibilityNodeInfo#ACTION_DISMISS} action, so 3202 that accessibility services can handle it accordingly. --> 3203 <attr name="supportsDismissingWindow" format="boolean" /> 3204 </declare-styleable> 3205 3206 <!-- This is the subtype of InputMethod. Subtype can describe locales (e.g. en_US, fr_FR...) 3207 and modes (e.g. voice, keyboard...), and is used for IME switch. This subtype allows 3208 the system to call the specified subtype of the IME directly. --> 3209 <declare-styleable name="InputMethod_Subtype"> 3210 <!-- The name of the subtype. --> 3211 <attr name="label" /> 3212 <!-- The icon of the subtype. --> 3213 <attr name="icon" /> 3214 <!-- The locale of the subtype. This string should be a locale (e.g. en_US, fr_FR...) 3215 and will be passed to the IME when the framework calls the IME 3216 with the subtype. This is also used by the framework to know the supported locales 3217 of the IME. --> 3218 <attr name="imeSubtypeLocale" format="string" /> 3219 <!-- The mode of the subtype. This string can be a mode (e.g. voice, keyboard...) and this 3220 string will be passed to the IME when the framework calls the IME with the 3221 subtype. {@link android.view.inputmethod.InputMethodSubtype#getLocale()} returns the 3222 value specified in this attribute. --> 3223 <attr name="imeSubtypeMode" format="string" /> 3224 <!-- Set true if the subtype is auxiliary. An auxiliary subtype won't be shown in the 3225 input method selection list in the settings app. 3226 InputMethodManager#switchToLastInputMethod will ignore auxiliary subtypes when it 3227 chooses a target subtype. --> 3228 <attr name="isAuxiliary" format="boolean" /> 3229 <!-- Set true when this subtype should be selected by default if no other subtypes are 3230 selected explicitly. Note that a subtype with this parameter being true will 3231 not be shown in the subtypes list. --> 3232 <attr name="overridesImplicitlyEnabledSubtype" format="boolean" /> 3233 <!-- The extra value of the subtype. This string can be any string and will be passed to 3234 the IME when the framework calls the IME with the subtype. --> 3235 <attr name="imeSubtypeExtraValue" format="string" /> 3236 <!-- The unique id for the subtype. The input method framework keeps track of enabled 3237 subtypes by ID. When the IME package gets upgraded, enabled IDs will stay enabled even 3238 if other attributes are different. If the ID is unspecified (by calling the other 3239 constructor or 0. Arrays.hashCode(new Object[] {locale, mode, extraValue, 3240 isAuxiliary, overridesImplicitlyEnabledSubtype}) will be used instead. --> 3241 <attr name="subtypeId" format="integer"/> 3242 <!-- Set to true if this subtype is ASCII capable. If the subtype is ASCII 3243 capable, it should guarantee that the user can input ASCII characters with 3244 this subtype. This is important because many password fields only allow 3245 ASCII-characters. --> 3246 <attr name="isAsciiCapable" format="boolean" /> 3247 <!-- The BCP-47 Language Tag of the subtype. This replaces 3248 {@link android.R.styleable#InputMethod_Subtype_imeSubtypeLocale}. --> 3249 <attr name="languageTag" format="string" /> 3250 </declare-styleable> 3251 3252 <!-- Use <code>spell-checker</code> as the root tag of the XML resource that 3253 describes an 3254 {@link android.service.textservice.SpellCheckerService} service, which is 3255 referenced from its 3256 {@link android.view.textservice.SpellCheckerSession#SERVICE_META_DATA} 3257 meta-data entry. Described here are the attributes that can be 3258 included in that tag. --> 3259 <declare-styleable name="SpellChecker"> 3260 <!-- The name of the spell checker. --> 3261 <attr name="label" /> 3262 <!-- Component name of an activity that allows the user to modify 3263 the settings for this service. --> 3264 <attr name="settingsActivity"/> 3265 </declare-styleable> 3266 3267 <!-- This is the subtype of the spell checker. Subtype can describe locales (e.g. en_US, fr_FR...) --> 3268 <declare-styleable name="SpellChecker_Subtype"> 3269 <!-- The name of the subtype. --> 3270 <attr name="label" /> 3271 <!-- The locale of the subtype. This string should be a locale (e.g. en_US, fr_FR...) 3272 This is also used by the framework to know the supported locales 3273 of the spell checker. {@link android.view.textservice.SpellCheckerSubtype#getLocale()} 3274 returns the value specified in this attribute. --> 3275 <attr name="subtypeLocale" format="string" /> 3276 <!-- The extra value of the subtype. This string can be any string and will be passed to 3277 the SpellChecker. --> 3278 <attr name="subtypeExtraValue" format="string" /> 3279 <!-- The unique id for the subtype. The text service (spell checker) framework keeps track 3280 of enabled subtypes by ID. When the spell checker package gets upgraded, enabled IDs 3281 will stay enabled even if other attributes are different. If the ID is unspecified or 3282 explicitly specified to 0 in XML resources, 3283 {@code Arrays.hashCode(new Object[] {subtypeLocale, extraValue})} will be used instead. 3284 --> 3285 <attr name="subtypeId" /> 3286 <!-- The BCP-47 Language Tag of the subtype. This replaces 3287 {@link android.R.styleable#SpellChecker_Subtype_subtypeLocale}. --> 3288 <attr name="languageTag" /> 3289 </declare-styleable> 3290 3291 <!-- Use <code>accessibility-service</code> as the root tag of the XML resource that 3292 describes an {@link android.accessibilityservice.AccessibilityService} service, 3293 which is referenced from its 3294 {@link android.accessibilityservice.AccessibilityService#SERVICE_META_DATA} 3295 meta-data entry. --> 3296 <declare-styleable name="AccessibilityService"> 3297 <!-- The event types this serivce would like to receive as specified in 3298 {@link android.view.accessibility.AccessibilityEvent}. This setting 3299 can be changed at runtime by calling 3300 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo) 3301 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. --> 3302 <attr name="accessibilityEventTypes"> 3303 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_CLICKED} events.--> 3304 <flag name="typeViewClicked" value="0x00000001" /> 3305 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_LONG_CLICKED} events. --> 3306 <flag name="typeViewLongClicked" value="0x00000002" /> 3307 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_SELECTED} events. --> 3308 <flag name="typeViewSelected" value="0x00000004" /> 3309 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_FOCUSED} events. --> 3310 <flag name="typeViewFocused" value="0x00000008" /> 3311 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED} events. --> 3312 <flag name="typeViewTextChanged" value="0x00000010" /> 3313 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED} events. --> 3314 <flag name="typeWindowStateChanged" value="0x00000020" /> 3315 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED} events. --> 3316 <flag name="typeNotificationStateChanged" value="0x00000040" /> 3317 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_HOVER_ENTER} events. --> 3318 <flag name="typeViewHoverEnter" value="0x00000080" /> 3319 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_HOVER_EXIT} events. --> 3320 <flag name="typeViewHoverExit" value="0x00000100" /> 3321 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START} events. --> 3322 <flag name="typeTouchExplorationGestureStart" value="0x00000200" /> 3323 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END} events. --> 3324 <flag name="typeTouchExplorationGestureEnd" value="0x00000400" /> 3325 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED} events. --> 3326 <flag name="typeWindowContentChanged" value="0x00000800" /> 3327 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_SCROLLED} events. --> 3328 <flag name="typeViewScrolled" value="0x000001000" /> 3329 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED} events. --> 3330 <flag name="typeViewTextSelectionChanged" value="0x000002000" /> 3331 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_ANNOUNCEMENT} events. --> 3332 <flag name="typeAnnouncement" value="0x00004000" /> 3333 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUSED} events. --> 3334 <flag name="typeViewAccessibilityFocused" value="0x00008000" /> 3335 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED} events. --> 3336 <flag name="typeViewAccessibilityFocusCleared" value="0x00010000" /> 3337 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY} events. --> 3338 <flag name="typeViewTextTraversedAtMovementGranularity" value="0x00020000" /> 3339 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_GESTURE_DETECTION_START} events. --> 3340 <flag name="typeGestureDetectionStart" value="0x00040000" /> 3341 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_GESTURE_DETECTION_END} events. --> 3342 <flag name="typeGestureDetectionEnd" value="0x00080000" /> 3343 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_INTERACTION_START} events. --> 3344 <flag name="typeTouchInteractionStart" value="0x00100000" /> 3345 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_TOUCH_INTERACTION_END} events. --> 3346 <flag name="typeTouchInteractionEnd" value="0x00200000" /> 3347 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOWS_CHANGED} events. --> 3348 <flag name="typeWindowsChanged" value="0x00400000" /> 3349 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_VIEW_CONTEXT_CLICKED} events. --> 3350 <flag name="typeContextClicked" value="0x00800000" /> 3351 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPE_ASSIST_READING_CONTEXT} events. --> 3352 <flag name="typeAssistReadingContext" value="0x01000000" /> 3353 <!-- Receives {@link android.view.accessibility.AccessibilityEvent#TYPES_ALL_MASK} i.e. all events. --> 3354 <flag name="typeAllMask" value="0xffffffff" /> 3355 </attr> 3356 <!-- Comma separated package names from which this serivce would like to receive events (leave out for all packages). 3357 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo) 3358 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. --> 3359 <attr name="packageNames" format="string" /> 3360 <!-- The feedback types this serivce provides as specified in 3361 {@link android.accessibilityservice.AccessibilityServiceInfo}. This setting 3362 can be changed at runtime by calling 3363 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo) 3364 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. --> 3365 <attr name="accessibilityFeedbackType"> 3366 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_SPOKEN} feedback. --> 3367 <flag name="feedbackSpoken" value="0x00000001" /> 3368 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_HAPTIC} feedback. --> 3369 <flag name="feedbackHaptic" value="0x00000002" /> 3370 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_AUDIBLE} feedback. --> 3371 <flag name="feedbackAudible" value="0x00000004" /> 3372 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_VISUAL} feedback. --> 3373 <flag name="feedbackVisual" value="0x00000008" /> 3374 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_GENERIC} feedback. --> 3375 <flag name="feedbackGeneric" value="0x00000010" /> 3376 <!-- Provides {@link android.accessibilityservice.AccessibilityServiceInfo#FEEDBACK_ALL_MASK} feedback. --> 3377 <flag name="feedbackAllMask" value="0xffffffff" /> 3378 </attr> 3379 <!-- The minimal period in milliseconds between two accessibility events of the same type 3380 are sent to this serivce. This setting can be changed at runtime by calling 3381 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo) 3382 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. --> 3383 <attr name="notificationTimeout" format="integer" /> 3384 <!-- Additional flags as specified in 3385 {@link android.accessibilityservice.AccessibilityServiceInfo}. 3386 This setting can be changed at runtime by calling 3387 {@link android.accessibilityservice.AccessibilityService#setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo) 3388 android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo)}. --> 3389 <attr name="accessibilityFlags"> 3390 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#DEFAULT} --> 3391 <flag name="flagDefault" value="0x00000001" /> 3392 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_INCLUDE_NOT_IMPORTANT_VIEWS} --> 3393 <flag name="flagIncludeNotImportantViews" value="0x00000002" /> 3394 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE} --> 3395 <flag name="flagRequestTouchExplorationMode" value="0x00000004" /> 3396 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY} --> 3397 <flag name="flagRequestEnhancedWebAccessibility" value="0x00000008" /> 3398 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REPORT_VIEW_IDS} --> 3399 <flag name="flagReportViewIds" value="0x00000010" /> 3400 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS} --> 3401 <flag name="flagRequestFilterKeyEvents" value="0x00000020" /> 3402 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_RETRIEVE_INTERACTIVE_WINDOWS} --> 3403 <flag name="flagRetrieveInteractiveWindows" value="0x00000040" /> 3404 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_ENABLE_ACCESSIBILITY_VOLUME} --> 3405 <flag name="flagEnableAccessibilityVolume" value="0x00000080" /> 3406 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_REQUEST_ACCESSIBILITY_BUTTON} --> 3407 <flag name="flagRequestAccessibilityButton" value="0x00000100" /> 3408 <!-- Has flag {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_CAPTURE_FINGERPRINT_GESTURES} --> 3409 <flag name="flagCaptureFingerprintGestures" value="0x00000200" /> 3410 </attr> 3411 <!-- Component name of an activity that allows the user to modify 3412 the settings for this service. This setting cannot be changed at runtime. --> 3413 <attr name="settingsActivity" /> 3414 <!-- Attribute whether the accessibility service wants to be able to retrieve the 3415 active window content. This setting cannot be changed at runtime. --> 3416 <attr name="canRetrieveWindowContent" format="boolean" /> 3417 <!-- Attribute whether the accessibility service wants to be able to request touch 3418 exploration mode in which touched items are spoken aloud and the UI can be 3419 explored via gestures. 3420 <p> 3421 Required to allow setting the {@link android.accessibilityservice 3422 #AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE} flag. 3423 </p> 3424 --> 3425 <attr name="canRequestTouchExplorationMode" format="boolean" /> 3426 <!-- Attribute whether the accessibility service wants to be able to request enhanced 3427 web accessibility enhancements. For example, installing scripts to make app 3428 content more accessible. 3429 <p> 3430 Required to allow setting the {@link android.accessibilityservice 3431 #AccessibilityServiceInfo#FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY} flag. 3432 </p> 3433 --> 3434 <attr name="canRequestEnhancedWebAccessibility" format="boolean" /> 3435 <!-- Attribute whether the accessibility service wants to be able to request to 3436 filter key events. 3437 <p> 3438 Required to allow setting the {@link android.accessibilityservice 3439 #AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS} flag. 3440 </p> 3441 --> 3442 <attr name="canRequestFilterKeyEvents" format="boolean" /> 3443 <!-- Attribute whether the accessibility service wants to be able to control 3444 display magnification. 3445 --> 3446 <attr name="canControlMagnification" format="boolean" /> 3447 <!-- Attribute whether the accessibility service wants to be able to perform gestures. --> 3448 <attr name="canPerformGestures" format="boolean" /> 3449 <!-- Attribute whether the accessibility service wants to be able to capture gestures from 3450 the fingerprint sensor. 3451 <p> 3452 Required to allow setting the {@link android.accessibilityservice 3453 #AccessibilityServiceInfo#FLAG_CAN_CAPTURE_FINGERPRINT_GESTURES} flag. 3454 </p> 3455 --> 3456 <attr name="canCaptureFingerprintGestures" format="boolean" /> 3457 <!-- Short description of the accessibility service purpose or behavior.--> 3458 <attr name="description" /> 3459 </declare-styleable> 3460 3461 <!-- Use <code>print-service</code> as the root tag of the XML resource that 3462 describes an {@link android.printservice.PrintService} service, which is 3463 referenced from its {@link android.printservice.PrintService#SERVICE_META_DATA} 3464 meta-data entry. --> 3465 <declare-styleable name="PrintService"> 3466 <!-- Fully qualified class name of an activity that allows the user to modify 3467 the settings for this service. --> 3468 <attr name="settingsActivity" /> 3469 <!-- Fully qualified class name of an activity that allows the user to manually 3470 add printers to this print service. --> 3471 <attr name="addPrintersActivity" format="string"/> 3472 <!-- Fully qualified class name of an activity with advanced print options 3473 specific to this print service. --> 3474 <attr name="advancedPrintOptionsActivity" format="string"/> 3475 <!-- The vendor name if this print service is vendor specific. --> 3476 <attr name="vendor" format="string"/> 3477 </declare-styleable> 3478 3479 <!-- Use <code>host-apdu-service</code> as the root tag of the XML resource that 3480 describes an {@link android.nfc.cardemulation.HostApduService} service, which 3481 is referenced from its {@link android.nfc.cardemulation.HostApduService#SERVICE_META_DATA} 3482 entry. --> 3483 <declare-styleable name="HostApduService"> 3484 <!-- Short description of the functionality the service implements. This attribute 3485 is mandatory.--> 3486 <attr name="description" /> 3487 <!-- Whether the device must be unlocked before routing data to this service. 3488 The default is false.--> 3489 <attr name="requireDeviceUnlock" format="boolean"/> 3490 <!-- A drawable that can be rendered in Android's system UI for representing 3491 the service. --> 3492 <attr name="apduServiceBanner" format="reference"/> 3493 <!-- Component name of an activity that allows the user to modify 3494 the settings for this service. --> 3495 <attr name="settingsActivity"/> 3496 </declare-styleable> 3497 3498 <!-- Use <code>offhost-apdu-service</code> as the root tag of the XML resource that 3499 describes an {@link android.nfc.cardemulation.OffHostApduService} 3500 service, which is referenced from its 3501 {@link android.nfc.cardemulation.OffHostApduService#SERVICE_META_DATA} entry. --> 3502 <declare-styleable name="OffHostApduService"> 3503 <!-- Short description of the functionality the service implements. This attribute 3504 is mandatory.--> 3505 <attr name="description" /> 3506 <!-- A drawable that can be rendered in Android's system UI for representing 3507 the service. --> 3508 <attr name="apduServiceBanner"/> 3509 <!-- Component name of an activity that allows the user to modify 3510 the settings for this service. --> 3511 <attr name="settingsActivity"/> 3512 </declare-styleable> 3513 3514 <!-- Specify one or more <code>aid-group</code> elements inside a 3515 <code>host-apdu-service</code> or <code>offhost-apdu-service</code> 3516 element to define a group of ISO7816 Application ID (AIDs) that 3517 your service can handle.--> 3518 <declare-styleable name="AidGroup"> 3519 <!-- Short description of what the AID group implements. This attribute is mandatory.--> 3520 <attr name="description" /> 3521 <!-- The category attribute will be used by the Android platform to present 3522 multiple applications that register ISO 7816 Application IDs (AIDs) in the 3523 same category uniformly. 3524 Additionally, when a category is specified, Android will ensure that either 3525 all AIDs in this group are routed to this application, or none at all. 3526 This attribute is optional.--> 3527 <attr name="category" format="string" /> 3528 </declare-styleable> 3529 3530 <!-- Specify one or more <code>aid-filter</code> elements inside a 3531 <code>aid-group</code> element to specify an ISO7816 Application ID (AID) 3532 your service can handle. --> 3533 <declare-styleable name="AidFilter"> 3534 <!-- The ISO7816 Application ID. This attribute is mandatory. --> 3535 <attr name="name" /> 3536 </declare-styleable> 3537 3538 <!-- Specify one or more <code>aid-prefix-filter</code> elements inside a 3539 <code>aid-group</code> element to specify an ISO7816 Application ID (AID) 3540 prefix your service can handle. --> 3541 <declare-styleable name="AidPrefixFilter"> 3542 <!-- The ISO7816 Application ID. This attribute is mandatory. --> 3543 <attr name="name" /> 3544 </declare-styleable> 3545 3546 <!-- Use <code>host-nfcf-service</code> as the root tag of the XML resource that 3547 describes an {@link android.nfc.cardemulation.HostNfcFService} service, which 3548 is referenced from its {@link android.nfc.cardemulation.HostNfcFService#SERVICE_META_DATA} 3549 entry. --> 3550 <declare-styleable name="HostNfcFService"> 3551 <!-- Short description of the functionality the service implements. This attribute 3552 is mandatory.--> 3553 <attr name="description" /> 3554 </declare-styleable> 3555 3556 <!-- Specify one or more <code>system-code-filter</code> elements inside a 3557 <code>host-nfcf-service</code> element to specify a System Code 3558 your service can handle. --> 3559 <declare-styleable name="SystemCodeFilter"> 3560 <!-- The System Code. This attribute is mandatory. --> 3561 <attr name="name" /> 3562 </declare-styleable> 3563 3564 <!-- Specify one or more <code>nfcid2-filter</code> elements inside a 3565 <code>host-nfcf-service</code> element to specify a NFCID2 3566 your service can handle. --> 3567 <declare-styleable name="Nfcid2Filter"> 3568 <!-- The NFCID2. This attribute is mandatory. --> 3569 <attr name="name" /> 3570 </declare-styleable> 3571 3572 <declare-styleable name="ActionMenuItemView"> 3573 <attr name="minWidth" /> 3574 </declare-styleable> 3575 3576 <!-- =============================== --> 3577 <!-- Widget package class attributes --> 3578 <!-- =============================== --> 3579 <eat-comment /> 3580 3581 <declare-styleable name="AbsListView"> 3582 <!-- Drawable used to indicate the currently selected item in the list. --> 3583 <attr name="listSelector" format="color|reference" /> 3584 <!-- When set to true, the selector will be drawn over the selected item. 3585 Otherwise the selector is drawn behind the selected item. The default 3586 value is false. --> 3587 <attr name="drawSelectorOnTop" format="boolean" /> 3588 <!-- Used by ListView and GridView to stack their content from the bottom. --> 3589 <attr name="stackFromBottom" format="boolean" /> 3590 <!-- When set to true, the list uses a drawing cache during scrolling. 3591 This makes the rendering faster but uses more memory. The default 3592 value is true. --> 3593 <attr name="scrollingCache" format="boolean" /> 3594 <!-- When set to true, the list will filter results as the user types. The 3595 List's adapter must support the Filterable interface for this to work. --> 3596 <attr name="textFilterEnabled" format="boolean" /> 3597 <!-- Sets the transcript mode for the list. In transcript mode, the list 3598 scrolls to the bottom to make new items visible when they are added. --> 3599 <attr name="transcriptMode"> 3600 <!-- Disables transcript mode. This is the default value. --> 3601 <enum name="disabled" value="0"/> 3602 <!-- The list will automatically scroll to the bottom when 3603 a data set change notification is received and only if the last item is 3604 already visible on screen. --> 3605 <enum name="normal" value="1" /> 3606 <!-- The list will automatically scroll to the bottom, no matter what items 3607 are currently visible. --> 3608 <enum name="alwaysScroll" value="2" /> 3609 </attr> 3610 <!-- Indicates that this list will always be drawn on top of solid, single-color 3611 opaque background. This allows the list to optimize drawing. --> 3612 <attr name="cacheColorHint" format="color" /> 3613 <!-- Enables the fast scroll thumb that can be dragged to quickly scroll through 3614 the list. --> 3615 <attr name="fastScrollEnabled" format="boolean" /> 3616 <!-- Specifies the style of the fast scroll decorations. --> 3617 <attr name="fastScrollStyle" format="reference" /> 3618 <!-- When set to true, the list will use a more refined calculation 3619 method based on the pixels height of the items visible on screen. This 3620 property is set to true by default but should be set to false if your adapter 3621 will display items of varying heights. When this property is set to true and 3622 your adapter displays items of varying heights, the scrollbar thumb will 3623 change size as the user scrolls through the list. When set to false, the list 3624 will use only the number of items in the adapter and the number of items visible 3625 on screen to determine the scrollbar's properties. --> 3626 <attr name="smoothScrollbar" format="boolean" /> 3627 <!-- Defines the choice behavior for the view. By default, lists do not have 3628 any choice behavior. By setting the choiceMode to singleChoice, the list 3629 allows up to one item to be in a chosen state. By setting the choiceMode to 3630 multipleChoice, the list allows any number of items to be chosen. 3631 Finally, by setting the choiceMode to multipleChoiceModal the list allows 3632 any number of items to be chosen in a special selection mode. 3633 The application will supply a 3634 {@link android.widget.AbsListView.MultiChoiceModeListener} using 3635 {@link android.widget.AbsListView#setMultiChoiceModeListener} to control the 3636 selection mode. This uses the {@link android.view.ActionMode} API. --> 3637 <attr name="choiceMode"> 3638 <!-- Normal list that does not indicate choices. --> 3639 <enum name="none" value="0" /> 3640 <!-- The list allows up to one choice. --> 3641 <enum name="singleChoice" value="1" /> 3642 <!-- The list allows multiple choices. --> 3643 <enum name="multipleChoice" value="2" /> 3644 <!-- The list allows multiple choices in a custom selection mode. --> 3645 <enum name="multipleChoiceModal" value="3" /> 3646 </attr> 3647 3648 <!-- When set to true, the list will always show the fast scroll interface. 3649 This setting implies fastScrollEnabled. --> 3650 <attr name="fastScrollAlwaysVisible" format="boolean" /> 3651 </declare-styleable> 3652 <!-- @hide --> 3653 <declare-styleable name="RecycleListView"> 3654 <!-- Bottom padding to use when no buttons are present. --> 3655 <attr name="paddingBottomNoButtons" format="dimension" /> 3656 <!-- Top padding to use when no title is present. --> 3657 <attr name="paddingTopNoTitle" format="dimension" /> 3658 </declare-styleable> 3659 <declare-styleable name="AbsSpinner"> 3660 <!-- Reference to an array resource that will populate the Spinner. For static content, 3661 this is simpler than populating the Spinner programmatically. --> 3662 <attr name="entries" /> 3663 </declare-styleable> 3664 <declare-styleable name="AnalogClock"> 3665 <attr name="dial" format="reference"/> 3666 <attr name="hand_hour" format="reference"/> 3667 <attr name="hand_minute" format="reference"/> 3668 </declare-styleable> 3669 <declare-styleable name="Button"> 3670 </declare-styleable> 3671 <declare-styleable name="Chronometer"> 3672 <!-- Format string: if specified, the Chronometer will display this 3673 string, with the first "%s" replaced by the current timer value 3674 in "MM:SS" or "H:MM:SS" form. 3675 If no format string is specified, the Chronometer will simply display 3676 "MM:SS" or "H:MM:SS". --> 3677 <attr name="format" format="string" localization="suggested" /> 3678 <!-- Specifies whether this Chronometer counts down or counts up from the base. 3679 If not specified this is false and the Chronometer counts up. --> 3680 <attr name="countDown" format="boolean" /> 3681 </declare-styleable> 3682 <declare-styleable name="CompoundButton"> 3683 <!-- Indicates the initial checked state of this button. --> 3684 <attr name="checked" format="boolean" /> 3685 <!-- Drawable used for the button graphic (e.g. checkbox, radio button, etc). --> 3686 <attr name="button" format="reference" /> 3687 <!-- Tint to apply to the button graphic. --> 3688 <attr name="buttonTint" format="color" /> 3689 <!-- Blending mode used to apply the button graphic tint. --> 3690 <attr name="buttonTintMode"> 3691 <!-- The tint is drawn on top of the drawable. 3692 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 3693 <enum name="src_over" value="3" /> 3694 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 3695 color channels are thrown out. [Sa * Da, Sc * Da] --> 3696 <enum name="src_in" value="5" /> 3697 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 3698 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 3699 <enum name="src_atop" value="9" /> 3700 <!-- Multiplies the color and alpha channels of the drawable with those of 3701 the tint. [Sa * Da, Sc * Dc] --> 3702 <enum name="multiply" value="14" /> 3703 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 3704 <enum name="screen" value="15" /> 3705 <!-- Combines the tint and drawable color and alpha channels, clamping the 3706 result to valid color values. Saturate(S + D) --> 3707 <enum name="add" value="16" /> 3708 </attr> 3709 </declare-styleable> 3710 <declare-styleable name="CheckedTextView"> 3711 <!-- Indicates the initial checked state of this text. --> 3712 <attr name="checked" /> 3713 <!-- Drawable used for the check mark graphic. --> 3714 <attr name="checkMark" format="reference"/> 3715 <!-- Tint to apply to the check mark. --> 3716 <attr name="checkMarkTint" format="color" /> 3717 <!-- Blending mode used to apply the check mark tint. --> 3718 <attr name="checkMarkTintMode"> 3719 <!-- The tint is drawn on top of the drawable. 3720 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 3721 <enum name="src_over" value="3" /> 3722 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 3723 color channels are thrown out. [Sa * Da, Sc * Da] --> 3724 <enum name="src_in" value="5" /> 3725 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 3726 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 3727 <enum name="src_atop" value="9" /> 3728 <!-- Multiplies the color and alpha channels of the drawable with those of 3729 the tint. [Sa * Da, Sc * Dc] --> 3730 <enum name="multiply" value="14" /> 3731 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 3732 <enum name="screen" value="15" /> 3733 <!-- Combines the tint and drawable color and alpha channels, clamping the 3734 result to valid color values. Saturate(S + D) --> 3735 <enum name="add" value="16" /> 3736 </attr> 3737 <!-- Gravity for aligning a CheckedTextView's checkmark to one side or the other. --> 3738 <attr name="checkMarkGravity"> 3739 <!-- Push object to the left of its container, not changing its size. --> 3740 <flag name="left" value="0x03" /> 3741 <!-- Push object to the right of its container, not changing its size. --> 3742 <flag name="right" value="0x05" /> 3743 <!-- Push object to the beginning of its container, not changing its size. --> 3744 <flag name="start" value="0x00800003" /> 3745 <!-- Push object to the end of its container, not changing its size. --> 3746 <flag name="end" value="0x00800005" /> 3747 </attr> 3748 </declare-styleable> 3749 <declare-styleable name="EditText"> 3750 </declare-styleable> 3751 <declare-styleable name="FastScroll"> 3752 <!-- Drawable used for the scroll bar thumb. --> 3753 <attr name="thumbDrawable" format="reference" /> 3754 <!-- Minimum width of the thumb. --> 3755 <attr name="thumbMinWidth" format="dimension" /> 3756 <!-- Minimum height of the thumb. --> 3757 <attr name="thumbMinHeight" format="dimension" /> 3758 <!-- Drawable used for the scroll bar track. --> 3759 <attr name="trackDrawable" format="reference" /> 3760 <!-- Drawable used for the section header preview when right-aligned. --> 3761 <attr name="backgroundRight" format="reference" /> 3762 <!-- Drawable used for the section header preview when left-aligned. --> 3763 <attr name="backgroundLeft" format="reference" /> 3764 <!-- Position of section header preview. --> 3765 <attr name="position"> 3766 <!-- Floating at the top of the content. --> 3767 <enum name="floating" value="0" /> 3768 <!-- Pinned to the thumb, vertically centered with the middle of the thumb. --> 3769 <enum name="atThumb" value="1" /> 3770 <!-- Pinned to the thumb, vertically centered with the top edge of the thumb. --> 3771 <enum name="aboveThumb" value="2" /> 3772 </attr> 3773 <attr name="textAppearance" /> 3774 <attr name="textColor" /> 3775 <attr name="textSize" /> 3776 <!-- Minimum width of the section header preview. --> 3777 <attr name="minWidth" /> 3778 <!-- Minimum height of the section header preview. --> 3779 <attr name="minHeight" /> 3780 <!-- Padding for the section header preview. --> 3781 <attr name="padding" /> 3782 <!-- Position of thumb in relation to the track. --> 3783 <attr name="thumbPosition"> 3784 <!-- The thumb's midpoint is anchored to the track. At its 3785 extremes, the thumb will extend half-way outside the 3786 track. --> 3787 <enum name="midpoint" value="0" /> 3788 <!-- The thumb is entirely inside the track. At its extremes, 3789 the thumb will be contained entirely within the track. --> 3790 <enum name="inside" value="1" /> 3791 </attr> 3792 </declare-styleable> 3793 <declare-styleable name="FrameLayout"> 3794 <!-- Determines whether to measure all children or just those in 3795 the VISIBLE or INVISIBLE state when measuring. Defaults to false. --> 3796 <attr name="measureAllChildren" format="boolean" /> 3797 </declare-styleable> 3798 <declare-styleable name="ExpandableListView"> 3799 <!-- Indicator shown beside the group View. This can be a stateful Drawable. --> 3800 <attr name="groupIndicator" format="reference" /> 3801 <!-- Indicator shown beside the child View. This can be a stateful Drawable. --> 3802 <attr name="childIndicator" format="reference" /> 3803 <!-- The left bound for an item's indicator. To specify a left bound specific to children, 3804 use childIndicatorLeft. --> 3805 <attr name="indicatorLeft" format="dimension" /> 3806 <!-- The right bound for an item's indicator. To specify a right bound specific to children, 3807 use childIndicatorRight. --> 3808 <attr name="indicatorRight" format="dimension" /> 3809 <!-- The left bound for a child's indicator. --> 3810 <attr name="childIndicatorLeft" format="dimension" /> 3811 <!-- The right bound for a child's indicator. --> 3812 <attr name="childIndicatorRight" format="dimension" /> 3813 <!-- Drawable or color that is used as a divider for children. (It will drawn 3814 below and above child items.) The height of this will be the same as 3815 the height of the normal list item divider. --> 3816 <attr name="childDivider" format="reference|color" /> 3817 <!-- The start bound for an item's indicator. To specify a start bound specific to children, 3818 use childIndicatorStart. --> 3819 <attr name="indicatorStart" format="dimension" /> 3820 <!-- The end bound for an item's indicator. To specify a right bound specific to children, 3821 use childIndicatorEnd. --> 3822 <attr name="indicatorEnd" format="dimension" /> 3823 <!-- The start bound for a child's indicator. --> 3824 <attr name="childIndicatorStart" format="dimension" /> 3825 <!-- The end bound for a child's indicator. --> 3826 <attr name="childIndicatorEnd" format="dimension" /> 3827 </declare-styleable> 3828 <declare-styleable name="Gallery"> 3829 <attr name="gravity" /> 3830 <!-- Sets how long a transition animation should run (in milliseconds) 3831 when layout has changed. Only relevant if animation is turned on. --> 3832 <attr name="animationDuration" format="integer" min="0" /> 3833 <attr name="spacing" format="dimension" /> 3834 <!-- Sets the alpha on the items that are not selected. --> 3835 <attr name="unselectedAlpha" format="float" /> 3836 </declare-styleable> 3837 <declare-styleable name="GridView"> 3838 <!-- Defines the default horizontal spacing between columns. --> 3839 <attr name="horizontalSpacing" format="dimension" /> 3840 <!-- Defines the default vertical spacing between rows. --> 3841 <attr name="verticalSpacing" format="dimension" /> 3842 <!-- Defines how columns should stretch to fill the available empty space, if any. --> 3843 <attr name="stretchMode"> 3844 <!-- Stretching is disabled. --> 3845 <enum name="none" value="0"/> 3846 <!-- The spacing between each column is stretched. --> 3847 <enum name="spacingWidth" value="1" /> 3848 <!-- Each column is stretched equally. --> 3849 <enum name="columnWidth" value="2" /> 3850 <!-- The spacing between each column is uniformly stretched.. --> 3851 <enum name="spacingWidthUniform" value="3" /> 3852 </attr> 3853 <!-- Specifies the fixed width for each column. --> 3854 <attr name="columnWidth" format="dimension" /> 3855 <!-- Defines how many columns to show. --> 3856 <attr name="numColumns" format="integer" min="0"> 3857 <!-- Display as many columns as possible to fill the available space. --> 3858 <enum name="auto_fit" value="-1" /> 3859 </attr> 3860 <!-- Specifies the gravity within each cell. --> 3861 <attr name="gravity" /> 3862 </declare-styleable> 3863 <declare-styleable name="ImageSwitcher"> 3864 </declare-styleable> 3865 <declare-styleable name="ImageView"> 3866 <!-- Sets a drawable as the content of this ImageView. --> 3867 <attr name="src" format="reference|color" /> 3868 <!-- Controls how the image should be resized or moved to match the size 3869 of this ImageView. See {@link android.widget.ImageView.ScaleType} --> 3870 <attr name="scaleType"> 3871 <!-- Scale using the image matrix when drawing. See 3872 {@link android.widget.ImageView#setImageMatrix(Matrix)}. --> 3873 <enum name="matrix" value="0" /> 3874 <!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#FILL}. --> 3875 <enum name="fitXY" value="1" /> 3876 <!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#START}. --> 3877 <enum name="fitStart" value="2" /> 3878 <!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#CENTER}. --> 3879 <enum name="fitCenter" value="3" /> 3880 <!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#END}. --> 3881 <enum name="fitEnd" value="4" /> 3882 <!-- Center the image in the view, but perform no scaling. --> 3883 <enum name="center" value="5" /> 3884 <!-- Scale the image uniformly (maintain the image's aspect ratio) so both dimensions 3885 (width and height) of the image will be equal to or larger than the corresponding 3886 dimension of the view (minus padding). The image is then centered in the view. --> 3887 <enum name="centerCrop" value="6" /> 3888 <!-- Scale the image uniformly (maintain the image's aspect ratio) so that both 3889 dimensions (width and height) of the image will be equal to or less than the 3890 corresponding dimension of the view (minus padding). The image is then centered in 3891 the view. --> 3892 <enum name="centerInside" value="7" /> 3893 </attr> 3894 <!-- Set this to true if you want the ImageView to adjust its bounds 3895 to preserve the aspect ratio of its drawable. --> 3896 <attr name="adjustViewBounds" format="boolean" /> 3897 <!-- An optional argument to supply a maximum width for this view. 3898 See {see android.widget.ImageView#setMaxWidth} for details. --> 3899 <attr name="maxWidth" format="dimension" /> 3900 <!-- An optional argument to supply a maximum height for this view. 3901 See {see android.widget.ImageView#setMaxHeight} for details. --> 3902 <attr name="maxHeight" format="dimension" /> 3903 <!-- The tinting color for the image. By default, the tint will blend using SRC_ATOP mode. 3904 Please note that for compatibility reasons, this is NOT consistent with the default 3905 SRC_IN tint mode used by {@link android.widget.ImageView#setImageTintList} and by 3906 similar tint attributes on other views. --> 3907 <attr name="tint" format="color" /> 3908 <!-- If true, the image view will be baseline aligned with based on its 3909 bottom edge. --> 3910 <attr name="baselineAlignBottom" format="boolean" /> 3911 <!-- If true, the image will be cropped to fit within its padding. --> 3912 <attr name="cropToPadding" format="boolean" /> 3913 <!-- The offset of the baseline within this view. See {see android.view.View#getBaseline} 3914 for details --> 3915 <attr name="baseline" format="dimension" /> 3916 <!-- @hide The alpha value (0-255) set on the ImageView's drawable. Equivalent 3917 to calling ImageView.setAlpha(int), not the same as View.setAlpha(float). --> 3918 <attr name="drawableAlpha" format="integer" /> 3919 <!-- Blending mode used to apply the image tint. --> 3920 <attr name="tintMode" /> 3921 </declare-styleable> 3922 <declare-styleable name="ToggleButton"> 3923 <!-- The text for the button when it is checked. --> 3924 <attr name="textOn" format="string" /> 3925 <!-- The text for the button when it is not checked. --> 3926 <attr name="textOff" format="string" /> 3927 <!-- The alpha to apply to the indicator when disabled. --> 3928 <attr name="disabledAlpha" /> 3929 </declare-styleable> 3930 <declare-styleable name="RelativeLayout"> 3931 <attr name="gravity" /> 3932 <!-- Indicates what view should not be affected by gravity. --> 3933 <attr name="ignoreGravity" format="reference" /> 3934 </declare-styleable> 3935 <declare-styleable name="LinearLayout"> 3936 <!-- Should the layout be a column or a row? Use "horizontal" 3937 for a row, "vertical" for a column. The default is 3938 horizontal. --> 3939 <attr name="orientation" /> 3940 <attr name="gravity" /> 3941 <!-- When set to false, prevents the layout from aligning its children's 3942 baselines. This attribute is particularly useful when the children 3943 use different values for gravity. The default value is true. --> 3944 <attr name="baselineAligned" format="boolean" /> 3945 <!-- When a linear layout is part of another layout that is baseline 3946 aligned, it can specify which of its children to baseline align to 3947 (that is, which child TextView).--> 3948 <attr name="baselineAlignedChildIndex" format="integer" min="0"/> 3949 <!-- Defines the maximum weight sum. If unspecified, the sum is computed 3950 by adding the layout_weight of all of the children. This can be 3951 used for instance to give a single child 50% of the total available 3952 space by giving it a layout_weight of 0.5 and setting the weightSum 3953 to 1.0. --> 3954 <attr name="weightSum" format="float" /> 3955 <!-- When set to true, all children with a weight will be considered having 3956 the minimum size of the largest child. If false, all children are 3957 measured normally. --> 3958 <attr name="measureWithLargestChild" format="boolean" /> 3959 <!-- Drawable to use as a vertical divider between buttons. --> 3960 <attr name="divider" /> 3961 <!-- Setting for which dividers to show. --> 3962 <attr name="showDividers"> 3963 <flag name="none" value="0" /> 3964 <flag name="beginning" value="1" /> 3965 <flag name="middle" value="2" /> 3966 <flag name="end" value="4" /> 3967 </attr> 3968 <!-- Size of padding on either end of a divider. --> 3969 <attr name="dividerPadding" format="dimension" /> 3970 </declare-styleable> 3971 <declare-styleable name="GridLayout"> 3972 <!-- The orientation property is not used during layout. It is only used to 3973 allocate row and column parameters when they are not specified by its children's 3974 layout paramters. GridLayout works like LinearLayout in this case; 3975 putting all the components either in a single row or in a single column - 3976 depending on the value of this flag. In the horizontal case, a columnCount 3977 property may be additionally supplied to force new rows to be created when a 3978 row is full. The rowCount attribute may be used similarly in the vertical case. 3979 The default is horizontal. --> 3980 <attr name="orientation" /> 3981 <!-- The maxmimum number of rows to create when automatically positioning children. --> 3982 <attr name="rowCount" format="integer" /> 3983 <!-- The maxmimum number of columns to create when automatically positioning children. --> 3984 <attr name="columnCount" format="integer" /> 3985 <!-- When set to true, tells GridLayout to use default margins when none are specified 3986 in a view's layout parameters. 3987 The default value is false. 3988 See {@link android.widget.GridLayout#setUseDefaultMargins(boolean)}.--> 3989 <attr name="useDefaultMargins" format="boolean" /> 3990 <!-- When set to alignMargins, causes alignment to take place between the outer 3991 boundary of a view, as defined by its margins. When set to alignBounds, 3992 causes alignment to take place between the edges of the view. 3993 The default is alignMargins. 3994 See {@link android.widget.GridLayout#setAlignmentMode(int)}.--> 3995 <attr name="alignmentMode" /> 3996 <!-- When set to true, forces row boundaries to appear in the same order 3997 as row indices. 3998 The default is true. 3999 See {@link android.widget.GridLayout#setRowOrderPreserved(boolean)}.--> 4000 <attr name="rowOrderPreserved" format="boolean" /> 4001 <!-- When set to true, forces column boundaries to appear in the same order 4002 as column indices. 4003 The default is true. 4004 See {@link android.widget.GridLayout#setColumnOrderPreserved(boolean)}.--> 4005 <attr name="columnOrderPreserved" format="boolean" /> 4006 </declare-styleable> 4007 <declare-styleable name="ListView"> 4008 <!-- Reference to an array resource that will populate the ListView. For static content, 4009 this is simpler than populating the ListView programmatically. --> 4010 <attr name="entries" /> 4011 <!-- Drawable or color to draw between list items. --> 4012 <attr name="divider" format="reference|color" /> 4013 <!-- Height of the divider. Will use the intrinsic height of the divider if this 4014 is not specified. --> 4015 <attr name="dividerHeight" format="dimension" /> 4016 <!-- When set to false, the ListView will not draw the divider after each header view. 4017 The default value is true. --> 4018 <attr name="headerDividersEnabled" format="boolean" /> 4019 <!-- When set to false, the ListView will not draw the divider before each footer view. 4020 The default value is true. --> 4021 <attr name="footerDividersEnabled" format="boolean" /> 4022 <!-- Drawable to draw above list content. --> 4023 <attr name="overScrollHeader" format="reference|color" /> 4024 <!-- Drawable to draw below list content. --> 4025 <attr name="overScrollFooter" format="reference|color" /> 4026 </declare-styleable> 4027 <declare-styleable name="PreferenceFrameLayout"> 4028 <!-- Padding to use at the top of the prefs content. --> 4029 <attr name="borderTop" format="dimension" /> 4030 <!-- Padding to use at the bottom of the prefs content. --> 4031 <attr name="borderBottom" format="dimension" /> 4032 <!-- Padding to use at the left of the prefs content. --> 4033 <attr name="borderLeft" format="dimension" /> 4034 <!-- Padding to use at the right of the prefs content. --> 4035 <attr name="borderRight" format="dimension" /> 4036 </declare-styleable> 4037 <declare-styleable name="PreferenceFrameLayout_Layout"> 4038 <!-- Padding to use at the top of the prefs content. --> 4039 <attr name="layout_removeBorders" format="boolean" /> 4040 </declare-styleable> 4041 <declare-styleable name="MenuView"> 4042 <!-- Default appearance of menu item text. --> 4043 <attr name="itemTextAppearance" format="reference" /> 4044 <!-- Default horizontal divider between rows of menu items. --> 4045 <attr name="horizontalDivider" format="reference" /> 4046 <!-- Default vertical divider between menu items. --> 4047 <attr name="verticalDivider" format="reference" /> 4048 <!-- Default background for the menu header. --> 4049 <attr name="headerBackground" format="color|reference" /> 4050 <!-- Default background for each menu item. --> 4051 <attr name="itemBackground" format="color|reference" /> 4052 <!-- Default animations for the menu. --> 4053 <attr name="windowAnimationStyle" /> 4054 <!-- Default disabled icon alpha for each menu item that shows an icon. --> 4055 <attr name="itemIconDisabledAlpha" format="float" /> 4056 <!-- Whether space should be reserved in layout when an icon is missing. --> 4057 <attr name="preserveIconSpacing" format="boolean" /> 4058 <!-- Drawable for the arrow icon indicating a particular item is a submenu. --> 4059 <attr name="subMenuArrow" format="reference" /> 4060 </declare-styleable> 4061 <declare-styleable name="IconMenuView"> 4062 <!-- Defines the height of each row. --> 4063 <attr name="rowHeight" format="dimension" /> 4064 <!-- Defines the maximum number of rows displayed. --> 4065 <attr name="maxRows" format="integer" /> 4066 <!-- Defines the maximum number of items per row. --> 4067 <attr name="maxItemsPerRow" format="integer" /> 4068 <!-- Defines the maximum number of items to show. --> 4069 <attr name="maxItems" format="integer" /> 4070 <!-- 'More' icon. --> 4071 <attr name="moreIcon" format="reference" /> 4072 </declare-styleable> 4073 4074 <declare-styleable name="ProgressBar"> 4075 <attr name="min" format="integer" /> 4076 <!-- Defines the maximum value the progress can take. --> 4077 <attr name="max" format="integer" /> 4078 <!-- Defines the default progress value, between 0 and max. --> 4079 <attr name="progress" format="integer" /> 4080 <!-- Defines the secondary progress value, between 0 and max. This progress is drawn between 4081 the primary progress and the background. It can be ideal for media scenarios such as 4082 showing the buffering progress while the default progress shows the play progress. --> 4083 <attr name="secondaryProgress" format="integer" /> 4084 <!-- Allows to enable the indeterminate mode. In this mode the progress 4085 bar plays an infinite looping animation. --> 4086 <attr name="indeterminate" format="boolean" /> 4087 <!-- Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). --> 4088 <attr name="indeterminateOnly" format="boolean" /> 4089 <!-- Drawable used for the indeterminate mode. --> 4090 <attr name="indeterminateDrawable" format="reference" /> 4091 <!-- Drawable used for the progress mode. --> 4092 <attr name="progressDrawable" format="reference" /> 4093 <!-- Duration of the indeterminate animation. --> 4094 <attr name="indeterminateDuration" format="integer" min="1" /> 4095 <!-- Defines how the indeterminate mode should behave when the progress 4096 reaches max. --> 4097 <attr name="indeterminateBehavior"> 4098 <!-- Progress starts over from 0. --> 4099 <enum name="repeat" value="1" /> 4100 <!-- Progress keeps the current value and goes back to 0. --> 4101 <enum name="cycle" value="2" /> 4102 </attr> 4103 <attr name="minWidth" format="dimension" /> 4104 <attr name="maxWidth" /> 4105 <attr name="minHeight" format="dimension" /> 4106 <attr name="maxHeight" /> 4107 <attr name="interpolator" format="reference" /> 4108 <!-- Timeout between frames of animation in milliseconds 4109 {@deprecated Not used by the framework.} --> 4110 <attr name="animationResolution" format="integer" /> 4111 <!-- Defines if the associated drawables need to be mirrored when in RTL mode. 4112 Default is false --> 4113 <attr name="mirrorForRtl" format="boolean" /> 4114 <!-- Tint to apply to the progress indicator. --> 4115 <attr name="progressTint" format="color" /> 4116 <!-- Blending mode used to apply the progress indicator tint. --> 4117 <attr name="progressTintMode"> 4118 <!-- The tint is drawn on top of the drawable. 4119 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 4120 <enum name="src_over" value="3" /> 4121 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 4122 color channels are thrown out. [Sa * Da, Sc * Da] --> 4123 <enum name="src_in" value="5" /> 4124 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 4125 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 4126 <enum name="src_atop" value="9" /> 4127 <!-- Multiplies the color and alpha channels of the drawable with those of 4128 the tint. [Sa * Da, Sc * Dc] --> 4129 <enum name="multiply" value="14" /> 4130 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 4131 <enum name="screen" value="15" /> 4132 <!-- Combines the tint and drawable color and alpha channels, clamping the 4133 result to valid color values. Saturate(S + D) --> 4134 <enum name="add" value="16" /> 4135 </attr> 4136 <!-- Tint to apply to the progress indicator background. --> 4137 <attr name="progressBackgroundTint" format="color" /> 4138 <!-- Blending mode used to apply the progress indicator background tint. --> 4139 <attr name="progressBackgroundTintMode"> 4140 <!-- The tint is drawn on top of the drawable. 4141 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 4142 <enum name="src_over" value="3" /> 4143 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 4144 color channels are thrown out. [Sa * Da, Sc * Da] --> 4145 <enum name="src_in" value="5" /> 4146 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 4147 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 4148 <enum name="src_atop" value="9" /> 4149 <!-- Multiplies the color and alpha channels of the drawable with those of 4150 the tint. [Sa * Da, Sc * Dc] --> 4151 <enum name="multiply" value="14" /> 4152 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 4153 <enum name="screen" value="15" /> 4154 <!-- Combines the tint and drawable color and alpha channels, clamping the 4155 result to valid color values. Saturate(S + D) --> 4156 <enum name="add" value="16" /> 4157 </attr> 4158 <!-- Tint to apply to the secondary progress indicator. --> 4159 <attr name="secondaryProgressTint" format="color" /> 4160 <!-- Blending mode used to apply the secondary progress indicator tint. --> 4161 <attr name="secondaryProgressTintMode"> 4162 <!-- The tint is drawn on top of the drawable. 4163 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 4164 <enum name="src_over" value="3" /> 4165 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 4166 color channels are thrown out. [Sa * Da, Sc * Da] --> 4167 <enum name="src_in" value="5" /> 4168 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 4169 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 4170 <enum name="src_atop" value="9" /> 4171 <!-- Multiplies the color and alpha channels of the drawable with those of 4172 the tint. [Sa * Da, Sc * Dc] --> 4173 <enum name="multiply" value="14" /> 4174 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 4175 <enum name="screen" value="15" /> 4176 <!-- Combines the tint and drawable color and alpha channels, clamping the 4177 result to valid color values. Saturate(S + D) --> 4178 <enum name="add" value="16" /> 4179 </attr> 4180 <!-- Tint to apply to the indeterminate progress indicator. --> 4181 <attr name="indeterminateTint" format="color" /> 4182 <!-- Blending mode used to apply the indeterminate progress indicator tint. --> 4183 <attr name="indeterminateTintMode"> 4184 <!-- The tint is drawn on top of the drawable. 4185 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 4186 <enum name="src_over" value="3" /> 4187 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 4188 color channels are thrown out. [Sa * Da, Sc * Da] --> 4189 <enum name="src_in" value="5" /> 4190 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 4191 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 4192 <enum name="src_atop" value="9" /> 4193 <!-- Multiplies the color and alpha channels of the drawable with those of 4194 the tint. [Sa * Da, Sc * Dc] --> 4195 <enum name="multiply" value="14" /> 4196 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 4197 <enum name="screen" value="15" /> 4198 <!-- Combines the tint and drawable color and alpha channels, clamping the 4199 result to valid color values. Saturate(S + D) --> 4200 <enum name="add" value="16" /> 4201 </attr> 4202 <!-- Tint to apply to the background. --> 4203 <attr name="backgroundTint" /> 4204 <!-- Blending mode used to apply the background tint. --> 4205 <attr name="backgroundTintMode" /> 4206 </declare-styleable> 4207 4208 <declare-styleable name="SeekBar"> 4209 <!-- Draws the thumb on a seekbar. --> 4210 <attr name="thumb" format="reference" /> 4211 <!-- An offset for the thumb that allows it to extend out of the range of the track. --> 4212 <attr name="thumbOffset" format="dimension" /> 4213 <!-- Whether to split the track and leave a gap for the thumb drawable. --> 4214 <attr name="splitTrack" format="boolean" /> 4215 <!-- Whether to force the track's alpha to ?android:attr/disabledAlpha 4216 when disabled. This is required for Holo and Gingerbread, but 4217 should always be false for Material and beyond. 4218 @hide Developers shouldn't need to change this. --> 4219 <attr name="useDisabledAlpha" format="boolean" /> 4220 <!-- Tint to apply to the thumb drawable. --> 4221 <attr name="thumbTint" format="color" /> 4222 <!-- Blending mode used to apply the thumb tint. --> 4223 <attr name="thumbTintMode"> 4224 <!-- The tint is drawn on top of the drawable. 4225 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 4226 <enum name="src_over" value="3" /> 4227 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 4228 color channels are thrown out. [Sa * Da, Sc * Da] --> 4229 <enum name="src_in" value="5" /> 4230 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 4231 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 4232 <enum name="src_atop" value="9" /> 4233 <!-- Multiplies the color and alpha channels of the drawable with those of 4234 the tint. [Sa * Da, Sc * Dc] --> 4235 <enum name="multiply" value="14" /> 4236 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 4237 <enum name="screen" value="15" /> 4238 <!-- Combines the tint and drawable color and alpha channels, clamping the 4239 result to valid color values. Saturate(S + D) --> 4240 <enum name="add" value="16" /> 4241 </attr> 4242 <!-- Drawable displayed at each progress position on a seekbar. --> 4243 <attr name="tickMark" format="reference" /> 4244 <!-- Tint to apply to the tick mark drawable. --> 4245 <attr name="tickMarkTint" format="color" /> 4246 <!-- Blending mode used to apply the tick mark tint. --> 4247 <attr name="tickMarkTintMode"> 4248 <!-- The tint is drawn on top of the drawable. 4249 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 4250 <enum name="src_over" value="3" /> 4251 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 4252 color channels are thrown out. [Sa * Da, Sc * Da] --> 4253 <enum name="src_in" value="5" /> 4254 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 4255 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 4256 <enum name="src_atop" value="9" /> 4257 <!-- Multiplies the color and alpha channels of the drawable with those of 4258 the tint. [Sa * Da, Sc * Dc] --> 4259 <enum name="multiply" value="14" /> 4260 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 4261 <enum name="screen" value="15" /> 4262 <!-- Combines the tint and drawable color and alpha channels, clamping the 4263 result to valid color values. Saturate(S + D) --> 4264 <enum name="add" value="16" /> 4265 </attr> 4266 </declare-styleable> 4267 4268 <declare-styleable name="StackView"> 4269 <!-- Color of the res-out outline. --> 4270 <attr name="resOutColor" format="color" /> 4271 <!-- Color of the outline of click feedback. --> 4272 <attr name="clickColor" format="color" /> 4273 </declare-styleable> 4274 4275 <declare-styleable name="RatingBar"> 4276 <!-- The number of stars (or rating items) to show. --> 4277 <attr name="numStars" format="integer" /> 4278 <!-- The rating to set by default. --> 4279 <attr name="rating" format="float" /> 4280 <!-- The step size of the rating. --> 4281 <attr name="stepSize" format="float" /> 4282 <!-- Whether this rating bar is an indicator (and non-changeable by the user). --> 4283 <attr name="isIndicator" format="boolean" /> 4284 </declare-styleable> 4285 4286 <declare-styleable name="RadioGroup"> 4287 <!-- The id of the child radio button that should be checked by default 4288 within this radio group. --> 4289 <attr name="checkedButton" format="integer" /> 4290 <!-- Should the radio group be a column or a row? Use "horizontal" 4291 for a row, "vertical" for a column. The default is 4292 vertical. --> 4293 <attr name="orientation" /> 4294 </declare-styleable> 4295 <declare-styleable name="TableLayout"> 4296 <!-- The zero-based index of the columns to stretch. The column indices 4297 must be separated by a comma: 1, 2, 5. Illegal and duplicate 4298 indices are ignored. You can stretch all columns by using the 4299 value "*" instead. Note that a column can be marked stretchable 4300 and shrinkable at the same time. --> 4301 <attr name="stretchColumns" format="string" /> 4302 <!-- The zero-based index of the columns to shrink. The column indices 4303 must be separated by a comma: 1, 2, 5. Illegal and duplicate 4304 indices are ignored. You can shrink all columns by using the 4305 value "*" instead. Note that a column can be marked stretchable 4306 and shrinkable at the same time. --> 4307 <attr name="shrinkColumns" format="string" /> 4308 <!-- The zero-based index of the columns to collapse. The column indices 4309 must be separated by a comma: 1, 2, 5. Illegal and duplicate 4310 indices are ignored. --> 4311 <attr name="collapseColumns" format="string" /> 4312 </declare-styleable> 4313 <declare-styleable name="TableRow"> 4314 4315 </declare-styleable> 4316 <declare-styleable name="TableRow_Cell"> 4317 <!-- The index of the column in which this child should be. --> 4318 <attr name="layout_column" format="integer" /> 4319 <!-- Defines how many columns this child should span. Must be >= 1.--> 4320 <attr name="layout_span" format="integer" /> 4321 </declare-styleable> 4322 <declare-styleable name="TabWidget"> 4323 <!-- Drawable used to draw the divider between tabs. --> 4324 <attr name="divider" /> 4325 <!-- Determines whether the strip under the tab indicators is drawn or not. --> 4326 <attr name="tabStripEnabled" format="boolean" /> 4327 <!-- Drawable used to draw the left part of the strip underneath the tabs. --> 4328 <attr name="tabStripLeft" format="reference" /> 4329 <!-- Drawable used to draw the right part of the strip underneath the tabs. --> 4330 <attr name="tabStripRight" format="reference" /> 4331 <!-- Layout used to organize each tab's content. --> 4332 <attr name="tabLayout" format="reference" /> 4333 </declare-styleable> 4334 <declare-styleable name="TextAppearance"> 4335 <!-- Text color. --> 4336 <attr name="textColor" /> 4337 <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). --> 4338 <attr name="textSize" /> 4339 <!-- Style (bold, italic, bolditalic) for the text. --> 4340 <attr name="textStyle" /> 4341 <!-- Typeface (normal, sans, serif, monospace) for the text. --> 4342 <attr name="typeface" /> 4343 <!-- Font family (named by string) for the text. --> 4344 <attr name="fontFamily" /> 4345 <!-- Color of the text selection highlight. --> 4346 <attr name="textColorHighlight" /> 4347 <!-- Color of the hint text. --> 4348 <attr name="textColorHint" /> 4349 <!-- Color of the links. --> 4350 <attr name="textColorLink" /> 4351 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --> 4352 <attr name="textAllCaps" format="boolean" /> 4353 <!-- Place a blurred shadow of text underneath the text, drawn with the 4354 specified color. The text shadow produced does not interact with 4355 properties on View that are responsible for real time shadows, 4356 {@link android.R.styleable#View_elevation elevation} and 4357 {@link android.R.styleable#View_translationZ translationZ}. --> 4358 <attr name="shadowColor" format="color" /> 4359 <!-- Horizontal offset of the text shadow. --> 4360 <attr name="shadowDx" format="float" /> 4361 <!-- Vertical offset of the text shadow. --> 4362 <attr name="shadowDy" format="float" /> 4363 <!-- Blur radius of the text shadow. --> 4364 <attr name="shadowRadius" format="float" /> 4365 <!-- Elegant text height, especially for less compacted complex script text. --> 4366 <attr name="elegantTextHeight" format="boolean" /> 4367 <!-- Text letter-spacing. --> 4368 <attr name="letterSpacing" format="float" /> 4369 <!-- Font feature settings. --> 4370 <attr name="fontFeatureSettings" format="string" /> 4371 </declare-styleable> 4372 <declare-styleable name="TextClock"> 4373 <!-- Specifies the formatting pattern used to show the time and/or date 4374 in 12-hour mode. Please refer to {@link android.text.format.DateFormat} 4375 for a complete description of accepted formatting patterns. 4376 The default pattern is a locale-appropriate equivalent of "h:mm a". --> 4377 <attr name="format12Hour" format="string"/> 4378 <!-- Specifies the formatting pattern used to show the time and/or date 4379 in 24-hour mode. Please refer to {@link android.text.format.DateFormat} 4380 for a complete description of accepted formatting patterns. 4381 The default pattern is a locale-appropriate equivalent of "H:mm". --> 4382 <attr name="format24Hour" format="string"/> 4383 <!-- Specifies the time zone to use. When this attribute is specified, the 4384 TextClock will ignore the time zone of the system. To use the user's 4385 time zone, do not specify this attribute. The default value is the 4386 user's time zone. Please refer to {@link java.util.TimeZone} for more 4387 information about time zone ids. --> 4388 <attr name="timeZone" format="string"/> 4389 </declare-styleable> 4390 <declare-styleable name="TextSwitcher"> 4391 </declare-styleable> 4392 <declare-styleable name="TextView"> 4393 <!-- Determines the minimum type that getText() will return. 4394 The default is "normal". 4395 Note that EditText and LogTextBox always return Editable, 4396 even if you specify something less powerful here. --> 4397 <attr name="bufferType"> 4398 <!-- Can return any CharSequence, possibly a 4399 Spanned one if the source text was Spanned. --> 4400 <enum name="normal" value="0" /> 4401 <!-- Can only return Spannable. --> 4402 <enum name="spannable" value="1" /> 4403 <!-- Can only return Spannable and Editable. --> 4404 <enum name="editable" value="2" /> 4405 </attr> 4406 <!-- Text to display. --> 4407 <attr name="text" format="string" localization="suggested" /> 4408 <!-- Hint text to display when the text is empty. --> 4409 <attr name="hint" format="string" /> 4410 <!-- Text color. --> 4411 <attr name="textColor" /> 4412 <!-- Color of the text selection highlight. --> 4413 <attr name="textColorHighlight" /> 4414 <!-- Color of the hint text. --> 4415 <attr name="textColorHint" /> 4416 <!-- Base text color, typeface, size, and style. --> 4417 <attr name="textAppearance" /> 4418 <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). --> 4419 <attr name="textSize" /> 4420 <!-- Sets the horizontal scaling factor for the text. --> 4421 <attr name="textScaleX" format="float" /> 4422 <!-- Typeface (normal, sans, serif, monospace) for the text. --> 4423 <attr name="typeface" /> 4424 <!-- Style (bold, italic, bolditalic) for the text. --> 4425 <attr name="textStyle" /> 4426 <!-- Font family (named by string) for the text. --> 4427 <attr name="fontFamily" /> 4428 <!-- Text color for links. --> 4429 <attr name="textColorLink" /> 4430 <!-- Makes the cursor visible (the default) or invisible. --> 4431 <attr name="cursorVisible" format="boolean" /> 4432 <!-- Makes the TextView be at most this many lines tall. 4433 4434 When used on an editable text, the <code>inputType</code> attribute's value must be 4435 combined with the <code>textMultiLine</code> flag for the maxLines attribute to apply. --> 4436 <attr name="maxLines" format="integer" min="0" /> 4437 <!-- Makes the TextView be at most this many pixels tall. --> 4438 <attr name="maxHeight" /> 4439 <!-- Makes the TextView be exactly this many lines tall. --> 4440 <attr name="lines" format="integer" min="0" /> 4441 <!-- Makes the TextView be exactly this many pixels tall. 4442 You could get the same effect by specifying this number in the 4443 layout parameters. --> 4444 <attr name="height" format="dimension" /> 4445 <!-- Makes the TextView be at least this many lines tall. 4446 4447 When used on an editable text, the <code>inputType</code> attribute's value must be 4448 combined with the <code>textMultiLine</code> flag for the minLines attribute to apply. --> 4449 <attr name="minLines" format="integer" min="0" /> 4450 <!-- Makes the TextView be at least this many pixels tall. --> 4451 <attr name="minHeight" /> 4452 <!-- Makes the TextView be at most this many ems wide. --> 4453 <attr name="maxEms" format="integer" min="0" /> 4454 <!-- Makes the TextView be at most this many pixels wide. --> 4455 <attr name="maxWidth" /> 4456 <!-- Makes the TextView be exactly this many ems wide. --> 4457 <attr name="ems" format="integer" min="0" /> 4458 <!-- Makes the TextView be exactly this many pixels wide. 4459 You could get the same effect by specifying this number in the 4460 layout parameters. --> 4461 <attr name="width" format="dimension" /> 4462 <!-- Makes the TextView be at least this many ems wide. --> 4463 <attr name="minEms" format="integer" min="0" /> 4464 <!-- Makes the TextView be at least this many pixels wide. --> 4465 <attr name="minWidth" /> 4466 <!-- Specifies how to align the text by the view's x- and/or y-axis 4467 when the text is smaller than the view. --> 4468 <attr name="gravity" /> 4469 <!-- Whether the text is allowed to be wider than the view (and 4470 therefore can be scrolled horizontally). --> 4471 <attr name="scrollHorizontally" format="boolean" /> 4472 <!-- Whether the characters of the field are displayed as 4473 password dots instead of themselves. 4474 {@deprecated Use inputType instead.} --> 4475 <attr name="password" format="boolean" /> 4476 <!-- Constrains the text to a single horizontally scrolling line 4477 instead of letting it wrap onto multiple lines, and advances 4478 focus instead of inserting a newline when you press the 4479 enter key. 4480 4481 The default value is false (multi-line wrapped text mode) for non-editable text, but if 4482 you specify any value for inputType, the default is true (single-line input field mode). 4483 4484 {@deprecated This attribute is deprecated. Use <code>maxLines</code> instead to change 4485 the layout of a static text, and use the <code>textMultiLine</code> flag in the 4486 inputType attribute instead for editable text views (if both singleLine and inputType 4487 are supplied, the inputType flags will override the value of singleLine). } --> 4488 <attr name="singleLine" format="boolean" /> 4489 <!-- Specifies whether the widget is enabled. The interpretation of the enabled state varies by subclass. 4490 For example, a non-enabled EditText prevents the user from editing the contained text, and 4491 a non-enabled Button prevents the user from tapping the button. 4492 The appearance of enabled and non-enabled widgets may differ, if the drawables referenced 4493 from evaluating state_enabled differ. --> 4494 <attr name="enabled" format="boolean" /> 4495 <!-- If the text is selectable, select it all when the view takes 4496 focus. --> 4497 <attr name="selectAllOnFocus" format="boolean" /> 4498 <!-- Leave enough room for ascenders and descenders instead of 4499 using the font ascent and descent strictly. (Normally true). --> 4500 <attr name="includeFontPadding" format="boolean" /> 4501 <!-- Set an input filter to constrain the text length to the 4502 specified number. --> 4503 <attr name="maxLength" format="integer" min="0" /> 4504 <!-- Place a blurred shadow of text underneath the text, drawn with the 4505 specified color. The text shadow produced does not interact with 4506 properties on View that are responsible for real time shadows, 4507 {@link android.R.styleable#View_elevation elevation} and 4508 {@link android.R.styleable#View_translationZ translationZ}. --> 4509 <attr name="shadowColor" /> 4510 <!-- Horizontal offset of the text shadow. --> 4511 <attr name="shadowDx" /> 4512 <!-- Vertical offset of the text shadow. --> 4513 <attr name="shadowDy" /> 4514 <!-- Blur radius of the text shadow. --> 4515 <attr name="shadowRadius" /> 4516 <attr name="autoLink" /> 4517 <!-- If set to false, keeps the movement method from being set 4518 to the link movement method even if autoLink causes links 4519 to be found. --> 4520 <attr name="linksClickable" format="boolean" /> 4521 <!-- If set, specifies that this TextView has a numeric input method. 4522 The default is false. 4523 {@deprecated Use inputType instead.} --> 4524 <attr name="numeric"> 4525 <!-- Input is numeric. --> 4526 <flag name="integer" value="0x01" /> 4527 <!-- Input is numeric, with sign allowed. --> 4528 <flag name="signed" value="0x03" /> 4529 <!-- Input is numeric, with decimals allowed. --> 4530 <flag name="decimal" value="0x05" /> 4531 </attr> 4532 <!-- If set, specifies that this TextView has a numeric input method 4533 and that these specific characters are the ones that it will 4534 accept. 4535 If this is set, numeric is implied to be true. 4536 The default is false. --> 4537 <attr name="digits" format="string" /> 4538 <!-- If set, specifies that this TextView has a phone number input 4539 method. The default is false. 4540 {@deprecated Use inputType instead.} --> 4541 <attr name="phoneNumber" format="boolean" /> 4542 <!-- If set, specifies that this TextView should use the specified 4543 input method (specified by fully-qualified class name). 4544 {@deprecated Use inputType instead.} --> 4545 <attr name="inputMethod" format="string" /> 4546 <!-- If set, specifies that this TextView has a textual input method 4547 and should automatically capitalize what the user types. 4548 The default is "none". 4549 {@deprecated Use inputType instead.} --> 4550 <attr name="capitalize"> 4551 <!-- Don't automatically capitalize anything. --> 4552 <enum name="none" value="0" /> 4553 <!-- Capitalize the first word of each sentence. --> 4554 <enum name="sentences" value="1" /> 4555 <!-- Capitalize the first letter of every word. --> 4556 <enum name="words" value="2" /> 4557 <!-- Capitalize every character. --> 4558 <enum name="characters" value="3" /> 4559 </attr> 4560 <!-- If set, specifies that this TextView has a textual input method 4561 and automatically corrects some common spelling errors. 4562 The default is "false". 4563 {@deprecated Use inputType instead.} --> 4564 <attr name="autoText" format="boolean" /> 4565 <!-- If set, specifies that this TextView has an input method. 4566 It will be a textual one unless it has otherwise been specified. 4567 For TextView, this is false by default. For EditText, it is 4568 true by default. 4569 {@deprecated Use inputType instead.} --> 4570 <attr name="editable" format="boolean" /> 4571 <!-- If set, the text view will include its current complete text 4572 inside of its frozen icicle in addition to meta-data such as 4573 the current cursor position. By default this is disabled; 4574 it can be useful when the contents of a text view is not stored 4575 in a persistent place such as a content provider. For 4576 {@link android.widget.EditText} it is always enabled, regardless 4577 of the value of the attribute. --> 4578 <attr name="freezesText" format="boolean" /> 4579 <!-- If set, causes words that are longer than the view is wide 4580 to be ellipsized instead of broken in the middle. 4581 You will often also want to set scrollHorizontally or singleLine 4582 as well so that the text as a whole is also constrained to 4583 a single line instead of still allowed to be broken onto 4584 multiple lines. --> 4585 <attr name="ellipsize" /> 4586 <!-- The drawable to be drawn above the text. --> 4587 <attr name="drawableTop" format="reference|color" /> 4588 <!-- The drawable to be drawn below the text. --> 4589 <attr name="drawableBottom" format="reference|color" /> 4590 <!-- The drawable to be drawn to the left of the text. --> 4591 <attr name="drawableLeft" format="reference|color" /> 4592 <!-- The drawable to be drawn to the right of the text. --> 4593 <attr name="drawableRight" format="reference|color" /> 4594 <!-- The drawable to be drawn to the start of the text. --> 4595 <attr name="drawableStart" format="reference|color" /> 4596 <!-- The drawable to be drawn to the end of the text. --> 4597 <attr name="drawableEnd" format="reference|color" /> 4598 <!-- The padding between the drawables and the text. --> 4599 <attr name="drawablePadding" format="dimension" /> 4600 <!-- Tint to apply to the compound (left, top, etc.) drawables. --> 4601 <attr name="drawableTint" format="color" /> 4602 <!-- Blending mode used to apply the compound (left, top, etc.) drawables tint. --> 4603 <attr name="drawableTintMode"> 4604 <!-- The tint is drawn on top of the drawable. 4605 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 4606 <enum name="src_over" value="3" /> 4607 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 4608 color channels are thrown out. [Sa * Da, Sc * Da] --> 4609 <enum name="src_in" value="5" /> 4610 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 4611 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 4612 <enum name="src_atop" value="9" /> 4613 <!-- Multiplies the color and alpha channels of the drawable with those of 4614 the tint. [Sa * Da, Sc * Dc] --> 4615 <enum name="multiply" value="14" /> 4616 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 4617 <enum name="screen" value="15" /> 4618 <!-- Combines the tint and drawable color and alpha channels, clamping the 4619 result to valid color values. Saturate(S + D) --> 4620 <enum name="add" value="16" /> 4621 </attr> 4622 <!-- Extra spacing between lines of text. --> 4623 <attr name="lineSpacingExtra" format="dimension" /> 4624 <!-- Extra spacing between lines of text, as a multiplier. --> 4625 <attr name="lineSpacingMultiplier" format="float" /> 4626 <!-- The number of times to repeat the marquee animation. Only applied if the 4627 TextView has marquee enabled. --> 4628 <attr name="marqueeRepeatLimit" format="integer"> 4629 <!-- Indicates that marquee should repeat indefinitely. --> 4630 <enum name="marquee_forever" value="-1" /> 4631 </attr> 4632 <attr name="inputType" /> 4633 <!-- Whether undo should be allowed for editable text. Defaults to true. --> 4634 <attr name="allowUndo" format="boolean" /> 4635 <attr name="imeOptions" /> 4636 <!-- An addition content type description to supply to the input 4637 method attached to the text view, which is private to the 4638 implementation of the input method. This simply fills in 4639 the {@link android.view.inputmethod.EditorInfo#privateImeOptions 4640 EditorInfo.privateImeOptions} field when the input 4641 method is connected. --> 4642 <attr name="privateImeOptions" format="string" /> 4643 <!-- Supply a value for 4644 {@link android.view.inputmethod.EditorInfo#actionLabel EditorInfo.actionLabel} 4645 used when an input method is connected to the text view. --> 4646 <attr name="imeActionLabel" format="string" /> 4647 <!-- Supply a value for 4648 {@link android.view.inputmethod.EditorInfo#actionId EditorInfo.actionId} 4649 used when an input method is connected to the text view. --> 4650 <attr name="imeActionId" format="integer" /> 4651 <!-- Reference to an 4652 {@link android.R.styleable#InputExtras <input-extras>} 4653 XML resource containing additional data to 4654 supply to an input method, which is private to the implementation 4655 of the input method. This simply fills in 4656 the {@link android.view.inputmethod.EditorInfo#extras 4657 EditorInfo.extras} field when the input 4658 method is connected. --> 4659 <attr name="editorExtras" format="reference" /> 4660 4661 <!-- Reference to a drawable that will be used to display a text selection 4662 anchor on the left side of a selection region. --> 4663 <attr name="textSelectHandleLeft" /> 4664 <!-- Reference to a drawable that will be used to display a text selection 4665 anchor on the right side of a selection region. --> 4666 <attr name="textSelectHandleRight" /> 4667 <!-- Reference to a drawable that will be used to display a text selection 4668 anchor for positioning the cursor within text. --> 4669 <attr name="textSelectHandle" /> 4670 <!-- The layout of the view that is displayed on top of the cursor to paste inside a 4671 TextEdit field. --> 4672 <attr name="textEditPasteWindowLayout" /> 4673 <!-- Variation of textEditPasteWindowLayout displayed when the clipboard is empty. --> 4674 <attr name="textEditNoPasteWindowLayout" /> 4675 <!-- Used instead of textEditPasteWindowLayout when the window is moved on the side of the 4676 insertion cursor because it would be clipped if it were positioned on top. --> 4677 <attr name="textEditSidePasteWindowLayout" /> 4678 <!-- Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. --> 4679 <attr name="textEditSideNoPasteWindowLayout" /> 4680 4681 <!-- Layout of the TextView item that will populate the suggestion popup window. --> 4682 <attr name="textEditSuggestionItemLayout" /> 4683 <!-- Layout of the container of the suggestion popup window. --> 4684 <attr name="textEditSuggestionContainerLayout" /> 4685 <!-- Style of the highlighted string in the suggestion popup window. --> 4686 <attr name="textEditSuggestionHighlightStyle" /> 4687 4688 4689 <!-- Reference to a drawable that will be drawn under the insertion cursor. --> 4690 <attr name="textCursorDrawable" /> 4691 4692 <!-- Indicates that the content of a non-editable text can be selected. --> 4693 <attr name="textIsSelectable" /> 4694 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --> 4695 <attr name="textAllCaps" /> 4696 <!-- Elegant text height, especially for less compacted complex script text. --> 4697 <attr name="elegantTextHeight" /> 4698 <!-- Text letter-spacing. --> 4699 <attr name="letterSpacing" /> 4700 <!-- Font feature settings. --> 4701 <attr name="fontFeatureSettings" /> 4702 <!-- Break strategy (control over paragraph layout). --> 4703 <attr name="breakStrategy"> 4704 <!-- Line breaking uses simple strategy. --> 4705 <enum name="simple" value="0" /> 4706 <!-- Line breaking uses high-quality strategy, including hyphenation. --> 4707 <enum name="high_quality" value="1" /> 4708 <!-- Line breaking strategy balances line lengths. --> 4709 <enum name="balanced" value="2" /> 4710 </attr> 4711 <!-- Frequency of automatic hyphenation. --> 4712 <attr name="hyphenationFrequency"> 4713 <!-- No hyphenation. --> 4714 <enum name="none" value="0" /> 4715 <!-- Less frequent hyphenation, useful for informal use cases, such 4716 as chat messages. --> 4717 <enum name="normal" value="1" /> 4718 <!-- Standard amount of hyphenation, useful for running text and for 4719 screens with limited space for text. --> 4720 <enum name="full" value="2" /> 4721 </attr> 4722 <!-- Specify the type of auto-size. Note that this feature is not supported by EditText, 4723 works only for TextView --> 4724 <attr name="autoSizeText" format="enum"> 4725 <!-- No auto-sizing (default). --> 4726 <enum name="none" value="0" /> 4727 <!-- Uniform horizontal and vertical scaling. --> 4728 <enum name="uniform" value="1" /> 4729 </attr> 4730 <!-- Specify the auto-size step size if <code>autoSizeText</code> is set to 4731 <code>xy</code>. The default is 1px. Overwrites 4732 <code>autoSizePresetSizes</code> if set. --> 4733 <attr name="autoSizeStepGranularity" format="dimension" /> 4734 <!-- Array of dimensions to be used in conjunction with 4735 <code>autoSizeText</code> set to <code>xy</code>. Overwrites 4736 <code>autoSizeStepGranularity</code> if set. --> 4737 <attr name="autoSizePresetSizes"/> 4738 <!-- The minimum text size constraint to be used when auto-sizing text --> 4739 <attr name="autoSizeMinTextSize" format="dimension" /> 4740 <!-- The maximum text size constraint to be used when auto-sizing text --> 4741 <attr name="autoSizeMaxTextSize" format="dimension" /> 4742 </declare-styleable> 4743 <declare-styleable name="TextViewAppearance"> 4744 <!-- Base text color, typeface, size, and style. --> 4745 <attr name="textAppearance" /> 4746 </declare-styleable> 4747 <declare-styleable name="SelectionModeDrawables"> 4748 <attr name="actionModeSelectAllDrawable" /> 4749 <attr name="actionModeCutDrawable" /> 4750 <attr name="actionModeCopyDrawable" /> 4751 <attr name="actionModePasteDrawable" /> 4752 </declare-styleable> 4753 <declare-styleable name="SuggestionSpan"> 4754 <attr name="textUnderlineColor" /> 4755 <attr name="textUnderlineThickness" /> 4756 </declare-styleable> 4757 <!-- An <code>input-extras</code> is a container for extra data to supply to 4758 an input method. Contains 4759 one more more {@link #Extra <extra>} tags. --> 4760 <declare-styleable name="InputExtras"> 4761 </declare-styleable> 4762 <declare-styleable name="AutoCompleteTextView"> 4763 <!-- Defines the hint displayed in the drop down menu. --> 4764 <attr name="completionHint" format="string" /> 4765 <!-- Defines the hint view displayed in the drop down menu. --> 4766 <attr name="completionHintView" format="reference" /> 4767 <!-- Defines the number of characters that the user must type before 4768 completion suggestions are displayed in a drop down menu. --> 4769 <attr name="completionThreshold" format="integer" min="1" /> 4770 <!-- Selector in a drop down list. --> 4771 <attr name="dropDownSelector" format="reference|color" /> 4772 <!-- View to anchor the auto-complete dropdown to. If not specified, the text view itself 4773 is used. --> 4774 <attr name="dropDownAnchor" format="reference" /> 4775 <!-- Specifies the basic width of the dropdown. Its value may 4776 be a dimension (such as "12dip") for a constant width, 4777 fill_parent or match_parent to match the width of the 4778 screen, or wrap_content to match the width of 4779 the anchored view. --> 4780 <attr name="dropDownWidth" format="dimension"> 4781 <!-- The dropdown should fill the width of the screen. 4782 This constant is deprecated starting from API Level 8 and 4783 is replaced by {@code match_parent}. --> 4784 <enum name="fill_parent" value="-1" /> 4785 <!-- The dropdown should fit the width of the screen. 4786 Introduced in API Level 8. --> 4787 <enum name="match_parent" value="-1" /> 4788 <!-- The dropdown should fit the width of its anchor. --> 4789 <enum name="wrap_content" value="-2" /> 4790 </attr> 4791 <!-- Specifies the basic height of the dropdown. Its value may 4792 be a dimension (such as "12dip") for a constant height, 4793 fill_parent or match_parent to fill the height of the 4794 screen, or wrap_content to match the height of 4795 the content of the drop down. --> 4796 <attr name="dropDownHeight" format="dimension"> 4797 <!-- The dropdown should fit the height of the screen. 4798 This constant is deprecated starting from API Level 8 and 4799 is replaced by {@code match_parent}. --> 4800 <enum name="fill_parent" value="-1" /> 4801 <!-- The dropdown should fit the height of the screen. 4802 Introduced in API Level 8. --> 4803 <enum name="match_parent" value="-1" /> 4804 <!-- The dropdown should fit the height of the content. --> 4805 <enum name="wrap_content" value="-2" /> 4806 </attr> 4807 <attr name="inputType" /> 4808 <!-- Theme to use for the completion popup window. --> 4809 <attr name="popupTheme" /> 4810 </declare-styleable> 4811 <declare-styleable name="PopupWindow"> 4812 <!-- The background to use for the popup window. --> 4813 <attr name="popupBackground" format="reference|color" /> 4814 <!-- Window elevation to use for the popup window. --> 4815 <attr name="popupElevation" format="dimension" /> 4816 <!-- The animation style to use for the popup window. --> 4817 <attr name="popupAnimationStyle" format="reference" /> 4818 <!-- Whether the popup window should overlap its anchor view. --> 4819 <attr name="overlapAnchor" format="boolean" /> 4820 <!-- Transition used to move views into the popup window. --> 4821 <attr name="popupEnterTransition" format="reference" /> 4822 <!-- Transition used to move views out of the popup window. --> 4823 <attr name="popupExitTransition" format="reference" /> 4824 </declare-styleable> 4825 <declare-styleable name="ListPopupWindow"> 4826 <!-- Amount of pixels by which the drop down should be offset vertically. --> 4827 <attr name="dropDownVerticalOffset" format="dimension" /> 4828 <!-- Amount of pixels by which the drop down should be offset horizontally. --> 4829 <attr name="dropDownHorizontalOffset" format="dimension" /> 4830 </declare-styleable> 4831 <declare-styleable name="ViewAnimator"> 4832 <!-- Identifier for the animation to use when a view is shown. --> 4833 <attr name="inAnimation" format="reference" /> 4834 <!-- Identifier for the animation to use when a view is hidden. --> 4835 <attr name="outAnimation" format="reference" /> 4836 <!-- Defines whether to animate the current View when the ViewAnimation 4837 is first displayed. --> 4838 <attr name="animateFirstView" format="boolean" /> 4839 </declare-styleable> 4840 <declare-styleable name="ViewFlipper"> 4841 <attr name="flipInterval" format="integer" min="0" /> 4842 <!-- When true, automatically start animating --> 4843 <attr name="autoStart" format="boolean" /> 4844 </declare-styleable> 4845 <declare-styleable name="AdapterViewAnimator"> 4846 <!-- Identifier for the animation to use when a view is shown. --> 4847 <attr name="inAnimation" /> 4848 <!-- Identifier for the animation to use when a view is hidden. --> 4849 <attr name="outAnimation" /> 4850 <!--Defines whether the animator loops to the first view once it 4851 has reached the end of the list. --> 4852 <attr name="loopViews" format="boolean" /> 4853 <!-- Defines whether to animate the current View when the ViewAnimation 4854 is first displayed. --> 4855 <attr name="animateFirstView" /> 4856 </declare-styleable> 4857 <declare-styleable name="AdapterViewFlipper"> 4858 <attr name="flipInterval" /> 4859 <!-- When true, automatically start animating --> 4860 <attr name="autoStart" /> 4861 </declare-styleable> 4862 <declare-styleable name="ViewSwitcher"> 4863 </declare-styleable> 4864 <declare-styleable name="ScrollView"> 4865 <!-- Defines whether the scrollview should stretch its content to fill the viewport. --> 4866 <attr name="fillViewport" format="boolean" /> 4867 </declare-styleable> 4868 <declare-styleable name="HorizontalScrollView"> 4869 <!-- Defines whether the scrollview should stretch its content to fill the viewport. --> 4870 <attr name="fillViewport" /> 4871 </declare-styleable> 4872 <declare-styleable name="Spinner"> 4873 <!-- The prompt to display when the spinner's dialog is shown. --> 4874 <attr name="prompt" format="reference" /> 4875 <!-- Display mode for spinner options. --> 4876 <attr name="spinnerMode" format="enum"> 4877 <!-- Spinner options will be presented to the user as a dialog window. --> 4878 <enum name="dialog" value="0" /> 4879 <!-- Spinner options will be presented to the user as an inline dropdown 4880 anchored to the spinner widget itself. --> 4881 <enum name="dropdown" value="1" /> 4882 </attr> 4883 <!-- List selector to use for spinnerMode="dropdown" display. --> 4884 <attr name="dropDownSelector" /> 4885 <!-- Theme to use for the drop-down or dialog popup window. --> 4886 <attr name="popupTheme" /> 4887 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". --> 4888 <attr name="popupBackground" /> 4889 <!-- Window elevation to use for the dropdown in spinnerMode="dropdown". --> 4890 <attr name="popupElevation" /> 4891 <!-- Width of the dropdown in spinnerMode="dropdown". --> 4892 <attr name="dropDownWidth" /> 4893 <!-- Reference to a layout to use for displaying a prompt in the dropdown for 4894 spinnerMode="dropdown". This layout must contain a TextView with the id 4895 {@code @android:id/text1} to be populated with the prompt text. --> 4896 <attr name="popupPromptView" format="reference" /> 4897 <!-- Gravity setting for positioning the currently selected item. --> 4898 <attr name="gravity" /> 4899 <!-- Whether this spinner should mark child views as enabled/disabled when 4900 the spinner itself is enabled/disabled. --> 4901 <attr name="disableChildrenWhenDisabled" format="boolean" /> 4902 </declare-styleable> 4903 4904 <declare-styleable name="DatePicker"> 4905 <!-- The first day of week according to {@link java.util.Calendar}. --> 4906 <attr name="firstDayOfWeek" /> 4907 <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. --> 4908 <attr name="minDate" format="string" /> 4909 <!-- The maximal date shown by this calendar view in mm/dd/yyyy format. --> 4910 <attr name="maxDate" format="string" /> 4911 4912 <!-- Whether the spinners are shown. Only valid for "spinner" mode. --> 4913 <attr name="spinnersShown" format="boolean" /> 4914 <!-- Whether the calendar view is shown. Only valid for "spinner" mode. --> 4915 <attr name="calendarViewShown" format="boolean" /> 4916 4917 <!-- @hide The layout of the date picker. --> 4918 <attr name="internalLayout" format="reference" /> 4919 <!-- @hide The layout of the legacy DatePicker. --> 4920 <attr name="legacyLayout" /> 4921 4922 <!-- The text color for the selected date header text, ex. "2014" or 4923 "Tue, Mar 18". This should be a color state list where the 4924 activated state will be used when the year picker or day picker is 4925 active.--> 4926 <attr name="headerTextColor" format="color" /> 4927 <!-- The background for the selected date header. --> 4928 <attr name="headerBackground" /> 4929 4930 <!-- The list year's text appearance in the list. 4931 {@deprecated Use yearListTextColor. }--> 4932 <attr name="yearListItemTextAppearance" format="reference" /> 4933 <!-- @hide The list year's text appearance in the list when activated. --> 4934 <attr name="yearListItemActivatedTextAppearance" format="reference" /> 4935 <!-- The text color list of the calendar. --> 4936 <attr name="calendarTextColor" format="color" /> 4937 4938 <!-- Defines the look of the widget. Prior to the L release, the only choice was 4939 spinner. As of L, with the Material theme selected, the default layout is calendar, 4940 but this attribute can be used to force spinner to be used instead. --> 4941 <attr name="datePickerMode"> 4942 <!-- Date picker with spinner controls to select the date. --> 4943 <enum name="spinner" value="1" /> 4944 <!-- Date picker with calendar to select the date. --> 4945 <enum name="calendar" value="2" /> 4946 </attr> 4947 4948 <!-- The first year (inclusive), for example "1940". 4949 {@deprecated Use minDate instead.} --> 4950 <attr name="startYear" format="integer" /> 4951 <!-- The last year (inclusive), for example "2010". 4952 {@deprecated Use maxDate instead.} --> 4953 <attr name="endYear" format="integer" /> 4954 <!-- The text appearance for the month (ex. May) in the selected date header. 4955 {@deprecated Use headerTextColor instead.} --> 4956 <attr name="headerMonthTextAppearance" format="reference" /> 4957 <!-- The text appearance for the day of month (ex. 28) in the selected date header. 4958 {@deprecated Use headerTextColor instead.} --> 4959 <attr name="headerDayOfMonthTextAppearance" format="reference" /> 4960 <!-- The text appearance for the year (ex. 2014) in the selected date header. 4961 {@deprecated Use headerTextColor instead.} --> 4962 <attr name="headerYearTextAppearance" format="reference" /> 4963 <!-- The background color for the header's day of week. 4964 {@deprecated No longer displayed.} --> 4965 <attr name="dayOfWeekBackground" format="color" /> 4966 <!-- The text color for the header's day of week. 4967 {@deprecated No longer displayed.} --> 4968 <attr name="dayOfWeekTextAppearance" format="reference" /> 4969 <!-- The list year's selected circle color in the list. 4970 {@deprecated No longer displayed.} --> 4971 <attr name="yearListSelectorColor" format="color" /> 4972 4973 <!-- @hide Whether this time picker is being displayed within a dialog, 4974 in which case it may ignore the requested time picker mode due to 4975 space considerations. --> 4976 <attr name="dialogMode" format="boolean" /> 4977 </declare-styleable> 4978 4979 <declare-styleable name="TwoLineListItem"> 4980 <attr name="mode"> 4981 <!-- Always show only the first line. --> 4982 <enum name="oneLine" value="1" /> 4983 <!-- When selected show both lines, otherwise show only the first line. 4984 This is the default mode. --> 4985 <enum name="collapsing" value="2" /> 4986 <!-- Always show both lines. --> 4987 <enum name="twoLine" value="3" /> 4988 </attr> 4989 </declare-styleable> 4990 4991 <!-- SlidingDrawer specific attributes. These attributes are used to configure 4992 a SlidingDrawer from XML. --> 4993 <declare-styleable name="SlidingDrawer"> 4994 <!-- Identifier for the child that represents the drawer's handle. --> 4995 <attr name="handle" format="reference" /> 4996 <!-- Identifier for the child that represents the drawer's content. --> 4997 <attr name="content" format="reference" /> 4998 <!-- Orientation of the SlidingDrawer. --> 4999 <attr name="orientation" /> 5000 <!-- Extra offset for the handle at the bottom of the SlidingDrawer. --> 5001 <attr name="bottomOffset" format="dimension" /> 5002 <!-- Extra offset for the handle at the top of the SlidingDrawer. --> 5003 <attr name="topOffset" format="dimension" /> 5004 <!-- Indicates whether the drawer can be opened/closed by a single tap 5005 on the handle. (If false, the user must drag or fling, or click 5006 using the trackball, to open/close the drawer.) Default is true. --> 5007 <attr name="allowSingleTap" format="boolean" /> 5008 <!-- Indicates whether the drawer should be opened/closed with an animation 5009 when the user clicks the handle. Default is true. --> 5010 <attr name="animateOnClick" format="boolean" /> 5011 </declare-styleable> 5012 5013 <!-- GestureOverlayView specific attributes. These attributes are used to configure 5014 a GestureOverlayView from XML. --> 5015 <declare-styleable name="GestureOverlayView"> 5016 <!-- Width of the stroke used to draw the gesture. --> 5017 <attr name="gestureStrokeWidth" format="float" /> 5018 <!-- Color used to draw a gesture. --> 5019 <attr name="gestureColor" format="color" /> 5020 <!-- Color used to draw the user's strokes until we are sure it's a gesture. --> 5021 <attr name="uncertainGestureColor" format="color" /> 5022 <!-- Time, in milliseconds, to wait before the gesture fades out after the user 5023 is done drawing it. --> 5024 <attr name="fadeOffset" format="integer" /> 5025 <!-- Duration, in milliseconds, of the fade out effect after the user is done 5026 drawing a gesture. --> 5027 <attr name="fadeDuration" format="integer" /> 5028 <!-- Defines the type of strokes that define a gesture. --> 5029 <attr name="gestureStrokeType"> 5030 <!-- A gesture is made of only one stroke. --> 5031 <enum name="single" value="0" /> 5032 <!-- A gesture is made of multiple strokes. --> 5033 <enum name="multiple" value="1" /> 5034 </attr> 5035 <!-- Minimum length of a stroke before it is recognized as a gesture. --> 5036 <attr name="gestureStrokeLengthThreshold" format="float" /> 5037 <!-- Squareness threshold of a stroke before it is recognized as a gesture. --> 5038 <attr name="gestureStrokeSquarenessThreshold" format="float" /> 5039 <!-- Minimum curve angle a stroke must contain before it is recognized as a gesture. --> 5040 <attr name="gestureStrokeAngleThreshold" format="float" /> 5041 <!-- Defines whether the overlay should intercept the motion events when a gesture 5042 is recognized. --> 5043 <attr name="eventsInterceptionEnabled" format="boolean" /> 5044 <!-- Defines whether the gesture will automatically fade out after being recognized. --> 5045 <attr name="fadeEnabled" format="boolean" /> 5046 <!-- Indicates whether horizontal (when the orientation is vertical) or vertical 5047 (when orientation is horizontal) strokes automatically define a gesture. --> 5048 <attr name="orientation" /> 5049 </declare-styleable> 5050 5051 <declare-styleable name="QuickContactBadge"> 5052 <attr name="quickContactWindowSize"> 5053 <enum name="modeSmall" value="1" /> 5054 <enum name="modeMedium" value="2" /> 5055 <enum name="modeLarge" value="3" /> 5056 </attr> 5057 </declare-styleable> 5058 5059 <!-- ======================================= --> 5060 <!-- Widget package parent layout attributes --> 5061 <!-- ======================================= --> 5062 <eat-comment /> 5063 5064 <declare-styleable name="AbsoluteLayout_Layout"> 5065 <attr name="layout_x" format="dimension" /> 5066 <attr name="layout_y" format="dimension" /> 5067 </declare-styleable> 5068 <declare-styleable name="LinearLayout_Layout"> 5069 <attr name="layout_width" /> 5070 <attr name="layout_height" /> 5071 <!-- Indicates how much of the extra space in the LinearLayout is 5072 allocated to the view associated with these LayoutParams. Specify 5073 0 if the view should not be stretched. Otherwise the extra pixels 5074 will be pro-rated among all views whose weight is greater than 0. --> 5075 <attr name="layout_weight" format="float" /> 5076 <!-- Gravity specifies how a component should be placed in its group of cells. 5077 The default is {@link android.view.Gravity#TOP}. 5078 See {@link android.widget.LinearLayout#setGravity(int)}. --> 5079 <attr name="layout_gravity" /> 5080 </declare-styleable> 5081 <declare-styleable name="GridLayout_Layout"> 5082 <!-- The row boundary delimiting the top of the group of cells 5083 occupied by this view. --> 5084 <attr name="layout_row" format="integer" /> 5085 <!-- The row span: the difference between the top and bottom 5086 boundaries delimiting the group of cells occupied by this view. 5087 The default is one. 5088 See {@link android.widget.GridLayout.Spec}. --> 5089 <attr name="layout_rowSpan" format="integer" min="1" /> 5090 <!-- The relative proportion of vertical space that should be allocated to this view 5091 during excess space distribution. --> 5092 <attr name="layout_rowWeight" format="float" /> 5093 <!-- The column boundary delimiting the left of the group of cells 5094 occupied by this view. --> 5095 <attr name="layout_column" /> 5096 <!-- The column span: the difference between the right and left 5097 boundaries delimiting the group of cells occupied by this view. 5098 The default is one. 5099 See {@link android.widget.GridLayout.Spec}. --> 5100 <attr name="layout_columnSpan" format="integer" min="1" /> 5101 <!-- The relative proportion of horizontal space that should be allocated to this view 5102 during excess space distribution. --> 5103 <attr name="layout_columnWeight" format="float" /> 5104 <!-- Gravity specifies how a component should be placed in its group of cells. 5105 The default is LEFT | BASELINE. 5106 See {@link android.widget.GridLayout.LayoutParams#setGravity(int)}. --> 5107 <attr name="layout_gravity" /> 5108 </declare-styleable> 5109 <declare-styleable name="FrameLayout_Layout"> 5110 <attr name="layout_gravity" /> 5111 </declare-styleable> 5112 <declare-styleable name="RelativeLayout_Layout"> 5113 <!-- Positions the right edge of this view to the left of the given anchor view ID. 5114 Accommodates right margin of this view and left margin of anchor view. --> 5115 <attr name="layout_toLeftOf" format="reference" /> 5116 <!-- Positions the left edge of this view to the right of the given anchor view ID. 5117 Accommodates left margin of this view and right margin of anchor view. --> 5118 <attr name="layout_toRightOf" format="reference" /> 5119 <!-- Positions the bottom edge of this view above the given anchor view ID. 5120 Accommodates bottom margin of this view and top margin of anchor view. --> 5121 <attr name="layout_above" format="reference" /> 5122 <!-- Positions the top edge of this view below the given anchor view ID. 5123 Accommodates top margin of this view and bottom margin of anchor view. --> 5124 <attr name="layout_below" format="reference" /> 5125 <!-- Positions the baseline of this view on the baseline of the given anchor view ID. --> 5126 <attr name="layout_alignBaseline" format="reference" /> 5127 <!-- Makes the left edge of this view match the left edge of the given anchor view ID. 5128 Accommodates left margin. --> 5129 <attr name="layout_alignLeft" format="reference" /> 5130 <!-- Makes the top edge of this view match the top edge of the given anchor view ID. 5131 Accommodates top margin. --> 5132 <attr name="layout_alignTop" format="reference" /> 5133 <!-- Makes the right edge of this view match the right edge of the given anchor view ID. 5134 Accommodates right margin. --> 5135 <attr name="layout_alignRight" format="reference" /> 5136 <!-- Makes the bottom edge of this view match the bottom edge of the given anchor view ID. 5137 Accommodates bottom margin. --> 5138 <attr name="layout_alignBottom" format="reference" /> 5139 <!-- If true, makes the left edge of this view match the left edge of the parent. 5140 Accommodates left margin. --> 5141 <attr name="layout_alignParentLeft" format="boolean" /> 5142 <!-- If true, makes the top edge of this view match the top edge of the parent. 5143 Accommodates top margin. --> 5144 <attr name="layout_alignParentTop" format="boolean" /> 5145 <!-- If true, makes the right edge of this view match the right edge of the parent. 5146 Accommodates right margin. --> 5147 <attr name="layout_alignParentRight" format="boolean" /> 5148 <!-- If true, makes the bottom edge of this view match the bottom edge of the parent. 5149 Accommodates bottom margin. --> 5150 <attr name="layout_alignParentBottom" format="boolean" /> 5151 <!-- If true, centers this child horizontally and vertically within its parent. --> 5152 <attr name="layout_centerInParent" format="boolean" /> 5153 <!-- If true, centers this child horizontally within its parent. --> 5154 <attr name="layout_centerHorizontal" format="boolean" /> 5155 <!-- If true, centers this child vertically within its parent. --> 5156 <attr name="layout_centerVertical" format="boolean" /> 5157 <!-- If set to true, the parent will be used as the anchor when the anchor cannot be 5158 be found for layout_toLeftOf, layout_toRightOf, etc. --> 5159 <attr name="layout_alignWithParentIfMissing" format="boolean" /> 5160 <!-- Positions the end edge of this view to the start of the given anchor view ID. 5161 Accommodates end margin of this view and start margin of anchor view. --> 5162 <attr name="layout_toStartOf" format="reference" /> 5163 <!-- Positions the start edge of this view to the end of the given anchor view ID. 5164 Accommodates start margin of this view and end margin of anchor view. --> 5165 <attr name="layout_toEndOf" format="reference" /> 5166 <!-- Makes the start edge of this view match the start edge of the given anchor view ID. 5167 Accommodates start margin. --> 5168 <attr name="layout_alignStart" format="reference" /> 5169 <!-- Makes the end edge of this view match the end edge of the given anchor view ID. 5170 Accommodates end margin. --> 5171 <attr name="layout_alignEnd" format="reference" /> 5172 <!-- If true, makes the start edge of this view match the start edge of the parent. 5173 Accommodates start margin. --> 5174 <attr name="layout_alignParentStart" format="boolean" /> 5175 <!-- If true, makes the end edge of this view match the end edge of the parent. 5176 Accommodates end margin. --> 5177 <attr name="layout_alignParentEnd" format="boolean" /> 5178 </declare-styleable> 5179 <declare-styleable name="VerticalSlider_Layout"> 5180 <attr name="layout_scale" format="float" /> 5181 </declare-styleable> 5182 5183 <!-- @hide --> 5184 <declare-styleable name="WeightedLinearLayout"> 5185 <attr name="majorWeightMin" format="float" /> 5186 <attr name="minorWeightMin" format="float" /> 5187 <attr name="majorWeightMax" format="float" /> 5188 <attr name="minorWeightMax" format="float" /> 5189 </declare-styleable> 5190 5191 <declare-styleable name="CalendarView"> 5192 <!-- The first day of week according to {@link java.util.Calendar}. --> 5193 <attr name="firstDayOfWeek" format="integer" /> 5194 <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. --> 5195 <attr name="minDate" /> 5196 <!-- The maximal date shown by this calendar view in mm/dd/yyyy format. --> 5197 <attr name="maxDate" /> 5198 <!-- The text appearance for the month and year in the calendar header. --> 5199 <attr name="monthTextAppearance" format="reference" /> 5200 <!-- The text appearance for the week day abbreviation in the calendar header. --> 5201 <attr name="weekDayTextAppearance" format="reference" /> 5202 <!-- The text appearance for the day numbers in the calendar grid. --> 5203 <attr name="dateTextAppearance" format="reference" /> 5204 <!-- @hide The background color used for the day selection indicator. --> 5205 <attr name="daySelectorColor" format="color" /> 5206 <!-- @hide The background color used for the day highlight indicator. --> 5207 <attr name="dayHighlightColor" format="color" /> 5208 <!-- @hide Which style of calendar delegate to use. --> 5209 <attr name="calendarViewMode"> 5210 <enum name="holo" value="0" /> 5211 <enum name="material" value="1" /> 5212 </attr> 5213 5214 <!-- @deprecated Whether do show week numbers. --> 5215 <attr name="showWeekNumber" format="boolean" /> 5216 <!-- @deprecated The number of weeks to be shown. --> 5217 <attr name="shownWeekCount" format="integer"/> 5218 <!-- @deprecated The background color for the selected week. --> 5219 <attr name="selectedWeekBackgroundColor" format="color|reference" /> 5220 <!-- @deprecated The color for the dates of the focused month. --> 5221 <attr name="focusedMonthDateColor" format="color|reference" /> 5222 <!-- @deprecated The color for the dates of an unfocused month. --> 5223 <attr name="unfocusedMonthDateColor" format="color|reference" /> 5224 <!-- @deprecated The color for the week numbers. --> 5225 <attr name="weekNumberColor" format="color|reference" /> 5226 <!-- @deprecated The color for the separator line between weeks. --> 5227 <attr name="weekSeparatorLineColor" format="color|reference" /> 5228 <!-- @deprecated Drawable for the vertical bar shown at the beginning and at the end of the selected date. --> 5229 <attr name="selectedDateVerticalBar" format="reference" /> 5230 </declare-styleable> 5231 5232 <declare-styleable name="NumberPicker"> 5233 <!-- @hide Color for the solid color background if such for optimized rendering. --> 5234 <attr name="solidColor" format="color|reference" /> 5235 <!-- @hide The divider for making the selection area. --> 5236 <attr name="selectionDivider" format="reference" /> 5237 <!-- @hide The height of the selection divider. --> 5238 <attr name="selectionDividerHeight" format="dimension" /> 5239 <!-- @hide The distance between the two selection dividers. --> 5240 <attr name="selectionDividersDistance" format="dimension" /> 5241 <!-- @hide The min height of the NumberPicker. --> 5242 <attr name="internalMinHeight" format="dimension" /> 5243 <!-- @hide The max height of the NumberPicker. --> 5244 <attr name="internalMaxHeight" format="dimension" /> 5245 <!-- @hide The min width of the NumberPicker. --> 5246 <attr name="internalMinWidth" format="dimension" /> 5247 <!-- @hide The max width of the NumberPicker. --> 5248 <attr name="internalMaxWidth" format="dimension" /> 5249 <!-- @hide The layout of the number picker. --> 5250 <attr name="internalLayout" /> 5251 <!-- @hide The drawable for pressed virtual (increment/decrement) buttons. --> 5252 <attr name="virtualButtonPressedDrawable" format="reference"/> 5253 <!-- @hide If true then the selector wheel is hidden until the picker has focus. --> 5254 <attr name="hideWheelUntilFocused" format="boolean"/> 5255 </declare-styleable> 5256 5257 <declare-styleable name="TimePicker"> 5258 <!-- @hide The layout of the legacy time picker. --> 5259 <attr name="legacyLayout" format="reference" /> 5260 <!-- @hide The layout of the time picker. --> 5261 <attr name="internalLayout" /> 5262 5263 <!-- The text color for the selected time header text, ex. "12" or 5264 "PM". This should be a color state list where the activated state 5265 will be used when the minute picker or hour picker is active.--> 5266 <attr name="headerTextColor" /> 5267 <!-- The background for the header containing the currently selected time. --> 5268 <attr name="headerBackground" /> 5269 5270 <!-- The color for the hours/minutes numbers. This should be a color 5271 state list where the activated state will be used when the number 5272 is active.--> 5273 <attr name="numbersTextColor" format="color" /> 5274 <!-- The color for the inner hours numbers used in 24-hour mode. This 5275 should be a color state list where the activated state will be 5276 used when the number is active.--> 5277 <attr name="numbersInnerTextColor" format="color" /> 5278 <!-- The background color for the hours/minutes numbers. --> 5279 <attr name="numbersBackgroundColor" format="color" /> 5280 <!-- The color for the hours/minutes selector. --> 5281 <attr name="numbersSelectorColor" format="color" /> 5282 5283 <!-- Defines the look of the widget. Prior to the L release, the only choice was 5284 spinner. As of L, with the Material theme selected, the default layout is clock, 5285 but this attribute can be used to force spinner to be used instead. --> 5286 <attr name="timePickerMode"> 5287 <!-- Time picker with spinner controls to select the time. --> 5288 <enum name="spinner" value="1" /> 5289 <!-- Time picker with clock face to select the time. --> 5290 <enum name="clock" value="2" /> 5291 </attr> 5292 5293 <!-- The text appearance for the AM/PM header. 5294 @deprecated Use headerTextColor instead. --> 5295 <attr name="headerAmPmTextAppearance" format="reference" /> 5296 <!-- The text appearance for the time header. 5297 @deprecated Use headerTextColor instead. --> 5298 <attr name="headerTimeTextAppearance" format="reference" /> 5299 <!-- The color for the AM/PM selectors. 5300 {@deprecated Use headerTextColor instead.}--> 5301 <attr name="amPmTextColor" format="color" /> 5302 <!-- The background color state list for the AM/PM selectors. 5303 {@deprecated Use headerBackground instead.}--> 5304 <attr name="amPmBackgroundColor" format="color" /> 5305 5306 <!-- @hide Whether this time picker is being displayed within a dialog, 5307 in which case it may ignore the requested time picker mode due to 5308 space considerations. --> 5309 <attr name="dialogMode" /> 5310 </declare-styleable> 5311 5312 <!-- ========================= --> 5313 <!-- Drawable class attributes --> 5314 <!-- ========================= --> 5315 <eat-comment /> 5316 5317 <!-- Base attributes that are available to all Drawable objects. --> 5318 <declare-styleable name="Drawable"> 5319 <!-- Provides initial visibility state of the drawable; the default 5320 value is false. See 5321 {@link android.graphics.drawable.Drawable#setVisible}. --> 5322 <attr name="visible" format="boolean" /> 5323 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 5324 RTL (right-to-left). See 5325 {@link android.graphics.drawable.Drawable#setAutoMirrored}. --> 5326 <attr name="autoMirrored" format="boolean" /> 5327 </declare-styleable> 5328 5329 <!-- Drawable class used to wrap other drawables. --> 5330 <declare-styleable name="DrawableWrapper"> 5331 <!-- The wrapped drawable. --> 5332 <attr name="drawable" /> 5333 </declare-styleable> 5334 5335 <!-- Drawable used to render several states. Each state is represented by 5336 a child drawable. --> 5337 <declare-styleable name="StateListDrawable"> 5338 <!-- Indicates whether the drawable should be initially visible. --> 5339 <attr name="visible" /> 5340 <!-- If true, allows the drawable's padding to change based on the 5341 current state that is selected. If false, the padding will 5342 stay the same (based on the maximum padding of all the states). 5343 Enabling this feature requires that the owner of the drawable 5344 deal with performing layout when the state changes, which is 5345 often not supported. --> 5346 <attr name="variablePadding" format="boolean" /> 5347 <!-- If true, the drawable's reported internal size will remain 5348 constant as the state changes; the size is the maximum of all 5349 of the states. If false, the size will vary based on the 5350 current state. --> 5351 <attr name="constantSize" format="boolean" /> 5352 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 5353 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 5354 an RGB 565 screen). --> 5355 <attr name="dither" format="boolean" /> 5356 <!-- Amount of time (in milliseconds) to fade in a new state drawable. --> 5357 <attr name="enterFadeDuration" format="integer" /> 5358 <!-- Amount of time (in milliseconds) to fade out an old state drawable. --> 5359 <attr name="exitFadeDuration" format="integer" /> 5360 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 5361 RTL (right-to-left). --> 5362 <attr name="autoMirrored"/> 5363 </declare-styleable> 5364 5365 <!-- Drawable used to render several states with animated transitions. Each state 5366 is represented by a child drawable with an optional keyframe ID. --> 5367 <declare-styleable name="AnimatedStateListDrawable"> 5368 <!-- Indicates whether the drawable should be initially visible. --> 5369 <attr name="visible" /> 5370 <!-- If true, allows the drawable's padding to change based on the 5371 current state that is selected. If false, the padding will 5372 stay the same (based on the maximum padding of all the states). 5373 Enabling this feature requires that the owner of the drawable 5374 deal with performing layout when the state changes, which is 5375 often not supported. --> 5376 <attr name="variablePadding" /> 5377 <!-- If true, the drawable's reported internal size will remain 5378 constant as the state changes; the size is the maximum of all 5379 of the states. If false, the size will vary based on the 5380 current state. --> 5381 <attr name="constantSize" /> 5382 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 5383 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 5384 an RGB 565 screen). --> 5385 <attr name="dither" /> 5386 <!-- Amount of time (in milliseconds) to fade in a new state drawable. --> 5387 <attr name="enterFadeDuration" /> 5388 <!-- Amount of time (in milliseconds) to fade out an old state drawable. --> 5389 <attr name="exitFadeDuration" /> 5390 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 5391 RTL (right-to-left). --> 5392 <attr name="autoMirrored"/> 5393 </declare-styleable> 5394 5395 <!-- Represents a single state inside a StateListDrawable. --> 5396 <declare-styleable name="StateListDrawableItem"> 5397 <!-- Reference to a drawable resource to use for the state. If not 5398 given, the drawable must be defined by the first child tag. --> 5399 <attr name="drawable" /> 5400 </declare-styleable> 5401 5402 <!-- Transition used to animate between states with keyframe IDs. --> 5403 <declare-styleable name="AnimatedStateListDrawableItem"> 5404 <!-- Reference to a drawable resource to use for the frame. If not 5405 given, the drawable must be defined by the first child tag. --> 5406 <attr name="drawable" /> 5407 <!-- Keyframe identifier for use in specifying transitions. --> 5408 <attr name="id" /> 5409 </declare-styleable> 5410 5411 <!-- Transition used to animate between states with keyframe IDs. --> 5412 <declare-styleable name="AnimatedStateListDrawableTransition"> 5413 <!-- Keyframe identifier for the starting state. --> 5414 <attr name="fromId" format="reference" /> 5415 <!-- Keyframe identifier for the ending state. --> 5416 <attr name="toId" format="reference" /> 5417 <!-- Reference to a animation drawable resource to use for the frame. If not 5418 given, the animation drawable must be defined by the first child tag. --> 5419 <attr name="drawable" /> 5420 <!-- Whether this transition is reversible. --> 5421 <attr name="reversible" format="boolean" /> 5422 </declare-styleable> 5423 5424 <!-- Drawable used to render several animated frames. --> 5425 <declare-styleable name="AnimationDrawable"> 5426 <attr name="visible" /> 5427 <attr name="variablePadding" /> 5428 <!-- If true, the animation will only run a single time and then 5429 stop. If false (the default), it will continually run, 5430 restarting at the first frame after the last has finished. --> 5431 <attr name="oneshot" format="boolean" /> 5432 </declare-styleable> 5433 5434 <!-- Represents a single frame inside an AnimationDrawable. --> 5435 <declare-styleable name="AnimationDrawableItem"> 5436 <!-- Amount of time (in milliseconds) to display this frame. --> 5437 <attr name="duration" format="integer" /> 5438 <!-- Reference to a drawable resource to use for the frame. If not 5439 given, the drawable must be defined by the first child tag. --> 5440 <attr name="drawable" format="reference" /> 5441 </declare-styleable> 5442 5443 <!-- Attributes that can be assigned to a StateListAnimator item. --> 5444 <declare-styleable name="StateListAnimatorItem"> 5445 <attr name="animation"/> 5446 </declare-styleable> 5447 5448 <!-- Attributes that can be assigned to a ColorStateList item. --> 5449 <declare-styleable name="ColorStateListItem"> 5450 <!-- Base color for this state. --> 5451 <attr name="color" /> 5452 <!-- Alpha multiplier applied to the base color. --> 5453 <attr name="alpha" /> 5454 </declare-styleable> 5455 5456 <!-- Drawable used to render according to the animation scale. Esp. when it is 0 due to battery 5457 saver mode. It should contain one animatable drawable and one static drawable. 5458 @hide --> 5459 <declare-styleable name="AnimationScaleListDrawable"> 5460 </declare-styleable> 5461 5462 <!-- Attributes that can be assigned to a AnimationScaleListDrawable item. 5463 @hide --> 5464 <declare-styleable name="AnimationScaleListDrawableItem"> 5465 <!-- Reference to a drawable resource to use for the state. If not 5466 given, the drawable must be defined by the first child tag. --> 5467 <attr name="drawable" /> 5468 </declare-styleable> 5469 5470 5471 <!-- Drawable used to render a geometric shape, with a gradient or a solid color. --> 5472 <declare-styleable name="GradientDrawable"> 5473 <!-- Indicates whether the drawable should intially be visible. --> 5474 <attr name="visible" /> 5475 <!-- Enables or disables dithering. --> 5476 <attr name="dither" /> 5477 <!-- Indicates what shape to fill with a gradient. --> 5478 <attr name="shape"> 5479 <!-- Rectangle shape, with optional rounder corners. --> 5480 <enum name="rectangle" value="0" /> 5481 <!-- Oval shape. --> 5482 <enum name="oval" value="1" /> 5483 <!-- Line shape. --> 5484 <enum name="line" value="2" /> 5485 <!-- Ring shape. --> 5486 <enum name="ring" value="3" /> 5487 </attr> 5488 <!-- Inner radius of the ring expressed as a ratio of the ring's width. For instance, 5489 if innerRadiusRatio=9, then the inner radius equals the ring's width divided by 9. 5490 This value is ignored if innerRadius is defined. Default value is 9. --> 5491 <attr name="innerRadiusRatio" format="float" /> 5492 <!-- Thickness of the ring expressed as a ratio of the ring's width. For instance, 5493 if thicknessRatio=3, then the thickness equals the ring's width divided by 3. 5494 This value is ignored if innerRadius is defined. Default value is 3. --> 5495 <attr name="thicknessRatio" format="float" /> 5496 <!-- Inner radius of the ring. When defined, innerRadiusRatio is ignored. --> 5497 <attr name="innerRadius" format="dimension" /> 5498 <!-- Thickness of the ring. When defined, thicknessRatio is ignored. --> 5499 <attr name="thickness" format="dimension" /> 5500 <!-- Whether the drawable level value (see 5501 {@link android.graphics.drawable.Drawable#getLevel()}) is used to scale the shape. 5502 Scaling behavior depends on the shape type. For "ring", the angle is scaled from 0 to 5503 360. For all other types, there is no effect. The default value is true. --> 5504 <attr name="useLevel" /> 5505 <!-- If set, specifies the color to apply to the drawable as a tint. By default, 5506 no tint is applied. May be a color state list. --> 5507 <attr name="tint" /> 5508 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The 5509 default value is src_in, which treats the drawable as an alpha mask. --> 5510 <attr name="tintMode" /> 5511 <!-- Left optical inset. 5512 @hide Until optical insets are fully supported. --> 5513 <attr name="opticalInsetLeft" /> 5514 <!-- Top optical inset. 5515 @hide Until optical insets are fully supported. --> 5516 <attr name="opticalInsetTop" /> 5517 <!-- Right optical inset. 5518 @hide Until optical insets are fully supported. --> 5519 <attr name="opticalInsetRight" /> 5520 <!-- Bottom optical inset. 5521 @hide Until optical insets are fully supported. --> 5522 <attr name="opticalInsetBottom" /> 5523 </declare-styleable> 5524 5525 <!-- Used to specify the size of the shape for GradientDrawable. --> 5526 <declare-styleable name="GradientDrawableSize"> 5527 <!-- Width of the gradient shape. --> 5528 <attr name="width" /> 5529 <!-- Height of the gradient shape. --> 5530 <attr name="height" /> 5531 </declare-styleable> 5532 5533 <!-- Used to describe the gradient used to fill the shape of a GradientDrawable. --> 5534 <declare-styleable name="GradientDrawableGradient"> 5535 <!-- Start color of the gradient. --> 5536 <attr name="startColor" format="color" /> 5537 <!-- Optional center color. For linear gradients, use centerX or centerY to place the center 5538 color. --> 5539 <attr name="centerColor" format="color" /> 5540 <!-- End color of the gradient. --> 5541 <attr name="endColor" format="color" /> 5542 <!-- Whether the drawable level value (see 5543 {@link android.graphics.drawable.Drawable#getLevel()}) is used to scale the gradient. 5544 Scaling behavior varies based on gradient type. For "linear", adjusts the ending 5545 position along the gradient's axis of orientation. For "radial", adjusts the outer 5546 radius. For "sweep", adjusts the ending angle. The default value is false. --> 5547 <attr name="useLevel" format="boolean" /> 5548 <!-- Angle of the gradient, used only with linear gradient. Must be a multiple of 45 in the 5549 range [0, 315]. --> 5550 <attr name="angle" format="float" /> 5551 <!-- Type of gradient. The default type is linear. --> 5552 <attr name="type"> 5553 <!-- Linear gradient extending across the center point. --> 5554 <enum name="linear" value="0" /> 5555 <!-- Radial gradient extending from the center point outward. --> 5556 <enum name="radial" value="1" /> 5557 <!-- Sweep (or angular) gradient sweeping counter-clockwise around the center point. --> 5558 <enum name="sweep" value="2" /> 5559 </attr> 5560 <!-- X-position of the center point of the gradient within the shape as a fraction of the 5561 width. The default value is 0.5. --> 5562 <attr name="centerX" format="float|fraction" /> 5563 <!-- Y-position of the center point of the gradient within the shape as a fraction of the 5564 height. The default value is 0.5. --> 5565 <attr name="centerY" format="float|fraction" /> 5566 <!-- Radius of the gradient, used only with radial gradient. May be an explicit dimension 5567 or a fractional value relative to the shape's minimum dimension. --> 5568 <attr name="gradientRadius" format="float|fraction|dimension" /> 5569 </declare-styleable> 5570 5571 <!-- Used to fill the shape of GradientDrawable with a solid color. --> 5572 <declare-styleable name="GradientDrawableSolid"> 5573 <!-- Solid color for the gradient shape. --> 5574 <attr name="color" format="color" /> 5575 </declare-styleable> 5576 5577 <!-- Used to describe the optional stroke of a GradientDrawable. --> 5578 <declare-styleable name="GradientDrawableStroke"> 5579 <!-- Width of the gradient shape's stroke. --> 5580 <attr name="width" /> 5581 <!-- Color of the gradient shape's stroke. --> 5582 <attr name="color" /> 5583 <!-- Length of a dash in the stroke. --> 5584 <attr name="dashWidth" format="dimension" /> 5585 <!-- Gap between dashes in the stroke. --> 5586 <attr name="dashGap" format="dimension" /> 5587 </declare-styleable> 5588 5589 <!-- Describes the corners for the rectangle shape of a GradientDrawable. 5590 This can be used to render rounded corners. --> 5591 <declare-styleable name="DrawableCorners"> 5592 <!-- Defines the radius of the four corners. --> 5593 <attr name="radius" format="dimension" /> 5594 <!-- Radius of the top left corner. --> 5595 <attr name="topLeftRadius" format="dimension" /> 5596 <!-- Radius of the top right corner. --> 5597 <attr name="topRightRadius" format="dimension" /> 5598 <!-- Radius of the bottom left corner. --> 5599 <attr name="bottomLeftRadius" format="dimension" /> 5600 <!-- Radius of the bottom right corner. --> 5601 <attr name="bottomRightRadius" format="dimension" /> 5602 </declare-styleable> 5603 5604 <!-- Used to specify the optional padding of a GradientDrawable. --> 5605 <declare-styleable name="GradientDrawablePadding"> 5606 <!-- Amount of left padding inside the gradient shape. --> 5607 <attr name="left" format="dimension" /> 5608 <!-- Amount of top padding inside the gradient shape. --> 5609 <attr name="top" format="dimension" /> 5610 <!-- Amount of right padding inside the gradient shape. --> 5611 <attr name="right" format="dimension" /> 5612 <!-- Amount of bottom padding inside the gradient shape. --> 5613 <attr name="bottom" format="dimension" /> 5614 </declare-styleable> 5615 5616 <!-- Drawable used to render several drawables stacked on top of each other. 5617 Each child drawable can be controlled individually. --> 5618 <declare-styleable name="LayerDrawable"> 5619 <!-- Indicates the opacity of the layer. This can be useful to allow the 5620 system to enable drawing optimizations. The default value is 5621 translucent. --> 5622 <attr name="opacity"> 5623 <!-- Indicates that the layer is opaque and contains no transparent 5624 nor translucent pixels. --> 5625 <enum name="opaque" value="-1" /> 5626 <!-- The layer is completely transparent (no pixel will be drawn.) --> 5627 <enum name="transparent" value="-2" /> 5628 <!-- The layer has translucent pixels. --> 5629 <enum name="translucent" value="-3" /> 5630 </attr> 5631 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 5632 RTL (right-to-left). --> 5633 <attr name="autoMirrored" /> 5634 <!-- Indicates how layer padding should affect the bounds of subsequent layers. 5635 The default padding mode value is nest. --> 5636 <attr name="paddingMode"> 5637 <!-- Nest each layer inside the padding of the previous layer. --> 5638 <enum name="nest" value="0" /> 5639 <!-- Stack each layer directly atop the previous layer. --> 5640 <enum name="stack" value="1" /> 5641 </attr> 5642 <!-- Explicit top padding. Overrides child padding. --> 5643 <attr name="paddingTop" /> 5644 <!-- Explicit bottom padding. Overrides child padding. --> 5645 <attr name="paddingBottom" /> 5646 <!-- Explicit left padding. Overrides child padding. --> 5647 <attr name="paddingLeft" /> 5648 <!-- Explicit right padding. Overrides child padding. --> 5649 <attr name="paddingRight" /> 5650 <!-- Explicit start padding. Overrides child padding. Takes precedence 5651 over absolute padding (e.g. left when layout direction is LTR). --> 5652 <attr name="paddingStart" /> 5653 <!-- Explicit end padding. Overrides child padding. Takes precedence 5654 over absolute padding (e.g. right when layout direction is LTR). --> 5655 <attr name="paddingEnd" /> 5656 </declare-styleable> 5657 5658 <!-- Describes an item (or child) of a LayerDrawable. --> 5659 <declare-styleable name="LayerDrawableItem"> 5660 <!-- Left inset to apply to the layer. --> 5661 <attr name="left" /> 5662 <!-- Top inset to apply to the layer. --> 5663 <attr name="top" /> 5664 <!-- Right inset to apply to the layer. --> 5665 <attr name="right" /> 5666 <!-- Bottom inset to apply to the layer. --> 5667 <attr name="bottom" /> 5668 <!-- Start inset to apply to the layer. Overrides {@code left} or 5669 {@code right} depending on layout direction. --> 5670 <attr name="start" format="dimension" /> 5671 <!-- End inset to apply to the layer. Overrides {@code left} or 5672 {@code right} depending on layout direction. --> 5673 <attr name="end" format="dimension" /> 5674 <!-- Width of the layer. Defaults to the layer's intrinsic width. --> 5675 <attr name="width" /> 5676 <!-- Height of the layer. Defaults to the layer's intrinsic height --> 5677 <attr name="height" /> 5678 <!-- Gravity used to align the layer within its container. If no value 5679 is specified, the default behavior depends on whether an explicit 5680 width or height has been set, If no dimension is set, gravity in 5681 that direction defaults to {@code fill_horizontal} or 5682 {@code fill_vertical}; otherwise, it defaults to {@code left} or 5683 {@code top}. --> 5684 <attr name="gravity" /> 5685 <!-- Drawable used to render the layer. --> 5686 <attr name="drawable" /> 5687 <!-- Identifier of the layer. This can be used to retrieve the layer 5688 from a drawable container. --> 5689 <attr name="id" /> 5690 </declare-styleable> 5691 5692 <declare-styleable name="LevelListDrawableItem"> 5693 <!-- The minimum level allowed for this item. --> 5694 <attr name="minLevel" format="integer" /> 5695 <!-- The maximum level allowed for this item. --> 5696 <attr name="maxLevel" format="integer" /> 5697 <attr name="drawable" /> 5698 </declare-styleable> 5699 5700 <!-- Drawable used to rotate another drawable. --> 5701 <declare-styleable name="RotateDrawable"> 5702 <attr name="visible" /> 5703 <attr name="fromDegrees" format="float" /> 5704 <attr name="toDegrees" format="float" /> 5705 <attr name="pivotX" format="float|fraction" /> 5706 <attr name="pivotY" format="float|fraction" /> 5707 <attr name="drawable" /> 5708 </declare-styleable> 5709 5710 <declare-styleable name="AnimatedRotateDrawable"> 5711 <attr name="visible" /> 5712 <attr name="frameDuration" format="integer" /> 5713 <attr name="framesCount" format="integer" /> 5714 <attr name="pivotX" /> 5715 <attr name="pivotY" /> 5716 <attr name="drawable" /> 5717 </declare-styleable> 5718 5719 <!-- Drawable used to render the Material progress indicator. --> 5720 <declare-styleable name="MaterialProgressDrawable"> 5721 <attr name="visible" /> 5722 <attr name="thickness" /> 5723 <attr name="innerRadius" /> 5724 <attr name="width" /> 5725 <attr name="height" /> 5726 <attr name="color" /> 5727 </declare-styleable> 5728 5729 <!-- Drawable used to wrap and inset another drawable. --> 5730 <declare-styleable name="InsetDrawable"> 5731 <attr name="visible" /> 5732 <attr name="drawable" /> 5733 <attr name="inset" format="dimension"/> 5734 <attr name="insetLeft" format="dimension" /> 5735 <attr name="insetRight" format="dimension" /> 5736 <attr name="insetTop" format="dimension" /> 5737 <attr name="insetBottom" format="dimension" /> 5738 </declare-styleable> 5739 5740 <!-- Drawable used to draw bitmaps. --> 5741 <declare-styleable name="BitmapDrawable"> 5742 <!-- Identifier of the bitmap file. This attribute is mandatory. --> 5743 <attr name="src" /> 5744 <!-- Enables or disables antialiasing. Antialiasing can be used to smooth the 5745 edges of a bitmap when rotated. Default value is false. --> 5746 <attr name="antialias" format="boolean" /> 5747 <!-- Enables or disables bitmap filtering. Filtering is used when the bitmap is 5748 shrunk or stretched to smooth its apperance. Default value is true. --> 5749 <attr name="filter" format="boolean" /> 5750 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 5751 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 5752 an RGB 565 screen). Default value is true. --> 5753 <attr name="dither" /> 5754 <!-- Defines the gravity for the bitmap. The gravity indicates where to position 5755 the drawable in its container if the bitmap is smaller than the container. --> 5756 <attr name="gravity" /> 5757 <!-- Defines the tile mode. When the tile mode is enabled, the bitmap is repeated. 5758 Gravity is ignored when the tile mode is enabled. Default value is "disabled". --> 5759 <attr name="tileMode"> 5760 <!-- Do not tile the bitmap. This is the default value. --> 5761 <enum name="disabled" value="-1" /> 5762 <!-- Replicates the edge color. --> 5763 <enum name="clamp" value="0" /> 5764 <!-- Repeats the bitmap in both direction. --> 5765 <enum name="repeat" value="1" /> 5766 <!-- Repeats the shader's image horizontally and vertically, alternating 5767 mirror images so that adjacent images always seam. --> 5768 <enum name="mirror" value="2" /> 5769 </attr> 5770 <!-- Defines the horizontal tile mode. When the tile mode is enabled, the bitmap is repeated. 5771 Gravity is ignored when the tile mode is enabled. Default value is "disabled". --> 5772 <attr name="tileModeX"> 5773 <!-- Do not tile the bitmap. This is the default value. --> 5774 <enum name="disabled" value="-1" /> 5775 <!-- Replicates the edge color. --> 5776 <enum name="clamp" value="0" /> 5777 <!-- Repeats the bitmap horizontally. --> 5778 <enum name="repeat" value="1" /> 5779 <!-- Repeats the shader's image horizontally, alternating 5780 mirror images so that adjacent images always seam. --> 5781 <enum name="mirror" value="2" /> 5782 </attr> 5783 <!-- Defines the vertical tile mode. When the tile mode is enabled, the bitmap is repeated. 5784 Gravity is ignored when the tile mode is enabled. Default value is "disabled". --> 5785 <attr name="tileModeY"> 5786 <!-- Do not tile the bitmap. This is the default value. --> 5787 <enum name="disabled" value="-1" /> 5788 <!-- Replicates the edge color. --> 5789 <enum name="clamp" value="0" /> 5790 <!-- Repeats the bitmap vertically. --> 5791 <enum name="repeat" value="1" /> 5792 <!-- Repeats the shader's image vertically, alternating 5793 mirror images so that adjacent images always seam. --> 5794 <enum name="mirror" value="2" /> 5795 </attr> 5796 <!-- Enables or disables the mipmap hint. See 5797 {@link android.graphics.Bitmap#setHasMipMap(boolean)} for more information. 5798 Default value is false. --> 5799 <attr name="mipMap" format="boolean" /> 5800 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 5801 RTL (right-to-left). --> 5802 <attr name="autoMirrored" /> 5803 <!-- If set, specifies the color to apply to the drawable as a tint. By default, 5804 no tint is applied. May be a color state list. --> 5805 <attr name="tint" /> 5806 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The 5807 default value is src_in, which treats the drawable as an alpha mask. --> 5808 <attr name="tintMode"> 5809 <!-- The tint is drawn on top of the drawable. 5810 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 5811 <enum name="src_over" value="3" /> 5812 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 5813 color channels are thrown out. [Sa * Da, Sc * Da] --> 5814 <enum name="src_in" value="5" /> 5815 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 5816 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 5817 <enum name="src_atop" value="9" /> 5818 <!-- Multiplies the color and alpha channels of the drawable with those of 5819 the tint. [Sa * Da, Sc * Dc] --> 5820 <enum name="multiply" value="14" /> 5821 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 5822 <enum name="screen" value="15" /> 5823 <!-- Combines the tint and drawable color and alpha channels, clamping the 5824 result to valid color values. Saturate(S + D) --> 5825 <enum name="add" value="16" /> 5826 </attr> 5827 <!-- Specifies the alpha multiplier to apply to the base drawable. --> 5828 <attr name="alpha" /> 5829 </declare-styleable> 5830 5831 <!-- Drawable used to draw 9-patches. --> 5832 <declare-styleable name="NinePatchDrawable"> 5833 <!-- Identifier of the bitmap file. This attribute is mandatory. --> 5834 <attr name="src" /> 5835 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 5836 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 5837 an RGB 565 screen). --> 5838 <attr name="dither" /> 5839 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 5840 RTL (right-to-left). --> 5841 <attr name="autoMirrored" /> 5842 <!-- If set, specifies the color to apply to the drawable as a tint. By default, 5843 no tint is applied. May be a color state list. --> 5844 <attr name="tint" /> 5845 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The 5846 default value is src_in, which treats the drawable as an alpha mask. --> 5847 <attr name="tintMode" /> 5848 <!-- Specifies the alpha multiplier to apply to the base drawable. --> 5849 <attr name="alpha" /> 5850 </declare-styleable> 5851 5852 <!-- Drawable used to draw a single color. --> 5853 <declare-styleable name="ColorDrawable"> 5854 <!-- The color to use. --> 5855 <attr name="color" /> 5856 </declare-styleable> 5857 5858 <!-- Drawable used to draw adaptive icons with foreground and background layers. --> 5859 <declare-styleable name="AdaptiveIconDrawableLayer"> 5860 <!-- The drawable to use for the layer. --> 5861 <attr name="drawable" /> 5862 </declare-styleable> 5863 5864 <!-- Drawable used to show animated touch feedback. --> 5865 <declare-styleable name="RippleDrawable"> 5866 <!-- The color to use for ripple effects. This attribute is required. --> 5867 <attr name="color" /> 5868 <!-- The radius of the ripple when fully expanded. By default, the 5869 radius is computed based on the size of the ripple's container. --> 5870 <attr name="radius" /> 5871 </declare-styleable> 5872 5873 <declare-styleable name="ScaleDrawable"> 5874 <!-- Scale width, expressed as a percentage of the drawable's bound. The value's 5875 format is XX%. For instance: 100%, 12.5%, etc.--> 5876 <attr name="scaleWidth" format="string" /> 5877 <!-- Scale height, expressed as a percentage of the drawable's bound. The value's 5878 format is XX%. For instance: 100%, 12.5%, etc.--> 5879 <attr name="scaleHeight" format="string" /> 5880 <!-- Specifies where the drawable is positioned after scaling. The default value is 5881 left. --> 5882 <attr name="scaleGravity"> 5883 <!-- Push object to the top of its container, not changing its size. --> 5884 <flag name="top" value="0x30" /> 5885 <!-- Push object to the bottom of its container, not changing its size. --> 5886 <flag name="bottom" value="0x50" /> 5887 <!-- Push object to the left of its container, not changing its size. --> 5888 <flag name="left" value="0x03" /> 5889 <!-- Push object to the right of its container, not changing its size. --> 5890 <flag name="right" value="0x05" /> 5891 <!-- Place object in the vertical center of its container, not changing its size. --> 5892 <flag name="center_vertical" value="0x10" /> 5893 <!-- Grow the vertical size of the object if needed so it completely fills its container. --> 5894 <flag name="fill_vertical" value="0x70" /> 5895 <!-- Place object in the horizontal center of its container, not changing its size. --> 5896 <flag name="center_horizontal" value="0x01" /> 5897 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 5898 <flag name="fill_horizontal" value="0x07" /> 5899 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> 5900 <flag name="center" value="0x11" /> 5901 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> 5902 <flag name="fill" value="0x77" /> 5903 <!-- Additional option that can be set to have the top and/or bottom edges of 5904 the child clipped to its container's bounds. 5905 The clip will be based on the vertical gravity: a top gravity will clip the bottom 5906 edge, a bottom gravity will clip the top edge, and neither will clip both edges. --> 5907 <flag name="clip_vertical" value="0x80" /> 5908 <!-- Additional option that can be set to have the left and/or right edges of 5909 the child clipped to its container's bounds. 5910 The clip will be based on the horizontal gravity: a left gravity will clip the right 5911 edge, a right gravity will clip the left edge, and neither will clip both edges. --> 5912 <flag name="clip_horizontal" value="0x08" /> 5913 <!-- Push object to the beginning of its container, not changing its size. --> 5914 <flag name="start" value="0x00800003" /> 5915 <!-- Push object to the end of its container, not changing its size. --> 5916 <flag name="end" value="0x00800005" /> 5917 </attr> 5918 <!-- Specifies the initial drawable level in the range 0 to 10000. --> 5919 <attr name="level" format="integer" /> 5920 <!-- Reference to a drawable resource to draw with the specified scale. --> 5921 <attr name="drawable" /> 5922 <!-- Use the drawable's intrinsic width and height as minimum size values. 5923 Useful if the target drawable is a 9-patch or otherwise should not be scaled 5924 down beyond a minimum size. --> 5925 <attr name="useIntrinsicSizeAsMinimum" format="boolean" /> 5926 </declare-styleable> 5927 5928 <declare-styleable name="ClipDrawable"> 5929 <!-- The orientation for the clip. --> 5930 <attr name="clipOrientation"> 5931 <!-- Clip the drawable horizontally. --> 5932 <flag name="horizontal" value="1" /> 5933 <!-- Clip the drawable vertically. --> 5934 <flag name="vertical" value="2" /> 5935 </attr> 5936 <!-- Specifies where to clip within the drawable. The default value is 5937 left. --> 5938 <attr name="gravity" /> 5939 <!-- Reference to a drawable resource to draw with the specified scale. --> 5940 <attr name="drawable" /> 5941 </declare-styleable> 5942 5943 <!-- Defines the padding of a ShapeDrawable. --> 5944 <declare-styleable name="ShapeDrawablePadding"> 5945 <!-- Left padding. --> 5946 <attr name="left" /> 5947 <!-- Top padding. --> 5948 <attr name="top" /> 5949 <!-- Right padding. --> 5950 <attr name="right" /> 5951 <!-- Bottom padding. --> 5952 <attr name="bottom" /> 5953 </declare-styleable> 5954 5955 <!-- Drawable used to draw shapes. --> 5956 <declare-styleable name="ShapeDrawable"> 5957 <!-- Defines the color of the shape. --> 5958 <attr name="color" /> 5959 <!-- Defines the width of the shape. --> 5960 <attr name="width" /> 5961 <!-- Defines the height of the shape. --> 5962 <attr name="height" /> 5963 <!-- Enables or disables dithering. --> 5964 <attr name="dither" /> 5965 <!-- If set, specifies the color to apply to the drawable as a tint. By default, 5966 no tint is applied. May be a color state list. --> 5967 <attr name="tint" /> 5968 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The 5969 default value is src_in, which treats the drawable as an alpha mask. --> 5970 <attr name="tintMode" /> 5971 </declare-styleable> 5972 5973 <!-- ========================== --> 5974 <!-- VectorDrawable class --> 5975 <!-- ========================== --> 5976 <eat-comment /> 5977 5978 <!-- Drawable used to draw vector paths. --> 5979 <declare-styleable name="VectorDrawable"> 5980 <!-- If set, specifies the color to apply to the drawable as a tint. By default, 5981 no tint is applied. May be a color state list. --> 5982 <attr name="tint" /> 5983 <!-- When a tint color is set, specifies its Porter-Duff blending mode. The 5984 default value is src_in, which treats the drawable as an alpha mask. --> 5985 <attr name="tintMode" /> 5986 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 5987 RTL (right-to-left). --> 5988 <attr name="autoMirrored" /> 5989 <!-- The intrinsic width of the Vector Drawable. --> 5990 <attr name="width" /> 5991 <!-- The intrinsic height of the Vector Drawable. --> 5992 <attr name="height" /> 5993 <!-- The width of the canvas the drawing is on. --> 5994 <attr name="viewportWidth" format="float"/> 5995 <!-- The height of the canvas the drawing is on. --> 5996 <attr name="viewportHeight" format="float"/> 5997 <!-- The name of this vector drawable --> 5998 <attr name="name" /> 5999 <!-- The opacity of the whole vector drawable, as a value between 0 6000 (completely transparent) and 1 (completely opaque). --> 6001 <attr name="alpha" /> 6002 <!-- Left optical inset. 6003 @hide Until optical insets are fully supported. --> 6004 <attr name="opticalInsetLeft" format="dimension" /> 6005 <!-- Top optical inset. 6006 @hide Until optical insets are fully supported. --> 6007 <attr name="opticalInsetTop" format="dimension" /> 6008 <!-- Right optical inset. 6009 @hide Until optical insets are fully supported. --> 6010 <attr name="opticalInsetRight" format="dimension" /> 6011 <!-- Bottom optical inset. 6012 @hide Until optical insets are fully supported. --> 6013 <attr name="opticalInsetBottom" format="dimension" /> 6014 </declare-styleable> 6015 6016 <!-- Defines the group used in VectorDrawables. --> 6017 <declare-styleable name="VectorDrawableGroup"> 6018 <!-- The name of this group --> 6019 <attr name="name" /> 6020 <!-- The amount to rotate the group --> 6021 <attr name="rotation" /> 6022 <!-- The X coordinate of the center of rotation of a group --> 6023 <attr name="pivotX" /> 6024 <!-- The Y coordinate of the center of rotation of a group --> 6025 <attr name="pivotY" /> 6026 <!-- The amount to translate the group on X coordinate --> 6027 <attr name="translateX" format="float"/> 6028 <!-- The amount to translate the group on Y coordinate --> 6029 <attr name="translateY" format="float"/> 6030 <!-- The amount to scale the group on X coordinate --> 6031 <attr name="scaleX" /> 6032 <!-- The amount to scale the group on X coordinate --> 6033 <attr name="scaleY" /> 6034 </declare-styleable> 6035 6036 <!-- Defines the path used in VectorDrawables. --> 6037 <declare-styleable name="VectorDrawablePath"> 6038 <!-- The name of this path --> 6039 <attr name="name" /> 6040 <!-- The width a path stroke --> 6041 <attr name="strokeWidth" format="float" /> 6042 <!-- The color to stroke the path if not defined implies no stroke--> 6043 <attr name="strokeColor" format="color" /> 6044 <!-- The opacity of a path stroke, as a value between 0 (completely transparent) 6045 and 1 (completely opaque) --> 6046 <attr name="strokeAlpha" format="float" /> 6047 <!-- The color to fill the path if not defined implies no fill--> 6048 <attr name="fillColor" format="color" /> 6049 <!-- The alpha of the path fill, as a value between 0 (completely transparent) 6050 and 1 (completely opaque)--> 6051 <attr name="fillAlpha" format="float" /> 6052 <!-- The specification of the operations that define the path --> 6053 <attr name="pathData" format="string" /> 6054 <!-- The fraction of the path to trim from the start from 0 to 1 --> 6055 <attr name="trimPathStart" format="float" /> 6056 <!-- The fraction of the path to trim from the end from 0 to 1 --> 6057 <attr name="trimPathEnd" format="float" /> 6058 <!-- Shift trim region (allows visible region to include the start and end) from 0 to 1 --> 6059 <attr name="trimPathOffset" format="float" /> 6060 <!-- sets the linecap for a stroked path --> 6061 <attr name="strokeLineCap" format="enum"> 6062 <enum name="butt" value="0"/> 6063 <enum name="round" value="1"/> 6064 <enum name="square" value="2"/> 6065 </attr> 6066 <!-- sets the lineJoin for a stroked path --> 6067 <attr name="strokeLineJoin" format="enum"> 6068 <enum name="miter" value="0"/> 6069 <enum name="round" value="1"/> 6070 <enum name="bevel" value="2"/> 6071 </attr> 6072 <!-- sets the Miter limit for a stroked path --> 6073 <attr name="strokeMiterLimit" format="float"/> 6074 <!-- sets the fillType for a path. It is the same as SVG's "fill-rule" properties. 6075 For more details, see https://www.w3.org/TR/SVG/painting.html#FillRuleProperty --> 6076 <attr name="fillType" format="enum"> 6077 <enum name="nonZero" value="0"/> 6078 <enum name="evenOdd" value="1"/> 6079 </attr> 6080 </declare-styleable> 6081 6082 <!-- Defines the clip path used in VectorDrawables. --> 6083 <declare-styleable name="VectorDrawableClipPath"> 6084 <!-- The Name of this path --> 6085 <attr name="name" /> 6086 <!-- The specification of the operations that define the path --> 6087 <attr name="pathData"/> 6088 </declare-styleable> 6089 6090 <!-- ========================== --> 6091 <!-- AnimatedVectorDrawable class --> 6092 <!-- ========================== --> 6093 <eat-comment /> 6094 6095 <!-- Define the AnimatedVectorDrawable. --> 6096 <declare-styleable name="AnimatedVectorDrawable"> 6097 <!-- The static vector drawable. --> 6098 <attr name="drawable" /> 6099 </declare-styleable> 6100 6101 <!-- Defines the target used in the AnimatedVectorDrawable. --> 6102 <declare-styleable name="AnimatedVectorDrawableTarget"> 6103 <!-- The name of the target path, group or vector drawable --> 6104 <attr name="name" /> 6105 <!-- The animation for the target path, group or vector drawable --> 6106 <attr name="animation" /> 6107 </declare-styleable> 6108 6109 <!-- ========================== --> 6110 <!-- Animation class attributes --> 6111 <!-- ========================== --> 6112 <eat-comment /> 6113 6114 <declare-styleable name="Animation"> 6115 <!-- Defines the interpolator used to smooth the animation movement in time. --> 6116 <attr name="interpolator" /> 6117 <!-- When set to true, the value of fillBefore is taken into account. --> 6118 <attr name="fillEnabled" format="boolean" /> 6119 <!-- When set to true or when fillEnabled is not set to true, the animation transformation 6120 is applied before the animation has started. The default value is true. --> 6121 <attr name="fillBefore" format="boolean" /> 6122 <!-- When set to true, the animation transformation is applied after the animation is 6123 over. The default value is false. If fillEnabled is not set to true and the 6124 animation is not set on a View, fillAfter is assumed to be true.--> 6125 <attr name="fillAfter" format="boolean" /> 6126 <!-- Amount of time (in milliseconds) for the animation to run. --> 6127 <attr name="duration" /> 6128 <!-- Delay in milliseconds before the animation runs, once start time is reached. --> 6129 <attr name="startOffset" format="integer" /> 6130 <!-- Defines how many times the animation should repeat. The default value is 0. --> 6131 <attr name="repeatCount" format="integer"> 6132 <enum name="infinite" value="-1" /> 6133 </attr> 6134 <!-- Defines the animation behavior when it reaches the end and the repeat count is 6135 greater than 0 or infinite. The default value is restart. --> 6136 <attr name="repeatMode"> 6137 <!-- The animation starts again from the beginning. --> 6138 <enum name="restart" value="1" /> 6139 <!-- The animation plays backward. --> 6140 <enum name="reverse" value="2" /> 6141 </attr> 6142 <!-- Allows for an adjustment of the Z ordering of the content being 6143 animated for the duration of the animation. The default value is normal. --> 6144 <attr name="zAdjustment"> 6145 <!-- The content being animated be kept in its current Z order. --> 6146 <enum name="normal" value="0" /> 6147 <!-- The content being animated is forced on top of all other 6148 content for the duration of the animation. --> 6149 <enum name="top" value="1" /> 6150 <!-- The content being animated is forced under all other 6151 content for the duration of the animation. --> 6152 <enum name="bottom" value="-1" /> 6153 </attr> 6154 <!-- Special background behind animation. Only for use with window 6155 animations. Can only be a color, and only black. If 0, the 6156 default, there is no background. --> 6157 <attr name="background" /> 6158 <!-- Special option for window animations: if this window is on top 6159 of a wallpaper, don't animate the wallpaper with it. --> 6160 <attr name="detachWallpaper" format="boolean" /> 6161 </declare-styleable> 6162 6163 <declare-styleable name="AnimationSet"> 6164 <attr name="shareInterpolator" format="boolean" /> 6165 <attr name="fillBefore" /> 6166 <attr name="fillAfter" /> 6167 <attr name="duration" /> 6168 <attr name="startOffset" /> 6169 <attr name="repeatMode" /> 6170 </declare-styleable> 6171 6172 <declare-styleable name="RotateAnimation"> 6173 <attr name="fromDegrees" /> 6174 <attr name="toDegrees" /> 6175 <attr name="pivotX" /> 6176 <attr name="pivotY" /> 6177 </declare-styleable> 6178 6179 <declare-styleable name="ScaleAnimation"> 6180 <attr name="fromXScale" format="float|fraction|dimension" /> 6181 <attr name="toXScale" format="float|fraction|dimension" /> 6182 <attr name="fromYScale" format="float|fraction|dimension" /> 6183 <attr name="toYScale" format="float|fraction|dimension" /> 6184 <attr name="pivotX" /> 6185 <attr name="pivotY" /> 6186 </declare-styleable> 6187 6188 <declare-styleable name="TranslateAnimation"> 6189 <attr name="fromXDelta" format="float|fraction" /> 6190 <attr name="toXDelta" format="float|fraction" /> 6191 <attr name="fromYDelta" format="float|fraction" /> 6192 <attr name="toYDelta" format="float|fraction" /> 6193 </declare-styleable> 6194 6195 <declare-styleable name="AlphaAnimation"> 6196 <attr name="fromAlpha" format="float" /> 6197 <attr name="toAlpha" format="float" /> 6198 </declare-styleable> 6199 6200 <declare-styleable name="LayoutAnimation"> 6201 <!-- Fraction of the animation duration used to delay the beginning of 6202 the animation of each child. --> 6203 <attr name="delay" format="float|fraction" /> 6204 <!-- Animation to use on each child. --> 6205 <attr name="animation" format="reference" /> 6206 <!-- The order in which the animations will be started. --> 6207 <attr name="animationOrder"> 6208 <!-- Animations are started in the natural order. --> 6209 <enum name="normal" value="0" /> 6210 <!-- Animations are started in the reverse order. --> 6211 <enum name="reverse" value="1" /> 6212 <!-- Animations are started randomly. --> 6213 <enum name="random" value="2" /> 6214 </attr> 6215 <!-- Interpolator used to interpolate the delay between the start of 6216 each animation. --> 6217 <attr name="interpolator" /> 6218 </declare-styleable> 6219 6220 <declare-styleable name="GridLayoutAnimation"> 6221 <!-- Fraction of the animation duration used to delay the beginning of 6222 the animation of each column. --> 6223 <attr name="columnDelay" format="float|fraction" /> 6224 <!-- Fraction of the animation duration used to delay the beginning of 6225 the animation of each row. --> 6226 <attr name="rowDelay" format="float|fraction" /> 6227 <!-- Direction of the animation in the grid. --> 6228 <attr name="direction"> 6229 <!-- Animates columns from left to right. --> 6230 <flag name="left_to_right" value="0x0" /> 6231 <!-- Animates columns from right to left. --> 6232 <flag name="right_to_left" value="0x1" /> 6233 <!-- Animates rows from top to bottom. --> 6234 <flag name="top_to_bottom" value="0x0" /> 6235 <!-- Animates rows from bottom to top. --> 6236 <flag name="bottom_to_top" value="0x2" /> 6237 </attr> 6238 <!-- Priority of the rows and columns. When the priority is none, 6239 both rows and columns have the same priority. When the priority is 6240 column, the animations will be applied on the columns first. The same 6241 goes for rows. --> 6242 <attr name="directionPriority"> 6243 <!-- Rows and columns are animated at the same time. --> 6244 <enum name="none" value="0" /> 6245 <!-- Columns are animated first. --> 6246 <enum name="column" value="1" /> 6247 <!-- Rows are animated first. --> 6248 <enum name="row" value="2" /> 6249 </attr> 6250 </declare-styleable> 6251 6252 <declare-styleable name="AccelerateInterpolator"> 6253 <!-- This is the amount of deceleration to add when easing in. --> 6254 <attr name="factor" format="float" /> 6255 </declare-styleable> 6256 6257 <declare-styleable name="DecelerateInterpolator"> 6258 <!-- This is the amount of acceleration to add when easing out. --> 6259 <attr name="factor" /> 6260 </declare-styleable> 6261 6262 <declare-styleable name="CycleInterpolator"> 6263 <attr name="cycles" format="float" /> 6264 </declare-styleable> 6265 6266 <declare-styleable name="AnticipateInterpolator"> 6267 <!-- This is the amount of tension. --> 6268 <attr name="tension" format="float" /> 6269 </declare-styleable> 6270 6271 <declare-styleable name="OvershootInterpolator"> 6272 <!-- This is the amount of tension. --> 6273 <attr name="tension" /> 6274 </declare-styleable> 6275 6276 <declare-styleable name="AnticipateOvershootInterpolator"> 6277 <!-- This is the amount of tension. --> 6278 <attr name="tension" /> 6279 <!-- This is the amount by which to multiply the tension. --> 6280 <attr name="extraTension" format="float" /> 6281 </declare-styleable> 6282 6283 <declare-styleable name="PathInterpolator"> 6284 <!-- The x coordinate of the first control point of the cubic Bezier --> 6285 <attr name="controlX1" format="float" /> 6286 <!-- The y coordinate of the first control point of the cubic Bezier --> 6287 <attr name="controlY1" format="float" /> 6288 <!-- The x coordinate of the second control point of the cubic Bezier --> 6289 <attr name="controlX2" format="float" /> 6290 <!-- The y coordinate of the second control point of the cubic Bezier --> 6291 <attr name="controlY2" format="float" /> 6292 <!-- The control points defined as a path. 6293 When pathData is defined, then both of the control points of the 6294 cubic Bezier will be ignored. --> 6295 <attr name="pathData"/> 6296 </declare-styleable> 6297 6298 <!-- ========================== --> 6299 <!-- Transition attributes --> 6300 <!-- ========================== --> 6301 <eat-comment /> 6302 6303 <!-- Use specific transition subclass names as the root tag of the XML resource that 6304 describes a {@link android.transition.Transition Transition}, 6305 such as <code>changeBounds</code>, <code>fade</code>, and <code>transitionSet</code>. --> 6306 <declare-styleable name="Transition"> 6307 <!-- Amount of time (in milliseconds) that the transition should run. --> 6308 <attr name="duration" /> 6309 <!-- Delay in milliseconds before the transition starts. --> 6310 <attr name="startDelay" format="integer" /> 6311 <!-- Interpolator to be used in the animations spawned by this transition. --> 6312 <attr name="interpolator" /> 6313 <!-- The match order to use for the transition. This is a comma-separated 6314 list of values, containing one or more of the following: 6315 id, itemId, name, instance. These correspond to 6316 {@link android.transition.Transition#MATCH_ID}, 6317 {@link android.transition.Transition#MATCH_ITEM_ID}, 6318 {@link android.transition.Transition#MATCH_NAME}, and 6319 {@link android.transition.Transition#MATCH_INSTANCE}, respectively. 6320 This corresponds to {@link android.transition.Transition#setMatchOrder(int...)}. --> 6321 <attr name="matchOrder" format="string" /> 6322 </declare-styleable> 6323 6324 <!-- @hide For internal use only. Use only as directed. --> 6325 <declare-styleable name="EpicenterTranslateClipReveal"> 6326 <attr name="interpolatorX" format="reference" /> 6327 <attr name="interpolatorY" format="reference" /> 6328 <attr name="interpolatorZ" format="reference" /> 6329 </declare-styleable> 6330 6331 <!-- Use <code>fade</code>as the root tag of the XML resource that 6332 describes a {@link android.transition.Fade Fade} transition. 6333 The attributes of the {@link android.R.styleable#Transition Transition} 6334 resource are available in addition to the specific attributes of Fade 6335 described here. --> 6336 <declare-styleable name="Fade"> 6337 <!-- Equivalent to <code>transitionVisibilityMode</code>, fadingMode works only 6338 with the Fade transition. --> 6339 <attr name="fadingMode"> 6340 <!-- Fade will only fade appearing items in. --> 6341 <enum name="fade_in" value="1" /> 6342 <!-- Fade will only fade disappearing items out. --> 6343 <enum name="fade_out" value="2" /> 6344 <!-- Fade will fade appearing items in and disappearing items out. --> 6345 <enum name="fade_in_out" value="3" /> 6346 </attr> 6347 </declare-styleable> 6348 6349 <!-- Use <code>slide</code>as the root tag of the XML resource that 6350 describes a {@link android.transition.Slide Slide} transition. 6351 The attributes of the {@link android.R.styleable#Transition Transition} 6352 resource are available in addition to the specific attributes of Slide 6353 described here. --> 6354 <declare-styleable name="Slide"> 6355 <attr name="slideEdge"> 6356 <!-- Slide to and from the left edge of the Scene. --> 6357 <enum name="left" value="0x03" /> 6358 <!-- Slide to and from the top edge of the Scene. --> 6359 <enum name="top" value="0x30" /> 6360 <!-- Slide to and from the right edge of the Scene. --> 6361 <enum name="right" value="0x05" /> 6362 <!-- Slide to and from the bottom edge of the Scene. --> 6363 <enum name="bottom" value="0x50" /> 6364 <!-- Slide to and from the x-axis position at the start of the Scene root. --> 6365 <enum name="start" value="0x00800003"/> 6366 <!-- Slide to and from the x-axis position at the end of the Scene root. --> 6367 <enum name="end" value="0x00800005"/> 6368 </attr> 6369 </declare-styleable> 6370 6371 <!-- Use with {@link android.transition.Visibility} transitions, such as 6372 <code>slide</code>, <code>explode</code>, and <code>fade</code> to mark which 6373 views are supported. --> 6374 <declare-styleable name="VisibilityTransition"> 6375 <!-- Changes whether the transition supports appearing and/or disappearing Views. 6376 Corresponds to {@link android.transition.Visibility#setMode(int)}. --> 6377 <attr name="transitionVisibilityMode"> 6378 <!-- Only appearing Views will be supported. --> 6379 <flag name="mode_in" value="1" /> 6380 <!-- Only disappearing Views will be supported. --> 6381 <flag name="mode_out" value="2" /> 6382 </attr> 6383 </declare-styleable> 6384 <!-- Use <code>target</code> as the root tag of the XML resource that 6385 describes a {@link android.transition.Transition#addTarget(int) 6386 targetId} of a transition. There can be one or more targets inside 6387 a <code>targets</code> tag, which is itself inside an appropriate 6388 {@link android.R.styleable#Transition Transition} tag. 6389 --> 6390 <declare-styleable name="TransitionTarget"> 6391 <!-- The id of a target on which this transition will animate changes. --> 6392 <attr name="targetId" format="reference" /> 6393 <!-- The id of a target to exclude from this transition. --> 6394 <attr name="excludeId" format="reference" /> 6395 <!-- The fully-qualified name of the Class to include in this transition. --> 6396 <attr name="targetClass" /> 6397 <!-- The fully-qualified name of the Class to exclude from this transition. --> 6398 <attr name="excludeClass" format="string" /> 6399 <!-- The transitionName of the target on which this transition will animation changes. --> 6400 <attr name="targetName" format="string" /> 6401 <!-- The transitionName of the target to exclude from this transition. --> 6402 <attr name="excludeName" format="string" /> 6403 </declare-styleable> 6404 6405 <!-- Use <code>set</code> as the root tag of the XML resource that 6406 describes a {@link android.transition.TransitionSet 6407 TransitionSet} transition. --> 6408 <declare-styleable name="TransitionSet"> 6409 <attr name="transitionOrdering"> 6410 <!-- child transitions should be played together. --> 6411 <enum name="together" value="0" /> 6412 <!-- child transitions should be played sequentially, in the same order 6413 as the xml. --> 6414 <enum name="sequential" value="1" /> 6415 </attr> 6416 </declare-styleable> 6417 6418 <!-- Use <code>changeTransform</code> as the root tag of the XML resource that 6419 describes a {@link android.transition.ChangeTransform} transition. --> 6420 <declare-styleable name="ChangeTransform"> 6421 <!-- A parent change should use an overlay or affect the transform of the 6422 transitionining View. Default is true. Corresponds to 6423 {@link android.transition.ChangeTransform#setReparentWithOverlay(boolean)}. --> 6424 <attr name="reparentWithOverlay" format="boolean"/> 6425 6426 <!-- Tells ChangeTransform to track parent changes. Default is true. Corresponds to 6427 {@link android.transition.ChangeTransform#setReparent(boolean)}. --> 6428 <attr name="reparent" format="boolean"/> 6429 </declare-styleable> 6430 6431 <!-- Use <code>changeBounds</code>as the root tag of the XML resource that 6432 describes a {@link android.transition.ChangeBounds} transition. 6433 The attributes of the {@link android.R.styleable#Transition Transition} 6434 resource are available in addition to the specific attributes of ChangeBounds 6435 described here. --> 6436 <declare-styleable name="ChangeBounds"> 6437 <!-- Resize the view by adjusting the clipBounds rather than changing the 6438 dimensions of the view itself. The default value is false. --> 6439 <attr name="resizeClip" format="boolean"/> 6440 </declare-styleable> 6441 6442 <!-- Use <code>transitionManager</code> as the root tag of the XML resource that 6443 describes a {@link android.transition.TransitionManager 6444 TransitionManager}. --> 6445 <declare-styleable name="TransitionManager"> 6446 <!-- The id of a transition to be used in a particular scene change. --> 6447 <attr name="transition" format="reference" /> 6448 <!-- The originating scene in this scene change. --> 6449 <attr name="fromScene" format="reference" /> 6450 <!-- The destination scene in this scene change. --> 6451 <attr name="toScene" format="reference" /> 6452 </declare-styleable> 6453 6454 <!-- Use <code>arcMotion</code> as the root tag of the XML resource that 6455 describes a {@link android.transition.ArcMotion}. This must be used 6456 within a transition with which the PathMotion should be associated. --> 6457 <declare-styleable name="ArcMotion"> 6458 <!-- The minimum arc angle in degrees between the start and end points when 6459 they are close to horizontal. --> 6460 <attr name="minimumHorizontalAngle" format="float" /> 6461 <!-- The minimum arc angle in degrees between the start and end points when 6462 they are close to vertical. --> 6463 <attr name="minimumVerticalAngle" format="float" /> 6464 <!-- The maximum arc angle in degrees between the start and end points. --> 6465 <attr name="maximumAngle" format="float" /> 6466 </declare-styleable> 6467 6468 <!-- Use <code>patternPathMotion</code> as the root tag of the XML resource that 6469 describes a {@link android.transition.PatternPathMotion}. This must be used 6470 within a transition with which the PathMotion should be associated. --> 6471 <declare-styleable name="PatternPathMotion"> 6472 <!-- The path string describing the pattern to use for the PathPathMotion. --> 6473 <attr name="patternPathData" format="string" /> 6474 </declare-styleable> 6475 6476 <!-- ========================== --> 6477 <!-- ValueAnimator class attributes --> 6478 <!-- ========================== --> 6479 <eat-comment /> 6480 6481 <declare-styleable name="Animator"> 6482 <!-- Defines the interpolator used to smooth the animation movement in time. --> 6483 <attr name="interpolator" /> 6484 <!-- Amount of time (in milliseconds) for the animation to run. --> 6485 <attr name="duration" /> 6486 <!-- Delay in milliseconds before the animation runs, once start time is reached. --> 6487 <attr name="startOffset"/> 6488 <!-- Defines how many times the animation should repeat. The default value is 0. --> 6489 <attr name="repeatCount"/> 6490 <!-- Defines the animation behavior when it reaches the end and the repeat count is 6491 greater than 0 or infinite. The default value is restart. --> 6492 <attr name="repeatMode"/> 6493 <!-- Value the animation starts from. --> 6494 <attr name="valueFrom" format="float|integer|color|dimension|string"/> 6495 <!-- Value the animation animates to. --> 6496 <attr name="valueTo" format="float|integer|color|dimension|string"/> 6497 <!-- The type of valueFrom and valueTo. --> 6498 <attr name="valueType"> 6499 <!-- The given values are floats. This is the default value if valueType is 6500 unspecified. Note that if any value attribute has a color value 6501 (beginning with "#"), then this attribute is ignored and the color values are 6502 interpreted as integers. --> 6503 <enum name="floatType" value="0" /> 6504 <!-- values are integers. --> 6505 <enum name="intType" value="1" /> 6506 <!-- values are paths defined as strings. 6507 This type is used for path morphing in AnimatedVectorDrawable. --> 6508 <enum name="pathType" value="2" /> 6509 <!-- values are colors, which are integers starting with "#". --> 6510 <enum name="colorType" value="3" /> 6511 </attr> 6512 <!-- Placeholder for a deleted attribute. This should be removed before M release. --> 6513 <attr name="removeBeforeMRelease" format="integer" /> 6514 </declare-styleable> 6515 6516 <declare-styleable name="PropertyValuesHolder"> 6517 <attr name="valueType" /> 6518 <attr name="propertyName" /> 6519 <attr name="valueFrom" /> 6520 <attr name="valueTo" /> 6521 </declare-styleable> 6522 6523 <declare-styleable name="Keyframe"> 6524 <attr name="valueType" /> 6525 <attr name="value" /> 6526 <attr name="fraction" format="float" /> 6527 <!-- Defines a per-interval interpolator for this keyframe. This interpolator will be used 6528 to interpolate between this keyframe and the previous keyframe.--> 6529 <attr name="interpolator" /> 6530 </declare-styleable> 6531 6532 <!-- ========================== --> 6533 <!-- ObjectAnimator class attributes --> 6534 <!-- ========================== --> 6535 <eat-comment /> 6536 6537 <declare-styleable name="PropertyAnimator"> 6538 <!-- Name of the property being animated. --> 6539 <attr name="propertyName" format="string"/> 6540 <!-- Name of the property being animated as the X coordinate of the pathData. --> 6541 <attr name="propertyXName" format="string"/> 6542 <!-- Name of the property being animated as the Y coordinate of the pathData. --> 6543 <attr name="propertyYName" format="string"/> 6544 <!-- The path used to animate the properties in the ObjectAnimator --> 6545 <attr name="pathData"/> 6546 </declare-styleable> 6547 6548 6549 <!-- ========================== --> 6550 <!-- AnimatorSet class attributes --> 6551 <!-- ========================== --> 6552 <eat-comment /> 6553 6554 <declare-styleable name="AnimatorSet"> 6555 <!-- Name of the property being animated. --> 6556 <attr name="ordering"> 6557 <!-- child animations should be played together. --> 6558 <enum name="together" value="0" /> 6559 <!-- child animations should be played sequentially, in the same order as the xml. --> 6560 <enum name="sequentially" value="1" /> 6561 </attr> 6562 </declare-styleable> 6563 6564 <!-- ========================== --> 6565 <!-- State attributes --> 6566 <!-- ========================== --> 6567 <eat-comment /> 6568 6569 <!-- Set of framework-provided states that may be specified on a Drawable. Actual usage of 6570 states may vary between view implementations, as documented on the individual state 6571 attributes. --> 6572 <declare-styleable name="DrawableStates"> 6573 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6574 set when a view has input focus. --> 6575 <attr name="state_focused" format="boolean" /> 6576 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6577 set when a view's window has input focus. --> 6578 <attr name="state_window_focused" format="boolean" /> 6579 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6580 set when a view is enabled. --> 6581 <attr name="state_enabled" format="boolean" /> 6582 <!-- State identifier indicating that the object <var>may</var> display a check mark. See 6583 {@link android.R.attr#state_checked} for the identifier that indicates whether it is 6584 actually checked. --> 6585 <attr name="state_checkable" format="boolean"/> 6586 <!-- State identifier indicating that the object is currently checked. See 6587 {@link android.R.attr#state_checkable} for an additional identifier that can indicate 6588 if any object may ever display a check, regardless of whether state_checked is 6589 currently set. --> 6590 <attr name="state_checked" format="boolean"/> 6591 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6592 set when a view (or one of its parents) is currently selected. --> 6593 <attr name="state_selected" format="boolean" /> 6594 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6595 set when the user is pressing down in a view. --> 6596 <attr name="state_pressed" format="boolean" /> 6597 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6598 set when a view or its parent has been "activated" meaning the user has currently 6599 marked it as being of interest. This is an alternative representation of 6600 state_checked for when the state should be propagated down the view hierarchy. --> 6601 <attr name="state_activated" format="boolean" /> 6602 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6603 set when a view or drawable is considered "active" by its host. Actual usage may vary 6604 between views. Consult the host view documentation for details. --> 6605 <attr name="state_active" format="boolean" /> 6606 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6607 set when a view or drawable is considered "single" by its host. Actual usage may vary 6608 between views. Consult the host view documentation for details. --> 6609 <attr name="state_single" format="boolean" /> 6610 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6611 set when a view or drawable is in the first position in an ordered set. Actual usage 6612 may vary between views. Consult the host view documentation for details. --> 6613 <attr name="state_first" format="boolean" /> 6614 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6615 set when a view or drawable is in the middle position in an ordered set. Actual usage 6616 may vary between views. Consult the host view documentation for details. --> 6617 <attr name="state_middle" format="boolean" /> 6618 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6619 set when a view or drawable is in the last position in an ordered set. Actual usage 6620 may vary between views. Consult the host view documentation for details. --> 6621 <attr name="state_last" format="boolean" /> 6622 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6623 indicating that the Drawable is in a view that is hardware accelerated. 6624 This means that the device can at least render a full-screen scaled 6625 bitmap with one layer of text and bitmaps composited on top of it 6626 at 60fps. When this is set, the colorBackgroundCacheHint will be 6627 ignored even if it specifies a solid color, since that optimization 6628 is not needed. --> 6629 <attr name="state_accelerated" format="boolean" /> 6630 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}, 6631 set when a pointer is hovering over the view. --> 6632 <attr name="state_hovered" format="boolean" /> 6633 <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable} 6634 indicating that the Drawable is in a view that is capable of accepting a drop of 6635 the content currently being manipulated in a drag-and-drop operation. --> 6636 <attr name="state_drag_can_accept" format="boolean" /> 6637 <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable} 6638 indicating that a drag operation (for which the Drawable's view is a valid recipient) 6639 is currently positioned over the Drawable. --> 6640 <attr name="state_drag_hovered" format="boolean" /> 6641 <!-- State for {@link android.graphics.drawable.StateListDrawable StateListDrawable} 6642 indicating that a View has accessibility focus. --> 6643 <attr name="state_accessibility_focused" format="boolean" /> 6644 </declare-styleable> 6645 <declare-styleable name="ViewDrawableStates"> 6646 <attr name="state_pressed" /> 6647 <attr name="state_focused" /> 6648 <attr name="state_selected" /> 6649 <attr name="state_window_focused" /> 6650 <attr name="state_enabled" /> 6651 <attr name="state_activated" /> 6652 <attr name="state_accelerated" /> 6653 <attr name="state_hovered" /> 6654 <attr name="state_drag_can_accept" /> 6655 <attr name="state_drag_hovered" /> 6656 </declare-styleable> 6657 <!-- State array representing a menu item that is currently checked. --> 6658 <declare-styleable name="MenuItemCheckedState"> 6659 <attr name="state_checkable" /> 6660 <attr name="state_checked" /> 6661 </declare-styleable> 6662 <!-- State array representing a menu item that is checkable but is not currently checked. --> 6663 <declare-styleable name="MenuItemUncheckedState"> 6664 <attr name="state_checkable" /> 6665 </declare-styleable> 6666 <!-- State array representing a menu item that is currently focused and checked. --> 6667 <declare-styleable name="MenuItemCheckedFocusedState"> 6668 <attr name="state_checkable" /> 6669 <attr name="state_checked" /> 6670 <attr name="state_focused" /> 6671 </declare-styleable> 6672 <!-- State array representing a menu item that is focused and checkable but is not currently checked. --> 6673 <declare-styleable name="MenuItemUncheckedFocusedState"> 6674 <attr name="state_checkable" /> 6675 <attr name="state_focused" /> 6676 </declare-styleable> 6677 <!-- State array representing an expandable list child's indicator. --> 6678 <declare-styleable name="ExpandableListChildIndicatorState"> 6679 <!-- State identifier indicating the child is the last child within its group. --> 6680 <attr name="state_last" /> 6681 </declare-styleable> 6682 <!-- State array representing an expandable list group's indicator. --> 6683 <declare-styleable name="ExpandableListGroupIndicatorState"> 6684 <!-- State identifier indicating the group is expanded. --> 6685 <attr name="state_expanded" format="boolean" /> 6686 <!-- State identifier indicating the group is empty (has no children). --> 6687 <attr name="state_empty" format="boolean" /> 6688 </declare-styleable> 6689 <declare-styleable name="PopupWindowBackgroundState"> 6690 <!-- State identifier indicating the popup will be above the anchor. --> 6691 <attr name="state_above_anchor" format="boolean" /> 6692 </declare-styleable> 6693 <declare-styleable name="TextViewMultiLineBackgroundState"> 6694 <!-- State identifier indicating a TextView has a multi-line layout. --> 6695 <attr name="state_multiline" format="boolean" /> 6696 </declare-styleable> 6697 6698 <!-- ***************************************************************** --> 6699 <!-- Support for Searchable activities. --> 6700 <!-- ***************************************************************** --> 6701 <eat-comment /> 6702 6703 <!-- Searchable activities and applications must provide search configuration information 6704 in an XML file, typically called searchable.xml. This file is referenced in your manifest. 6705 For a more in-depth discussion of search configuration, please refer to 6706 {@link android.app.SearchManager}. --> 6707 <declare-styleable name="Searchable"> 6708 <!--<strong>This is deprecated.</strong><br/>The default 6709 application icon is now always used, so this attribute is 6710 obsolete.--> 6711 <attr name="icon" /> 6712 <!-- This is the user-displayed name of the searchable activity. <i>Required 6713 attribute.</i> --> 6714 <attr name="label" /> 6715 <!-- If supplied, this string will be displayed as a hint to the user. <i>Optional 6716 attribute.</i> --> 6717 <attr name="hint" /> 6718 <!-- If supplied, this string will be displayed as the text of the "Search" button. 6719 <i>Optional attribute.</i> 6720 {@deprecated This will create a non-standard UI appearance, because the search bar UI is 6721 changing to use only icons for its buttons.}--> 6722 <attr name="searchButtonText" format="string" /> 6723 <attr name="inputType" /> 6724 <attr name="imeOptions" /> 6725 6726 <!-- Additional features are controlled by mode bits in this field. Omitting 6727 this field, or setting to zero, provides default behavior. <i>Optional attribute.</i> 6728 --> 6729 <attr name="searchMode"> 6730 <!-- If set, this flag enables the display of the search target (label) within the 6731 search bar. If neither bad mode is selected, no badge will be shown. --> 6732 <flag name="showSearchLabelAsBadge" value="0x04" /> 6733 <!--<strong>This is deprecated.</strong><br/>The default 6734 application icon is now always used, so this option is 6735 obsolete.--> 6736 <flag name="showSearchIconAsBadge" value="0x08" /> 6737 <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to 6738 be considered as the text for suggestion query rewriting. This should only 6739 be used when the values in SUGGEST_COLUMN_INTENT_DATA are suitable for user 6740 inspection and editing - typically, HTTP/HTTPS Uri's. --> 6741 <flag name="queryRewriteFromData" value="0x10" /> 6742 <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_TEXT_1 to 6743 be considered as the text for suggestion query rewriting. This should be used 6744 for suggestions in which no query text is provided and the SUGGEST_COLUMN_INTENT_DATA 6745 values are not suitable for user inspection and editing. --> 6746 <flag name="queryRewriteFromText" value="0x20" /> 6747 </attr> 6748 6749 <!-- Voice search features are controlled by mode bits in this field. Omitting 6750 this field, or setting to zero, provides default behavior. 6751 If showVoiceSearchButton is set, then launchWebSearch or launchRecognizer must 6752 also be set. <i>Optional attribute.</i> 6753 --> 6754 <attr name="voiceSearchMode"> 6755 <!-- If set, display a voice search button. This only takes effect if voice search is 6756 available on the device. --> 6757 <flag name="showVoiceSearchButton" value="0x01" /> 6758 <!-- If set, the voice search button will take the user directly to a built-in 6759 voice web search activity. Most applications will not use this flag, as it 6760 will take the user away from the activity in which search was invoked. --> 6761 <flag name="launchWebSearch" value="0x02" /> 6762 <!-- If set, the voice search button will take the user directly to a built-in 6763 voice recording activity. This activity will prompt the user to speak, 6764 transcribe the spoken text, and forward the resulting query 6765 text to the searchable activity, just as if the user had typed it into 6766 the search UI and clicked the search button. --> 6767 <flag name="launchRecognizer" value="0x04" /> 6768 </attr> 6769 6770 <!-- If provided, this specifies the language model that should be used by the 6771 voice recognition system. See 6772 {@link android.speech.RecognizerIntent#EXTRA_LANGUAGE_MODEL } for more information. 6773 If not provided, the default value 6774 {@link android.speech.RecognizerIntent#LANGUAGE_MODEL_FREE_FORM } will be used. --> 6775 <attr name="voiceLanguageModel" format="string" /> 6776 <!-- If provided, this specifies a prompt that will be displayed during voice input. --> 6777 <attr name="voicePromptText" format="string" /> 6778 <!-- If provided, this specifies the spoken language to be expected, and that it will be 6779 different than the one set in the {@link java.util.Locale#getDefault()}. --> 6780 <attr name="voiceLanguage" format="string" /> 6781 <!-- If provided, enforces the maximum number of results to return, including the "best" 6782 result which will always be provided as the SEARCH intent's primary query. Must be one 6783 or greater. If not provided, the recognizer will choose how many results to return. 6784 --> 6785 <attr name="voiceMaxResults" format="integer" /> 6786 6787 <!-- If provided, this is the trigger indicating that the searchable activity 6788 provides suggestions as well. The value must be a fully-qualified content provider 6789 authority (e.g. "com.example.android.apis.SuggestionProvider") and should match the 6790 "android:authorities" tag in your content provider's manifest entry. <i>Optional 6791 attribute.</i> --> 6792 <attr name="searchSuggestAuthority" format="string" /> 6793 <!-- If provided, this will be inserted in the suggestions query Uri, after the authority 6794 you have provide but before the standard suggestions path. <i>Optional attribute.</i> 6795 --> 6796 <attr name="searchSuggestPath" format="string" /> 6797 <!-- If provided, suggestion queries will be passed into your query function 6798 as the <i>selection</i> parameter. Typically this will be a WHERE clause for your 6799 database, and will contain a single question mark, which represents the actual query 6800 string that has been typed by the user. If not provided, then the user query text 6801 will be appended to the query Uri (after an additional "/".) <i>Optional 6802 attribute.</i> --> 6803 <attr name="searchSuggestSelection" format="string" /> 6804 6805 <!-- If provided, and not overridden by an action in the selected suggestion, this 6806 string will be placed in the action field of the {@link android.content.Intent Intent} 6807 when the user clicks a suggestion. <i>Optional attribute.</i> --> 6808 <attr name="searchSuggestIntentAction" format="string" /> 6809 <!-- If provided, and not overridden by an action in the selected suggestion, this 6810 string will be placed in the data field of the {@link android.content.Intent Intent} 6811 when the user clicks a suggestion. <i>Optional attribute.</i> --> 6812 <attr name="searchSuggestIntentData" format="string" /> 6813 6814 <!-- If provided, this is the minimum number of characters needed to trigger 6815 search suggestions. The default value is 0. <i>Optional attribute.</i> --> 6816 <attr name="searchSuggestThreshold" format="integer" /> 6817 6818 <!-- If provided and <code>true</code>, this searchable activity will be 6819 included in any global lists of search targets. 6820 The default value is <code>false</code>. <i>Optional attribute.</i>. --> 6821 <attr name="includeInGlobalSearch" format="boolean" /> 6822 6823 <!-- If provided and <code>true</code>, this searchable activity will be invoked for all 6824 queries in a particular session. If set to <code>false</code> and the activity 6825 returned zero results for a query, it will not be invoked again in that session for 6826 supersets of that zero-results query. For example, if the activity returned zero 6827 results for "bo", it would not be queried again for "bob". 6828 The default value is <code>false</code>. <i>Optional attribute.</i>. --> 6829 <attr name="queryAfterZeroResults" format="boolean" /> 6830 <!-- If provided, this string will be used to describe the searchable item in the 6831 searchable items settings within system search settings. <i>Optional 6832 attribute.</i> --> 6833 <attr name="searchSettingsDescription" format="string" /> 6834 6835 <!-- If provided and <code>true</code>, URLs entered in the search dialog while searching 6836 within this activity would be detected and treated as URLs (show a 'go' button in the 6837 keyboard and invoke the browser directly when user launches the URL instead of passing 6838 the URL to the activity). If set to <code>false</code> any URLs entered are treated as 6839 normal query text. 6840 The default value is <code>false</code>. <i>Optional attribute.</i>. --> 6841 <attr name="autoUrlDetect" format="boolean" /> 6842 6843 </declare-styleable> 6844 6845 <!-- In order to process special action keys during search, you must define them using 6846 one or more "ActionKey" elements in your Searchable metadata. For a more in-depth 6847 discussion of action code handling, please refer to {@link android.app.SearchManager}. 6848 --> 6849 <declare-styleable name="SearchableActionKey"> 6850 <!-- This attribute denotes the action key you wish to respond to. Note that not 6851 all action keys are actually supported using this mechanism, as many of them are 6852 used for typing, navigation, or system functions. This will be added to the 6853 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your 6854 searchable activity. To examine the key code, use 6855 {@link android.content.Intent#getIntExtra getIntExtra(SearchManager.ACTION_KEY)}. 6856 <p>Note, in addition to the keycode, you must also provide one or more of the action 6857 specifier attributes. <i>Required attribute.</i> --> 6858 <attr name="keycode" /> 6859 6860 <!-- If you wish to handle an action key during normal search query entry, you 6861 must define an action string here. This will be added to the 6862 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your 6863 searchable activity. To examine the string, use 6864 {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}. 6865 <i>Optional attribute.</i> --> 6866 <attr name="queryActionMsg" format="string" /> 6867 6868 <!-- If you wish to handle an action key while a suggestion is being displayed <i>and 6869 selected</i>, there are two ways to handle this. If <i>all</i> of your suggestions 6870 can handle the action key, you can simply define the action message using this 6871 attribute. This will be added to the 6872 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your 6873 searchable activity. To examine the string, use 6874 {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}. 6875 <i>Optional attribute.</i> --> 6876 <attr name="suggestActionMsg" format="string" /> 6877 6878 <!-- If you wish to handle an action key while a suggestion is being displayed <i>and 6879 selected</i>, but you do not wish to enable this action key for every suggestion, 6880 then you can use this attribute to control it on a suggestion-by-suggestion basis. 6881 First, you must define a column (and name it here) where your suggestions will include 6882 the action string. Then, in your content provider, you must provide this column, and 6883 when desired, provide data in this column. 6884 The search manager will look at your suggestion cursor, using the string 6885 provided here in order to select a column, and will use that to select a string from 6886 the cursor. That string will be added to the 6887 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to 6888 your searchable activity. To examine the string, use 6889 {@link android.content.Intent#getStringExtra 6890 getStringExtra(SearchManager.ACTION_MSG)}. <i>If the data does not exist for the 6891 selection suggestion, the action key will be ignored.</i><i>Optional attribute.</i> --> 6892 <attr name="suggestActionMsgColumn" format="string" /> 6893 6894 </declare-styleable> 6895 6896 <!-- ***************************************************************** --> 6897 <!-- Support for MapView. --> 6898 <!-- ***************************************************************** --> 6899 <eat-comment /> 6900 6901 <!-- The set of attributes for a MapView. --> 6902 <declare-styleable name="MapView"> 6903 <!-- Value is a string that specifies the Maps API Key to use. --> 6904 <attr name="apiKey" format="string" /> 6905 </declare-styleable> 6906 6907 <!-- **************************************************************** --> 6908 <!-- Menu XML inflation. --> 6909 <!-- **************************************************************** --> 6910 <eat-comment /> 6911 6912 <!-- Base attributes that are available to all Menu objects. --> 6913 <declare-styleable name="Menu"> 6914 </declare-styleable> 6915 6916 <!-- Base attributes that are available to all groups. --> 6917 <declare-styleable name="MenuGroup"> 6918 6919 <!-- The ID of the group. --> 6920 <attr name="id" /> 6921 6922 <!-- The category applied to all items within this group. 6923 (This will be or'ed with the orderInCategory attribute.) --> 6924 <attr name="menuCategory"> 6925 <!-- Items are part of a container. --> 6926 <enum name="container" value="0x00010000" /> 6927 <!-- Items are provided by the system. --> 6928 <enum name="system" value="0x00020000" /> 6929 <!-- Items are user-supplied secondary (infrequently used). --> 6930 <enum name="secondary" value="0x00030000" /> 6931 <!-- Items are alternative actions. --> 6932 <enum name="alternative" value="0x00040000" /> 6933 </attr> 6934 6935 <!-- The order within the category applied to all items within this group. 6936 (This will be or'ed with the category attribute.) --> 6937 <attr name="orderInCategory" format="integer" /> 6938 6939 <!-- Whether the items are capable of displaying a check mark. --> 6940 <attr name="checkableBehavior"> 6941 <!-- The items are not checkable. --> 6942 <enum name="none" value="0" /> 6943 <!-- The items are all checkable. --> 6944 <enum name="all" value="1" /> 6945 <!-- The items are checkable and there will only be a single checked item in 6946 this group. --> 6947 <enum name="single" value="2" /> 6948 </attr> 6949 6950 <!-- Whether the items are shown/visible. --> 6951 <attr name="visible" /> 6952 6953 <!-- Whether the items are enabled. --> 6954 <attr name="enabled" /> 6955 6956 </declare-styleable> 6957 6958 <!-- Base attributes that are available to all Item objects. --> 6959 <declare-styleable name="MenuItem"> 6960 6961 <!-- The ID of the item. --> 6962 <attr name="id" /> 6963 6964 <!-- The category applied to the item. 6965 (This will be or'ed with the orderInCategory attribute.) --> 6966 <attr name="menuCategory" /> 6967 6968 <!-- The order within the category applied to the item. 6969 (This will be or'ed with the category attribute.) --> 6970 <attr name="orderInCategory" /> 6971 6972 <!-- The title associated with the item. --> 6973 <attr name="title" format="string" /> 6974 6975 <!-- The condensed title associated with the item. This is used in situations where the 6976 normal title may be too long to be displayed. --> 6977 <attr name="titleCondensed" format="string" /> 6978 6979 <!-- The icon associated with this item. This icon will not always be shown, so 6980 the title should be sufficient in describing this item. --> 6981 <attr name="icon" /> 6982 6983 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard 6984 with alphabetic keys. --> 6985 <attr name="alphabeticShortcut" format="string" /> 6986 6987 <!-- The alphabetic modifier key. This is the modifier when using a keyboard 6988 with alphabetic keys. The values should be kept in sync with KeyEvent --> 6989 <attr name="alphabeticModifiers"> 6990 <flag name="META" value="0x10000" /> 6991 <flag name="CTRL" value="0x1000" /> 6992 <flag name="ALT" value="0x02" /> 6993 <flag name="SHIFT" value="0x1" /> 6994 <flag name="SYM" value="0x4" /> 6995 <flag name="FUNCTION" value="0x8" /> 6996 </attr> 6997 6998 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) 6999 keyboard. --> 7000 <attr name="numericShortcut" format="string" /> 7001 7002 <!-- The numeric modifier key. This is the modifier when using a numeric (e.g., 12-key) 7003 keyboard. The values should be kept in sync with KeyEvent --> 7004 <attr name="numericModifiers"> 7005 <flag name="META" value="0x10000" /> 7006 <flag name="CTRL" value="0x1000" /> 7007 <flag name="ALT" value="0x02" /> 7008 <flag name="SHIFT" value="0x1" /> 7009 <flag name="SYM" value="0x4" /> 7010 <flag name="FUNCTION" value="0x8" /> 7011 </attr> 7012 7013 <!-- Whether the item is capable of displaying a check mark. --> 7014 <attr name="checkable" format="boolean" /> 7015 7016 <!-- Whether the item is checked. Note that you must first have enabled checking with 7017 the checkable attribute or else the check mark will not appear. --> 7018 <attr name="checked" /> 7019 7020 <!-- Whether the item is shown/visible. --> 7021 <attr name="visible" /> 7022 7023 <!-- Whether the item is enabled. --> 7024 <attr name="enabled" /> 7025 7026 <!-- Name of a method on the Context used to inflate the menu that will be 7027 called when the item is clicked. --> 7028 <attr name="onClick" /> 7029 7030 <!-- How this item should display in the Action Bar, if present. --> 7031 <attr name="showAsAction"> 7032 <!-- Never show this item in an action bar, show it in the overflow menu instead. 7033 Mutually exclusive with "ifRoom" and "always". --> 7034 <flag name="never" value="0" /> 7035 <!-- Show this item in an action bar if there is room for it as determined 7036 by the system. Favor this option over "always" where possible. 7037 Mutually exclusive with "never" and "always". --> 7038 <flag name="ifRoom" value="1" /> 7039 <!-- Always show this item in an actionbar, even if it would override 7040 the system's limits of how much stuff to put there. This may make 7041 your action bar look bad on some screens. In most cases you should 7042 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". --> 7043 <flag name="always" value="2" /> 7044 <!-- When this item is shown as an action in the action bar, show a text 7045 label with it even if it has an icon representation. --> 7046 <flag name="withText" value="4" /> 7047 <!-- This item's action view collapses to a normal menu 7048 item. When expanded, the action view takes over a 7049 larger segment of its container. --> 7050 <flag name="collapseActionView" value="8" /> 7051 </attr> 7052 7053 <!-- An optional layout to be used as an action view. 7054 See {@link android.view.MenuItem#setActionView(android.view.View)} 7055 for more info. --> 7056 <attr name="actionLayout" format="reference" /> 7057 7058 <!-- The name of an optional View class to instantiate and use as an 7059 action view. See {@link android.view.MenuItem#setActionView(android.view.View)} 7060 for more info. --> 7061 <attr name="actionViewClass" format="string" /> 7062 7063 <!-- The name of an optional ActionProvider class to instantiate an action view 7064 and perform operations such as default action for that menu item. 7065 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} 7066 for more info. --> 7067 <attr name="actionProviderClass" format="string" /> 7068 7069 <!-- The content description associated with the item. --> 7070 <attr name="contentDescription" format="string" /> 7071 7072 <!-- The tooltip text associated with the item. --> 7073 <attr name="tooltipText" format="string" /> 7074 7075 </declare-styleable> 7076 7077 <!-- Attrbitutes for a ActvityChooserView. --> 7078 <declare-styleable name="ActivityChooserView"> 7079 <!-- The maximal number of items initially shown in the activity list. --> 7080 <attr name="initialActivityCount" format="string" /> 7081 <!-- The drawable to show in the button for expanding the activities overflow popup. 7082 <strong>Note:</strong> Clients would like to set this drawable 7083 as a clue about the action the chosen activity will perform. For 7084 example, if share activity is to be chosen the drawable should 7085 give a clue that sharing is to be performed. 7086 --> 7087 <attr name="expandActivityOverflowButtonDrawable" format="reference" /> 7088 </declare-styleable> 7089 7090 <!-- **************************************************************** --> 7091 <!-- Preferences framework. --> 7092 <!-- **************************************************************** --> 7093 <eat-comment /> 7094 7095 <!-- Base attributes available to PreferenceGroup. --> 7096 <declare-styleable name="PreferenceGroup"> 7097 <!-- Whether to order the Preference under this group as they appear in the XML file. 7098 If this is false, the ordering will follow the Preference order attribute and 7099 default to alphabetic for those without the order attribute. --> 7100 <attr name="orderingFromXml" format="boolean" /> 7101 </declare-styleable> 7102 7103 <!-- Attribute for a header describing the item shown in the top-level list 7104 from which the selects the set of preference to dig in to. --> 7105 <declare-styleable name="PreferenceHeader"> 7106 <!-- Identifier value for the header. --> 7107 <attr name="id" /> 7108 <!-- The title of the item that is shown to the user. --> 7109 <attr name="title" /> 7110 <!-- The summary for the item. --> 7111 <attr name="summary" format="string" /> 7112 <!-- The title for the bread crumb of this item. --> 7113 <attr name="breadCrumbTitle" format="string" /> 7114 <!-- The short title for the bread crumb of this item. --> 7115 <attr name="breadCrumbShortTitle" format="string" /> 7116 <!-- An icon for the item. --> 7117 <attr name="icon" /> 7118 <!-- The fragment that is displayed when the user selects this item. --> 7119 <attr name="fragment" format="string" /> 7120 </declare-styleable> 7121 7122 <!-- WARNING: If adding attributes to Preference, make sure it does not conflict 7123 with a View's attributes. Some subclasses (e.g., EditTextPreference) 7124 proxy all attributes to its EditText widget. --> 7125 <eat-comment /> 7126 7127 <!-- Base attributes available to Preference. --> 7128 <declare-styleable name="Preference"> 7129 <!-- The optional icon for the preference --> 7130 <attr name="icon" /> 7131 <!-- The key to store the Preference value. --> 7132 <attr name="key" format="string" /> 7133 <!-- The title for the Preference. In API 25 and earlier, this value is read as a 7134 plain string with styling information stripped. --> 7135 <attr name="title" /> 7136 <!-- The summary for the Preference. In API 25 and earlier, this value is read as a 7137 plain string with styling information stripped. --> 7138 <attr name="summary" /> 7139 <!-- The order for the Preference (lower values are to be ordered first). If this is not 7140 specified, the default ordering will be alphabetic. --> 7141 <attr name="order" format="integer" /> 7142 <!-- When used inside of a modern PreferenceActivity, this declares 7143 a new PreferenceFragment to be shown when the user selects this item. --> 7144 <attr name="fragment" /> 7145 <!-- The layout for the Preference in a PreferenceActivity screen. This should 7146 rarely need to be changed, look at widgetLayout instead. --> 7147 <attr name="layout" /> 7148 <!-- The layout for the controllable widget portion of a Preference. This is inflated 7149 into the layout for a Preference and should be used more frequently than 7150 the layout attribute. For example, a checkbox preference would specify 7151 a custom layout (consisting of just the CheckBox) here. --> 7152 <attr name="widgetLayout" format="reference" /> 7153 <!-- Whether the Preference is enabled. --> 7154 <attr name="enabled" /> 7155 <!-- Whether the Preference is selectable. --> 7156 <attr name="selectable" format="boolean" /> 7157 <!-- The key of another Preference that this Preference will depend on. If the other 7158 Preference is not set or is off, this Preference will be disabled. --> 7159 <attr name="dependency" format="string" /> 7160 <!-- Whether the Preference stores its value to the shared preferences. --> 7161 <attr name="persistent" /> 7162 <!-- The default value for the preference, which will be set either if persistence 7163 is off or persistence is on and the preference is not found in the persistent 7164 storage. --> 7165 <attr name="defaultValue" format="string|boolean|integer|reference|float" /> 7166 <!-- Whether the view of this Preference should be disabled when 7167 this Preference is disabled. --> 7168 <attr name="shouldDisableView" format="boolean" /> 7169 </declare-styleable> 7170 7171 <!-- Base attributes available to CheckBoxPreference. --> 7172 <declare-styleable name="CheckBoxPreference"> 7173 <!-- The summary for the Preference in a PreferenceActivity screen when the 7174 CheckBoxPreference is checked. If separate on/off summaries are not 7175 needed, the summary attribute can be used instead. --> 7176 <attr name="summaryOn" format="string" /> 7177 <!-- The summary for the Preference in a PreferenceActivity screen when the 7178 CheckBoxPreference is unchecked. If separate on/off summaries are not 7179 needed, the summary attribute can be used instead. --> 7180 <attr name="summaryOff" format="string" /> 7181 <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default, 7182 dependents will be disabled when this is unchecked, so the value of this preference is false. --> 7183 <attr name="disableDependentsState" format="boolean" /> 7184 </declare-styleable> 7185 7186 <!-- Base attributes available to DialogPreference. --> 7187 <declare-styleable name="DialogPreference"> 7188 <!-- The title in the dialog. --> 7189 <attr name="dialogTitle" format="string" /> 7190 <!-- The message in the dialog. If a dialogLayout is provided and contains 7191 a TextView with ID android:id/message, this message will be placed in there. --> 7192 <attr name="dialogMessage" format="string" /> 7193 <!-- The icon for the dialog. --> 7194 <attr name="dialogIcon" format="reference" /> 7195 <!-- The positive button text for the dialog. Set to @null to hide the positive button. --> 7196 <attr name="positiveButtonText" format="string" /> 7197 <!-- The negative button text for the dialog. Set to @null to hide the negative button. --> 7198 <attr name="negativeButtonText" format="string" /> 7199 <!-- A layout to be used as the content View for the dialog. By default, this shouldn't 7200 be needed. If a custom DialogPreference is required, this should be set. For example, 7201 the EditTextPreference uses a layout with an EditText as this attribute. --> 7202 <attr name="dialogLayout" format="reference" /> 7203 </declare-styleable> 7204 7205 <!-- Base attributes available to ListPreference. --> 7206 <declare-styleable name="ListPreference"> 7207 <!-- The human-readable array to present as a list. Each entry must have a corresponding 7208 index in entryValues. --> 7209 <attr name="entries" /> 7210 <!-- The array to find the value to save for a preference when an entry from 7211 entries is selected. If a user clicks on the second item in entries, the 7212 second item in this array will be saved to the preference. --> 7213 <attr name="entryValues" format="reference" /> 7214 </declare-styleable> 7215 7216 <declare-styleable name="MultiSelectListPreference"> 7217 <!-- The human-readable array to present as a list. Each entry must have a corresponding 7218 index in entryValues. --> 7219 <attr name="entries" /> 7220 <!-- The array to find the value to save for a preference when an entry from 7221 entries is selected. If a user clicks the second item in entries, the 7222 second item in this array will be saved to the preference. --> 7223 <attr name="entryValues" /> 7224 </declare-styleable> 7225 7226 <!-- Base attributes available to RingtonePreference. --> 7227 <declare-styleable name="RingtonePreference"> 7228 <!-- Which ringtone type(s) to show in the picker. --> 7229 <attr name="ringtoneType"> 7230 <!-- Ringtones. --> 7231 <flag name="ringtone" value="1" /> 7232 <!-- Notification sounds. --> 7233 <flag name="notification" value="2" /> 7234 <!-- Alarm sounds. --> 7235 <flag name="alarm" value="4" /> 7236 <!-- All available ringtone sounds. --> 7237 <flag name="all" value="7" /> 7238 </attr> 7239 <!-- Whether to show an item for a default sound. --> 7240 <attr name="showDefault" format="boolean" /> 7241 <!-- Whether to show an item for 'Silent'. --> 7242 <attr name="showSilent" format="boolean" /> 7243 </declare-styleable> 7244 7245 <!-- Base attributes available to VolumePreference. --> 7246 <declare-styleable name="VolumePreference"> 7247 <!-- Different audio stream types. --> 7248 <attr name="streamType"> 7249 <enum name="voice" value="0" /> 7250 <enum name="system" value="1" /> 7251 <enum name="ring" value="2" /> 7252 <enum name="music" value="3" /> 7253 <enum name="alarm" value="4" /> 7254 </attr> 7255 </declare-styleable> 7256 7257 <declare-styleable name="InputMethodService"> 7258 <!-- Background to use for entire input method when it is being 7259 shown in fullscreen mode with the extract view, to ensure 7260 that it completely covers the application. This allows, 7261 for example, the candidate view to be hidden 7262 while in fullscreen mode without having the application show through 7263 behind it.--> 7264 <attr name="imeFullscreenBackground" format="reference|color" /> 7265 <!-- Animation to use when showing the fullscreen extract UI after 7266 it had previously been hidden. --> 7267 <attr name="imeExtractEnterAnimation" format="reference" /> 7268 <!-- Animation to use when hiding the fullscreen extract UI after 7269 it had previously been shown. --> 7270 <attr name="imeExtractExitAnimation" format="reference" /> 7271 </declare-styleable> 7272 7273 <declare-styleable name="VoiceInteractionSession"> 7274 </declare-styleable> 7275 7276 <declare-styleable name="KeyboardView"> 7277 <!-- Default KeyboardView style. --> 7278 <attr name="keyboardViewStyle" format="reference" /> 7279 7280 <!-- Image for the key. This image needs to be a StateListDrawable, with the following 7281 possible states: normal, pressed, checkable, checkable+pressed, checkable+checked, 7282 checkable+checked+pressed. --> 7283 <attr name="keyBackground" format="reference" /> 7284 7285 <!-- Size of the text for character keys. --> 7286 <attr name="keyTextSize" format="dimension" /> 7287 7288 <!-- Size of the text for custom keys with some text and no icon. --> 7289 <attr name="labelTextSize" format="dimension" /> 7290 7291 <!-- Color to use for the label in a key. --> 7292 <attr name="keyTextColor" format="color" /> 7293 7294 <!-- Layout resource for key press feedback.--> 7295 <attr name="keyPreviewLayout" format="reference" /> 7296 7297 <!-- Vertical offset of the key press feedback from the key. --> 7298 <attr name="keyPreviewOffset" format="dimension" /> 7299 7300 <!-- Height of the key press feedback popup. --> 7301 <attr name="keyPreviewHeight" format="dimension" /> 7302 7303 <!-- Amount to offset the touch Y coordinate by, for bias correction. --> 7304 <attr name="verticalCorrection" format="dimension" /> 7305 7306 <!-- Layout resource for popup keyboards. --> 7307 <attr name="popupLayout" format="reference" /> 7308 7309 <attr name="shadowColor" /> 7310 <attr name="shadowRadius" /> 7311 </declare-styleable> 7312 7313 <declare-styleable name="KeyboardViewPreviewState"> 7314 <!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView} 7315 key preview background. --> 7316 <attr name="state_long_pressable" format="boolean" /> 7317 </declare-styleable> 7318 7319 <declare-styleable name="Keyboard"> 7320 <!-- Default width of a key, in pixels or percentage of display width. --> 7321 <attr name="keyWidth" format="dimension|fraction" /> 7322 <!-- Default height of a key, in pixels or percentage of display width. --> 7323 <attr name="keyHeight" format="dimension|fraction" /> 7324 <!-- Default horizontal gap between keys. --> 7325 <attr name="horizontalGap" format="dimension|fraction" /> 7326 <!-- Default vertical gap between rows of keys. --> 7327 <attr name="verticalGap" format="dimension|fraction" /> 7328 </declare-styleable> 7329 7330 <declare-styleable name="Keyboard_Row"> 7331 <!-- Row edge flags. --> 7332 <attr name="rowEdgeFlags"> 7333 <!-- Row is anchored to the top of the keyboard. --> 7334 <flag name="top" value="4" /> 7335 <!-- Row is anchored to the bottom of the keyboard. --> 7336 <flag name="bottom" value="8" /> 7337 </attr> 7338 <!-- Mode of the keyboard. If the mode doesn't match the 7339 requested keyboard mode, the row will be skipped. --> 7340 <attr name="keyboardMode" format="reference" /> 7341 </declare-styleable> 7342 7343 <declare-styleable name="Keyboard_Key"> 7344 <!-- The unicode value or comma-separated values that this key outputs. --> 7345 <attr name="codes" format="integer|string" /> 7346 <!-- The XML keyboard layout of any popup keyboard. --> 7347 <attr name="popupKeyboard" format="reference" /> 7348 <!-- The characters to display in the popup keyboard. --> 7349 <attr name="popupCharacters" format="string" /> 7350 <!-- Key edge flags. --> 7351 <attr name="keyEdgeFlags"> 7352 <!-- Key is anchored to the left of the keyboard. --> 7353 <flag name="left" value="1" /> 7354 <!-- Key is anchored to the right of the keyboard. --> 7355 <flag name="right" value="2" /> 7356 </attr> 7357 <!-- Whether this is a modifier key such as Alt or Shift. --> 7358 <attr name="isModifier" format="boolean" /> 7359 <!-- Whether this is a toggle key. --> 7360 <attr name="isSticky" format="boolean" /> 7361 <!-- Whether long-pressing on this key will make it repeat. --> 7362 <attr name="isRepeatable" format="boolean" /> 7363 <!-- The icon to show in the popup preview. --> 7364 <attr name="iconPreview" format="reference" /> 7365 <!-- The string of characters to output when this key is pressed. --> 7366 <attr name="keyOutputText" format="string" /> 7367 <!-- The label to display on the key. --> 7368 <attr name="keyLabel" format="string" /> 7369 <!-- The icon to display on the key instead of the label. --> 7370 <attr name="keyIcon" format="reference" /> 7371 <!-- Mode of the keyboard. If the mode doesn't match the 7372 requested keyboard mode, the key will be skipped. --> 7373 <attr name="keyboardMode" /> 7374 </declare-styleable> 7375 7376 <!-- =============================== --> 7377 <!-- AppWidget package class attributes --> 7378 <!-- =============================== --> 7379 <eat-comment /> 7380 7381 <!-- Use <code>appwidget-provider</code> as the root tag of the XML resource that 7382 describes an AppWidget provider. See {@link android.appwidget android.appwidget} 7383 package for more info. 7384 --> 7385 <declare-styleable name="AppWidgetProviderInfo"> 7386 <!-- Minimum width of the AppWidget. --> 7387 <attr name="minWidth"/> 7388 <!-- Minimum height of the AppWidget. --> 7389 <attr name="minHeight"/> 7390 <!-- Minimum width that the AppWidget can be resized to. --> 7391 <attr name="minResizeWidth" format="dimension"/> 7392 <!-- Minimum height that the AppWidget can be resized to. --> 7393 <attr name="minResizeHeight" format="dimension"/> 7394 <!-- Update period in milliseconds, or 0 if the AppWidget will update itself. --> 7395 <attr name="updatePeriodMillis" format="integer" /> 7396 <!-- A resource id of a layout. --> 7397 <attr name="initialLayout" format="reference" /> 7398 <!-- A resource id of a layout. --> 7399 <attr name="initialKeyguardLayout" format="reference" /> 7400 <!-- A class name in the AppWidget's package to be launched to configure. 7401 If not supplied, then no activity will be launched. --> 7402 <attr name="configure" format="string" /> 7403 <!-- A preview of what the AppWidget will look like after it's configured. 7404 If not supplied, the AppWidget's icon will be used. --> 7405 <attr name="previewImage" format="reference" /> 7406 <!-- The view id of the AppWidget subview which should be auto-advanced. 7407 by the widget's host. --> 7408 <attr name="autoAdvanceViewId" format="reference" /> 7409 <!-- Optional parameter which indicates if and how this widget can be 7410 resized. Supports combined values using | operator. --> 7411 <attr name="resizeMode" format="integer"> 7412 <flag name="none" value="0x0" /> 7413 <flag name="horizontal" value="0x1" /> 7414 <flag name="vertical" value="0x2" /> 7415 </attr> 7416 <!-- Optional parameter which indicates where this widget can be shown, 7417 ie. home screen, keyguard, search bar or any combination thereof. 7418 Supports combined values using | operator. --> 7419 <attr name="widgetCategory" format="integer"> 7420 <flag name="home_screen" value="0x1" /> 7421 <flag name="keyguard" value="0x2" /> 7422 <flag name="searchbox" value="0x4" /> 7423 </attr> 7424 </declare-styleable> 7425 7426 <!-- =============================== --> 7427 <!-- Wallpaper preview attributes --> 7428 <!-- =============================== --> 7429 <eat-comment /> 7430 7431 <!-- Use <code>wallpaper-preview</code> as the root tag of the XML resource that 7432 describes a wallpaper preview. --> 7433 <declare-styleable name="WallpaperPreviewInfo"> 7434 <!-- A resource id of a static drawable. --> 7435 <attr name="staticWallpaperPreview" format="reference" /> 7436 </declare-styleable> 7437 7438 <!-- =============================== --> 7439 <!-- App package class attributes --> 7440 <!-- =============================== --> 7441 <eat-comment /> 7442 7443 <!-- ============================= --> 7444 <!-- View package class attributes --> 7445 <!-- ============================= --> 7446 <eat-comment /> 7447 7448 <!-- Attributes that can be used with <code><fragment></code> 7449 tags inside of the layout of an Activity. This instantiates 7450 the given {@link android.app.Fragment} and inserts its content 7451 view into the current location in the layout. --> 7452 <declare-styleable name="Fragment"> 7453 <!-- Supply the name of the fragment class to instantiate. --> 7454 <attr name="name" /> 7455 7456 <!-- Supply an identifier name for the top-level view, to later retrieve it 7457 with {@link android.view.View#findViewById View.findViewById()} or 7458 {@link android.app.Activity#findViewById Activity.findViewById()}. 7459 This must be a 7460 resource reference; typically you set this using the 7461 <code>@+</code> syntax to create a new ID resources. 7462 For example: <code>android:id="@+id/my_id"</code> which 7463 allows you to later retrieve the view 7464 with <code>findViewById(R.id.my_id)</code>. --> 7465 <attr name="id" /> 7466 7467 <!-- Supply a tag for the top-level view containing a String, to be retrieved 7468 later with {@link android.view.View#getTag View.getTag()} or 7469 searched for with {@link android.view.View#findViewWithTag 7470 View.findViewWithTag()}. It is generally preferable to use 7471 IDs (through the android:id attribute) instead of tags because 7472 they are faster and allow for compile-time type checking. --> 7473 <attr name="tag" /> 7474 7475 <!-- The Transition that will be used to move Views out of the scene when the 7476 fragment is removed, hidden, or detached when not popping the back stack. 7477 Corresponds to {@link android.app.Fragment#setExitTransition( 7478 android.transition.Transition)} --> 7479 <attr name="fragmentExitTransition" format="reference"/> 7480 7481 <!-- The Transition that will be used to move Views into the initial scene. 7482 Corresponds to {@link android.app.Fragment#setEnterTransition( 7483 android.transition.Transition)} --> 7484 <attr name="fragmentEnterTransition" format="reference"/> 7485 7486 <!-- The Transition that will be used for shared elements transferred into the content 7487 Scene. 7488 Corresponds to {@link android.app.Fragment#setSharedElementEnterTransition( 7489 android.transition.Transition)} --> 7490 <attr name="fragmentSharedElementEnterTransition" format="reference"/> 7491 7492 <!-- The Transition that will be used to move Views out of the scene when the Fragment is 7493 preparing to be removed, hidden, or detached because of popping the back stack. 7494 Corresponds to {@link android.app.Fragment#setReturnTransition( 7495 android.transition.Transition)} --> 7496 <attr name="fragmentReturnTransition" format="reference"/> 7497 7498 <!-- The Transition that will be used for shared elements transferred back during a 7499 pop of the back stack. This Transition acts in the leaving Fragment. 7500 Corresponds to {@link android.app.Fragment#setSharedElementReturnTransition( 7501 android.transition.Transition)} --> 7502 <attr name="fragmentSharedElementReturnTransition" format="reference"/> 7503 7504 <!-- The Transition that will be used to move Views in to the scene when returning due 7505 to popping a back stack. 7506 Corresponds to {@link android.app.Fragment#setReenterTransition( 7507 android.transition.Transition)} --> 7508 <attr name="fragmentReenterTransition" format="reference"/> 7509 7510 <!-- Sets whether the enter and exit transitions should overlap when transitioning 7511 forward. 7512 Corresponds to {@link android.app.Fragment#setAllowEnterTransitionOverlap( 7513 boolean)} --> 7514 <attr name="fragmentAllowEnterTransitionOverlap" format="reference"/> 7515 7516 <!-- Sets whether the enter and exit transitions should overlap when transitioning 7517 because of popping the back stack. 7518 Corresponds to {@link android.app.Fragment#setAllowReturnTransitionOverlap( 7519 boolean)} --> 7520 <attr name="fragmentAllowReturnTransitionOverlap" format="reference"/> 7521 </declare-styleable> 7522 7523 <!-- Use <code>device-admin</code> as the root tag of the XML resource that 7524 describes a 7525 {@link android.app.admin.DeviceAdminReceiver}, which is 7526 referenced from its 7527 {@link android.app.admin.DeviceAdminReceiver#DEVICE_ADMIN_META_DATA} 7528 meta-data entry. Described here are the attributes that can be 7529 included in that tag. --> 7530 <declare-styleable name="DeviceAdmin"> 7531 <!-- Control whether the admin is visible to the user, even when it 7532 is not enabled. This is true by default. You may want to make 7533 it false if your admin does not make sense to be turned on 7534 unless some explicit action happens in your app. --> 7535 <attr name="visible" /> 7536 </declare-styleable> 7537 7538 <!-- Use <code>wallpaper</code> as the root tag of the XML resource that 7539 describes an 7540 {@link android.service.wallpaper.WallpaperService}, which is 7541 referenced from its 7542 {@link android.service.wallpaper.WallpaperService#SERVICE_META_DATA} 7543 meta-data entry. Described here are the attributes that can be 7544 included in that tag. --> 7545 <declare-styleable name="Wallpaper"> 7546 <attr name="settingsActivity" /> 7547 7548 <!-- Reference to the wallpaper's thumbnail bitmap. --> 7549 <attr name="thumbnail" format="reference" /> 7550 7551 <!-- Name of the author and/or source/collection of this component, e.g. Art Collection, Picasso. --> 7552 <attr name="author" format="reference" /> 7553 7554 <!-- Short description of the component's purpose or behavior. --> 7555 <attr name="description" /> 7556 7557 <!-- Uri that specifies a link for further context of this wallpaper, e.g. http://www.picasso.org. --> 7558 <attr name="contextUri" format="reference" /> 7559 7560 <!-- Title of the uri that specifies a link for further context of this wallpaper, e.g. Explore collection. --> 7561 <attr name="contextDescription" format="reference" /> 7562 7563 <!-- Whether to show any metadata when previewing the wallpaper. If this value is 7564 set to true, any component that shows a preview of this live wallpaper should also show 7565 accompanying information like the title, the description, the author and the context 7566 description of this wallpaper so the user gets to know further information about this 7567 wallpaper. --> 7568 <attr name="showMetadataInPreview" format="boolean" /> 7569 7570 </declare-styleable> 7571 7572 <!-- Use <code>dream</code> as the root tag of the XML resource that 7573 describes an 7574 {@link android.service.dreams.DreamService}, which is 7575 referenced from its 7576 {@link android.service.dreams.DreamService#DREAM_META_DATA} 7577 meta-data entry. Described here are the attributes that can be 7578 included in that tag. --> 7579 <declare-styleable name="Dream"> 7580 <!-- Component name of an activity that allows the user to modify 7581 the settings for this dream. --> 7582 <attr name="settingsActivity" /> 7583 </declare-styleable> 7584 7585 <!-- @SystemApi Use <code>trust-agent</code> as the root tag of the XML resource that 7586 describes an {@link android.service.trust.TrustAgentService}, which is 7587 referenced from its {@link android.service.trust.TrustAgentService#TRUST_AGENT_META_DATA} 7588 meta-data entry. Described here are the attributes that can be included in that tag. 7589 @hide --> 7590 <declare-styleable name="TrustAgent"> 7591 <!-- @SystemApi Component name of an activity that allows the user to modify 7592 the settings for this trust agent. @hide --> 7593 <attr name="settingsActivity" /> 7594 <!-- @SystemApi Title for a preference that allows that user to launch the 7595 activity to modify trust agent settings. @hide --> 7596 <attr name="title" /> 7597 <!-- @SystemApi Summary for the same preference as the title. @hide --> 7598 <attr name="summary" /> 7599 <!-- @SystemApi Whether trust agent can unlock a user profile @hide --> 7600 <attr name="unlockProfile" format="boolean"/> 7601 </declare-styleable> 7602 7603 <!-- =============================== --> 7604 <!-- Accounts package class attributes --> 7605 <!-- =============================== --> 7606 <eat-comment /> 7607 7608 <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that 7609 describes an account authenticator. 7610 --> 7611 <declare-styleable name="AccountAuthenticator"> 7612 <!-- The account type this authenticator handles. --> 7613 <attr name="accountType" format="string"/> 7614 <!-- The user-visible name of the authenticator. --> 7615 <attr name="label"/> 7616 <!-- The icon of the authenticator. --> 7617 <attr name="icon"/> 7618 <!-- Smaller icon of the authenticator. --> 7619 <attr name="smallIcon" format="reference"/> 7620 <!-- A preferences.xml file for authenticator-specific settings. --> 7621 <attr name="accountPreferences" format="reference"/> 7622 <!-- Account handles its own token storage and permissions. 7623 Default to false 7624 --> 7625 <attr name="customTokens" format="boolean"/> 7626 </declare-styleable> 7627 7628 <!-- =============================== --> 7629 <!-- Accounts package class attributes --> 7630 <!-- =============================== --> 7631 <eat-comment /> 7632 7633 <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that 7634 describes an account authenticator. 7635 --> 7636 <declare-styleable name="SyncAdapter"> 7637 <!-- the authority of a content provider. --> 7638 <attr name="contentAuthority" format="string"/> 7639 <attr name="accountType"/> 7640 <attr name="userVisible" format="boolean"/> 7641 <attr name="supportsUploading" format="boolean"/> 7642 <!-- Set to true to tell the SyncManager that this SyncAdapter supports 7643 multiple simultaneous syncs for the same account type and authority. 7644 Otherwise the SyncManager will be sure not to issue a start sync request 7645 to this SyncAdapter if the SyncAdapter is already syncing another account. 7646 Defaults to false. 7647 --> 7648 <attr name="allowParallelSyncs" format="boolean"/> 7649 <!-- Set to true to tell the SyncManager to automatically call setIsSyncable(..., ..., 1) 7650 for the SyncAdapter instead of issuaing an initialization sync to the SyncAdapter. 7651 Defaults to false. 7652 --> 7653 <attr name="isAlwaysSyncable" format="boolean"/> 7654 <!-- If provided, specifies the action of the settings 7655 activity for this SyncAdapter. 7656 --> 7657 <attr name="settingsActivity"/> 7658 </declare-styleable> 7659 7660 <!-- =============================== --> 7661 <!-- AutoFill attributes --> 7662 <!-- =============================== --> 7663 <eat-comment /> 7664 7665 <!-- Use <code>autofill-service</code> as the root tag of the XML resource that describes a 7666 {@link android.service.autofill.AutoFillService}, which is referenced from its 7667 {@link android.service.autofill#SERVICE_META_DATA} meta-data entry. 7668 --> 7669 <declare-styleable name="AutoFillService"> 7670 <!-- Fully qualified class name of an activity that allows the user to modify 7671 the settings for this service. --> 7672 <attr name="settingsActivity" /> 7673 </declare-styleable> 7674 7675 <!-- =============================== --> 7676 <!-- Contacts meta-data attributes --> 7677 <!-- =============================== --> 7678 <eat-comment /> 7679 7680 <!-- TODO: remove this deprecated styleable. --> 7681 <eat-comment /> 7682 <declare-styleable name="Icon"> 7683 <attr name="icon" /> 7684 <attr name="mimeType" /> 7685 </declare-styleable> 7686 7687 <!-- TODO: remove this deprecated styleable --> 7688 <eat-comment /> 7689 <declare-styleable name="IconDefault"> 7690 <attr name="icon" /> 7691 </declare-styleable> 7692 7693 <!-- Maps a specific contact data MIME-type to styling information. --> 7694 <declare-styleable name="ContactsDataKind"> 7695 <!-- Mime-type handled by this mapping. --> 7696 <attr name="mimeType" /> 7697 <!-- Icon used to represent data of this kind. --> 7698 <attr name="icon" /> 7699 <!-- Column in data table that summarizes this data. --> 7700 <attr name="summaryColumn" format="string" /> 7701 <!-- Column in data table that contains details for this data. --> 7702 <attr name="detailColumn" format="string" /> 7703 <!-- Flag indicating that detail should be built from SocialProvider. --> 7704 <attr name="detailSocialSummary" format="boolean" /> 7705 <!-- Resource representing the term "All Contacts" (e.g. "All Friends" or 7706 "All connections"). Optional (Default is "All Contacts"). --> 7707 <attr name="allContactsName" format="string" /> 7708 </declare-styleable> 7709 7710 <!-- =============================== --> 7711 <!-- TabSelector class attributes --> 7712 <!-- =============================== --> 7713 <eat-comment /> 7714 7715 <declare-styleable name="SlidingTab"> 7716 <!-- Use "horizontal" for a row, "vertical" for a column. The default is horizontal. --> 7717 <attr name="orientation" /> 7718 </declare-styleable> 7719 7720 <!-- =============================== --> 7721 <!-- GlowPadView class attributes --> 7722 <!-- =============================== --> 7723 <eat-comment /> 7724 <declare-styleable name="GlowPadView"> 7725 <!-- Reference to an array resource that be used as description for the targets around the circle. 7726 {@deprecated Removed.} --> 7727 <attr name="targetDescriptions" format="reference" /> 7728 7729 <!-- Reference to an array resource that be used to announce the directions with targets around the circle. 7730 {@deprecated Removed.}--> 7731 <attr name="directionDescriptions" format="reference" /> 7732 </declare-styleable> 7733 7734 <!-- =============================== --> 7735 <!-- Location package class attributes --> 7736 <!-- =============================== --> 7737 <eat-comment /> 7738 7739 <!-- Use <code>injected-location-setting</code> as the root tag of the XML resource that 7740 describes an injected "Location services" setting. Note that the status value (subtitle) 7741 for the setting is specified dynamically by a subclass of SettingInjectorService. 7742 --> 7743 <declare-styleable name="SettingInjectorService"> 7744 <!-- The title for the preference. --> 7745 <attr name="title"/> 7746 <!-- The icon for the preference, should refer to all apps covered by the setting. Typically 7747 a generic icon for the developer. --> 7748 <attr name="icon"/> 7749 <!-- The activity to launch when the setting is clicked on. --> 7750 <attr name="settingsActivity"/> 7751 </declare-styleable> 7752 7753 <!-- =============================== --> 7754 <!-- LockPatternView class attributes --> 7755 <!-- =============================== --> 7756 <eat-comment /> 7757 7758 <declare-styleable name="LockPatternView"> 7759 <!-- Aspect to use when drawing LockPatternView. Choices are "square"(default), "lock_width" 7760 or "lock_height" --> 7761 <attr name="aspect" format="string" /> 7762 <!-- Color to use when drawing LockPatternView paths. --> 7763 <attr name="pathColor" format="color|reference" /> 7764 <!-- The regular pattern color --> 7765 <attr name="regularColor" format="color|reference" /> 7766 <!-- The error color --> 7767 <attr name="errorColor" format="color|reference" /> 7768 <!-- The success color --> 7769 <attr name="successColor" format="color|reference"/> 7770 </declare-styleable> 7771 7772 <!-- Use <code>recognition-service</code> as the root tag of the XML resource that 7773 describes a {@link android.speech.RecognitionService}, which is referenced from 7774 its {@link android.speech.RecognitionService#SERVICE_META_DATA} meta-data entry. 7775 Described here are the attributes that can be included in that tag. --> 7776 <declare-styleable name="RecognitionService"> 7777 <attr name="settingsActivity" /> 7778 </declare-styleable> 7779 7780 <!-- Use <code>voice-interaction-service</code> as the root tag of the XML resource that 7781 describes a {@link android.service.voice.VoiceInteractionService}, which is referenced from 7782 its {@link android.service.voice.VoiceInteractionService#SERVICE_META_DATA} meta-data entry. 7783 Described here are the attributes that can be included in that tag. --> 7784 <declare-styleable name="VoiceInteractionService"> 7785 <!-- The service that hosts active voice interaction sessions. This is required. --> 7786 <attr name="sessionService" format="string" /> 7787 <!-- The service that provides voice recognition. This is required. When the user 7788 selects this voice interaction service, they will also be implicitly selecting 7789 the component here for their recognition service. --> 7790 <attr name="recognitionService" format="string" /> 7791 <attr name="settingsActivity" /> 7792 <!-- Flag indicating whether this voice interaction service is capable of handling the 7793 assist action. --> 7794 <attr name="supportsAssist" format="boolean" /> 7795 <!-- Flag indicating whether this voice interaction service is capable of being launched 7796 from the keyguard. --> 7797 <attr name="supportsLaunchVoiceAssistFromKeyguard" format="boolean" /> 7798 <!-- Flag indicating whether this voice interaction service can handle local voice 7799 interaction requests from an Activity. This flag is new in 7800 {@link android.os.Build.VERSION_CODES#N} and not used in previous versions. --> 7801 <attr name="supportsLocalInteraction" format="boolean" /> 7802 </declare-styleable> 7803 7804 <!-- Use <code>voice-enrollment-application</code> 7805 as the root tag of the XML resource that escribes the supported keyphrases (hotwords) 7806 by the enrollment application. 7807 Described here are the attributes that can be included in that tag. 7808 @hide 7809 @SystemApi --> 7810 <declare-styleable name="VoiceEnrollmentApplication"> 7811 <!-- A globally unique ID for the keyphrase. @hide @SystemApi --> 7812 <attr name="searchKeyphraseId" format="integer" /> 7813 <!-- The actual keyphrase/hint text, or empty if not keyphrase dependent. @hide @SystemApi --> 7814 <attr name="searchKeyphrase" format="string" /> 7815 <!-- A comma separated list of BCP-47 language tag for locales that are supported 7816 for this keyphrase, or empty if not locale dependent. @hide @SystemApi --> 7817 <attr name="searchKeyphraseSupportedLocales" format="string" /> 7818 <!-- Flags for supported recognition modes. @hide @SystemApi --> 7819 <attr name="searchKeyphraseRecognitionFlags"> 7820 <flag name="none" value="0" /> 7821 <flag name="voiceTrigger" value="0x1" /> 7822 <flag name="userIdentification" value="0x2" /> 7823 </attr> 7824 </declare-styleable> 7825 7826 <!-- Attributes used to style the Action Bar. --> 7827 <declare-styleable name="ActionBar"> 7828 <!-- The type of navigation to use. --> 7829 <attr name="navigationMode"> 7830 <!-- Normal static title text --> 7831 <enum name="normal" value="0" /> 7832 <!-- The action bar will use a selection list for navigation. --> 7833 <enum name="listMode" value="1" /> 7834 <!-- The action bar will use a series of horizontal tabs for navigation. --> 7835 <enum name="tabMode" value="2" /> 7836 </attr> 7837 <!-- Options affecting how the action bar is displayed. --> 7838 <attr name="displayOptions"> 7839 <flag name="none" value="0" /> 7840 <flag name="useLogo" value="0x1" /> 7841 <flag name="showHome" value="0x2" /> 7842 <flag name="homeAsUp" value="0x4" /> 7843 <flag name="showTitle" value="0x8" /> 7844 <flag name="showCustom" value="0x10" /> 7845 <flag name="disableHome" value="0x20" /> 7846 </attr> 7847 <!-- Specifies title text used for navigationMode="normal" --> 7848 <attr name="title" /> 7849 <!-- Specifies subtitle text used for navigationMode="normal" --> 7850 <attr name="subtitle" format="string" /> 7851 <!-- Specifies a style to use for title text. --> 7852 <attr name="titleTextStyle" format="reference" /> 7853 <!-- Specifies a style to use for subtitle text. --> 7854 <attr name="subtitleTextStyle" format="reference" /> 7855 <!-- Specifies the drawable used for the application icon. --> 7856 <attr name="icon" /> 7857 <!-- Specifies the drawable used for the application logo. --> 7858 <attr name="logo" /> 7859 <!-- Specifies the drawable used for item dividers. --> 7860 <attr name="divider" /> 7861 <!-- Specifies a background drawable for the action bar. --> 7862 <attr name="background" /> 7863 <!-- Specifies a background drawable for a second stacked row of the action bar. --> 7864 <attr name="backgroundStacked" format="reference|color" /> 7865 <!-- Specifies a background drawable for the bottom component of a split action bar. --> 7866 <attr name="backgroundSplit" format="reference|color" /> 7867 <!-- Specifies a layout for custom navigation. Overrides navigationMode. --> 7868 <attr name="customNavigationLayout" format="reference" /> 7869 <!-- Specifies a fixed height. --> 7870 <attr name="height" /> 7871 <!-- Specifies a layout to use for the "home" section of the action bar. --> 7872 <attr name="homeLayout" format="reference" /> 7873 <!-- Specifies a style resource to use for an embedded progress bar. --> 7874 <attr name="progressBarStyle" /> 7875 <!-- Specifies a style resource to use for an indeterminate progress spinner. --> 7876 <attr name="indeterminateProgressStyle" format="reference" /> 7877 <!-- Specifies the horizontal padding on either end for an embedded progress bar. --> 7878 <attr name="progressBarPadding" format="dimension" /> 7879 <!-- Up navigation glyph --> 7880 <attr name="homeAsUpIndicator" /> 7881 <!-- Specifies padding that should be applied to the left and right sides of 7882 system-provided items in the bar. --> 7883 <attr name="itemPadding" format="dimension" /> 7884 <!-- Set true to hide the action bar on a vertical nested scroll of content. --> 7885 <attr name="hideOnContentScroll" format="boolean" /> 7886 <!-- Minimum inset for content views within a bar. Navigation buttons and 7887 menu views are excepted. Only valid for some themes and configurations. --> 7888 <attr name="contentInsetStart" format="dimension" /> 7889 <!-- Minimum inset for content views within a bar. Navigation buttons and 7890 menu views are excepted. Only valid for some themes and configurations. --> 7891 <attr name="contentInsetEnd" format="dimension" /> 7892 <!-- Minimum inset for content views within a bar. Navigation buttons and 7893 menu views are excepted. Only valid for some themes and configurations. --> 7894 <attr name="contentInsetLeft" format="dimension" /> 7895 <!-- Minimum inset for content views within a bar. Navigation buttons and 7896 menu views are excepted. Only valid for some themes and configurations. --> 7897 <attr name="contentInsetRight" format="dimension" /> 7898 <!-- Minimum inset for content views within a bar when a navigation button 7899 is present, such as the Up button. Only valid for some themes and configurations. --> 7900 <attr name="contentInsetStartWithNavigation" format="dimension" /> 7901 <!-- Minimum inset for content views within a bar when actions from a menu 7902 are present. Only valid for some themes and configurations. --> 7903 <attr name="contentInsetEndWithActions" format="dimension" /> 7904 <!-- Elevation for the action bar itself --> 7905 <attr name="elevation" /> 7906 <!-- Reference to a theme that should be used to inflate popups 7907 shown by widgets in the action bar. --> 7908 <attr name="popupTheme" /> 7909 </declare-styleable> 7910 7911 <declare-styleable name="ActionMode"> 7912 <!-- Specifies a style to use for title text. --> 7913 <attr name="titleTextStyle" /> 7914 <!-- Specifies a style to use for subtitle text. --> 7915 <attr name="subtitleTextStyle" /> 7916 <!-- Specifies a background for the action mode bar. --> 7917 <attr name="background" /> 7918 <!-- Specifies a background for the split action mode bar. --> 7919 <attr name="backgroundSplit" /> 7920 <!-- Specifies a fixed height for the action mode bar. --> 7921 <attr name="height" /> 7922 <!-- Specifies a layout to use for the "close" item at the starting edge. --> 7923 <attr name="closeItemLayout" format="reference" /> 7924 </declare-styleable> 7925 7926 <declare-styleable name="SearchView"> 7927 <!-- The layout to use for the search view. --> 7928 <attr name="layout" /> 7929 <!-- The default state of the SearchView. If true, it will be iconified when not in 7930 use and expanded when clicked. --> 7931 <attr name="iconifiedByDefault" format="boolean" /> 7932 <!-- An optional maximum width of the SearchView. --> 7933 <attr name="maxWidth" /> 7934 <!-- An optional query hint string to be displayed in the empty query field. --> 7935 <attr name="queryHint" format="string" /> 7936 <!-- Default query hint used when {@code queryHint} is undefined and 7937 the search view's {@code SearchableInfo} does not provide a hint. 7938 @hide --> 7939 <attr name="defaultQueryHint" format="string" /> 7940 <!-- The IME options to set on the query text field. --> 7941 <attr name="imeOptions" /> 7942 <!-- The input type to set on the query text field. --> 7943 <attr name="inputType" /> 7944 <!-- Close button icon --> 7945 <attr name="closeIcon" format="reference" /> 7946 <!-- Go button icon --> 7947 <attr name="goIcon" format="reference" /> 7948 <!-- Search icon --> 7949 <attr name="searchIcon" format="reference" /> 7950 <!-- Search icon displayed as a text field hint --> 7951 <attr name="searchHintIcon" format="reference" /> 7952 <!-- Voice button icon --> 7953 <attr name="voiceIcon" format="reference" /> 7954 <!-- Commit icon shown in the query suggestion row --> 7955 <attr name="commitIcon" format="reference" /> 7956 <!-- Layout for query suggestion rows --> 7957 <attr name="suggestionRowLayout" format="reference" /> 7958 <!-- Background for the section containing the search query --> 7959 <attr name="queryBackground" format="reference" /> 7960 <!-- Background for the section containing the action (e.g. voice search) --> 7961 <attr name="submitBackground" format="reference" /> 7962 </declare-styleable> 7963 7964 <declare-styleable name="Switch"> 7965 <!-- Drawable to use as the "thumb" that switches back and forth. --> 7966 <attr name="thumb" /> 7967 <!-- Tint to apply to the thumb. --> 7968 <attr name="thumbTint" /> 7969 <!-- Blending mode used to apply the thumb tint. --> 7970 <attr name="thumbTintMode" /> 7971 <!-- Drawable to use as the "track" that the switch thumb slides within. --> 7972 <attr name="track" format="reference" /> 7973 <!-- Tint to apply to the track. --> 7974 <attr name="trackTint" format="color" /> 7975 <!-- Blending mode used to apply the track tint. --> 7976 <attr name="trackTintMode"> 7977 <!-- The tint is drawn on top of the drawable. 7978 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 7979 <enum name="src_over" value="3" /> 7980 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 7981 color channels are thrown out. [Sa * Da, Sc * Da] --> 7982 <enum name="src_in" value="5" /> 7983 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 7984 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 7985 <enum name="src_atop" value="9" /> 7986 <!-- Multiplies the color and alpha channels of the drawable with those of 7987 the tint. [Sa * Da, Sc * Dc] --> 7988 <enum name="multiply" value="14" /> 7989 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 7990 <enum name="screen" value="15" /> 7991 <!-- Combines the tint and drawable color and alpha channels, clamping the 7992 result to valid color values. Saturate(S + D) --> 7993 <enum name="add" value="16" /> 7994 </attr> 7995 <!-- Text to use when the switch is in the checked/"on" state. --> 7996 <attr name="textOn" /> 7997 <!-- Text to use when the switch is in the unchecked/"off" state. --> 7998 <attr name="textOff" /> 7999 <!-- Amount of padding on either side of text within the switch thumb. --> 8000 <attr name="thumbTextPadding" format="dimension" /> 8001 <!-- TextAppearance style for text displayed on the switch thumb. --> 8002 <attr name="switchTextAppearance" format="reference" /> 8003 <!-- Minimum width for the switch component --> 8004 <attr name="switchMinWidth" format="dimension" /> 8005 <!-- Minimum space between the switch and caption text --> 8006 <attr name="switchPadding" format="dimension" /> 8007 <!-- Whether to split the track and leave a gap for the thumb drawable. --> 8008 <attr name="splitTrack" /> 8009 <!-- Whether to draw on/off text. --> 8010 <attr name="showText" format="boolean" /> 8011 </declare-styleable> 8012 8013 <declare-styleable name="Pointer"> 8014 <!-- Reference to a pointer icon drawable with STYLE_ARROW --> 8015 <attr name="pointerIconArrow" format="reference" /> 8016 <!-- Reference to a pointer icon drawable with STYLE_SPOT_HOVER --> 8017 <attr name="pointerIconSpotHover" format="reference" /> 8018 <!-- Reference to a pointer icon drawable with STYLE_SPOT_TOUCH --> 8019 <attr name="pointerIconSpotTouch" format="reference" /> 8020 <!-- Reference to a pointer icon drawable with STYLE_SPOT_ANCHOR --> 8021 <attr name="pointerIconSpotAnchor" format="reference" /> 8022 <!-- Reference to a pointer drawable with STYLE_CONTEXT_MENU --> 8023 <attr name="pointerIconContextMenu" format="reference"/> 8024 <!-- Reference to a pointer drawable with STYLE_HAND --> 8025 <attr name="pointerIconHand" format="reference"/> 8026 <!-- Reference to a pointer drawable with STYLE_HELP --> 8027 <attr name="pointerIconHelp" format="reference"/> 8028 <!-- Reference to a pointer drawable with STYLE_WAIT --> 8029 <attr name="pointerIconWait" format="reference"/> 8030 <!-- Reference to a pointer drawable with STYLE_CELL --> 8031 <attr name="pointerIconCell" format="reference"/> 8032 <!-- Reference to a pointer drawable with STYLE_CROSSHAIR --> 8033 <attr name="pointerIconCrosshair" format="reference"/> 8034 <!-- Reference to a pointer drawable with STYLE_TEXT --> 8035 <attr name="pointerIconText" format="reference"/> 8036 <!-- Reference to a pointer drawable with STYLE_VERTICAL_TEXT --> 8037 <attr name="pointerIconVerticalText" format="reference"/> 8038 <!-- Reference to a pointer drawable with STYLE_ALIAS --> 8039 <attr name="pointerIconAlias" format="reference"/> 8040 <!-- Reference to a pointer drawable with STYLE_COPY --> 8041 <attr name="pointerIconCopy" format="reference"/> 8042 <!-- Reference to a pointer drawable with STYLE_NODROP --> 8043 <attr name="pointerIconNodrop" format="reference"/> 8044 <!-- Reference to a pointer drawable with STYLE_ALL_SCROLL --> 8045 <attr name="pointerIconAllScroll" format="reference"/> 8046 <!-- Reference to a pointer drawable with STYLE_HORIZONTAL_DOUBLE_ARROW --> 8047 <attr name="pointerIconHorizontalDoubleArrow" format="reference"/> 8048 <!-- Reference to a pointer drawable with STYLE_VERTICAL_DOUBLE_ARROW --> 8049 <attr name="pointerIconVerticalDoubleArrow" format="reference"/> 8050 <!-- Reference to a pointer drawable with STYLE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW --> 8051 <attr name="pointerIconTopRightDiagonalDoubleArrow" format="reference"/> 8052 <!-- Reference to a pointer drawable with STYLE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW --> 8053 <attr name="pointerIconTopLeftDiagonalDoubleArrow" format="reference"/> 8054 <!-- Reference to a pointer drawable with STYLE_ZOOM_IN --> 8055 <attr name="pointerIconZoomIn" format="reference"/> 8056 <!-- Reference to a pointer drawable with STYLE_ZOOM_OUT --> 8057 <attr name="pointerIconZoomOut" format="reference"/> 8058 <!-- Reference to a pointer drawable with STYLE_GRAB --> 8059 <attr name="pointerIconGrab" format="reference"/> 8060 <!-- Reference to a pointer drawable with STYLE_GRABBING --> 8061 <attr name="pointerIconGrabbing" format="reference"/> 8062 </declare-styleable> 8063 8064 <declare-styleable name="PointerIcon"> 8065 <!-- Drawable to use as the icon bitmap. --> 8066 <attr name="bitmap" format="reference" /> 8067 <!-- X coordinate of the icon hot spot. --> 8068 <attr name="hotSpotX" format="dimension" /> 8069 <!-- Y coordinate of the icon hot spot. --> 8070 <attr name="hotSpotY" format="dimension" /> 8071 </declare-styleable> 8072 8073 <declare-styleable name="Storage"> 8074 <!-- path to mount point for the storage --> 8075 <attr name="mountPoint" format="string" /> 8076 <!-- user visible description of the storage --> 8077 <attr name="storageDescription" format="string" /> 8078 <!-- true if the storage is the primary external storage --> 8079 <attr name="primary" format="boolean" /> 8080 <!-- true if the storage is removable --> 8081 <attr name="removable" format="boolean" /> 8082 <!-- true if the storage is emulated via the FUSE sdcard daemon --> 8083 <attr name="emulated" format="boolean" /> 8084 <!-- number of megabytes of storage MTP should reserve for free storage 8085 (used for emulated storage that is shared with system's data partition) --> 8086 <attr name="mtpReserve" format="integer" /> 8087 <!-- true if the storage can be shared via USB mass storage --> 8088 <attr name="allowMassStorage" format="boolean" /> 8089 <!-- maximum file size for the volume in megabytes, zero or unspecified if it is unbounded --> 8090 <attr name="maxFileSize" format="integer" /> 8091 </declare-styleable> 8092 8093 <declare-styleable name="SwitchPreference"> 8094 <!-- The summary for the Preference in a PreferenceActivity screen when the 8095 SwitchPreference is checked. If separate on/off summaries are not 8096 needed, the summary attribute can be used instead. --> 8097 <attr name="summaryOn" /> 8098 <!-- The summary for the Preference in a PreferenceActivity screen when the 8099 SwitchPreference is unchecked. If separate on/off summaries are not 8100 needed, the summary attribute can be used instead. --> 8101 <attr name="summaryOff" /> 8102 <!-- The text used on the switch itself when in the "on" state. 8103 This should be a very SHORT string, as it appears in a small space. --> 8104 <attr name="switchTextOn" format="string" /> 8105 <!-- The text used on the switch itself when in the "off" state. 8106 This should be a very SHORT string, as it appears in a small space. --> 8107 <attr name="switchTextOff" format="string" /> 8108 <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default, 8109 dependents will be disabled when this is unchecked, so the value of this preference is false. --> 8110 <attr name="disableDependentsState" /> 8111 </declare-styleable> 8112 8113 <declare-styleable name="SeekBarPreference"> 8114 <attr name="layout" /> 8115 <!-- Attribute indicating whether the slider within this preference can be adjusted, that is 8116 pressing left/right keys when this preference is focused will move the slider accordingly (e.g. 8117 inline adjustable preferences). False, if the slider within the preference is read-only and 8118 cannot be adjusted. By default, the seekbar is adjustable. --> 8119 <attr name="adjustable" format="boolean" /> 8120 <!-- Flag indicating whether the TextView next to the seekbar that shows the current seekbar value will be 8121 displayed. If true, the view is VISIBLE; if false, the view will be GONE. By default, this view is VISIBLE. --> 8122 <attr name="showSeekBarValue" format="boolean" /> 8123 </declare-styleable> 8124 8125 <!-- Base attributes available to PreferenceFragment. --> 8126 <declare-styleable name="PreferenceFragment"> 8127 <!-- The layout for the PreferenceFragment. This should rarely need to be changed. --> 8128 <attr name="layout" /> 8129 <attr name="divider" /> 8130 </declare-styleable> 8131 8132 <!-- Base attributes available to PreferenceScreen. --> 8133 <declare-styleable name="PreferenceScreen"> 8134 <!-- The layout for the PreferenceScreen. This should rarely need to be changed. --> 8135 <attr name="screenLayout" format="reference" /> 8136 <attr name="divider" /> 8137 </declare-styleable> 8138 8139 <!-- Base attributes available to PreferenceActivity. --> 8140 <declare-styleable name="PreferenceActivity"> 8141 <!-- The layout for the Preference Activity. This should rarely need to be changed. --> 8142 <attr name="layout" /> 8143 <!-- The layout for the Preference Header. This should rarely need to be changed. --> 8144 <attr name="headerLayout" format="reference" /> 8145 <!-- true if the Icon view will be removed when there is none and thus not showing 8146 the fixed margins. --> 8147 <attr name="headerRemoveIconIfEmpty" format="boolean" /> 8148 </declare-styleable> 8149 8150 <!-- Use <code>tts-engine</code> as the root tag of the XML resource that 8151 describes a text to speech engine implemented as a subclass of 8152 {@link android.speech.tts.TextToSpeechService}. 8153 8154 The XML resource must be referenced from its 8155 {@link android.speech.tts.TextToSpeech.Engine#SERVICE_META_DATA} meta-data 8156 entry. --> 8157 <declare-styleable name="TextToSpeechEngine"> 8158 <attr name="settingsActivity" /> 8159 </declare-styleable> 8160 8161 <!-- Use <code>keyboard-layouts</code> as the root tag of the XML resource that 8162 describes a collection of keyboard layouts provided by an application. 8163 Each keyboard layout is declared by a <code>keyboard-layout</code> tag 8164 with these attributes. 8165 8166 The XML resource that contains the keyboard layouts must be referenced from its 8167 {@link android.hardware.input.InputManager#META_DATA_KEYBOARD_LAYOUTS} 8168 meta-data entry used with broadcast receivers for 8169 {@link android.hardware.input.InputManager#ACTION_QUERY_KEYBOARD_LAYOUTS}. --> 8170 <declare-styleable name="KeyboardLayout"> 8171 <!-- The name of the keyboard layout, must be unique in the receiver. --> 8172 <attr name="name" /> 8173 <!-- The display label of the keyboard layout. --> 8174 <attr name="label" /> 8175 <!-- The key character map file resource. --> 8176 <attr name="keyboardLayout" format="reference" /> 8177 <!-- The locales the given keyboard layout corresponds to. --> 8178 <attr name="locale" format="string" /> 8179 <!-- The vendor ID of the hardware the given layout corresponds to. @hide --> 8180 <attr name="vendorId" format="integer" /> 8181 <!-- The product ID of the hardware the given layout corresponds to. @hide --> 8182 <attr name="productId" format="integer" /> 8183 </declare-styleable> 8184 8185 <declare-styleable name="MediaRouteButton"> 8186 <!-- This drawable is a state list where the "activated" state 8187 indicates active media routing. Non-activated indicates 8188 that media is playing to the local device only. 8189 @hide --> 8190 <attr name="externalRouteEnabledDrawable" format="reference" /> 8191 8192 <!-- The types of media routes the button and its resulting 8193 chooser will filter by. --> 8194 <attr name="mediaRouteTypes" format="integer"> 8195 <!-- Allow selection of live audio routes. --> 8196 <enum name="liveAudio" value="0x1" /> 8197 <!-- Allow selection of user (app-specified) routes. --> 8198 <enum name="user" value="0x800000" /> 8199 </attr> 8200 8201 <attr name="minWidth" /> 8202 <attr name="minHeight" /> 8203 </declare-styleable> 8204 8205 <!-- PagedView specific attributes. These attributes are used to customize 8206 a PagedView view in XML files. --> 8207 <declare-styleable name="PagedView"> 8208 <!-- The space between adjacent pages of the PagedView. --> 8209 <attr name="pageSpacing" format="dimension" /> 8210 <!-- The padding for the scroll indicator area --> 8211 <attr name="scrollIndicatorPaddingLeft" format="dimension" /> 8212 <attr name="scrollIndicatorPaddingRight" format="dimension" /> 8213 </declare-styleable> 8214 8215 <declare-styleable name="KeyguardGlowStripView"> 8216 <attr name="dotSize" format="dimension" /> 8217 <attr name="numDots" format="integer" /> 8218 <attr name="glowDot" format="reference" /> 8219 <attr name="leftToRight" format="boolean" /> 8220 </declare-styleable> 8221 8222 <!-- Some child types have special behavior. --> 8223 <attr name="layout_childType"> 8224 <!-- No special behavior. Layout will proceed as normal. --> 8225 <enum name="none" value="0" /> 8226 <!-- Widget container. 8227 This will be resized in response to certain events. --> 8228 <enum name="widget" value="1" /> 8229 <!-- Security challenge container. 8230 This will be dismissed/shown in response to certain events, 8231 possibly obscuring widget elements. --> 8232 <enum name="challenge" value="2" /> 8233 <!-- User switcher. 8234 This will consume space from the total layout area. --> 8235 <enum name="userSwitcher" value="3" /> 8236 <!-- Scrim. This will block access to child views that 8237 come before it in the child list in bouncer mode. --> 8238 <enum name="scrim" value="4" /> 8239 <!-- The home for widgets. All widgets will be descendents of this. --> 8240 <enum name="widgets" value="5" /> 8241 <!-- This is a handle that is used for expanding the 8242 security challenge container when it is collapsed. --> 8243 <enum name="expandChallengeHandle" value="6" /> 8244 <!-- Delete drop target. This will be the drop target to delete pages. --> 8245 <enum name="pageDeleteDropTarget" value="7" /> 8246 </attr> 8247 8248 <!-- Attributes that can be used with <code><FragmentBreadCrumbs></code> 8249 tags. --> 8250 <declare-styleable name="FragmentBreadCrumbs"> 8251 <attr name="gravity" /> 8252 <attr name="itemLayout" format="reference" /> 8253 <attr name="itemColor" format="color|reference" /> 8254 </declare-styleable> 8255 8256 <declare-styleable name="Toolbar"> 8257 <attr name="titleTextAppearance" format="reference" /> 8258 <attr name="subtitleTextAppearance" format="reference" /> 8259 <attr name="title" /> 8260 <attr name="subtitle" /> 8261 <attr name="gravity" /> 8262 <!-- Specifies extra space on the left, start, right and end sides 8263 of the toolbar's title. Margin values should be positive. --> 8264 <attr name="titleMargin" format="dimension" /> 8265 <!-- Specifies extra space on the start side of the toolbar's title. 8266 If both this attribute and titleMargin are specified, then this 8267 attribute takes precedence. Margin values should be positive. --> 8268 <attr name="titleMarginStart" format="dimension" /> 8269 <!-- Specifies extra space on the end side of the toolbar's title. 8270 If both this attribute and titleMargin are specified, then this 8271 attribute takes precedence. Margin values should be positive. --> 8272 <attr name="titleMarginEnd" format="dimension" /> 8273 <!-- Specifies extra space on the top side of the toolbar's title. 8274 If both this attribute and titleMargin are specified, then this 8275 attribute takes precedence. Margin values should be positive. --> 8276 <attr name="titleMarginTop" format="dimension" /> 8277 <!-- Specifies extra space on the bottom side of the toolbar's title. 8278 If both this attribute and titleMargin are specified, then this 8279 attribute takes precedence. Margin values should be positive. --> 8280 <attr name="titleMarginBottom" format="dimension" /> 8281 <attr name="contentInsetStart" /> 8282 <attr name="contentInsetEnd" /> 8283 <attr name="contentInsetLeft" /> 8284 <attr name="contentInsetRight" /> 8285 <attr name="contentInsetStartWithNavigation" /> 8286 <attr name="contentInsetEndWithActions" /> 8287 <attr name="maxButtonHeight" format="dimension" /> 8288 <attr name="navigationButtonStyle" format="reference" /> 8289 <attr name="buttonGravity"> 8290 <!-- Push object to the top of its container, not changing its size. --> 8291 <flag name="top" value="0x30" /> 8292 <!-- Push object to the bottom of its container, not changing its size. --> 8293 <flag name="bottom" value="0x50" /> 8294 </attr> 8295 <!-- Icon drawable to use for the collapse button. --> 8296 <attr name="collapseIcon" format="reference" /> 8297 <!-- Text to set as the content description for the collapse button. --> 8298 <attr name="collapseContentDescription" format="string" /> 8299 <!-- Reference to a theme that should be used to inflate popups 8300 shown by widgets in the toolbar. --> 8301 <attr name="popupTheme" format="reference" /> 8302 <!-- Icon drawable to use for the navigation button located at 8303 the start of the toolbar. --> 8304 <attr name="navigationIcon" format="reference" /> 8305 <!-- Text to set as the content description for the navigation button 8306 located at the start of the toolbar. --> 8307 <attr name="navigationContentDescription" format="string" /> 8308 <!-- Drawable to set as the logo that appears at the starting side of 8309 the Toolbar, just after the navigation button. --> 8310 <attr name="logo" /> 8311 <!-- A content description string to describe the appearance of the 8312 associated logo image. --> 8313 <attr name="logoDescription" format="string" /> 8314 <!-- A color to apply to the title string. --> 8315 <attr name="titleTextColor" format="color" /> 8316 <!-- A color to apply to the subtitle string. --> 8317 <attr name="subtitleTextColor" format="color" /> 8318 </declare-styleable> 8319 8320 <declare-styleable name="Toolbar_LayoutParams"> 8321 <attr name="layout_gravity" /> 8322 </declare-styleable> 8323 8324 <declare-styleable name="ActionBar_LayoutParams"> 8325 <attr name="layout_gravity" /> 8326 </declare-styleable> 8327 8328 <!-- Used as a filter array on the theme to pull out only the EdgeEffect-relevant bits. --> 8329 <declare-styleable name="EdgeEffect"> 8330 <attr name="colorEdgeEffect" /> 8331 </declare-styleable> 8332 8333 <!-- Use <code>tv-input</code> as the root tag of the XML resource that describes a 8334 {@link android.media.tv.TvInputService}, which is referenced from its 8335 {@link android.media.tv.TvInputService#SERVICE_META_DATA} meta-data entry. 8336 Described here are the attributes that can be included in that tag. --> 8337 <declare-styleable name="TvInputService"> 8338 <!-- Component name of an activity that allows the user to set up this service. --> 8339 <attr name="setupActivity" format="string" /> 8340 <!-- Component name of an activity that allows the user to modify the settings for this 8341 service. --> 8342 <attr name="settingsActivity" /> 8343 <!-- Attribute whether the TV input service can record programs. This value can be changed 8344 at runtime by calling 8345 {@link android.media.tv.TvInputManager#updateTvInputInfo(android.media.tv.TvInputInfo)}. --> 8346 <attr name="canRecord" format="boolean" /> 8347 <!-- The number of tuners that the TV input service is associated with. This value can be 8348 changed at runtime by calling 8349 {@link android.media.tv.TvInputManager#updateTvInputInfo(android.media.tv.TvInputInfo)}. --> 8350 <attr name="tunerCount" format="integer" /> 8351 </declare-styleable> 8352 8353 <!-- Attributes that can be used with <code>rating-system-definition</code> tags inside of the 8354 XML resource that describes TV content rating of a {@link android.media.tv.TvInputService}, 8355 which is referenced from its 8356 {@link android.media.tv.TvInputManager#META_DATA_CONTENT_RATING_SYSTEMS}. --> 8357 <declare-styleable name="RatingSystemDefinition"> 8358 <!-- The unique name of the content rating system. --> 8359 <attr name="name" /> 8360 <!-- The title of the content rating system which is shown to the user. --> 8361 <attr name="title" /> 8362 <!-- The short description of the content rating system. --> 8363 <attr name="description" /> 8364 <!-- The country code associated with the content rating system, which consists of two 8365 uppercase letters that conform to the ISO 3166 standard. --> 8366 <attr name="country" format="string" /> 8367 </declare-styleable> 8368 8369 <!-- Attributes that can be used with <code>rating-definition</code> tags inside of the XML 8370 resource that describes TV content rating of a {@link android.media.tv.TvInputService}, 8371 which is referenced from its 8372 {@link android.media.tv.TvInputManager#META_DATA_CONTENT_RATING_SYSTEMS}. --> 8373 <declare-styleable name="RatingDefinition"> 8374 <!-- The unique name of the content rating. --> 8375 <attr name="name" /> 8376 <!-- The title of the content rating which is shown to the user. --> 8377 <attr name="title" /> 8378 <!-- The short description of the content rating. --> 8379 <attr name="description" /> 8380 <!-- The age associated with the content rating. The content of this rating is suitable for 8381 people of this age or above. --> 8382 <attr name="contentAgeHint" format="integer" /> 8383 </declare-styleable> 8384 8385 <declare-styleable name="ResolverDrawerLayout"> 8386 <attr name="maxWidth" /> 8387 <attr name="maxCollapsedHeight" format="dimension" /> 8388 <attr name="maxCollapsedHeightSmall" format="dimension" /> 8389 </declare-styleable> 8390 8391 <declare-styleable name="MessagingLinearLayout"> 8392 <attr name="spacing" /> 8393 </declare-styleable> 8394 8395 <declare-styleable name="DateTimeView"> 8396 <attr name="showRelative" format="boolean" /> 8397 </declare-styleable> 8398 8399 <declare-styleable name="ResolverDrawerLayout_LayoutParams"> 8400 <attr name="layout_alwaysShow" format="boolean" /> 8401 <attr name="layout_ignoreOffset" format="boolean" /> 8402 <attr name="layout_gravity" /> 8403 <attr name="layout_hasNestedScrollIndicator" format="boolean" /> 8404 </declare-styleable> 8405 8406 <!-- @hide --> 8407 <declare-styleable name="Lighting"> 8408 <attr name="lightY" /> 8409 <attr name="lightZ" /> 8410 <attr name="lightRadius" /> 8411 <attr name="ambientShadowAlpha" /> 8412 <attr name="spotShadowAlpha" /> 8413 </declare-styleable> 8414 8415 <declare-styleable name="RestrictionEntry"> 8416 <attr name="key" /> 8417 <attr name="restrictionType"> 8418 <enum name="hidden" value="0" /> 8419 <enum name="bool" value="1" /> 8420 <enum name="choice" value="2" /> 8421 <enum name="multi-select" value="4" /> 8422 <enum name="integer" value="5" /> 8423 <enum name="string" value="6" /> 8424 <enum name="bundle" value="7" /> 8425 <enum name="bundle_array" value="8" /> 8426 </attr> 8427 <attr name="title" /> 8428 <attr name="description" /> 8429 <attr name="defaultValue" /> 8430 <attr name="entries" /> 8431 <attr name="entryValues" /> 8432 </declare-styleable> 8433 8434 <!-- Used to describe the gradient for fill or stroke in a path of VectorDrawable. --> 8435 <declare-styleable name="GradientColor"> 8436 <!-- Start color of the gradient. --> 8437 <attr name="startColor" /> 8438 <!-- Optional center color. --> 8439 <attr name="centerColor" /> 8440 <!-- End color of the gradient. --> 8441 <attr name="endColor" /> 8442 <!-- Type of gradient. The default type is linear. --> 8443 <attr name="type" /> 8444 8445 <!-- Only applied to RadialGradient--> 8446 <!-- Radius of the gradient, used only with radial gradient. --> 8447 <attr name="gradientRadius" /> 8448 8449 <!-- Only applied to SweepGradient / RadialGradient--> 8450 <!-- X coordinate of the center of the gradient within the path. --> 8451 <attr name="centerX" /> 8452 <!-- Y coordinate of the center of the gradient within the path. --> 8453 <attr name="centerY" /> 8454 8455 <!-- LinearGradient specific --> 8456 <!-- X coordinate of the start point origin of the gradient. 8457 Defined in same coordinates as the path itself --> 8458 <attr name="startX" format="float" /> 8459 <!-- Y coordinate of the start point of the gradient within the shape. 8460 Defined in same coordinates as the path itself --> 8461 <attr name="startY" format="float" /> 8462 <!-- X coordinate of the end point origin of the gradient. 8463 Defined in same coordinates as the path itself --> 8464 <attr name="endX" format="float" /> 8465 <!-- Y coordinate of the end point of the gradient within the shape. 8466 Defined in same coordinates as the path itself --> 8467 <attr name="endY" format="float" /> 8468 8469 <!-- Defines the tile mode of the gradient. SweepGradient don't support tiling. --> 8470 <attr name="tileMode"/> 8471 </declare-styleable> 8472 8473 <!-- Describes an item of a GradientColor. Minimally need 2 items to define the gradient 8474 Colors defined in <item> override the simple color attributes such as 8475 "startColor / centerColor / endColor" are ignored --> 8476 <declare-styleable name="GradientColorItem"> 8477 <!-- The offset (or ratio) of this current color item inside the gradient. 8478 The value is only meaningful when it is between 0 and 1. --> 8479 <attr name="offset" format="float" /> 8480 <!-- The current color for the offset inside the gradient. --> 8481 <attr name="color" /> 8482 </declare-styleable> 8483 8484 <!-- @hide Attributes which will be read by the Activity to intialize the 8485 base activity TaskDescription. --> 8486 <declare-styleable name="ActivityTaskDescription"> 8487 <!-- @hide From Theme.colorPrimary, used for the TaskDescription primary 8488 color. --> 8489 <attr name="colorPrimary" /> 8490 <!-- @hide From Theme.colorBackground, used for the TaskDescription background 8491 color. --> 8492 <attr name="colorBackground" /> 8493 </declare-styleable> 8494 8495 <declare-styleable name="Shortcut"> 8496 <attr name="shortcutId" format="string" /> 8497 <attr name="enabled" /> 8498 <attr name="icon" /> 8499 <attr name="shortcutShortLabel" format="reference" /> 8500 <attr name="shortcutLongLabel" format="reference" /> 8501 <attr name="shortcutDisabledMessage" format="reference" /> 8502 </declare-styleable> 8503 8504 <declare-styleable name="ShortcutCategories"> 8505 <attr name="name" /> 8506 </declare-styleable> 8507 8508 <!-- Attributes that are read when parsing a <font> tag, which is a child of 8509 <font-family>. --> 8510 <declare-styleable name="FontFamilyFont"> 8511 <attr name="fontStyle"> 8512 <enum name="normal" value="0" /> 8513 <enum name="italic" value="1" /> 8514 </attr> 8515 <attr name="font" format="reference" /> 8516 <attr name="fontWeight" format="integer" /> 8517 </declare-styleable> 8518 8519 <!-- Attributes that are read when parsing a <fontfamily> tag, --> 8520 <declare-styleable name="FontFamily"> 8521 <attr name="fontProviderAuthority" format="string" /> 8522 <attr name="fontProviderQuery" format="string" /> 8523 </declare-styleable> 8524 8525 <!-- @hide --> 8526 <declare-styleable name="RecyclerView"> 8527 <attr name="layoutManager" format="string" /> 8528 <attr name="orientation" /> 8529 <attr name="descendantFocusability" /> 8530 <attr name="spanCount" format="integer"/> 8531 <attr name="reverseLayout" format="boolean" /> 8532 <attr name="stackFromEnd" format="boolean" /> 8533 </declare-styleable> 8534</resources> 8535