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