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