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