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