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