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