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