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