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