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