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