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