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