attrs.xml revision bfb5d4b93bb739a012ecec604473838c1343c88a
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 </attr> 920 921 <!-- ***************************************************************** --> 922 <!-- These define collections of attributes that can are with classes. --> 923 <!-- ***************************************************************** --> 924 925 <!-- ========================== --> 926 <!-- Special attribute classes. --> 927 <!-- ========================== --> 928 <eat-comment /> 929 930 <!-- The set of attributes that describe a Windows's theme. --> 931 <declare-styleable name="Window"> 932 <attr name="windowBackground" /> 933 <attr name="windowContentOverlay" /> 934 <attr name="windowFrame" /> 935 <attr name="windowNoTitle" /> 936 <attr name="windowFullscreen" /> 937 <attr name="windowIsFloating" /> 938 <attr name="windowIsTranslucent" /> 939 <attr name="windowShowWallpaper" /> 940 <attr name="windowAnimationStyle" /> 941 <attr name="windowSoftInputMode" /> 942 <attr name="windowDisablePreview" /> 943 <attr name="windowNoDisplay" /> 944 <attr name="textColor" /> 945 <attr name="backgroundDimEnabled" /> 946 <attr name="backgroundDimAmount" /> 947 </declare-styleable> 948 949 <!-- The set of attributes that describe a AlertDialog's theme. --> 950 <declare-styleable name="AlertDialog"> 951 <attr name="fullDark" format="reference|color" /> 952 <attr name="topDark" format="reference|color" /> 953 <attr name="centerDark" format="reference|color" /> 954 <attr name="bottomDark" format="reference|color" /> 955 <attr name="fullBright" format="reference|color" /> 956 <attr name="topBright" format="reference|color" /> 957 <attr name="centerBright" format="reference|color" /> 958 <attr name="bottomBright" format="reference|color" /> 959 <attr name="bottomMedium" format="reference|color" /> 960 <attr name="centerMedium" format="reference|color" /> 961 </declare-styleable> 962 963 <!-- Window animation class attributes. --> 964 <declare-styleable name="WindowAnimation"> 965 <!-- The animation used when a window is being added. --> 966 <attr name="windowEnterAnimation" format="reference" /> 967 <!-- The animation used when a window is being removed. --> 968 <attr name="windowExitAnimation" format="reference" /> 969 <!-- The animation used when a window is going from INVISIBLE to VISIBLE. --> 970 <attr name="windowShowAnimation" format="reference" /> 971 <!-- The animation used when a window is going from VISIBLE to INVISIBLE. --> 972 <attr name="windowHideAnimation" format="reference" /> 973 974 <!-- When opening a new activity, this is the animation that is 975 run on the next activity (which is entering the screen). --> 976 <attr name="activityOpenEnterAnimation" format="reference" /> 977 <!-- When opening a new activity, this is the animation that is 978 run on the previous activity (which is exiting the screen). --> 979 <attr name="activityOpenExitAnimation" format="reference" /> 980 <!-- When closing the current activity, this is the animation that is 981 run on the next activity (which is entering the screen). --> 982 <attr name="activityCloseEnterAnimation" format="reference" /> 983 <!-- When closing the current activity, this is the animation that is 984 run on the current activity (which is exiting the screen). --> 985 <attr name="activityCloseExitAnimation" format="reference" /> 986 <!-- When opening an activity in a new task, this is the animation that is 987 run on the activity of the new task (which is entering the screen). --> 988 <attr name="taskOpenEnterAnimation" format="reference" /> 989 <!-- When opening an activity in a new task, this is the animation that is 990 run on the activity of the old task (which is exiting the screen). --> 991 <attr name="taskOpenExitAnimation" format="reference" /> 992 <!-- When closing the last activity of a task, this is the animation that is 993 run on the activity of the next task (which is entering the screen). --> 994 <attr name="taskCloseEnterAnimation" format="reference" /> 995 <!-- When opening an activity in a new task, this is the animation that is 996 run on the activity of the old task (which is exiting the screen). --> 997 <attr name="taskCloseExitAnimation" format="reference" /> 998 <!-- When bringing an existing task to the foreground, this is the 999 animation that is run on the top activity of the task being brought 1000 to the foreground (which is entering the screen). --> 1001 <attr name="taskToFrontEnterAnimation" format="reference" /> 1002 <!-- When bringing an existing task to the foreground, this is the 1003 animation that is run on the current foreground activity 1004 (which is exiting the screen). --> 1005 <attr name="taskToFrontExitAnimation" format="reference" /> 1006 <!-- When sending the current task to the background, this is the 1007 animation that is run on the top activity of the task behind 1008 it (which is entering the screen). --> 1009 <attr name="taskToBackEnterAnimation" format="reference" /> 1010 <!-- When sending the current task to the background, this is the 1011 animation that is run on the top activity of the current task 1012 (which is exiting the screen). --> 1013 <attr name="taskToBackExitAnimation" format="reference" /> 1014 1015 <!-- When opening a new activity that shows the wallpaper, while 1016 currently not showing the wallpaper, this is the animation that 1017 is run on the new wallpaper activity (which is entering the screen). --> 1018 <attr name="wallpaperOpenEnterAnimation" format="reference" /> 1019 <!-- When opening a new activity that shows the wallpaper, while 1020 currently not showing the wallpaper, this is the animation that 1021 is run on the current activity (which is exiting the screen). --> 1022 <attr name="wallpaperOpenExitAnimation" format="reference" /> 1023 <!-- When opening a new activity that hides the wallpaper, while 1024 currently showing the wallpaper, this is the animation that 1025 is run on the new activity (which is entering the screen). --> 1026 <attr name="wallpaperCloseEnterAnimation" format="reference" /> 1027 <!-- When opening a new activity that hides the wallpaper, while 1028 currently showing the wallpaper, this is the animation that 1029 is run on the old wallpaper activity (which is exiting the screen). --> 1030 <attr name="wallpaperCloseExitAnimation" format="reference" /> 1031 1032 <!-- When opening a new activity that is on top of the wallpaper 1033 when the current activity is also on top of the wallpaper, 1034 this is the animation that is run on the new activity 1035 (which is entering the screen). The wallpaper remains 1036 static behind the animation. --> 1037 <attr name="wallpaperIntraOpenEnterAnimation" format="reference" /> 1038 <!-- When opening a new activity that is on top of the wallpaper 1039 when the current activity is also on top of the wallpaper, 1040 this is the animation that is run on the current activity 1041 (which is exiting the screen). The wallpaper remains 1042 static behind the animation. --> 1043 <attr name="wallpaperIntraOpenExitAnimation" format="reference" /> 1044 <!-- When closing a foreround activity that is on top of the wallpaper 1045 when the previous activity is also on top of the wallpaper, 1046 this is the animation that is run on the previous activity 1047 (which is entering the screen). The wallpaper remains 1048 static behind the animation. --> 1049 <attr name="wallpaperIntraCloseEnterAnimation" format="reference" /> 1050 <!-- When closing a foreround activity that is on top of the wallpaper 1051 when the previous activity is also on top of the wallpaper, 1052 this is the animation that is run on the current activity 1053 (which is exiting the screen). The wallpaper remains 1054 static behind the animation. --> 1055 <attr name="wallpaperIntraCloseExitAnimation" format="reference" /> 1056 </declare-styleable> 1057 1058 <!-- ============================= --> 1059 <!-- View package class attributes --> 1060 <!-- ============================= --> 1061 <eat-comment /> 1062 1063 <!-- Attributes that can be used with {@link android.view.View} or 1064 any of its subclasses. Also see {@link #ViewGroup_Layout} for 1065 attributes that are processed by the view's parent. --> 1066 <declare-styleable name="View"> 1067 <!-- Supply an identifier name for this view, to later retrieve it 1068 with {@link android.view.View#findViewById View.findViewById()} or 1069 {@link android.app.Activity#findViewById Activity.findViewById()}. 1070 This must be a 1071 resource reference; typically you set this using the 1072 <code>@+</code> syntax to create a new ID resources. 1073 For example: <code>android:id="@+id/my_id"</code> which 1074 allows you to later retrieve the view 1075 with <code>findViewById(R.id.my_id)</code>. --> 1076 <attr name="id" format="reference" /> 1077 1078 <!-- Supply a tag for this view containing a String, to be retrieved 1079 later with {@link android.view.View#getTag View.getTag()} or 1080 searched for with {@link android.view.View#findViewWithTag 1081 View.findViewWithTag()}. It is generally preferable to use 1082 IDs (through the android:id attribute) instead of tags because 1083 they are faster and allow for compile-time type checking. --> 1084 <attr name="tag" format="string" /> 1085 1086 <!-- The initial horizontal scroll offset, in pixels.--> 1087 <attr name="scrollX" format="dimension" /> 1088 1089 <!-- The initial vertical scroll offset, in pixels. --> 1090 <attr name="scrollY" format="dimension" /> 1091 1092 <!-- A drawable to use as the background. This can be either a reference 1093 to a full drawable resource (such as a PNG image, 9-patch, 1094 XML state list description, etc), or a solid color such as "#ff000000" 1095 (black). --> 1096 <attr name="background" format="reference|color" /> 1097 1098 <!-- Sets the padding, in pixels, of all four edges. Padding is defined as 1099 space between the edges of the view and the view's content. A views size 1100 will include it's padding. If a {@link android.R.attr#background} 1101 is provided, the padding will initially be set to that (0 if the 1102 drawable does not have padding). Explicitly setting a padding value 1103 will override the corresponding padding found in the background. --> 1104 <attr name="padding" format="dimension" /> 1105 <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. --> 1106 <attr name="paddingLeft" format="dimension" /> 1107 <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. --> 1108 <attr name="paddingTop" format="dimension" /> 1109 <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. --> 1110 <attr name="paddingRight" format="dimension" /> 1111 <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. --> 1112 <attr name="paddingBottom" format="dimension" /> 1113 1114 <!-- Boolean that controls whether a view can take focus. By default the user can not 1115 move focus to a view; by setting this attribute to true the view is 1116 allowed to take focus. This value does not impact the behavior of 1117 directly calling {@link android.view.View#requestFocus}, which will 1118 always request focus regardless of this view. It only impacts where 1119 focus navigation will try to move focus. --> 1120 <attr name="focusable" format="boolean" /> 1121 1122 <!-- Boolean that controls whether a view can take focus while in touch mode. 1123 If this is true for a view, that view can gain focus when clicked on, and can keep 1124 focus if another view is clicked on that doesn't have this attribute set to true. --> 1125 <attr name="focusableInTouchMode" format="boolean" /> 1126 1127 <!-- Controls the initial visibility of the view. --> 1128 <attr name="visibility"> 1129 <!-- Visible on screen; the default value. --> 1130 <enum name="visible" value="0" /> 1131 <!-- Not displayed, but taken into account during layout (space is left for it). --> 1132 <enum name="invisible" value="1" /> 1133 <!-- Completely hidden, as if the view had not been added. --> 1134 <enum name="gone" value="2" /> 1135 </attr> 1136 1137 <!-- Boolean internal attribute to adjust view layout based on 1138 system windows such as the status bar. 1139 If true, adjusts the padding of this view to leave space for the system windows. 1140 Will only take effect if this view is in a non-embedded activity. --> 1141 <attr name="fitsSystemWindows" format="boolean" /> 1142 1143 <!-- Defines which scrollbars should be displayed on scrolling or not. --> 1144 <attr name="scrollbars"> 1145 <!-- No scrollbar is displayed. --> 1146 <flag name="none" value="0x00000000" /> 1147 <!-- Displays horizontal scrollbar only. --> 1148 <flag name="horizontal" value="0x00000100" /> 1149 <!-- Displays vertical scrollbar only. --> 1150 <flag name="vertical" value="0x00000200" /> 1151 </attr> 1152 1153 <!-- Controls the scrollbar style and position. The scrollbars can be overlaid or 1154 inset. When inset, they add to the padding of the view. And the 1155 scrollbars can be drawn inside the padding area or on the edge of 1156 the view. For example, if a view has a background drawable and you 1157 want to draw the scrollbars inside the padding specified by the 1158 drawable, you can use insideOverlay or insideInset. If you want them 1159 to appear at the edge of the view, ignoring the padding, then you can 1160 use outsideOverlay or outsideInset.--> 1161 <attr name="scrollbarStyle"> 1162 <!-- Inside the padding and overlaid --> 1163 <enum name="insideOverlay" value="0x0" /> 1164 <!-- Inside the padding and inset --> 1165 <enum name="insideInset" value="0x01000000" /> 1166 <!-- Edge of the view and overlaid --> 1167 <enum name="outsideOverlay" value="0x02000000" /> 1168 <!-- Edge of the view and inset --> 1169 <enum name="outsideInset" value="0x03000000" /> 1170 </attr> 1171 1172 <!-- Set this if the view will serve as a scrolling container, meaing 1173 that it can be resized to shrink its overall window so that there 1174 will be space for an input method. If not set, the default 1175 value will be true if "scrollbars" has the vertical scrollbar 1176 set, else it will be false. --> 1177 <attr name="isScrollContainer" format="boolean" /> 1178 1179 <!-- Defines whether to fade out scrollbars when they are not in use. --> 1180 <attr name="fadeScrollbars" format="boolean" /> 1181 <!-- Defines the delay in milliseconds that a scrollbar takes to fade out. --> 1182 <attr name="scrollbarFadeDuration" format="integer" /> 1183 <!-- Defines the delay in milliseconds that a scrollbar waits before fade out. --> 1184 <attr name="scrollbarDefaultDelayBeforeFade" format="integer" /> 1185 <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. --> 1186 <attr name="scrollbarSize" format="dimension" /> 1187 <!-- Defines the horizontal scrollbar thumb drawable. --> 1188 <attr name="scrollbarThumbHorizontal" format="reference" /> 1189 <!-- Defines the vertical scrollbar thumb drawable. --> 1190 <attr name="scrollbarThumbVertical" format="reference" /> 1191 <!-- Defines the horizontal scrollbar track drawable. --> 1192 <attr name="scrollbarTrackHorizontal" format="reference" /> 1193 <!-- Defines the vertical scrollbar track drawable. --> 1194 <attr name="scrollbarTrackVertical" format="reference" /> 1195 <!-- Defines whether the horizontal scrollbar track should always be drawn. --> 1196 <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" /> 1197 <!-- Defines whether the vertical scrollbar track should always be drawn. --> 1198 <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" /> 1199 1200 <!-- Defines which edges should be fadeded on scrolling. --> 1201 <attr name="fadingEdge"> 1202 <!-- No edge is faded. --> 1203 <flag name="none" value="0x00000000" /> 1204 <!-- Fades horizontal edges only. --> 1205 <flag name="horizontal" value="0x00001000" /> 1206 <!-- Fades vertical edges only. --> 1207 <flag name="vertical" value="0x00002000" /> 1208 </attr> 1209 <!-- Defines the length of the fading edges. --> 1210 <attr name="fadingEdgeLength" format="dimension" /> 1211 1212 <!-- Defines the next view to give focus to when the next focus is 1213 {@link android.view.View#FOCUS_LEFT}. 1214 1215 If the reference refers to a view that does not exist or is part 1216 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 1217 will result when the reference is accessed.--> 1218 <attr name="nextFocusLeft" format="reference"/> 1219 1220 <!-- Defines the next view to give focus to when the next focus is 1221 {@link android.view.View#FOCUS_RIGHT} 1222 1223 If the reference refers to a view that does not exist or is part 1224 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 1225 will result when the reference is accessed.--> 1226 <attr name="nextFocusRight" format="reference"/> 1227 1228 <!-- Defines the next view to give focus to when the next focus is 1229 {@link android.view.View#FOCUS_UP} 1230 1231 If the reference refers to a view that does not exist or is part 1232 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 1233 will result when the reference is accessed.--> 1234 <attr name="nextFocusUp" format="reference"/> 1235 1236 <!-- Defines the next view to give focus to when the next focus is 1237 {@link android.view.View#FOCUS_DOWN} 1238 1239 If the reference refers to a view that does not exist or is part 1240 of a hierarchy that is invisible, a {@link java.lang.RuntimeException} 1241 will result when the reference is accessed.--> 1242 <attr name="nextFocusDown" format="reference"/> 1243 1244 <!-- Defines whether this view reacts to click events. --> 1245 <attr name="clickable" format="boolean" /> 1246 1247 <!-- Defines whether this view reacts to long click events. --> 1248 <attr name="longClickable" format="boolean" /> 1249 1250 <!-- If unset, no state will be saved for this view when it is being 1251 frozen. The default is true, allowing the view to be saved 1252 (however it also must have an ID assigned to it for its 1253 state to be saved). Setting this to false only disables the 1254 state for this view, not for its children which may still 1255 be saved. --> 1256 <attr name="saveEnabled" format="boolean" /> 1257 1258 <!-- Defines the quality of translucent drawing caches. This property is used 1259 only when the drawing cache is enabled and translucent. The default value is auto. --> 1260 <attr name="drawingCacheQuality"> 1261 <!-- Lets the framework decide what quality level should be used 1262 for the drawing cache. --> 1263 <enum name="auto" value="0" /> 1264 <!-- Low quality. When set to low quality, the drawing cache uses a lower color 1265 depth, thus losing precision in rendering gradients, but uses less memory. --> 1266 <enum name="low" value="1" /> 1267 <!-- High quality. When set to high quality, the drawing cache uses a higher 1268 color depth but uses more memory. --> 1269 <enum name="high" value="2" /> 1270 </attr> 1271 1272 <!-- Controls whether the view's window should keep the screen on 1273 while visible. --> 1274 <attr name="keepScreenOn" format="boolean" /> 1275 1276 <!-- When this attribute is set to true, the view gets its drawable state 1277 (focused, pressed, etc.) from its direct parent rather than from itself. --> 1278 <attr name="duplicateParentState" format="boolean" /> 1279 1280 <!-- Defines the minimum height of the view. It is not guaranteed 1281 the view will be able to achieve this minimum height (for example, 1282 if its parent layout constrains it with less available height). --> 1283 <attr name="minHeight" /> 1284 1285 <!-- Defines the minimum width of the view. It is not guaranteed 1286 the view will be able to achieve this minimum width (for example, 1287 if its parent layout constrains it with less available width). --> 1288 <attr name="minWidth" /> 1289 1290 <!-- Boolean that controls whether a view should have sound effects 1291 enabled for events such as clicking and touching. --> 1292 <attr name="soundEffectsEnabled" format="boolean" /> 1293 1294 <!-- Boolean that controls whether a view should have haptic feedback 1295 enabled for events such as long presses. --> 1296 <attr name="hapticFeedbackEnabled" format="boolean" /> 1297 1298 <!-- Defines text that briefly describes content of the view. This property is used 1299 primarily for accessibility. Since some views do not have textual 1300 representation this attribute can be used for providing such. --> 1301 <attr name="contentDescription" format="string" localization="suggested" /> 1302 1303 <!-- Name of the method in this View's context to invoke when the view is 1304 clicked. This name must correspond to a public method that takes 1305 exactly one parameter of type View. For instance, if you specify 1306 <code>android:onClick="sayHello"</code>, you must declare a 1307 <code>public void sayHello(View v)</code> method of your context 1308 (typically, your Activity). --> 1309 <attr name="onClick" format="string" /> 1310 1311 <!-- Defines overscrolling behavior. This property is used only if the 1312 View is scrollable. Overscrolling is the ability for the user to 1313 scroll a View beyond its content boundaries into empty space. --> 1314 <attr name="overscrollMode"> 1315 <!-- Always allow the user to overscroll the content. --> 1316 <enum name="always" value="0" /> 1317 <!-- Only allow the user to overscroll content if the content is large 1318 enough to meaningfully scroll. --> 1319 <enum name="ifContentScrolls" value="1" /> 1320 <!-- Never overscroll. --> 1321 <enum name="never" value="2" /> 1322 </attr> 1323 </declare-styleable> 1324 1325 <!-- Attributes that can be used with a {@link android.view.ViewGroup} or any 1326 of its subclasses. Also see {@link #ViewGroup_Layout} for 1327 attributes that this class processes in its children. --> 1328 <declare-styleable name="ViewGroup"> 1329 <!-- Defines whether a child is limited to draw inside of its bounds or not. 1330 This is useful with animations that scale the size of the children to more 1331 than 100% for instance. In such a case, this property should be set to false 1332 to allow the children to draw outside of their bounds. The default value of 1333 this property is true. --> 1334 <attr name="clipChildren" format="boolean" /> 1335 <!-- Defines whether the ViewGroup will clip its drawing surface so as to exclude 1336 the padding area. This property is set to true by default. --> 1337 <attr name="clipToPadding" format="boolean" /> 1338 <!-- Defines the layout animation to use the first time the ViewGroup is laid out. 1339 Layout animations can also be started manually after the first layout. --> 1340 <attr name="layoutAnimation" format="reference" /> 1341 <!-- Defines whether layout animations should create a drawing cache for their 1342 children. Enabling the animation cache consumes more memory and requires 1343 a longer initialization but provides better performance. The animation 1344 cache is enabled by default. --> 1345 <attr name="animationCache" format="boolean" /> 1346 <!-- Defines the persistence of the drawing cache. The drawing cache might be 1347 enabled by a ViewGroup for all its children in specific situations (for 1348 instance during a scrolling.) This property lets you persist the cache 1349 in memory after its initial usage. Persisting the cache consumes more 1350 memory but may prevent frequent garbage collection is the cache is created 1351 over and over again. By default the persistence is set to scrolling. --> 1352 <attr name="persistentDrawingCache"> 1353 <!-- The drawing cache is not persisted after use. --> 1354 <flag name="none" value="0x0" /> 1355 <!-- The drawing cache is persisted after a layout animation. --> 1356 <flag name="animation" value="0x1" /> 1357 <!-- The drawing cache is persisted after a scroll. --> 1358 <flag name="scrolling" value="0x2" /> 1359 <!-- The drawing cache is always persisted. --> 1360 <flag name="all" value="0x3" /> 1361 </attr> 1362 <!-- Defines whether the ViewGroup should always draw its children using their 1363 drawing cache or not. The default value is true. --> 1364 <attr name="alwaysDrawnWithCache" format="boolean" /> 1365 <!-- Sets whether this ViewGroup's drawable states also include 1366 its children's drawable states. This is used, for example, to 1367 make a group appear to be focused when its child EditText or button 1368 is focused. --> 1369 <attr name="addStatesFromChildren" format="boolean" /> 1370 1371 <!-- Defines the relationship between the ViewGroup and its descendants 1372 when looking for a View to take focus. --> 1373 <attr name="descendantFocusability"> 1374 <!-- The ViewGroup will get focus before any of its descendants. --> 1375 <enum name="beforeDescendants" value="0" /> 1376 <!-- The ViewGroup will get focus only if none of its descendants want it. --> 1377 <enum name="afterDescendants" value="1" /> 1378 <!-- The ViewGroup will block its descendants from receiving focus. --> 1379 <enum name="blocksDescendants" value="2" /> 1380 </attr> 1381 1382 </declare-styleable> 1383 1384 <!-- A {@link android.view.ViewStub} lets you lazily include other XML layouts 1385 inside your application at runtime. --> 1386 <declare-styleable name="ViewStub"> 1387 <!-- Supply an identifier for the layout resource to inflate when the ViewStub 1388 becomes visible or when forced to do so. The layout resource must be a 1389 valid reference to a layout. --> 1390 <attr name="layout" format="reference" /> 1391 <!-- Overrides the id of the inflated View with this value. --> 1392 <attr name="inflatedId" format="reference" /> 1393 </declare-styleable> 1394 1395 <!-- ===================================== --> 1396 <!-- View package parent layout attributes --> 1397 <!-- ===================================== --> 1398 <eat-comment /> 1399 1400 <!-- This is the basic set of layout attributes that are common to all 1401 layout managers. These attributes are specified with the rest of 1402 a view's normal attributes (such as {@link android.R.attr#background}, 1403 but will be parsed by the view's parent and ignored by the child. 1404 <p>The values defined here correspond to the base layout attribute 1405 class {@link android.view.ViewGroup.LayoutParams}. --> 1406 <declare-styleable name="ViewGroup_Layout"> 1407 <!-- Specifies the basic width of the view. This is a required attribute 1408 for any view inside of a containing layout manager. Its value may 1409 be a dimension (such as "12dip") for a constant width or one of 1410 the special constants. --> 1411 <attr name="layout_width" format="dimension"> 1412 <!-- <strong>Deprecated.</strong> Use {@code match_parent} instead. --> 1413 <enum name="fill_parent" value="-1" /> 1414 <!-- The view should be as big as its parent (minus padding). --> 1415 <enum name="match_parent" value="-1" /> 1416 <!-- The view should be only big enough to enclose its content (plus padding). --> 1417 <enum name="wrap_content" value="-2" /> 1418 </attr> 1419 1420 <!-- Specifies the basic height of the view. This is a required attribute 1421 for any view inside of a containing layout manager. Its value may 1422 be a dimension (such as "12dip") for a constant height or one of 1423 the special constants. --> 1424 <attr name="layout_height" format="dimension"> 1425 <!-- <strong>Deprecated.</strong> Use {@code match_parent} instead. --> 1426 <enum name="fill_parent" value="-1" /> 1427 <!-- The view should be as big as its parent (minus padding). --> 1428 <enum name="match_parent" value="-1" /> 1429 <!-- The view should be only big enough to enclose its content (plus padding). --> 1430 <enum name="wrap_content" value="-2" /> 1431 </attr> 1432 </declare-styleable> 1433 1434 <!-- This is the basic set of layout attributes for layout managers that 1435 wish to place margins around their child views. 1436 These attributes are specified with the rest of 1437 a view's normal attributes (such as {@link android.R.attr#background}, 1438 but will be parsed by the view's parent and ignored by the child. 1439 <p>The values defined here correspond to the base layout attribute 1440 class {@link android.view.ViewGroup.MarginLayoutParams}. --> 1441 <declare-styleable name="ViewGroup_MarginLayout"> 1442 <attr name="layout_width" /> 1443 <attr name="layout_height" /> 1444 <!-- Specifies extra space on the left, top, right and bottom 1445 sides of this view. This space is outside this view's bounds. --> 1446 <attr name="layout_margin" format="dimension" /> 1447 <!-- Specifies extra space on the left side of this view. 1448 This space is outside this view's bounds. --> 1449 <attr name="layout_marginLeft" format="dimension" /> 1450 <!-- Specifies extra space on the top side of this view. 1451 This space is outside this view's bounds. --> 1452 <attr name="layout_marginTop" format="dimension" /> 1453 <!-- Specifies extra space on the right side of this view. 1454 This space is outside this view's bounds. --> 1455 <attr name="layout_marginRight" format="dimension" /> 1456 <!-- Specifies extra space on the bottom side of this view. 1457 This space is outside this view's bounds. --> 1458 <attr name="layout_marginBottom" format="dimension" /> 1459 </declare-styleable> 1460 1461 <!-- Use <code>input-method</code> as the root tag of the XML resource that 1462 describes an 1463 {@link android.view.inputmethod.InputMethod} service, which is 1464 referenced from its 1465 {@link android.view.inputmethod.InputMethod#SERVICE_META_DATA} 1466 meta-data entry. Described here are the attributes that can be 1467 included in that tag. --> 1468 <declare-styleable name="InputMethod"> 1469 <!-- Component name of an activity that allows the user to modify 1470 the settings for this service. --> 1471 <attr name="settingsActivity" format="string" /> 1472 <!-- Set to true in all of the configurations for which this input 1473 method should be considered an option as the default. --> 1474 <attr name="isDefault" format="boolean" /> 1475 </declare-styleable> 1476 1477 <!-- =============================== --> 1478 <!-- Widget package class attributes --> 1479 <!-- =============================== --> 1480 <eat-comment /> 1481 1482 <declare-styleable name="AbsListView"> 1483 <!-- Drawable used to indicate the currently selected item in the list. --> 1484 <attr name="listSelector" format="color|reference" /> 1485 <!-- When set to true, the selector will be drawn over the selected item. 1486 Otherwise the selector is drawn behind the selected item. The default 1487 value is false. --> 1488 <attr name="drawSelectorOnTop" format="boolean" /> 1489 <!-- Used by ListView and GridView to stack their content from the bottom. --> 1490 <attr name="stackFromBottom" format="boolean" /> 1491 <!-- When set to true, the list uses a drawing cache during scrolling. 1492 This makes the rendering faster but uses more memory. The default 1493 value is true. --> 1494 <attr name="scrollingCache" format="boolean" /> 1495 <!-- When set to true, the list will filter results as the user types. The 1496 List's adapter must support the Filterable interface for this to work. --> 1497 <attr name="textFilterEnabled" format="boolean" /> 1498 <!-- Sets the transcript mode for the list. In transcript mode, the list 1499 scrolls to the bottom to make new items visible when they are added. --> 1500 <attr name="transcriptMode"> 1501 <!-- Disables transcript mode. This is the default value. --> 1502 <enum name="disabled" value="0"/> 1503 <!-- The list will automatically scroll to the bottom when 1504 a data set change notification is received and only if the last item is 1505 already visible on screen. --> 1506 <enum name="normal" value="1" /> 1507 <!-- The list will automatically scroll to the bottom, no matter what items 1508 are currently visible. --> 1509 <enum name="alwaysScroll" value="2" /> 1510 </attr> 1511 <!-- Indicates that this list will always be drawn on top of solid, single-color 1512 opaque background. This allows the list to optimize drawing. --> 1513 <attr name="cacheColorHint" format="color" /> 1514 <!-- Enables the fast scroll thumb that can be dragged to quickly scroll through 1515 the list. --> 1516 <attr name="fastScrollEnabled" format="boolean" /> 1517 <!-- When set to true, the list will use a more refined calculation 1518 method based on the pixels height of the items visible on screen. This 1519 property is set to true by default but should be set to false if your adapter 1520 will display items of varying heights. When this property is set to true and 1521 your adapter displays items of varying heights, the scrollbar thumb will 1522 change size as the user scrolls through the list. When set to fale, the list 1523 will use only the number of items in the adapter and the number of items visible 1524 on screen to determine the scrollbar's properties. --> 1525 <attr name="smoothScrollbar" format="boolean" /> 1526 </declare-styleable> 1527 <declare-styleable name="AbsSpinner"> 1528 <!-- Reference to an array resource that will populate the Spinner. For static content, 1529 this is simpler than populating the Spinner programmatically. --> 1530 <attr name="entries" /> 1531 </declare-styleable> 1532 <declare-styleable name="AnalogClock"> 1533 <attr name="dial" format="reference"/> 1534 <attr name="hand_hour" format="reference"/> 1535 <attr name="hand_minute" format="reference"/> 1536 </declare-styleable> 1537 <declare-styleable name="Button"> 1538 </declare-styleable> 1539 <declare-styleable name="Chronometer"> 1540 <!-- Format string: if specified, the Chronometer will display this 1541 string, with the first "%s" replaced by the current timer value 1542 in "MM:SS" or "H:MM:SS" form. 1543 If no format string is specified, the Chronometer will simply display 1544 "MM:SS" or "H:MM:SS". --> 1545 <attr name="format" format="string" localization="suggested" /> 1546 </declare-styleable> 1547 <declare-styleable name="CompoundButton"> 1548 <!-- Indicates the initial checked state of this button. --> 1549 <attr name="checked" format="boolean" /> 1550 <!-- Drawable used for the button graphic (e.g. checkbox, radio button, etc). --> 1551 <attr name="button" format="reference"/> 1552 </declare-styleable> 1553 <declare-styleable name="CheckedTextView"> 1554 <!-- Indicates the initial checked state of this text. --> 1555 <attr name="checked" /> 1556 <!-- Drawable used for the check mark graphic. --> 1557 <attr name="checkMark" format="reference"/> 1558 </declare-styleable> 1559 <declare-styleable name="EditText"> 1560 </declare-styleable> 1561 <declare-styleable name="FrameLayout"> 1562 <!-- Defines the drawable to draw over the content. This can be used as an overlay. 1563 The foreground drawable participates in the padding of the content if the gravity 1564 is set to fill. --> 1565 <attr name="foreground" format="reference|color" /> 1566 <!-- Defines the gravity to apply to the foreground drawable. The gravity defaults 1567 to fill. --> 1568 <attr name="foregroundGravity"> 1569 <!-- Push object to the top of its container, not changing its size. --> 1570 <flag name="top" value="0x30" /> 1571 <!-- Push object to the bottom of its container, not changing its size. --> 1572 <flag name="bottom" value="0x50" /> 1573 <!-- Push object to the left of its container, not changing its size. --> 1574 <flag name="left" value="0x03" /> 1575 <!-- Push object to the right of its container, not changing its size. --> 1576 <flag name="right" value="0x05" /> 1577 <!-- Place object in the vertical center of its container, not changing its size. --> 1578 <flag name="center_vertical" value="0x10" /> 1579 <!-- Grow the vertical size of the object if needed so it completely fills its container. --> 1580 <flag name="fill_vertical" value="0x70" /> 1581 <!-- Place object in the horizontal center of its container, not changing its size. --> 1582 <flag name="center_horizontal" value="0x01" /> 1583 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 1584 <flag name="fill_horizontal" value="0x07" /> 1585 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> 1586 <flag name="center" value="0x11" /> 1587 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> 1588 <flag name="fill" value="0x77" /> 1589 <!-- Additional option that can be set to have the top and/or bottom edges of 1590 the child clipped to its container's bounds. 1591 The clip will be based on the vertical gravity: a top gravity will clip the bottom 1592 edge, a bottom gravity will clip the top edge, and neither will clip both edges. --> 1593 <flag name="clip_vertical" value="0x80" /> 1594 <!-- Additional option that can be set to have the left and/or right edges of 1595 the child clipped to its container's bounds. 1596 The clip will be based on the horizontal gravity: a left gravity will clip the right 1597 edge, a right gravity will clip the left edge, and neither will clip both edges. --> 1598 <flag name="clip_horizontal" value="0x08" /> 1599 </attr> 1600 <!-- Defines whether the foreground drawable should be drawn inside the padding. 1601 This property is turned on by default. --> 1602 <attr name="foregroundInsidePadding" format="boolean" /> 1603 <!-- Determines whether to measure all children or just those in 1604 the VISIBLE or INVISIBLE state when measuring. Defaults to false. --> 1605 <attr name="measureAllChildren" format="boolean" /> 1606 </declare-styleable> 1607 <declare-styleable name="ExpandableListView"> 1608 <!-- Indicator shown beside the group View. This can be a stateful Drawable. --> 1609 <attr name="groupIndicator" format="reference" /> 1610 <!-- Indicator shown beside the child View. This can be a stateful Drawable. --> 1611 <attr name="childIndicator" format="reference" /> 1612 <!-- The left bound for an item's indicator. To specify a left bound specific to children, 1613 use childIndicatorLeft. --> 1614 <attr name="indicatorLeft" format="dimension" /> 1615 <!-- The right bound for an item's indicator. To specify a right bound specific to children, 1616 use childIndicatorRight. --> 1617 <attr name="indicatorRight" format="dimension" /> 1618 <!-- The left bound for a child's indicator. --> 1619 <attr name="childIndicatorLeft" format="dimension" /> 1620 <!-- The right bound for a child's indicator. --> 1621 <attr name="childIndicatorRight" format="dimension" /> 1622 <!-- Drawable or color that is used as a divider for children. (It will drawn 1623 below and above child items.) The height of this will be the same as 1624 the height of the normal list item divider. --> 1625 <attr name="childDivider" format="reference|color" /> 1626 </declare-styleable> 1627 <declare-styleable name="Gallery"> 1628 <attr name="gravity" /> 1629 <!-- Sets how long a transition animation should run (in milliseconds) 1630 when layout has changed. Only relevant if animation is turned on. --> 1631 <attr name="animationDuration" format="integer" min="0" /> 1632 <attr name="spacing" format="dimension" /> 1633 <!-- Sets the alpha on the items that are not selected. --> 1634 <attr name="unselectedAlpha" format="float" /> 1635 </declare-styleable> 1636 <declare-styleable name="GridView"> 1637 <attr name="horizontalSpacing" format="dimension" /> 1638 <attr name="verticalSpacing" format="dimension" /> 1639 <attr name="stretchMode"> 1640 <enum name="none" value="0"/> 1641 <enum name="spacingWidth" value="1" /> 1642 <enum name="columnWidth" value="2" /> 1643 <enum name="spacingWidthUniform" value="3" /> 1644 </attr> 1645 <attr name="columnWidth" format="dimension" /> 1646 <attr name="numColumns" format="integer" min="0"> 1647 <enum name="auto_fit" value="-1" /> 1648 </attr> 1649 <attr name="gravity" /> 1650 </declare-styleable> 1651 <declare-styleable name="ImageSwitcher"> 1652 </declare-styleable> 1653 <declare-styleable name="ImageView"> 1654 <!-- Sets a drawable as the content of this ImageView. --> 1655 <attr name="src" format="reference|color" /> 1656 <!-- Controls how the image should be resized or moved to match the size 1657 of this ImageView. --> 1658 <attr name="scaleType"> 1659 <enum name="matrix" value="0" /> 1660 <enum name="fitXY" value="1" /> 1661 <enum name="fitStart" value="2" /> 1662 <enum name="fitCenter" value="3" /> 1663 <enum name="fitEnd" value="4" /> 1664 <enum name="center" value="5" /> 1665 <enum name="centerCrop" value="6" /> 1666 <enum name="centerInside" value="7" /> 1667 </attr> 1668 <!-- Set this to true if you want the ImageView to adjust its bounds 1669 to preserve the aspect ratio of its drawable. --> 1670 <attr name="adjustViewBounds" format="boolean" /> 1671 <!-- An optional argument to supply a maximum width for this view. 1672 See {see android.widget.ImageView#setMaxWidth} for details. --> 1673 <attr name="maxWidth" format="dimension" /> 1674 <!-- An optional argument to supply a maximum height for this view. 1675 See {see android.widget.ImageView#setMaxHeight} for details. --> 1676 <attr name="maxHeight" format="dimension" /> 1677 <!-- Set a tinting color for the image. --> 1678 <attr name="tint" format="color" /> 1679 <!-- If true, the image view will be baseline aligned with based on its 1680 bottom edge. --> 1681 <attr name="baselineAlignBottom" format="boolean" /> 1682 <!-- If true, the image will be cropped to fit within its padding. --> 1683 <attr name="cropToPadding" format="boolean" /> 1684 </declare-styleable> 1685 <declare-styleable name="ToggleButton"> 1686 <!-- The text for the button when it is checked. --> 1687 <attr name="textOn" format="string" /> 1688 <!-- The text for the button when it is not checked. --> 1689 <attr name="textOff" format="string" /> 1690 <!-- The alpha to apply to the indicator when disabled. --> 1691 <attr name="disabledAlpha" /> 1692 </declare-styleable> 1693 <declare-styleable name="RelativeLayout"> 1694 <attr name="gravity" /> 1695 <!-- Indicates what view should not be affected by gravity. --> 1696 <attr name="ignoreGravity" format="reference" /> 1697 </declare-styleable> 1698 <declare-styleable name="LinearLayout"> 1699 <!-- Should the layout be a column or a row? Use "horizontal" 1700 for a row, "vertical" for a column. The default is 1701 horizontal. --> 1702 <attr name="orientation" /> 1703 <attr name="gravity" /> 1704 <!-- When set to false, prevents the layout from aligning its children's 1705 baselines. This attribute is particularly useful when the children 1706 use different values for gravity. The default value is true. --> 1707 <attr name="baselineAligned" format="boolean" /> 1708 <!-- When a linear layout is part of another layout that is baseline 1709 aligned, it can specify which of its children to baseline align to 1710 (that is, which child TextView).--> 1711 <attr name="baselineAlignedChildIndex" format="integer" min="0"/> 1712 <!-- Defines the maximum weight sum. If unspecified, the sum is computed 1713 by adding the layout_weight of all of the children. This can be 1714 used for instance to give a single child 50% of the total available 1715 space by giving it a layout_weight of 0.5 and setting the weightSum 1716 to 1.0. --> 1717 <attr name="weightSum" format="float" /> 1718 <!-- When set to true, all children with a weight will be considered having 1719 the minimum size of the largest child. If false, all children are 1720 measured normally. --> 1721 <attr name="useLargestChild" format="boolean" /> 1722 </declare-styleable> 1723 <declare-styleable name="ListView"> 1724 <!-- Reference to an array resource that will populate the ListView. For static content, 1725 this is simpler than populating the ListView programmatically. --> 1726 <attr name="entries" /> 1727 <!-- Drawable or color to draw between list items. --> 1728 <attr name="divider" format="reference|color" /> 1729 <!-- Height of the divider. Will use the intrinsic height of the divider if this 1730 is not specified. --> 1731 <attr name="dividerHeight" format="dimension" /> 1732 <!-- Defines the choice behavior for the ListView. By default, lists do not have 1733 any choice behavior. By setting the choiceMode to singleChoice, the List 1734 allows up to one item to be in a chosen state. By setting the choiceMode to 1735 multipleChoice, the list allows any number of items to be chosen. --> 1736 <attr name="choiceMode"> 1737 <!-- Normal list that does not indicate choices. --> 1738 <enum name="none" value="0" /> 1739 <!-- The list allows up to one choice. --> 1740 <enum name="singleChoice" value="1" /> 1741 <!-- The list allows multiple choices. --> 1742 <enum name="multipleChoice" value="2" /> 1743 </attr> 1744 <!-- When set to false, the ListView will not draw the divider after each header view. 1745 The default value is true. --> 1746 <attr name="headerDividersEnabled" format="boolean" /> 1747 <!-- When set to false, the ListView will not draw the divider before each footer view. 1748 The default value is true. --> 1749 <attr name="footerDividersEnabled" format="boolean" /> 1750 <!-- Drawable to draw above list content. --> 1751 <attr name="overscrollHeader" format="reference" /> 1752 <!-- Drawable to draw below list content. --> 1753 <attr name="overscrollFooter" format="reference" /> 1754 </declare-styleable> 1755 <declare-styleable name="MenuView"> 1756 <!-- Default appearance of menu item text. --> 1757 <attr name="itemTextAppearance" format="reference" /> 1758 <!-- Default horizontal divider between rows of menu items. --> 1759 <attr name="horizontalDivider" format="reference" /> 1760 <!-- Default vertical divider between menu items. --> 1761 <attr name="verticalDivider" format="reference" /> 1762 <!-- Default background for the menu header. --> 1763 <attr name="headerBackground" format="color|reference" /> 1764 <!-- Default background for each menu item. --> 1765 <attr name="itemBackground" format="color|reference" /> 1766 <!-- Default animations for the menu. --> 1767 <attr name="windowAnimationStyle" /> 1768 <!-- Default disabled icon alpha for each menu item that shows an icon. --> 1769 <attr name="itemIconDisabledAlpha" format="float" /> 1770 </declare-styleable> 1771 <declare-styleable name="IconMenuView"> 1772 <!-- Defines the height of each row. --> 1773 <attr name="rowHeight" format="dimension" /> 1774 <!-- Defines the maximum number of rows displayed. --> 1775 <attr name="maxRows" format="integer" /> 1776 <!-- Defines the maximum number of items per row. --> 1777 <attr name="maxItemsPerRow" format="integer" /> 1778 <!-- Defines the maximum number of items to show. --> 1779 <attr name="maxItems" format="integer" /> 1780 <!-- 'More' icon. --> 1781 <attr name="moreIcon" format="reference" /> 1782 </declare-styleable> 1783 1784 <declare-styleable name="ProgressBar"> 1785 <!-- Defines the maximum value the progress can take. --> 1786 <attr name="max" format="integer" /> 1787 <!-- Defines the default progress value, between 0 and max. --> 1788 <attr name="progress" format="integer" /> 1789 <!-- Defines the secondary progress value, between 0 and max. This progress is drawn between 1790 the primary progress and the background. It can be ideal for media scenarios such as 1791 showing the buffering progress while the default progress shows the play progress. --> 1792 <attr name="secondaryProgress" format="integer" /> 1793 <!-- Allows to enable the indeterminate mode. In this mode the progress 1794 bar plays an infinite looping animation. --> 1795 <attr name="indeterminate" format="boolean" /> 1796 <!-- Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). --> 1797 <attr name="indeterminateOnly" format="boolean" /> 1798 <!-- Drawable used for the indeterminate mode. --> 1799 <attr name="indeterminateDrawable" format="reference" /> 1800 <!-- Drawable used for the progress mode. --> 1801 <attr name="progressDrawable" format="reference" /> 1802 <!-- Duration of the indeterminate animation. --> 1803 <attr name="indeterminateDuration" format="integer" min="1" /> 1804 <!-- Defines how the indeterminate mode should behave when the progress 1805 reaches max. --> 1806 <attr name="indeterminateBehavior"> 1807 <!-- Progress starts over from 0. --> 1808 <enum name="repeat" value="1" /> 1809 <!-- Progress keeps the current value and goes back to 0. --> 1810 <enum name="cycle" value="2" /> 1811 </attr> 1812 <attr name="minWidth" format="dimension" /> 1813 <attr name="maxWidth" /> 1814 <attr name="minHeight" format="dimension" /> 1815 <attr name="maxHeight" /> 1816 <attr name="interpolator" format="reference" /> 1817 </declare-styleable> 1818 1819 <declare-styleable name="SeekBar"> 1820 <!-- Draws the thumb on a seekbar. --> 1821 <attr name="thumb" format="reference" /> 1822 <!-- An offset for the thumb that allows it to extend out of the range of the track. --> 1823 <attr name="thumbOffset" format="dimension" /> 1824 </declare-styleable> 1825 1826 <declare-styleable name="RatingBar"> 1827 <!-- The number of stars (or rating items) to show. --> 1828 <attr name="numStars" format="integer" /> 1829 <!-- The rating to set by default. --> 1830 <attr name="rating" format="float" /> 1831 <!-- The step size of the rating. --> 1832 <attr name="stepSize" format="float" /> 1833 <!-- Whether this rating bar is an indicator (and non-changeable by the user). --> 1834 <attr name="isIndicator" format="boolean" /> 1835 </declare-styleable> 1836 1837 <declare-styleable name="RadioGroup"> 1838 <!-- The id of the child radio button that should be checked by default 1839 within this radio group. --> 1840 <attr name="checkedButton" format="integer" /> 1841 <!-- Should the radio group be a column or a row? Use "horizontal" 1842 for a row, "vertical" for a column. The default is 1843 vertical. --> 1844 <attr name="orientation" /> 1845 </declare-styleable> 1846 <declare-styleable name="TableLayout"> 1847 <!-- The zero-based index of the columns to stretch. The column indices 1848 must be separated by a comma: 1, 2, 5. Illegal and duplicate 1849 indices are ignored. You can stretch all columns by using the 1850 value "*" instead. Note that a column can be marked stretchable 1851 and shrinkable at the same time. --> 1852 <attr name="stretchColumns" format="string" /> 1853 <!-- The zero-based index of the columns to shrink. The column indices 1854 must be separated by a comma: 1, 2, 5. Illegal and duplicate 1855 indices are ignored. You can shrink all columns by using the 1856 value "*" instead. Note that a column can be marked stretchable 1857 and shrinkable at the same time. --> 1858 <attr name="shrinkColumns" format="string" /> 1859 <!-- The zero-based index of the columns to collapse. The column indices 1860 must be separated by a comma: 1, 2, 5. Illegal and duplicate 1861 indices are ignored. --> 1862 <attr name="collapseColumns" format="string" /> 1863 </declare-styleable> 1864 <declare-styleable name="TableRow"> 1865 1866 </declare-styleable> 1867 <declare-styleable name="TableRow_Cell"> 1868 <!-- The index of the column in which this child should be. --> 1869 <attr name="layout_column" format="integer" /> 1870 <!-- Defines how many columns this child should span. Must be >= 1.--> 1871 <attr name="layout_span" format="integer" /> 1872 </declare-styleable> 1873 <declare-styleable name="TabWidget"> 1874 <!-- Drawable used to draw the divider between tabs. --> 1875 <attr name="divider" /> 1876 <!-- Determines whether the strip under the tab indicators is drawn or not. --> 1877 <attr name="stripEnabled" format="boolean" /> 1878 <!-- Drawable used to draw the left part of the strip underneath the tabs. --> 1879 <attr name="stripLeft" format="reference" /> 1880 <!-- Drawable used to draw the right part of the strip underneath the tabs. --> 1881 <attr name="stripRight" format="reference" /> 1882 </declare-styleable> 1883 <declare-styleable name="TextAppearance"> 1884 <!-- Text color. --> 1885 <attr name="textColor" /> 1886 <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). --> 1887 <attr name="textSize" /> 1888 <!-- Style (bold, italic, bolditalic) for the text. --> 1889 <attr name="textStyle" /> 1890 <!-- Typeface (normal, sans, serif, monospace) for the text. --> 1891 <attr name="typeface" /> 1892 <!-- Color of the text selection highlight. --> 1893 <attr name="textColorHighlight" /> 1894 <!-- Color of the hint text. --> 1895 <attr name="textColorHint" /> 1896 <!-- Color of the links. --> 1897 <attr name="textColorLink" /> 1898 </declare-styleable> 1899 <declare-styleable name="TextSwitcher"> 1900 </declare-styleable> 1901 <declare-styleable name="TextView"> 1902 <!-- Determines the minimum type that getText() will return. 1903 The default is "normal". 1904 Note that EditText and LogTextBox always return Editable, 1905 even if you specify something less powerful here. --> 1906 <attr name="bufferType"> 1907 <!-- Can return any CharSequence, possibly a 1908 Spanned one if the source text was Spanned. --> 1909 <enum name="normal" value="0" /> 1910 <!-- Can only return Spannable. --> 1911 <enum name="spannable" value="1" /> 1912 <!-- Can only return Spannable and Editable. --> 1913 <enum name="editable" value="2" /> 1914 </attr> 1915 <!-- Text to display. --> 1916 <attr name="text" format="string" localization="suggested" /> 1917 <!-- Hint text to display when the text is empty. --> 1918 <attr name="hint" format="string" /> 1919 <!-- Text color. --> 1920 <attr name="textColor" /> 1921 <!-- Color of the text selection highlight. --> 1922 <attr name="textColorHighlight" /> 1923 <!-- Color of the hint text. --> 1924 <attr name="textColorHint" /> 1925 <!-- Base text color, typeface, size, and style. --> 1926 <attr name="textAppearance" /> 1927 <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). --> 1928 <attr name="textSize" /> 1929 <!-- Sets the horizontal scaling factor for the text. --> 1930 <attr name="textScaleX" format="float" /> 1931 <!-- Typeface (normal, sans, serif, monospace) for the text. --> 1932 <attr name="typeface" /> 1933 <!-- Style (bold, italic, bolditalic) for the text. --> 1934 <attr name="textStyle" /> 1935 <!-- Text color for links. --> 1936 <attr name="textColorLink" /> 1937 <!-- Makes the cursor visible (the default) or invisible. --> 1938 <attr name="cursorVisible" format="boolean" /> 1939 <!-- Makes the TextView be at most this many lines tall. --> 1940 <attr name="maxLines" format="integer" min="0" /> 1941 <!-- Makes the TextView be at most this many pixels tall. --> 1942 <attr name="maxHeight" /> 1943 <!-- Makes the TextView be exactly this many lines tall. --> 1944 <attr name="lines" format="integer" min="0" /> 1945 <!-- Makes the TextView be exactly this many pixels tall. 1946 You could get the same effect by specifying this number in the 1947 layout parameters. --> 1948 <attr name="height" format="dimension" /> 1949 <!-- Makes the TextView be at least this many lines tall. --> 1950 <attr name="minLines" format="integer" min="0" /> 1951 <!-- Makes the TextView be at least this many pixels tall. --> 1952 <attr name="minHeight" /> 1953 <!-- Makes the TextView be at most this many ems wide. --> 1954 <attr name="maxEms" format="integer" min="0" /> 1955 <!-- Makes the TextView be at most this many pixels wide. --> 1956 <attr name="maxWidth" /> 1957 <!-- Makes the TextView be exactly this many ems wide. --> 1958 <attr name="ems" format="integer" min="0" /> 1959 <!-- Makes the TextView be exactly this many pixels wide. 1960 You could get the same effect by specifying this number in the 1961 layout parameters. --> 1962 <attr name="width" format="dimension" /> 1963 <!-- Makes the TextView be at least this many ems wide. --> 1964 <attr name="minEms" format="integer" min="0" /> 1965 <!-- Makes the TextView be at least this many pixels wide. --> 1966 <attr name="minWidth" /> 1967 <!-- Specifies how to align the text by the view's x- and/or y-axis 1968 when the text is smaller than the view. --> 1969 <attr name="gravity" /> 1970 <!-- Whether the text is allowed to be wider than the view (and 1971 therefore can be scrolled horizontally). --> 1972 <attr name="scrollHorizontally" format="boolean" /> 1973 <!-- Whether the characters of the field are displayed as 1974 password dots instead of themselves. 1975 {@deprecated Use inputType instead.} --> 1976 <attr name="password" format="boolean" /> 1977 <!-- Constrains the text to a single horizontally scrolling line 1978 instead of letting it wrap onto multiple lines, and advances 1979 focus instead of inserting a newline when you press the 1980 enter key. Note: for editable text views, it is better 1981 to control this using the textMultiLine flag in the inputType 1982 attribute. (If both singleLine and inputType are supplied, 1983 the inputType flags will override the value of singleLine.) 1984 {@deprecated This attribute is deprecated and is replaced by the textMultiLine flag 1985 in the inputType attribute. Use caution when altering existing layouts, as the 1986 default value of singeLine is false (multi-line mode), but if you specify any 1987 value for inputType, the default is single-line mode. (If both singleLine and 1988 inputType attributes are found, the inputType flags will override the value of 1989 singleLine.) } --> 1990 <attr name="singleLine" format="boolean" /> 1991 <!-- Specifies whether the TextView is enabled or not. {@deprecated Use state_enabled instead}. --> 1992 <attr name="enabled" format="boolean" /> 1993 <!-- If the text is selectable, select it all when the view takes 1994 focus instead of moving the cursor to the start or end. --> 1995 <attr name="selectAllOnFocus" format="boolean" /> 1996 <!-- Leave enough room for ascenders and descenders instead of 1997 using the font ascent and descent strictly. (Normally true). --> 1998 <attr name="includeFontPadding" format="boolean" /> 1999 <!-- Set an input filter to constrain the text length to the 2000 specified number. --> 2001 <attr name="maxLength" format="integer" min="0" /> 2002 <!-- Place a shadow of the specified color behind the text. --> 2003 <attr name="shadowColor" format="color" /> 2004 <!-- Horizontal offset of the shadow. --> 2005 <attr name="shadowDx" format="float" /> 2006 <!-- Vertical offset of the shadow. --> 2007 <attr name="shadowDy" format="float" /> 2008 <!-- Radius of the shadow. --> 2009 <attr name="shadowRadius" format="float" /> 2010 <attr name="autoLink" /> 2011 <!-- If set to false, keeps the movement method from being set 2012 to the link movement method even if autoLink causes links 2013 to be found. --> 2014 <attr name="linksClickable" format="boolean" /> 2015 <!-- If set, specifies that this TextView has a numeric input method. 2016 The default is false. 2017 {@deprecated Use inputType instead.} --> 2018 <attr name="numeric"> 2019 <!-- Input is numeric. --> 2020 <flag name="integer" value="0x01" /> 2021 <!-- Input is numeric, with sign allowed. --> 2022 <flag name="signed" value="0x003" /> 2023 <!-- Input is numeric, with decimals allowed. --> 2024 <flag name="decimal" value="0x05" /> 2025 </attr> 2026 <!-- If set, specifies that this TextView has a numeric input method 2027 and that these specific characters are the ones that it will 2028 accept. 2029 If this is set, numeric is implied to be true. 2030 The default is false. --> 2031 <attr name="digits" format="string" /> 2032 <!-- If set, specifies that this TextView has a phone number input 2033 method. The default is false. 2034 {@deprecated Use inputType instead.} --> 2035 <attr name="phoneNumber" format="boolean" /> 2036 <!-- If set, specifies that this TextView should use the specified 2037 input method (specified by fully-qualified class name). 2038 {@deprecated Use inputType instead.} --> 2039 <attr name="inputMethod" format="string" /> 2040 <!-- If set, specifies that this TextView has a textual input method 2041 and should automatically capitalize what the user types. 2042 The default is "none". 2043 {@deprecated Use inputType instead.} --> 2044 <attr name="capitalize"> 2045 <!-- Don't automatically capitalize anything. --> 2046 <enum name="none" value="0" /> 2047 <!-- Capitalize the first word of each sentence. --> 2048 <enum name="sentences" value="1" /> 2049 <!-- Capitalize the first letter of every word. --> 2050 <enum name="words" value="2" /> 2051 <!-- Capitalize every character. --> 2052 <enum name="characters" value="3" /> 2053 </attr> 2054 <!-- If set, specifies that this TextView has a textual input method 2055 and automatically corrects some common spelling errors. 2056 The default is "false". 2057 {@deprecated Use inputType instead.} --> 2058 <attr name="autoText" format="boolean" /> 2059 <!-- If set, specifies that this TextView has an input method. 2060 It will be a textual one unless it has otherwise been specified. 2061 For TextView, this is false by default. For EditText, it is 2062 true by default. 2063 {@deprecated Use inputType instead.} --> 2064 <attr name="editable" format="boolean" /> 2065 <!-- If set, the text view will include its current complete text 2066 inside of its frozen icicle in addition to meta-data such as 2067 the current cursor position. By default this is disabled; 2068 it can be useful when the contents of a text view is not stored 2069 in a persistent place such as a content provider. --> 2070 <attr name="freezesText" format="boolean" /> 2071 <!-- If set, causes words that are longer than the view is wide 2072 to be ellipsized instead of broken in the middle. 2073 You will often also want to set scrollHorizontally or singleLine 2074 as well so that the text as a whole is also constrained to 2075 a single line instead of still allowed to be broken onto 2076 multiple lines. --> 2077 <attr name="ellipsize" /> 2078 <!-- The drawable to be drawn above the text. --> 2079 <attr name="drawableTop" format="reference|color" /> 2080 <!-- The drawable to be drawn below the text. --> 2081 <attr name="drawableBottom" format="reference|color" /> 2082 <!-- The drawable to be drawn to the left of the text. --> 2083 <attr name="drawableLeft" format="reference|color" /> 2084 <!-- The drawable to be drawn to the right of the text. --> 2085 <attr name="drawableRight" format="reference|color" /> 2086 <!-- The padding between the drawables and the text. --> 2087 <attr name="drawablePadding" format="dimension" /> 2088 <!-- Extra spacing between lines of text. --> 2089 <attr name="lineSpacingExtra" format="dimension" /> 2090 <!-- Extra spacing between lines of text, as a multiplier. --> 2091 <attr name="lineSpacingMultiplier" format="float" /> 2092 <!-- The number of times to repeat the marquee animation. Only applied if the 2093 TextView has marquee enabled. --> 2094 <attr name="marqueeRepeatLimit" format="integer"> 2095 <!-- Indicates that marquee should repeat indefinitely. --> 2096 <enum name="marquee_forever" value="-1" /> 2097 </attr> 2098 <attr name="inputType" /> 2099 <attr name="imeOptions" /> 2100 <!-- An addition content type description to supply to the input 2101 method attached to the text view, which is private to the 2102 implementation of the input method. This simply fills in 2103 the {@link android.view.inputmethod.EditorInfo#privateImeOptions 2104 EditorInfo.privateImeOptions} field when the input 2105 method is connected. --> 2106 <attr name="privateImeOptions" format="string" /> 2107 <!-- Supply a value for 2108 {@link android.view.inputmethod.EditorInfo#actionLabel EditorInfo.actionLabel} 2109 used when an input method is connected to the text view. --> 2110 <attr name="imeActionLabel" format="string" /> 2111 <!-- Supply a value for 2112 {@link android.view.inputmethod.EditorInfo#actionId EditorInfo.actionId} 2113 used when an input method is connected to the text view. --> 2114 <attr name="imeActionId" format="integer" /> 2115 <!-- Reference to an 2116 {@link android.R.styleable#InputExtras <input-extras>} 2117 XML resource containing additional data to 2118 supply to an input method, which is private to the implementation 2119 of the input method. This simply fills in 2120 the {@link android.view.inputmethod.EditorInfo#extras 2121 EditorInfo.extras} field when the input 2122 method is connected. --> 2123 <attr name="editorExtras" format="reference" /> 2124 </declare-styleable> 2125 <!-- An <code>input-extras</code> is a container for extra data to supply to 2126 an input method. Contains 2127 one more more {@link #Extra <extra>} tags. --> 2128 <declare-styleable name="InputExtras"> 2129 </declare-styleable> 2130 <declare-styleable name="AutoCompleteTextView"> 2131 <!-- Defines the hint displayed in the drop down menu. --> 2132 <attr name="completionHint" format="string" /> 2133 <!-- Defines the hint view displayed in the drop down menu. --> 2134 <attr name="completionHintView" format="reference" /> 2135 <!-- Defines the number of characters that the user must type before 2136 completion suggestions are displayed in a drop down menu. --> 2137 <attr name="completionThreshold" format="integer" min="1" /> 2138 <!-- Selector in a drop down list. --> 2139 <attr name="dropDownSelector" format="reference|color" /> 2140 <!-- Amount of pixels by which the drop down should be offset vertically. --> 2141 <attr name="dropDownVerticalOffset" format="dimension" /> 2142 <!-- Amount of pixels by which the drop down should be offset horizontally. --> 2143 <attr name="dropDownHorizontalOffset" format="dimension" /> 2144 <!-- View to anchor the auto-complete dropdown to. If not specified, the text view itself 2145 is used. --> 2146 <attr name="dropDownAnchor" format="reference" /> 2147 <!-- Specifies the basic width of the dropdown. Its value may 2148 be a dimension (such as "12dip") for a constant width, match_parent 2149 to match the width of the screen, or wrap_content to match the width 2150 of the anchored view. --> 2151 <attr name="dropDownWidth" format="dimension"> 2152 <!-- <strong>Deprecated.</strong> Use {@code match_parent} instead. --> 2153 <enum name="fill_parent" value="-1" /> 2154 <!-- The dropdown should fit the width of the screen. --> 2155 <enum name="match_parent" value="-1" /> 2156 <!-- The dropdown should fit the width of its anchor. --> 2157 <enum name="wrap_content" value="-2" /> 2158 </attr> 2159 <!-- Specifies the basic width of the dropdown. Its value may 2160 be a dimension (such as "12dip") for a constant width, match_parent 2161 to fill the width of the screen, or wrap_content to match the height of 2162 the content of the drop down. --> 2163 <attr name="dropDownHeight" format="dimension"> 2164 <!-- <strong>Deprecated.</strong> Use {@code match_parent} instead. --> 2165 <enum name="fill_parent" value="-1" /> 2166 <!-- The dropdown should fill the width of the screen. --> 2167 <enum name="match_parent" value="-1" /> 2168 <!-- The dropdown should fit the width of its anchor. --> 2169 <enum name="wrap_content" value="-2" /> 2170 </attr> 2171 <attr name="inputType" /> 2172 </declare-styleable> 2173 <declare-styleable name="PopupWindow"> 2174 <attr name="popupBackground" format="reference|color" /> 2175 </declare-styleable> 2176 <declare-styleable name="ViewAnimator"> 2177 <attr name="inAnimation" format="reference" /> 2178 <attr name="outAnimation" format="reference" /> 2179 </declare-styleable> 2180 <declare-styleable name="ViewFlipper"> 2181 <attr name="flipInterval" format="integer" min="0" /> 2182 <!-- When true, automatically start animating --> 2183 <attr name="autoStart" format="boolean" /> 2184 </declare-styleable> 2185 <declare-styleable name="ViewSwitcher"> 2186 </declare-styleable> 2187 <declare-styleable name="ScrollView"> 2188 <!-- Defines whether the scrollview should stretch its content to fill the viewport. --> 2189 <attr name="fillViewport" format="boolean" /> 2190 </declare-styleable> 2191 <declare-styleable name="HorizontalScrollView"> 2192 <!-- Defines whether the scrollview should stretch its content to fill the viewport. --> 2193 <attr name="fillViewport" /> 2194 </declare-styleable> 2195 <declare-styleable name="Spinner"> 2196 <!-- The prompt to display when the spinner's dialog is shown. --> 2197 <attr name="prompt" format="reference" /> 2198 </declare-styleable> 2199 <declare-styleable name="DatePicker"> 2200 <!-- The first year (inclusive), for example "1940". --> 2201 <attr name="startYear" format="integer" /> 2202 <!-- The last year (inclusive), for example "2010". --> 2203 <attr name="endYear" format="integer" /> 2204 </declare-styleable> 2205 2206 <declare-styleable name="TwoLineListItem"> 2207 <attr name="mode"> 2208 <!-- Always show only the first line. --> 2209 <enum name="oneLine" value="1" /> 2210 <!-- When selected show both lines, otherwise show only the first line. 2211 This is the default mode. --> 2212 <enum name="collapsing" value="2" /> 2213 <!-- Always show both lines. --> 2214 <enum name="twoLine" value="3" /> 2215 </attr> 2216 </declare-styleable> 2217 2218 <!-- SlidingDrawer specific attributes. These attributes are used to configure 2219 a SlidingDrawer from XML. --> 2220 <declare-styleable name="SlidingDrawer"> 2221 <!-- Identifier for the child that represents the drawer's handle. --> 2222 <attr name="handle" format="reference" /> 2223 <!-- Identifier for the child that represents the drawer's content. --> 2224 <attr name="content" format="reference" /> 2225 <!-- Orientation of the SlidingDrawer. --> 2226 <attr name="orientation" /> 2227 <!-- Extra offset for the handle at the bottom of the SlidingDrawer. --> 2228 <attr name="bottomOffset" format="dimension" /> 2229 <!-- Extra offset for the handle at the top of the SlidingDrawer. --> 2230 <attr name="topOffset" format="dimension" /> 2231 <!-- Indicates whether the drawer can be opened/closed by a single tap 2232 on the handle. (If false, the user must drag or fling, or click 2233 using the trackball, to open/close the drawer.) Default is true. --> 2234 <attr name="allowSingleTap" format="boolean" /> 2235 <!-- Indicates whether the drawer should be opened/closed with an animation 2236 when the user clicks the handle. Default is true. --> 2237 <attr name="animateOnClick" format="boolean" /> 2238 </declare-styleable> 2239 2240 <!-- GestureOverlayView specific attributes. These attributes are used to configure 2241 a GestureOverlayView from XML. --> 2242 <declare-styleable name="GestureOverlayView"> 2243 <!-- Width of the stroke used to draw the gesture. --> 2244 <attr name="gestureStrokeWidth" format="float" /> 2245 <!-- Color used to draw a gesture. --> 2246 <attr name="gestureColor" format="color" /> 2247 <!-- Color used to draw the user's strokes until we are sure it's a gesture. --> 2248 <attr name="uncertainGestureColor" format="color" /> 2249 <!-- Time, in milliseconds, to wait before the gesture fades out after the user 2250 is done drawing it. --> 2251 <attr name="fadeOffset" format="integer" /> 2252 <!-- Duration, in milliseconds, of the fade out effect after the user is done 2253 drawing a gesture. --> 2254 <attr name="fadeDuration" format="integer" /> 2255 <!-- Defines the type of strokes that define a gesture. --> 2256 <attr name="gestureStrokeType"> 2257 <!-- A gesture is made of only one stroke. --> 2258 <enum name="single" value="0" /> 2259 <!-- A gesture is made of multiple strokes. --> 2260 <enum name="multiple" value="1" /> 2261 </attr> 2262 <!-- Minimum length of a stroke before it is recognized as a gesture. --> 2263 <attr name="gestureStrokeLengthThreshold" format="float" /> 2264 <!-- Squareness threshold of a stroke before it is recognized as a gesture. --> 2265 <attr name="gestureStrokeSquarenessThreshold" format="float" /> 2266 <!-- Minimum curve angle a stroke must contain before it is recognized as a gesture. --> 2267 <attr name="gestureStrokeAngleThreshold" format="float" /> 2268 <!-- Defines whether the overlay should intercept the motion events when a gesture 2269 is recognized. --> 2270 <attr name="eventsInterceptionEnabled" format="boolean" /> 2271 <!-- Defines whether the gesture will automatically fade out after being recognized. --> 2272 <attr name="fadeEnabled" format="boolean" /> 2273 <!-- Indicates whether horizontal (when the orientation is vertical) or vertical 2274 (when orientation is horizontal) strokes automatically define a gesture. --> 2275 <attr name="orientation" /> 2276 </declare-styleable> 2277 2278 <declare-styleable name="QuickContactBadge"> 2279 <attr name="quickContactWindowSize"> 2280 <enum name="modeSmall" value="1" /> 2281 <enum name="modeMedium" value="2" /> 2282 <enum name="modeLarge" value="3" /> 2283 </attr> 2284 </declare-styleable> 2285 2286 <!-- ======================================= --> 2287 <!-- Widget package parent layout attributes --> 2288 <!-- ======================================= --> 2289 <eat-comment /> 2290 2291 <declare-styleable name="AbsoluteLayout_Layout"> 2292 <attr name="layout_x" format="dimension" /> 2293 <attr name="layout_y" format="dimension" /> 2294 </declare-styleable> 2295 <declare-styleable name="LinearLayout_Layout"> 2296 <attr name="layout_width" /> 2297 <attr name="layout_height" /> 2298 <attr name="layout_weight" format="float" /> 2299 <attr name="layout_gravity" /> 2300 </declare-styleable> 2301 <declare-styleable name="FrameLayout_Layout"> 2302 <attr name="layout_gravity" /> 2303 </declare-styleable> 2304 <declare-styleable name="RelativeLayout_Layout"> 2305 <!-- Positions the right edge of this view to the left of the given anchor view ID. 2306 Accommodates right margin of this view and left margin of anchor view. --> 2307 <attr name="layout_toLeftOf" format="reference" /> 2308 <!-- Positions the left edge of this view to the right of the given anchor view ID. 2309 Accommodates left margin of this view and right margin of anchor view. --> 2310 <attr name="layout_toRightOf" format="reference" /> 2311 <!-- Positions the bottom edge of this view above the given anchor view ID. 2312 Accommodates bottom margin of this view and top margin of anchor view. --> 2313 <attr name="layout_above" format="reference" /> 2314 <!-- Positions the top edge of this view below the given anchor view ID. 2315 Accommodates top margin of this view and bottom margin of anchor view. --> 2316 <attr name="layout_below" format="reference" /> 2317 <!-- Positions the baseline of this view on the baseline of the given anchor view ID. --> 2318 <attr name="layout_alignBaseline" format="reference" /> 2319 <!-- Makes the left edge of this view match the left edge of the given anchor view ID. 2320 Accommodates left margin. --> 2321 <attr name="layout_alignLeft" format="reference" /> 2322 <!-- Makes the top edge of this view match the top edge of the given anchor view ID. 2323 Accommodates top margin. --> 2324 <attr name="layout_alignTop" format="reference" /> 2325 <!-- Makes the right edge of this view match the right edge of the given anchor view ID. 2326 Accommodates right margin. --> 2327 <attr name="layout_alignRight" format="reference" /> 2328 <!-- Makes the bottom edge of this view match the bottom edge of the given anchor view ID. 2329 Accommodates bottom margin. --> 2330 <attr name="layout_alignBottom" format="reference" /> 2331 <!-- If true, makes the left edge of this view match the left edge of the parent. 2332 Accommodates left margin. --> 2333 <attr name="layout_alignParentLeft" format="boolean" /> 2334 <!-- If true, makes the top edge of this view match the top edge of the parent. 2335 Accommodates top margin. --> 2336 <attr name="layout_alignParentTop" format="boolean" /> 2337 <!-- If true, makes the right edge of this view match the right edge of the parent. 2338 Accommodates right margin. --> 2339 <attr name="layout_alignParentRight" format="boolean" /> 2340 <!-- If true, makes the bottom edge of this view match the bottom edge of the parent. 2341 Accommodates bottom margin. --> 2342 <attr name="layout_alignParentBottom" format="boolean" /> 2343 <!-- If true, centers this child horizontally and vertically within its parent. --> 2344 <attr name="layout_centerInParent" format="boolean" /> 2345 <!-- If true, centers this child horizontally within its parent. --> 2346 <attr name="layout_centerHorizontal" format="boolean" /> 2347 <!-- If true, centers this child vertically within its parent. --> 2348 <attr name="layout_centerVertical" format="boolean" /> 2349 <!-- If set to true, the parent will be used as the anchor when the anchor cannot be 2350 be found for layout_toLeftOf, layout_toRightOf, etc. --> 2351 <attr name="layout_alignWithParentIfMissing" format="boolean" /> 2352 </declare-styleable> 2353 <declare-styleable name="VerticalSlider_Layout"> 2354 <attr name="layout_scale" format="float" /> 2355 </declare-styleable> 2356 2357 <!-- attributes for internal rotary widget used in lock screen and phone app 2358 @hide --> 2359 <declare-styleable name="RotarySelector"> 2360 <!-- Use "horizontal" or "vertical". The default is horizontal. --> 2361 <attr name="orientation" /> 2362 </declare-styleable> 2363 2364 <!-- @hide --> 2365 <declare-styleable name="WeightedLinearLayout"> 2366 <attr name="majorWeight" format="float" /> 2367 <attr name="minorWeight" format="float" /> 2368 </declare-styleable> 2369 2370 <!-- ========================= --> 2371 <!-- Drawable class attributes --> 2372 <!-- ========================= --> 2373 <eat-comment /> 2374 2375 <!-- Base attributes that are available to all Drawable objects. --> 2376 <declare-styleable name="Drawable"> 2377 <!-- Provides initial visibility state of the drawable; the default 2378 value is false. See 2379 {@link android.graphics.drawable.Drawable#setVisible}. --> 2380 <attr name="visible" format="boolean" /> 2381 </declare-styleable> 2382 2383 <declare-styleable name="StateListDrawable"> 2384 <attr name="visible" /> 2385 <!-- If true, allows the drawable's padding to change based on the 2386 current state that is selected. If false, the padding will 2387 stay the same (based on the maximum padding of all the states). 2388 Enabling this feature requires that the owner of the drawable 2389 deal with performing layout when the state changes, which is 2390 often not supported. --> 2391 <attr name="variablePadding" format="boolean" /> 2392 <!-- If true, the drawable's reported internal size will remain 2393 constant as the state changes; the size is the maximum of all 2394 of the states. If false, the size will vary based on the 2395 current state. --> 2396 <attr name="constantSize" format="boolean" /> 2397 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 2398 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 2399 an RGB 565 screen). --> 2400 <attr name="dither" format="boolean" /> 2401 </declare-styleable> 2402 2403 <declare-styleable name="AnimationDrawable"> 2404 <attr name="visible" /> 2405 <attr name="variablePadding" /> 2406 <!-- If true, the animation will only run a single time and then 2407 stop. If false (the default), it will continually run, 2408 restarting at the first frame after the last has finished. --> 2409 <attr name="oneshot" format="boolean" /> 2410 </declare-styleable> 2411 2412 <declare-styleable name="AnimationDrawableItem"> 2413 <!-- Amount of time (in milliseconds) to display this frame. --> 2414 <attr name="duration" format="integer" /> 2415 <!-- Reference to a drawable resource to use for the frame. If not 2416 given, the drawable must be defined by the first child tag. --> 2417 <attr name="drawable" format="reference" /> 2418 </declare-styleable> 2419 2420 <declare-styleable name="GradientDrawable"> 2421 <attr name="visible" /> 2422 <attr name="shape"> 2423 <enum name="rectangle" value="0" /> 2424 <enum name="oval" value="1" /> 2425 <enum name="line" value="2" /> 2426 <enum name="ring" value="3" /> 2427 </attr> 2428 <!-- Inner radius of the ring expressed as a ratio of the ring's width. For instance, 2429 if innerRadiusRatio=9, then the inner radius equals the ring's width divided by 9. 2430 This value is ignored if innerRadius is defined. Default value is 9. --> 2431 <attr name="innerRadiusRatio" format="float" /> 2432 <!-- Thickness of the ring expressed as a ratio of the ring's width. For instance, 2433 if thicknessRatio=3, then the thickness equals the ring's width divided by 3. 2434 This value is ignored if innerRadius is defined. Default value is 3. --> 2435 <attr name="thicknessRatio" format="float" /> 2436 <!-- Inner radius of the ring. When defined, innerRadiusRatio is ignored. --> 2437 <attr name="innerRadius" format="dimension" /> 2438 <!-- Thickness of the ring. When defined, thicknessRatio is ignored. --> 2439 <attr name="thickness" format="dimension" /> 2440 <attr name="useLevel" /> 2441 </declare-styleable> 2442 2443 <declare-styleable name="GradientDrawableSize"> 2444 <attr name="width" /> 2445 <attr name="height" /> 2446 </declare-styleable> 2447 2448 <declare-styleable name="GradientDrawableGradient"> 2449 <attr name="startColor" format="color" /> 2450 <!-- Optional center color. For linear gradients, use centerX or centerY to place the center color. --> 2451 <attr name="centerColor" format="color" /> 2452 <attr name="endColor" format="color" /> 2453 <attr name="useLevel" format="boolean" /> 2454 <attr name="angle" format="float" /> 2455 <attr name="type"> 2456 <enum name="linear" value="0" /> 2457 <enum name="radial" value="1" /> 2458 <enum name="sweep" value="2" /> 2459 </attr> 2460 <attr name="centerX" format="float|fraction" /> 2461 <attr name="centerY" format="float|fraction" /> 2462 <attr name="gradientRadius" format="float|fraction" /> 2463 </declare-styleable> 2464 2465 <declare-styleable name="GradientDrawableSolid"> 2466 <attr name="color" format="color" /> 2467 </declare-styleable> 2468 2469 <declare-styleable name="GradientDrawableStroke"> 2470 <attr name="width" /> 2471 <attr name="color" /> 2472 <attr name="dashWidth" format="dimension" /> 2473 <attr name="dashGap" format="dimension" /> 2474 </declare-styleable> 2475 2476 <declare-styleable name="DrawableCorners"> 2477 <attr name="radius" format="dimension" /> 2478 <attr name="topLeftRadius" format="dimension" /> 2479 <attr name="topRightRadius" format="dimension" /> 2480 <attr name="bottomLeftRadius" format="dimension" /> 2481 <attr name="bottomRightRadius" format="dimension" /> 2482 </declare-styleable> 2483 2484 <declare-styleable name="GradientDrawablePadding"> 2485 <attr name="left" format="dimension" /> 2486 <attr name="top" format="dimension" /> 2487 <attr name="right" format="dimension" /> 2488 <attr name="bottom" format="dimension" /> 2489 </declare-styleable> 2490 2491 <declare-styleable name="LayerDrawableItem"> 2492 <attr name="left" /> 2493 <attr name="top" /> 2494 <attr name="right" /> 2495 <attr name="bottom" /> 2496 <attr name="drawable" /> 2497 <attr name="id" /> 2498 </declare-styleable> 2499 2500 <declare-styleable name="LevelListDrawableItem"> 2501 <!-- The minimum level allowed for this item. --> 2502 <attr name="minLevel" format="integer" /> 2503 <!-- The maximum level allowed for this item. --> 2504 <attr name="maxLevel" format="integer" /> 2505 <attr name="drawable" /> 2506 </declare-styleable> 2507 2508 <declare-styleable name="RotateDrawable"> 2509 <attr name="visible" /> 2510 <attr name="fromDegrees" format="float" /> 2511 <attr name="toDegrees" format="float" /> 2512 <attr name="pivotX" format="float|fraction" /> 2513 <attr name="pivotY" format="float|fraction" /> 2514 <attr name="drawable" /> 2515 </declare-styleable> 2516 2517 <declare-styleable name="AnimatedRotateDrawable"> 2518 <attr name="visible" /> 2519 <attr name="frameDuration" format="integer" /> 2520 <attr name="framesCount" format="integer" /> 2521 <attr name="pivotX" /> 2522 <attr name="pivotY" /> 2523 <attr name="drawable" /> 2524 </declare-styleable> 2525 2526 <declare-styleable name="InsetDrawable"> 2527 <attr name="visible" /> 2528 <attr name="drawable" /> 2529 <attr name="insetLeft" format="dimension" /> 2530 <attr name="insetRight" format="dimension" /> 2531 <attr name="insetTop" format="dimension" /> 2532 <attr name="insetBottom" format="dimension" /> 2533 </declare-styleable> 2534 2535 <!-- Drawable used to draw bitmaps. --> 2536 <declare-styleable name="BitmapDrawable"> 2537 <!-- Identifier of the bitmap file. This attribute is mandatory. --> 2538 <attr name="src" /> 2539 <!-- Enables or disables antialiasing. --> 2540 <attr name="antialias" format="boolean" /> 2541 <!-- Enables or disables bitmap filtering. Filtering is used when the bitmap is 2542 shrunk or stretched to smooth its apperance. --> 2543 <attr name="filter" format="boolean" /> 2544 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 2545 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 2546 an RGB 565 screen). --> 2547 <attr name="dither" /> 2548 <!-- Defines the gravity for the bitmap. The gravity indicates where to position 2549 the drawable in its container if the bitmap is smaller than the container. --> 2550 <attr name="gravity" /> 2551 <!-- Defines the tile mode. When the tile mode is enabled, the bitmap is repeated. 2552 Gravity is ignored when the tile mode is enabled. --> 2553 <attr name="tileMode"> 2554 <!-- Do not tile the bitmap. This is the default value. --> 2555 <enum name="disabled" value="-1" /> 2556 <!-- Replicates the edge color. --> 2557 <enum name="clamp" value="0" /> 2558 <!-- Repeats the bitmap in both direction. --> 2559 <enum name="repeat" value="1" /> 2560 <!-- Repeats the shader's image horizontally and vertically, alternating 2561 mirror images so that adjacent images always seam. --> 2562 <enum name="mirror" value="2" /> 2563 </attr> 2564 </declare-styleable> 2565 2566 <!-- Drawable used to draw 9-patches. --> 2567 <declare-styleable name="NinePatchDrawable"> 2568 <!-- Identifier of the bitmap file. This attribute is mandatory. --> 2569 <attr name="src" /> 2570 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 2571 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 2572 an RGB 565 screen). --> 2573 <attr name="dither" /> 2574 </declare-styleable> 2575 2576 <!-- Drawable used to draw a single color. --> 2577 <declare-styleable name="ColorDrawable"> 2578 <!-- The color to use. --> 2579 <attr name="color" /> 2580 </declare-styleable> 2581 2582 <declare-styleable name="ScaleDrawable"> 2583 <!-- Scale width, expressed as a percentage of the drawable's bound. The value's 2584 format is XX%. For instance: 100%, 12.5%, etc.--> 2585 <attr name="scaleWidth" format="string" /> 2586 <!-- Scale height, expressed as a percentage of the drawable's bound. The value's 2587 format is XX%. For instance: 100%, 12.5%, etc.--> 2588 <attr name="scaleHeight" format="string" /> 2589 <!-- Specifies where the drawable is positioned after scaling. The default value is 2590 left. --> 2591 <attr name="scaleGravity"> 2592 <!-- Push object to the top of its container, not changing its size. --> 2593 <flag name="top" value="0x30" /> 2594 <!-- Push object to the bottom of its container, not changing its size. --> 2595 <flag name="bottom" value="0x50" /> 2596 <!-- Push object to the left of its container, not changing its size. --> 2597 <flag name="left" value="0x03" /> 2598 <!-- Push object to the right of its container, not changing its size. --> 2599 <flag name="right" value="0x05" /> 2600 <!-- Place object in the vertical center of its container, not changing its size. --> 2601 <flag name="center_vertical" value="0x10" /> 2602 <!-- Grow the vertical size of the object if needed so it completely fills its container. --> 2603 <flag name="fill_vertical" value="0x70" /> 2604 <!-- Place object in the horizontal center of its container, not changing its size. --> 2605 <flag name="center_horizontal" value="0x01" /> 2606 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 2607 <flag name="fill_horizontal" value="0x07" /> 2608 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> 2609 <flag name="center" value="0x11" /> 2610 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> 2611 <flag name="fill" value="0x77" /> 2612 <!-- Additional option that can be set to have the top and/or bottom edges of 2613 the child clipped to its container's bounds. 2614 The clip will be based on the vertical gravity: a top gravity will clip the bottom 2615 edge, a bottom gravity will clip the top edge, and neither will clip both edges. --> 2616 <flag name="clip_vertical" value="0x80" /> 2617 <!-- Additional option that can be set to have the left and/or right edges of 2618 the child clipped to its container's bounds. 2619 The clip will be based on the horizontal gravity: a left gravity will clip the right 2620 edge, a right gravity will clip the left edge, and neither will clip both edges. --> 2621 <flag name="clip_horizontal" value="0x08" /> 2622 </attr> 2623 <!-- Reference to a drawable resource to draw with the specified scale. --> 2624 <attr name="drawable" /> 2625 </declare-styleable> 2626 2627 <declare-styleable name="ClipDrawable"> 2628 <!-- The orientation for the clip. --> 2629 <attr name="clipOrientation"> 2630 <!-- Clip the drawable horizontally. --> 2631 <flag name="horizontal" value="1" /> 2632 <!-- Clip the drawable vertically. --> 2633 <flag name="vertical" value="2" /> 2634 </attr> 2635 <!-- Specifies where to clip within the drawable. The default value is 2636 left. --> 2637 <attr name="gravity" /> 2638 <!-- Reference to a drawable resource to draw with the specified scale. --> 2639 <attr name="drawable" /> 2640 </declare-styleable> 2641 2642 <!-- Defines the padding of a ShapeDrawable. --> 2643 <declare-styleable name="ShapeDrawablePadding"> 2644 <!-- Left padding. --> 2645 <attr name="left" /> 2646 <!-- Top padding. --> 2647 <attr name="top" /> 2648 <!-- Right padding. --> 2649 <attr name="right" /> 2650 <!-- Bottom padding. --> 2651 <attr name="bottom" /> 2652 </declare-styleable> 2653 2654 <!-- Drawable used to draw shapes. --> 2655 <declare-styleable name="ShapeDrawable"> 2656 <!-- Defines the color of the shape. --> 2657 <attr name="color" /> 2658 <!-- Defines the width of the shape. --> 2659 <attr name="width" /> 2660 <!-- Defines the height of the shape. --> 2661 <attr name="height" /> 2662 </declare-styleable> 2663 2664 <!-- ========================== --> 2665 <!-- Animation class attributes --> 2666 <!-- ========================== --> 2667 <eat-comment /> 2668 2669 <declare-styleable name="AnimationSet"> 2670 <attr name="shareInterpolator" format="boolean" /> 2671 </declare-styleable> 2672 2673 <declare-styleable name="Animation"> 2674 <!-- Defines the interpolator used to smooth the animation movement in time. --> 2675 <attr name="interpolator" /> 2676 <!-- When set to true, fillAfter is taken into account. --> 2677 <attr name="fillEnabled" format="boolean" /> 2678 <!-- When set to true, the animation transformation is applied before the animation has 2679 started. The default value is true. If fillEnabled is not set to true, fillBefore 2680 is assumed to be true. --> 2681 <attr name="fillBefore" format="boolean" /> 2682 <!-- When set to true, the animation transformation is applied after the animation is 2683 over. The default value is false. If fillEnabled is not set to true and the animation 2684 is not set on a View, fillAfter is assumed to be true. --> 2685 <attr name="fillAfter" format="boolean" /> 2686 <!-- Amount of time (in milliseconds) for the animation to run. --> 2687 <attr name="duration" /> 2688 <!-- Delay in milliseconds before the animation runs, once start time is reached. --> 2689 <attr name="startOffset" format="integer" /> 2690 <!-- Defines how many times the animation should repeat. The default value is 0. --> 2691 <attr name="repeatCount" format="integer"> 2692 <enum name="infinite" value="-1" /> 2693 </attr> 2694 <!-- Defines the animation behavior when it reaches the end and the repeat count is 2695 greater than 0 or infinite. The default value is restart. --> 2696 <attr name="repeatMode"> 2697 <!-- The animation starts again from the beginning. --> 2698 <enum name="restart" value="1" /> 2699 <!-- The animation plays backward. --> 2700 <enum name="reverse" value="2" /> 2701 </attr> 2702 <!-- Allows for an adjustment of the Z ordering of the content being 2703 animated for the duration of the animation. The default value is normal. --> 2704 <attr name="zAdjustment"> 2705 <!-- The content being animated be kept in its current Z order. --> 2706 <enum name="normal" value="0" /> 2707 <!-- The content being animated is forced on top of all other 2708 content for the duration of the animation. --> 2709 <enum name="top" value="1" /> 2710 <!-- The content being animated is forced under all other 2711 content for the duration of the animation. --> 2712 <enum name="bottom" value="-1" /> 2713 </attr> 2714 <!-- Special option for window animations: if this window is on top 2715 of a wallpaper, don't animate the wallpaper with it. --> 2716 <attr name="detachWallpaper" format="boolean" /> 2717 </declare-styleable> 2718 2719 <declare-styleable name="RotateAnimation"> 2720 <attr name="fromDegrees" /> 2721 <attr name="toDegrees" /> 2722 <attr name="pivotX" /> 2723 <attr name="pivotY" /> 2724 </declare-styleable> 2725 2726 <declare-styleable name="ScaleAnimation"> 2727 <attr name="fromXScale" format="float" /> 2728 <attr name="toXScale" format="float" /> 2729 <attr name="fromYScale" format="float" /> 2730 <attr name="toYScale" format="float" /> 2731 <attr name="pivotX" /> 2732 <attr name="pivotY" /> 2733 </declare-styleable> 2734 2735 <declare-styleable name="TranslateAnimation"> 2736 <attr name="fromXDelta" format="float|fraction" /> 2737 <attr name="toXDelta" format="float|fraction" /> 2738 <attr name="fromYDelta" format="float|fraction" /> 2739 <attr name="toYDelta" format="float|fraction" /> 2740 </declare-styleable> 2741 2742 <declare-styleable name="AlphaAnimation"> 2743 <attr name="fromAlpha" format="float" /> 2744 <attr name="toAlpha" format="float" /> 2745 </declare-styleable> 2746 2747 <declare-styleable name="LayoutAnimation"> 2748 <!-- Fraction of the animation duration used to delay the beginning of 2749 the animation of each child. --> 2750 <attr name="delay" format="float|fraction" /> 2751 <!-- Animation to use on each child. --> 2752 <attr name="animation" format="reference" /> 2753 <!-- The order in which the animations will be started. --> 2754 <attr name="animationOrder"> 2755 <!-- Animations are started in the natural order. --> 2756 <enum name="normal" value="0" /> 2757 <!-- Animations are started in the reverse order. --> 2758 <enum name="reverse" value="1" /> 2759 <!-- Animations are started randomly. --> 2760 <enum name="random" value="2" /> 2761 </attr> 2762 <!-- Interpolator used to interpolate the delay between the start of 2763 each animation. --> 2764 <attr name="interpolator" /> 2765 </declare-styleable> 2766 2767 <declare-styleable name="GridLayoutAnimation"> 2768 <!-- Fraction of the animation duration used to delay the beginning of 2769 the animation of each column. --> 2770 <attr name="columnDelay" format="float|fraction" /> 2771 <!-- Fraction of the animation duration used to delay the beginning of 2772 the animation of each row. --> 2773 <attr name="rowDelay" format="float|fraction" /> 2774 <!-- Direction of the animation in the grid. --> 2775 <attr name="direction"> 2776 <!-- Animates columns from left to right. --> 2777 <flag name="left_to_right" value="0x0" /> 2778 <!-- Animates columns from right to left. --> 2779 <flag name="right_to_left" value="0x1" /> 2780 <!-- Animates rows from top to bottom. --> 2781 <flag name="top_to_bottom" value="0x0" /> 2782 <!-- Animates rows from bottom to top. --> 2783 <flag name="bottom_to_top" value="0x2" /> 2784 </attr> 2785 <!-- Priority of the rows and columns. When the priority is none, 2786 both rows and columns have the same priority. When the priority is 2787 column, the animations will be applied on the columns first. The same 2788 goes for rows. --> 2789 <attr name="directionPriority"> 2790 <!-- Rows and columns are animated at the same time. --> 2791 <enum name="none" value="0" /> 2792 <!-- Columns are animated first. --> 2793 <enum name="column" value="1" /> 2794 <!-- Rows are animated first. --> 2795 <enum name="row" value="2" /> 2796 </attr> 2797 </declare-styleable> 2798 2799 <declare-styleable name="AccelerateInterpolator"> 2800 <!-- This is the amount of deceleration to add when easing in. --> 2801 <attr name="factor" format="float" /> 2802 </declare-styleable> 2803 2804 <declare-styleable name="DecelerateInterpolator"> 2805 <!-- This is the amount of acceleration to add when easing out. --> 2806 <attr name="factor" /> 2807 </declare-styleable> 2808 2809 <declare-styleable name="CycleInterpolator"> 2810 <attr name="cycles" format="float" /> 2811 </declare-styleable> 2812 2813 <declare-styleable name="AnticipateInterpolator"> 2814 <!-- This is the amount of tension. --> 2815 <attr name="tension" format="float" /> 2816 </declare-styleable> 2817 2818 <declare-styleable name="OvershootInterpolator"> 2819 <!-- This is the amount of tension. --> 2820 <attr name="tension" /> 2821 </declare-styleable> 2822 2823 <declare-styleable name="AnticipateOvershootInterpolator"> 2824 <!-- This is the amount of tension. --> 2825 <attr name="tension" /> 2826 <!-- This is the amount by which to multiply the tension. --> 2827 <attr name="extraTension" format="float" /> 2828 </declare-styleable> 2829 2830 <!-- ========================== --> 2831 <!-- State attributes --> 2832 <!-- ========================== --> 2833 <eat-comment /> 2834 2835 <!-- Drawable states. 2836 The mapping of Drawable states to a particular drawables is specified 2837 in the "state" elements of a Widget's "selector" element. 2838 Possible values: 2839 <ul> 2840 <li>"state_focused" 2841 <li>"state_window_focused" 2842 <li>"state_enabled" 2843 <li>"state_checked" 2844 <li>"state_selected" 2845 <li>"state_active" 2846 <li>"state_single" 2847 <li>"state_first" 2848 <li>"state_mid" 2849 <li>"state_last" 2850 <li>"state_only" 2851 <li>"state_pressed" 2852 <li>"state_error" 2853 <li>"state_circle" 2854 <li>"state_rect" 2855 <li>"state_grow" 2856 <li>"state_move" 2857 </ul> --> 2858 <declare-styleable name="DrawableStates"> 2859 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2860 <attr name="state_focused" format="boolean" /> 2861 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2862 <attr name="state_window_focused" format="boolean" /> 2863 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2864 <attr name="state_enabled" format="boolean" /> 2865 <!-- State identifier indicating that the object <var>may</var> display a check mark. 2866 See {@link R.attr#state_checked} for the identifier that indicates whether it is 2867 actually checked. --> 2868 <attr name="state_checkable" format="boolean"/> 2869 <!-- State identifier indicating that the object is currently checked. See 2870 {@link R.attr#state_checkable} for an additional identifier that can indicate if 2871 any object may ever display a check, regardless of whether state_checked is 2872 currently set. --> 2873 <attr name="state_checked" format="boolean"/> 2874 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2875 <attr name="state_selected" format="boolean" /> 2876 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2877 <attr name="state_active" format="boolean" /> 2878 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2879 <attr name="state_single" format="boolean" /> 2880 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2881 <attr name="state_first" format="boolean" /> 2882 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2883 <attr name="state_middle" format="boolean" /> 2884 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2885 <attr name="state_last" format="boolean" /> 2886 <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> 2887 <attr name="state_pressed" format="boolean" /> 2888 </declare-styleable> 2889 <declare-styleable name="ViewDrawableStates"> 2890 <attr name="state_pressed" /> 2891 <attr name="state_focused" /> 2892 <attr name="state_selected" /> 2893 <attr name="state_window_focused" /> 2894 <attr name="state_enabled" /> 2895 </declare-styleable> 2896 <!-- State array representing a menu item that is currently checked. --> 2897 <declare-styleable name="MenuItemCheckedState"> 2898 <attr name="state_checkable" /> 2899 <attr name="state_checked" /> 2900 </declare-styleable> 2901 <!-- State array representing a menu item that is checkable but is not currently checked. --> 2902 <declare-styleable name="MenuItemUncheckedState"> 2903 <attr name="state_checkable" /> 2904 </declare-styleable> 2905 <!-- State array representing a menu item that is currently focused and checked. --> 2906 <declare-styleable name="MenuItemCheckedFocusedState"> 2907 <attr name="state_checkable" /> 2908 <attr name="state_checked" /> 2909 <attr name="state_focused" /> 2910 </declare-styleable> 2911 <!-- State array representing a menu item that is focused and checkable but is not currently checked. --> 2912 <declare-styleable name="MenuItemUncheckedFocusedState"> 2913 <attr name="state_checkable" /> 2914 <attr name="state_focused" /> 2915 </declare-styleable> 2916 <!-- State array representing an expandable list child's indicator. --> 2917 <declare-styleable name="ExpandableListChildIndicatorState"> 2918 <!-- State identifier indicating the child is the last child within its group. --> 2919 <attr name="state_last" /> 2920 </declare-styleable> 2921 <!-- State array representing an expandable list group's indicator. --> 2922 <declare-styleable name="ExpandableListGroupIndicatorState"> 2923 <!-- State identifier indicating the group is expanded. --> 2924 <attr name="state_expanded" format="boolean" /> 2925 <!-- State identifier indicating the group is empty (has no children). --> 2926 <attr name="state_empty" format="boolean" /> 2927 </declare-styleable> 2928 <declare-styleable name="PopupWindowBackgroundState"> 2929 <!-- State identifier indicating the popup will be above the anchor. --> 2930 <attr name="state_above_anchor" format="boolean" /> 2931 </declare-styleable> 2932 2933 <!-- ***************************************************************** --> 2934 <!-- Support for Searchable activities. --> 2935 <!-- ***************************************************************** --> 2936 <eat-comment /> 2937 2938 <!-- Searchable activities and applications must provide search configuration information 2939 in an XML file, typically called searchable.xml. This file is referenced in your manifest. 2940 For a more in-depth discussion of search configuration, please refer to 2941 {@link android.app.SearchManager}. --> 2942 <declare-styleable name="Searchable"> 2943 <!--<strong>This is deprecated.</strong><br/>The default 2944 application icon is now always used, so this attribute is 2945 obsolete.--> 2946 <attr name="icon" /> 2947 <!-- This is the user-displayed name of the searchable activity. <i>Required 2948 attribute.</i> --> 2949 <attr name="label" /> 2950 <!-- If supplied, this string will be displayed as a hint to the user. <i>Optional 2951 attribute.</i> --> 2952 <attr name="hint" /> 2953 <!-- If supplied, this string will be displayed as the text of the "Search" button. 2954 <i>Optional attribute.</i> 2955 {@deprecated This will create a non-standard UI appearance, because the search bar UI is 2956 changing to use only icons for its buttons.}--> 2957 <attr name="searchButtonText" format="string" /> 2958 <attr name="inputType" /> 2959 <attr name="imeOptions" /> 2960 2961 <!-- Additional features are controlled by mode bits in this field. Omitting 2962 this field, or setting to zero, provides default behavior. <i>Optional attribute.</i> 2963 --> 2964 <attr name="searchMode"> 2965 <!-- If set, this flag enables the display of the search target (label) within the 2966 search bar. If neither bad mode is selected, no badge will be shown. --> 2967 <flag name="showSearchLabelAsBadge" value="0x04" /> 2968 <!--<strong>This is deprecated.</strong><br/>The default 2969 application icon is now always used, so this option is 2970 obsolete.--> 2971 <flag name="showSearchIconAsBadge" value="0x08" /> 2972 <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to 2973 be considered as the text for suggestion query rewriting. This should only 2974 be used when the values in SUGGEST_COLUMN_INTENT_DATA are suitable for user 2975 inspection and editing - typically, HTTP/HTTPS Uri's. --> 2976 <flag name="queryRewriteFromData" value="0x10" /> 2977 <!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_TEXT_1 to 2978 be considered as the text for suggestion query rewriting. This should be used 2979 for suggestions in which no query text is provided and the SUGGEST_COLUMN_INTENT_DATA 2980 values are not suitable for user inspection and editing. --> 2981 <flag name="queryRewriteFromText" value="0x20" /> 2982 </attr> 2983 2984 <!-- Voice search features are controlled by mode bits in this field. Omitting 2985 this field, or setting to zero, provides default behavior. 2986 If showVoiceSearchButton is set, then launchWebSearch or launchRecognizer must 2987 also be set. <i>Optional attribute.</i> 2988 --> 2989 <attr name="voiceSearchMode"> 2990 <!-- If set, display a voice search button. This only takes effect if voice search is 2991 available on the device. --> 2992 <flag name="showVoiceSearchButton" value="0x01" /> 2993 <!-- If set, the voice search button will take the user directly to a built-in 2994 voice web search activity. Most applications will not use this flag, as it 2995 will take the user away from the activity in which search was invoked. --> 2996 <flag name="launchWebSearch" value="0x02" /> 2997 <!-- If set, the voice search button will take the user directly to a built-in 2998 voice recording activity. This activity will prompt the user to speak, 2999 transcribe the spoken text, and forward the resulting query 3000 text to the searchable activity, just as if the user had typed it into 3001 the search UI and clicked the search button. --> 3002 <flag name="launchRecognizer" value="0x04" /> 3003 </attr> 3004 3005 <!-- If provided, this specifies the language model that should be used by the 3006 voice recognition system. See 3007 {@link android.speech.RecognizerIntent#EXTRA_LANGUAGE_MODEL } for more information. 3008 If not provided, the default value 3009 {@link android.speech.RecognizerIntent#LANGUAGE_MODEL_FREE_FORM } will be used. --> 3010 <attr name="voiceLanguageModel" format="string" /> 3011 <!-- If provided, this specifies a prompt that will be displayed during voice input. --> 3012 <attr name="voicePromptText" format="string" /> 3013 <!-- If provided, this specifies the spoken language to be expected, and that it will be 3014 different than the one set in the {@link java.util.Locale#getDefault()}. --> 3015 <attr name="voiceLanguage" format="string" /> 3016 <!-- If provided, enforces the maximum number of results to return, including the "best" 3017 result which will always be provided as the SEARCH intent's primary query. Must be one 3018 or greater. If not provided, the recognizer will choose how many results to return. 3019 --> 3020 <attr name="voiceMaxResults" format="integer" /> 3021 3022 <!-- If provided, this is the trigger indicating that the searchable activity 3023 provides suggestions as well. The value must be a fully-qualified content provider 3024 authority (e.g. "com.example.android.apis.SuggestionProvider") and should match the 3025 "android:authorities" tag in your content provider's manifest entry. <i>Optional 3026 attribute.</i> --> 3027 <attr name="searchSuggestAuthority" format="string" /> 3028 <!-- If provided, this will be inserted in the suggestions query Uri, after the authority 3029 you have provide but before the standard suggestions path. <i>Optional attribute.</i> 3030 --> 3031 <attr name="searchSuggestPath" format="string" /> 3032 <!-- If provided, suggestion queries will be passed into your query function 3033 as the <i>selection</i> parameter. Typically this will be a WHERE clause for your 3034 database, and will contain a single question mark, which represents the actual query 3035 string that has been typed by the user. If not provided, then the user query text 3036 will be appended to the query Uri (after an additional "/".) <i>Optional 3037 attribute.</i> --> 3038 <attr name="searchSuggestSelection" format="string" /> 3039 3040 <!-- If provided, and not overridden by an action in the selected suggestion, this 3041 string will be placed in the action field of the {@link android.content.Intent Intent} 3042 when the user clicks a suggestion. <i>Optional attribute.</i> --> 3043 <attr name="searchSuggestIntentAction" format="string" /> 3044 <!-- If provided, and not overridden by an action in the selected suggestion, this 3045 string will be placed in the data field of the {@link android.content.Intent Intent} 3046 when the user clicks a suggestion. <i>Optional attribute.</i> --> 3047 <attr name="searchSuggestIntentData" format="string" /> 3048 3049 <!-- If provided, this is the minimum number of characters needed to trigger 3050 search suggestions. The default value is 0. <i>Optional attribute.</i> --> 3051 <attr name="searchSuggestThreshold" format="integer" /> 3052 3053 <!-- If provided and <code>true</code>, this searchable activity will be 3054 included in any global lists of search targets. 3055 The default value is <code>false</code>. <i>Optional attribute.</i>. --> 3056 <attr name="includeInGlobalSearch" format="boolean" /> 3057 3058 <!-- If provided and <code>true</code>, this searchable activity will be invoked for all 3059 queries in a particular session. If set to <code>false</code> and the activity 3060 returned zero results for a query, it will not be invoked again in that session for 3061 supersets of that zero-results query. For example, if the activity returned zero 3062 results for "bo", it would not be queried again for "bob". 3063 The default value is <code>false</code>. <i>Optional attribute.</i>. --> 3064 <attr name="queryAfterZeroResults" format="boolean" /> 3065 <!-- If provided, this string will be used to describe the searchable item in the 3066 searchable items settings within system search settings. <i>Optional 3067 attribute.</i> --> 3068 <attr name="searchSettingsDescription" format="string" /> 3069 3070 <!-- If provided and <code>true</code>, URLs entered in the search dialog while searching 3071 within this activity would be detected and treated as URLs (show a 'go' button in the 3072 keyboard and invoke the browser directly when user launches the URL instead of passing 3073 the URL to the activity). If set to <code>false</code> any URLs entered are treated as 3074 normal query text. 3075 The default value is <code>false</code>. <i>Optional attribute.</i>. --> 3076 <attr name="autoUrlDetect" format="boolean" /> 3077 3078 </declare-styleable> 3079 3080 <!-- In order to process special action keys during search, you must define them using 3081 one or more "ActionKey" elements in your Searchable metadata. For a more in-depth 3082 discussion of action code handling, please refer to {@link android.app.SearchManager}. 3083 --> 3084 <declare-styleable name="SearchableActionKey"> 3085 <!-- This attribute denotes the action key you wish to respond to. Note that not 3086 all action keys are actually supported using this mechanism, as many of them are 3087 used for typing, navigation, or system functions. This will be added to the 3088 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your 3089 searchable activity. To examine the key code, use 3090 {@link android.content.Intent#getIntExtra getIntExtra(SearchManager.ACTION_KEY)}. 3091 <p>Note, in addition to the keycode, you must also provide one or more of the action 3092 specifier attributes. <i>Required attribute.</i> --> 3093 <attr name="keycode" /> 3094 3095 <!-- If you wish to handle an action key during normal search query entry, you 3096 must define an action string here. This will be added to the 3097 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your 3098 searchable activity. To examine the string, use 3099 {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}. 3100 <i>Optional attribute.</i> --> 3101 <attr name="queryActionMsg" format="string" /> 3102 3103 <!-- If you wish to handle an action key while a suggestion is being displayed <i>and 3104 selected</i>, there are two ways to handle this. If <i>all</i> of your suggestions 3105 can handle the action key, you can simply define the action message using this 3106 attribute. This will be added to the 3107 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your 3108 searchable activity. To examine the string, use 3109 {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}. 3110 <i>Optional attribute.</i> --> 3111 <attr name="suggestActionMsg" format="string" /> 3112 3113 <!-- If you wish to handle an action key while a suggestion is being displayed <i>and 3114 selected</i>, but you do not wish to enable this action key for every suggestion, 3115 then you can use this attribute to control it on a suggestion-by-suggestion basis. 3116 First, you must define a column (and name it here) where your suggestions will include 3117 the action string. Then, in your content provider, you must provide this column, and 3118 when desired, provide data in this column. 3119 The search manager will look at your suggestion cursor, using the string 3120 provided here in order to select a column, and will use that to select a string from 3121 the cursor. That string will be added to the 3122 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to 3123 your searchable activity. To examine the string, use 3124 {@link android.content.Intent#getStringExtra 3125 getStringExtra(SearchManager.ACTION_MSG)}. <i>If the data does not exist for the 3126 selection suggestion, the action key will be ignored.</i><i>Optional attribute.</i> --> 3127 <attr name="suggestActionMsgColumn" format="string" /> 3128 3129 </declare-styleable> 3130 3131 <!-- ***************************************************************** --> 3132 <!-- Support for MapView. --> 3133 <!-- ***************************************************************** --> 3134 <eat-comment /> 3135 3136 <!-- The set of attributes for a MapView. --> 3137 <declare-styleable name="MapView"> 3138 <!-- Value is a string that specifies the Maps API Key to use. --> 3139 <attr name="apiKey" format="string" /> 3140 </declare-styleable> 3141 3142 <!-- **************************************************************** --> 3143 <!-- Menu XML inflation. --> 3144 <!-- **************************************************************** --> 3145 <eat-comment /> 3146 3147 <!-- Base attributes that are available to all Menu objects. --> 3148 <declare-styleable name="Menu"> 3149 </declare-styleable> 3150 3151 <!-- Base attributes that are available to all groups. --> 3152 <declare-styleable name="MenuGroup"> 3153 3154 <!-- The ID of the group. --> 3155 <attr name="id" /> 3156 3157 <!-- The category applied to all items within this group. 3158 (This will be or'ed with the orderInCategory attribute.) --> 3159 <attr name="menuCategory"> 3160 <!-- Items are part of a container. --> 3161 <enum name="container" value="0x00010000" /> 3162 <!-- Items are provided by the system. --> 3163 <enum name="system" value="0x00020000" /> 3164 <!-- Items are user-supplied secondary (infrequently used). --> 3165 <enum name="secondary" value="0x00030000" /> 3166 <!-- Items are alternative actions. --> 3167 <enum name="alternative" value="0x00040000" /> 3168 </attr> 3169 3170 <!-- The order within the category applied to all items within this group. 3171 (This will be or'ed with the category attribute.) --> 3172 <attr name="orderInCategory" format="integer" /> 3173 3174 <!-- Whether the items are capable of displaying a check mark. --> 3175 <attr name="checkableBehavior"> 3176 <!-- The items are not checkable. --> 3177 <enum name="none" value="0" /> 3178 <!-- The items are all checkable. --> 3179 <enum name="all" value="1" /> 3180 <!-- The items are checkable and there will only be a single checked item in 3181 this group. --> 3182 <enum name="single" value="2" /> 3183 </attr> 3184 3185 <!-- Whether the items are shown/visible. --> 3186 <attr name="visible" /> 3187 3188 <!-- Whether the items are enabled. --> 3189 <attr name="enabled" /> 3190 3191 </declare-styleable> 3192 3193 <!-- Base attributes that are available to all Item objects. --> 3194 <declare-styleable name="MenuItem"> 3195 3196 <!-- The ID of the item. --> 3197 <attr name="id" /> 3198 3199 <!-- The category applied to the item. 3200 (This will be or'ed with the orderInCategory attribute.) --> 3201 <attr name="menuCategory" /> 3202 3203 <!-- The order within the category applied to the item. 3204 (This will be or'ed with the category attribute.) --> 3205 <attr name="orderInCategory" /> 3206 3207 <!-- The title associated with the item. --> 3208 <attr name="title" format="string" /> 3209 3210 <!-- The condensed title associated with the item. This is used in situations where the 3211 normal title may be too long to be displayed. --> 3212 <attr name="titleCondensed" format="string" /> 3213 3214 <!-- The icon associated with this item. This icon will not always be shown, so 3215 the title should be sufficient in describing this item. --> 3216 <attr name="icon" /> 3217 3218 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard 3219 with alphabetic keys. --> 3220 <attr name="alphabeticShortcut" format="string" /> 3221 3222 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) 3223 keyboard. --> 3224 <attr name="numericShortcut" format="string" /> 3225 3226 <!-- Whether the item is capable of displaying a check mark. --> 3227 <attr name="checkable" format="boolean" /> 3228 3229 <!-- Whether the item is checked. Note that you must first have enabled checking with 3230 the checkable attribute or else the check mark will not appear. --> 3231 <attr name="checked" /> 3232 3233 <!-- Whether the item is shown/visible. --> 3234 <attr name="visible" /> 3235 3236 <!-- Whether the item is enabled. --> 3237 <attr name="enabled" /> 3238 3239 </declare-styleable> 3240 3241 <!-- **************************************************************** --> 3242 <!-- Preferences framework. --> 3243 <!-- **************************************************************** --> 3244 <eat-comment /> 3245 3246 <!-- Base attributes available to PreferenceGroup. --> 3247 <declare-styleable name="PreferenceGroup"> 3248 <!-- Whether to order the Preference under this group as they appear in the XML file. 3249 If this is false, the ordering will follow the Preference order attribute and 3250 default to alphabetic for those without the order attribute. --> 3251 <attr name="orderingFromXml" format="boolean" /> 3252 </declare-styleable> 3253 3254 <!-- WARNING: If adding attributes to Preference, make sure it does not conflict 3255 with a View's attributes. Some subclasses (e.g., EditTextPreference) 3256 proxy all attributes to its EditText widget. --> 3257 <eat-comment /> 3258 3259 <!-- Base attributes available to Preference. --> 3260 <declare-styleable name="Preference"> 3261 <!-- The key to store the Preference value. --> 3262 <attr name="key" format="string" /> 3263 <!-- The title for the Preference in a PreferenceActivity screen. --> 3264 <attr name="title" /> 3265 <!-- The summary for the Preference in a PreferenceActivity screen. --> 3266 <attr name="summary" format="string" /> 3267 <!-- The order for the Preference (lower values are to be ordered first). If this is not 3268 specified, the default orderin will be alphabetic. --> 3269 <attr name="order" format="integer" /> 3270 <!-- The layout for the Preference in a PreferenceActivity screen. This should 3271 rarely need to be changed, look at widgetLayout instead. --> 3272 <attr name="layout" /> 3273 <!-- The layout for the controllable widget portion of a Preference. This is inflated 3274 into the layout for a Preference and should be used more frequently than 3275 the layout attribute. For example, a checkbox preference would specify 3276 a custom layout (consisting of just the CheckBox) here. --> 3277 <attr name="widgetLayout" format="reference" /> 3278 <!-- Whether the Preference is enabled. --> 3279 <attr name="enabled" /> 3280 <!-- Whether the Preference is selectable. --> 3281 <attr name="selectable" format="boolean" /> 3282 <!-- The key of another Preference that this Preference will depend on. If the other 3283 Preference is not set or is off, this Preference will be disabled. --> 3284 <attr name="dependency" format="string" /> 3285 <!-- Whether the Preference stores its value to the shared preferences. --> 3286 <attr name="persistent" /> 3287 <!-- The default value for the preference, which will be set either if persistence 3288 is off or persistence is on and the preference is not found in the persistent 3289 storage. --> 3290 <attr name="defaultValue" format="string|boolean|integer|reference|float" /> 3291 <!-- Whether the view of this Preference should be disabled when 3292 this Preference is disabled. --> 3293 <attr name="shouldDisableView" format="boolean" /> 3294 </declare-styleable> 3295 3296 <!-- Base attributes available to CheckBoxPreference. --> 3297 <declare-styleable name="CheckBoxPreference"> 3298 <!-- The summary for the Preference in a PreferenceActivity screen when the 3299 CheckBoxPreference is checked. If separate on/off summaries are not 3300 needed, the summary attribute can be used instead. --> 3301 <attr name="summaryOn" format="string" /> 3302 <!-- The summary for the Preference in a PreferenceActivity screen when the 3303 CheckBoxPreference is unchecked. If separate on/off summaries are not 3304 needed, the summary attribute can be used instead. --> 3305 <attr name="summaryOff" format="string" /> 3306 <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default, 3307 dependents will be disabled when this is unchecked, so the value of this preference is false. --> 3308 <attr name="disableDependentsState" format="boolean" /> 3309 </declare-styleable> 3310 3311 <!-- Base attributes available to DialogPreference. --> 3312 <declare-styleable name="DialogPreference"> 3313 <!-- The title in the dialog. --> 3314 <attr name="dialogTitle" format="string" /> 3315 <!-- The message in the dialog. If a dialogLayout is provided and contains 3316 a TextView with ID android:id/message, this message will be placed in there. --> 3317 <attr name="dialogMessage" format="string" /> 3318 <!-- The icon for the dialog. --> 3319 <attr name="dialogIcon" format="reference" /> 3320 <!-- The positive button text for the dialog. Set to @null to hide the positive button. --> 3321 <attr name="positiveButtonText" format="string" /> 3322 <!-- The negative button text for the dialog. Set to @null to hide the negative button. --> 3323 <attr name="negativeButtonText" format="string" /> 3324 <!-- A layout to be used as the content View for the dialog. By default, this shouldn't 3325 be needed. If a custom DialogPreference is required, this should be set. For example, 3326 the EditTextPreference uses a layout with an EditText as this attribute. --> 3327 <attr name="dialogLayout" format="reference" /> 3328 </declare-styleable> 3329 3330 <!-- Base attributes available to ListPreference. --> 3331 <declare-styleable name="ListPreference"> 3332 <!-- The human-readable array to present as a list. Each entry must have a corresponding 3333 index in entryValues. --> 3334 <attr name="entries" /> 3335 <!-- The array to find the value to save for a preference when an entry from 3336 entries is selected. If a user clicks on the second item in entries, the 3337 second item in this array will be saved to the preference. --> 3338 <attr name="entryValues" format="reference" /> 3339 </declare-styleable> 3340 3341 <!-- Base attributes available to RingtonePreference. --> 3342 <declare-styleable name="RingtonePreference"> 3343 <!-- Which ringtone type(s) to show in the picker. --> 3344 <attr name="ringtoneType"> 3345 <!-- Ringtones. --> 3346 <flag name="ringtone" value="1" /> 3347 <!-- Notification sounds. --> 3348 <flag name="notification" value="2" /> 3349 <!-- Alarm sounds. --> 3350 <flag name="alarm" value="4" /> 3351 <!-- All available ringtone sounds. --> 3352 <flag name="all" value="7" /> 3353 </attr> 3354 <!-- Whether to show an item for a default sound. --> 3355 <attr name="showDefault" format="boolean" /> 3356 <!-- Whether to show an item for 'Silent'. --> 3357 <attr name="showSilent" format="boolean" /> 3358 </declare-styleable> 3359 3360 <!-- Base attributes available to VolumePreference. --> 3361 <declare-styleable name="VolumePreference"> 3362 <!-- Different audio stream types. --> 3363 <attr name="streamType"> 3364 <enum name="voice" value="0" /> 3365 <enum name="system" value="1" /> 3366 <enum name="ring" value="2" /> 3367 <enum name="music" value="3" /> 3368 <enum name="alarm" value="4" /> 3369 </attr> 3370 </declare-styleable> 3371 3372 <declare-styleable name="InputMethodService"> 3373 <!-- Background to use for entire input method when it is being 3374 shown in fullscreen mode with the extract view, to ensure 3375 that it completely covers the application. This allows, 3376 for example, the candidate view to be hidden 3377 while in fullscreen mode without having the application show through 3378 behind it.--> 3379 <attr name="imeFullscreenBackground" format="reference|color" /> 3380 <!-- Animation to use when showing the fullscreen extract UI after 3381 it had previously been hidden. --> 3382 <attr name="imeExtractEnterAnimation" format="reference" /> 3383 <!-- Animation to use when hiding the fullscreen extract UI after 3384 it had previously been shown. --> 3385 <attr name="imeExtractExitAnimation" format="reference" /> 3386 </declare-styleable> 3387 3388 <declare-styleable name="KeyboardView"> 3389 <!-- Default KeyboardView style. --> 3390 <attr name="keyboardViewStyle" format="reference" /> 3391 3392 <!-- Image for the key. This image needs to be a StateListDrawable, with the following 3393 possible states: normal, pressed, checkable, checkable+pressed, checkable+checked, 3394 checkable+checked+pressed. --> 3395 <attr name="keyBackground" format="reference" /> 3396 3397 <!-- Size of the text for character keys. --> 3398 <attr name="keyTextSize" format="dimension" /> 3399 3400 <!-- Size of the text for custom keys with some text and no icon. --> 3401 <attr name="labelTextSize" format="dimension" /> 3402 3403 <!-- Color to use for the label in a key. --> 3404 <attr name="keyTextColor" format="color" /> 3405 3406 <!-- Layout resource for key press feedback.--> 3407 <attr name="keyPreviewLayout" format="reference" /> 3408 3409 <!-- Vertical offset of the key press feedback from the key. --> 3410 <attr name="keyPreviewOffset" format="dimension" /> 3411 3412 <!-- Height of the key press feedback popup. --> 3413 <attr name="keyPreviewHeight" format="dimension" /> 3414 3415 <!-- Amount to offset the touch Y coordinate by, for bias correction. --> 3416 <attr name="verticalCorrection" format="dimension" /> 3417 3418 <!-- Layout resource for popup keyboards. --> 3419 <attr name="popupLayout" format="reference" /> 3420 3421 <attr name="shadowColor" /> 3422 <attr name="shadowRadius" /> 3423 </declare-styleable> 3424 3425 <declare-styleable name="KeyboardViewPreviewState"> 3426 <!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView} 3427 key preview background. --> 3428 <attr name="state_long_pressable" format="boolean" /> 3429 </declare-styleable> 3430 3431 <declare-styleable name="Keyboard"> 3432 <!-- Default width of a key, in pixels or percentage of display width. --> 3433 <attr name="keyWidth" format="dimension|fraction" /> 3434 <!-- Default height of a key, in pixels or percentage of display width. --> 3435 <attr name="keyHeight" format="dimension|fraction" /> 3436 <!-- Default horizontal gap between keys. --> 3437 <attr name="horizontalGap" format="dimension|fraction" /> 3438 <!-- Default vertical gap between rows of keys. --> 3439 <attr name="verticalGap" format="dimension|fraction" /> 3440 </declare-styleable> 3441 3442 <declare-styleable name="Keyboard_Row"> 3443 <!-- Row edge flags. --> 3444 <attr name="rowEdgeFlags"> 3445 <!-- Row is anchored to the top of the keyboard. --> 3446 <flag name="top" value="4" /> 3447 <!-- Row is anchored to the bottom of the keyboard. --> 3448 <flag name="bottom" value="8" /> 3449 </attr> 3450 <!-- Mode of the keyboard. If the mode doesn't match the 3451 requested keyboard mode, the row will be skipped. --> 3452 <attr name="keyboardMode" format="reference" /> 3453 </declare-styleable> 3454 3455 <declare-styleable name="Keyboard_Key"> 3456 <!-- The unicode value or comma-separated values that this key outputs. --> 3457 <attr name="codes" format="integer|string" /> 3458 <!-- The XML keyboard layout of any popup keyboard. --> 3459 <attr name="popupKeyboard" format="reference" /> 3460 <!-- The characters to display in the popup keyboard. --> 3461 <attr name="popupCharacters" format="string" /> 3462 <!-- Key edge flags. --> 3463 <attr name="keyEdgeFlags"> 3464 <!-- Key is anchored to the left of the keyboard. --> 3465 <flag name="left" value="1" /> 3466 <!-- Key is anchored to the right of the keyboard. --> 3467 <flag name="right" value="2" /> 3468 </attr> 3469 <!-- Whether this is a modifier key such as Alt or Shift. --> 3470 <attr name="isModifier" format="boolean" /> 3471 <!-- Whether this is a toggle key. --> 3472 <attr name="isSticky" format="boolean" /> 3473 <!-- Whether long-pressing on this key will make it repeat. --> 3474 <attr name="isRepeatable" format="boolean" /> 3475 <!-- The icon to show in the popup preview. --> 3476 <attr name="iconPreview" format="reference" /> 3477 <!-- The string of characters to output when this key is pressed. --> 3478 <attr name="keyOutputText" format="string" /> 3479 <!-- The label to display on the key. --> 3480 <attr name="keyLabel" format="string" /> 3481 <!-- The icon to display on the key instead of the label. --> 3482 <attr name="keyIcon" format="reference" /> 3483 <!-- Mode of the keyboard. If the mode doesn't match the 3484 requested keyboard mode, the key will be skipped. --> 3485 <attr name="keyboardMode" /> 3486 </declare-styleable> 3487 3488 <!-- =============================== --> 3489 <!-- AppWidget package class attributes --> 3490 <!-- =============================== --> 3491 <eat-comment /> 3492 3493 <!-- Use <code>appwidget-provider</code> as the root tag of the XML resource that 3494 describes an AppWidget provider. See {@link android.appwidget android.appwidget} 3495 package for more info. 3496 --> 3497 <declare-styleable name="AppWidgetProviderInfo"> 3498 <!-- Minimum width of the AppWidget. --> 3499 <attr name="minWidth"/> 3500 <!-- Minimum height of the AppWidget. --> 3501 <attr name="minHeight"/> 3502 <!-- Update period in milliseconds, or 0 if the AppWidget will update itself. --> 3503 <attr name="updatePeriodMillis" format="integer" /> 3504 <!-- A resource id of a layout. --> 3505 <attr name="initialLayout" format="reference" /> 3506 <!-- A class name in the AppWidget's package to be launched to configure. 3507 If not supplied, then no activity will be launched. --> 3508 <attr name="configure" format="string" /> 3509 </declare-styleable> 3510 3511 <!-- =============================== --> 3512 <!-- App package class attributes --> 3513 <!-- =============================== --> 3514 <eat-comment /> 3515 3516 <!-- Use <code>device-admin</code> as the root tag of the XML resource that 3517 describes a 3518 {@link android.app.admin.DeviceAdminReceiver}, which is 3519 referenced from its 3520 {@link android.app.admin.DeviceAdminReceiver#DEVICE_ADMIN_META_DATA} 3521 meta-data entry. Described here are the attributes that can be 3522 included in that tag. --> 3523 <declare-styleable name="DeviceAdmin"> 3524 <!-- Control whether the admin is visible to the user, even when it 3525 is not enabled. This is true by default. You may want to make 3526 it false if your admin does not make sense to be turned on 3527 unless some explicit action happens in your app. --> 3528 <attr name="visible" /> 3529 </declare-styleable> 3530 3531 <!-- Use <code>wallpaper</code> as the root tag of the XML resource that 3532 describes an 3533 {@link android.service.wallpaper.WallpaperService}, which is 3534 referenced from its 3535 {@link android.service.wallpaper.WallpaperService#SERVICE_META_DATA} 3536 meta-data entry. Described here are the attributes that can be 3537 included in that tag. --> 3538 <declare-styleable name="Wallpaper"> 3539 <attr name="settingsActivity" /> 3540 3541 <!-- Reference to a the wallpaper's thumbnail bitmap. --> 3542 <attr name="thumbnail" format="reference" /> 3543 3544 <!-- Name of the author of this component, e.g. Google. --> 3545 <attr name="author" format="reference" /> 3546 3547 <!-- Short description of the component's purpose or behavior. --> 3548 <attr name="description" /> 3549 </declare-styleable> 3550 3551 <!-- =============================== --> 3552 <!-- Accounts package class attributes --> 3553 <!-- =============================== --> 3554 <eat-comment /> 3555 3556 <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that 3557 describes an account authenticator. 3558 --> 3559 <declare-styleable name="AccountAuthenticator"> 3560 <!-- The account type this authenticator handles. --> 3561 <attr name="accountType" format="string"/> 3562 <!-- The user-visible name of the authenticator. --> 3563 <attr name="label"/> 3564 <!-- The icon of the authenticator. --> 3565 <attr name="icon"/> 3566 <!-- Smaller icon of the authenticator. --> 3567 <attr name="smallIcon" format="reference"/> 3568 <!-- A preferences.xml file for authenticator-specific settings. --> 3569 <attr name="accountPreferences" format="reference"/> 3570 </declare-styleable> 3571 3572 <!-- =============================== --> 3573 <!-- Accounts package class attributes --> 3574 <!-- =============================== --> 3575 <eat-comment /> 3576 3577 <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that 3578 describes an account authenticator. 3579 --> 3580 <declare-styleable name="SyncAdapter"> 3581 <!-- the authority of a content provider. --> 3582 <attr name="contentAuthority" format="string"/> 3583 <attr name="accountType"/> 3584 <attr name="userVisible" format="boolean"/> 3585 <attr name="supportsUploading" format="boolean"/> 3586 </declare-styleable> 3587 3588 <!-- =============================== --> 3589 <!-- Contacts meta-data attributes --> 3590 <!-- =============================== --> 3591 <eat-comment /> 3592 3593 <!-- TODO: remove this deprecated styleable. --> 3594 <eat-comment /> 3595 <declare-styleable name="Icon"> 3596 <attr name="icon" /> 3597 <attr name="mimeType" /> 3598 </declare-styleable> 3599 3600 <!-- TODO: remove this deprecated styleable --> 3601 <eat-comment /> 3602 <declare-styleable name="IconDefault"> 3603 <attr name="icon" /> 3604 </declare-styleable> 3605 3606 <!-- Maps a specific contact data MIME-type to styling information. --> 3607 <declare-styleable name="ContactsDataKind"> 3608 <!-- Mime-type handled by this mapping. --> 3609 <attr name="mimeType" /> 3610 <!-- Icon used to represent data of this kind. --> 3611 <attr name="icon" /> 3612 <!-- Column in data table that summarizes this data. --> 3613 <attr name="summaryColumn" format="string" /> 3614 <!-- Column in data table that contains details for this data. --> 3615 <attr name="detailColumn" format="string" /> 3616 <!-- Flag indicating that detail should be built from SocialProvider. --> 3617 <attr name="detailSocialSummary" format="boolean" /> 3618 </declare-styleable> 3619 3620 <!-- =============================== --> 3621 <!-- TabSelector class attributes --> 3622 <!-- =============================== --> 3623 <eat-comment /> 3624 3625 <declare-styleable name="SlidingTab"> 3626 <!-- Use "horizontal" for a row, "vertical" for a column. The default is horizontal. --> 3627 <attr name="orientation" /> 3628 </declare-styleable> 3629 3630 <!-- Use <code>recognition-service</code> as the root tag of the XML resource that 3631 describes a {@link android.speech.RecognitionService}, which is reference from 3632 its {@link android.speech.RecognitionService#SERVICE_META_DATA} meta-data entry. 3633 Described here are the attributes that can be included in that tag. --> 3634 <declare-styleable name="RecognitionService"> 3635 <attr name="settingsActivity" /> 3636 </declare-styleable> 3637 3638</resources> 3639