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