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