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