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