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