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