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