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