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