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