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