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