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