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