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