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