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