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