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