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