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