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