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