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