attrs.xml revision 60bd7b0a729bddb53ec63b3d5e7b539685da55e9
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2012 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 <!-- Many app-specific attributes are declared in this file. 19 Unless otherwise specified, they are intended to be set within 20 the context of a theme declaration. 21 22 Each cluster of attributes below states whether it is meant to 23 be set by the app and read by the system, or set by the system and 24 read by the app. --> 25 <eat-comment/> 26 27 28 <attr name="title" format="string"/> 29 <attr name="height" format="dimension"/> 30 <!-- Specifies whether the theme is light, otherwise it is dark. --> 31 <attr name="isLightTheme" format="boolean" /> 32 33 <!-- These are the standard attributes that make up a complete theme. --> 34 <declare-styleable name="Theme"> 35 36 <!-- ============= --> 37 <!-- Window styles --> 38 <!-- ============= --> 39 <eat-comment /> 40 41 <!-- Flag indicating whether this window should have an Action Bar 42 in place of the usual title bar. --> 43 <attr name="windowActionBar" format="boolean" /> 44 45 <!-- Flag indicating whether this window's Action Bar should overlay 46 application content. Does nothing if the window would not 47 have an Action Bar. --> 48 <attr name="windowActionBarOverlay" format="boolean" /> 49 50 <!-- A fixed width for the window along the major axis of the screen, 51 that is, when in landscape. Can be either an absolute dimension 52 or a fraction of the screen size in that dimension. --> 53 <attr name="windowFixedWidthMajor" format="dimension|fraction" /> 54 <!-- A fixed height for the window along the minor axis of the screen, 55 that is, when in landscape. Can be either an absolute dimension 56 or a fraction of the screen size in that dimension. --> 57 <attr name="windowFixedHeightMinor" format="dimension|fraction" /> 58 59 <!-- A fixed width for the window along the minor axis of the screen, 60 that is, when in portrait. Can be either an absolute dimension 61 or a fraction of the screen size in that dimension. --> 62 <attr name="windowFixedWidthMinor" format="dimension|fraction" /> 63 <!-- A fixed height for the window along the major axis of the screen, 64 that is, when in portrait. Can be either an absolute dimension 65 or a fraction of the screen size in that dimension. --> 66 <attr name="windowFixedHeightMajor" format="dimension|fraction" /> 67 68 69 <!-- =================== --> 70 <!-- Action bar styles --> 71 <!-- =================== --> 72 <eat-comment /> 73 <!-- Default style for tabs within an action bar --> 74 <attr name="actionBarTabStyle" format="reference" /> 75 <attr name="actionBarTabBarStyle" format="reference" /> 76 <attr name="actionBarTabTextStyle" format="reference" /> 77 <attr name="actionOverflowButtonStyle" format="reference" /> 78 <attr name="actionOverflowMenuStyle" format="reference" /> 79 <!-- Reference to a theme that should be used to inflate popups 80 shown by widgets in the action bar. --> 81 <attr name="actionBarPopupTheme" format="reference" /> 82 <!-- Reference to a style for the Action Bar --> 83 <attr name="actionBarStyle" format="reference" /> 84 <!-- Reference to a style for the split Action Bar. This style 85 controls the split component that holds the menu/action 86 buttons. actionBarStyle is still used for the primary 87 bar. --> 88 <attr name="actionBarSplitStyle" format="reference" /> 89 <!-- Reference to a theme that should be used to inflate the 90 action bar. This will be inherited by any widget inflated 91 into the action bar. --> 92 <attr name="actionBarTheme" format="reference" /> 93 <!-- Reference to a theme that should be used to inflate widgets 94 and layouts destined for the action bar. Most of the time 95 this will be a reference to the current theme, but when 96 the action bar has a significantly different contrast 97 profile than the rest of the activity the difference 98 can become important. If this is set to @null the current 99 theme will be used.--> 100 <attr name="actionBarWidgetTheme" format="reference" /> 101 <!-- Size of the Action Bar, including the contextual 102 bar used to present Action Modes. --> 103 <attr name="actionBarSize" format="dimension" > 104 <enum name="wrap_content" value="0" /> 105 </attr> 106 <!-- Custom divider drawable to use for elements in the action bar. --> 107 <attr name="actionBarDivider" format="reference" /> 108 <!-- Custom item state list drawable background for action bar items. --> 109 <attr name="actionBarItemBackground" format="reference" /> 110 <!-- TextAppearance style that will be applied to text that 111 appears within action menu items. --> 112 <attr name="actionMenuTextAppearance" format="reference" /> 113 <!-- Color for text that appears within action menu items. --> 114 <!-- Color for text that appears within action menu items. --> 115 <attr name="actionMenuTextColor" format="color|reference"/> 116 117 118 <!-- =================== --> 119 <!-- Action mode styles --> 120 <!-- =================== --> 121 <eat-comment/> 122 <attr name="actionModeStyle" format="reference"/> 123 <attr name="actionModeCloseButtonStyle" format="reference"/> 124 <!-- Background drawable to use for action mode UI --> 125 <attr name="actionModeBackground" format="reference"/> 126 <!-- Background drawable to use for action mode UI in the lower split bar --> 127 <attr name="actionModeSplitBackground" format="reference"/> 128 <!-- Drawable to use for the close action mode button --> 129 <attr name="actionModeCloseDrawable" format="reference"/> 130 <!-- Drawable to use for the Cut action button in Contextual Action Bar --> 131 <attr name="actionModeCutDrawable" format="reference"/> 132 <!-- Drawable to use for the Copy action button in Contextual Action Bar --> 133 <attr name="actionModeCopyDrawable" format="reference"/> 134 <!-- Drawable to use for the Paste action button in Contextual Action Bar --> 135 <attr name="actionModePasteDrawable" format="reference"/> 136 <!-- Drawable to use for the Select all action button in Contextual Action Bar --> 137 <attr name="actionModeSelectAllDrawable" format="reference"/> 138 <!-- Drawable to use for the Share action button in WebView selection action modes --> 139 <attr name="actionModeShareDrawable" format="reference"/> 140 <!-- Drawable to use for the Find action button in WebView selection action modes --> 141 <attr name="actionModeFindDrawable" format="reference"/> 142 <!-- Drawable to use for the Web Search action button in WebView selection action modes --> 143 <attr name="actionModeWebSearchDrawable" format="reference"/> 144 145 <!-- PopupWindow style to use for action modes when showing as a window overlay. --> 146 <attr name="actionModePopupWindowStyle" format="reference"/> 147 148 149 <!-- =================== --> 150 <!-- Text styles --> 151 <!-- =================== --> 152 <eat-comment /> 153 <!-- Text color, typeface, size, and style for the text inside of a popup menu. --> 154 <attr name="textAppearanceLargePopupMenu" format="reference"/> 155 <!-- Text color, typeface, size, and style for small text inside of a popup menu. --> 156 <attr name="textAppearanceSmallPopupMenu" format="reference"/> 157 158 159 <!-- =================== --> 160 <!-- Other widget styles --> 161 <!-- =================== --> 162 <eat-comment /> 163 164 <!-- Default ActionBar dropdown style. --> 165 <attr name="actionDropDownStyle" format="reference"/> 166 <!-- The preferred item height for dropdown lists. --> 167 <attr name="dropdownListPreferredItemHeight" format="dimension"/> 168 169 <!-- Default Spinner style. --> 170 <attr name="spinnerStyle" format="reference" /> 171 <!-- Default Spinner style. --> 172 <attr name="spinnerDropDownItemStyle" format="reference" /> 173 <!-- Specifies a drawable to use for the 'home as up' indicator. --> 174 <attr name="homeAsUpIndicator" format="reference"/> 175 176 <!-- Default action button style. --> 177 <attr name="actionButtonStyle" format="reference"/> 178 179 <!-- A style that may be applied to horizontal LinearLayouts 180 to form a button bar. --> 181 <attr name="buttonBarStyle" format="reference"/> 182 <!-- A style that may be applied to Buttons placed within a 183 LinearLayout with the style buttonBarStyle to form a button bar. --> 184 <attr name="buttonBarButtonStyle" format="reference"/> 185 <!-- A style that may be applied to buttons or other selectable items 186 that should react to pressed and focus states, but that do not 187 have a clear visual border along the edges. --> 188 <attr name="selectableItemBackground" format="reference"/> 189 <!-- A drawable that may be used as a vertical divider between visual elements. --> 190 <attr name="dividerVertical" format="reference"/> 191 <!-- A drawable that may be used as a horizontal divider between visual elements. --> 192 <attr name="dividerHorizontal" format="reference"/> 193 <!-- Default ActivityChooserView style. --> 194 <attr name="activityChooserViewStyle" format="reference" /> 195 196 <!-- Default Toolbar style. --> 197 <attr name="toolbarStyle" format="reference" /> 198 <!-- Default Toolar NavigationButtonStyle --> 199 <attr name="toolbarNavigationButtonStyle" format="reference" /> 200 201 <!-- Default PopupMenu style. --> 202 <attr name="popupMenuStyle" format="reference"/> 203 <!-- Default PopupWindow style. --> 204 <attr name="popupWindowStyle" format="reference" /> 205 206 <!-- ============================ --> 207 <!-- SearchView styles and assets --> 208 <!-- ============================ --> 209 <eat-comment /> 210 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --> 211 <attr name="textAppearanceSearchResultTitle" format="reference" /> 212 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --> 213 <attr name="textAppearanceSearchResultSubtitle" format="reference" /> 214 <!-- Text color for urls in search suggestions, used by things like global search --> 215 <attr name="textColorSearchUrl" format="reference|color" /> 216 <!-- Style for the search query widget. --> 217 <attr name="searchViewStyle" format="reference" /> 218 219 <!-- =========== --> 220 <!-- List styles --> 221 <!-- =========== --> 222 <eat-comment /> 223 224 <!-- The preferred list item height. --> 225 <attr name="listPreferredItemHeight" format="dimension"/> 226 <!-- A smaller, sleeker list item height. --> 227 <attr name="listPreferredItemHeightSmall" format="dimension"/> 228 <!-- A larger, more robust list item height. --> 229 <attr name="listPreferredItemHeightLarge" format="dimension"/> 230 231 <!-- The preferred padding along the left edge of list items. --> 232 <attr name="listPreferredItemPaddingLeft" format="dimension"/> 233 <!-- The preferred padding along the right edge of list items. --> 234 <attr name="listPreferredItemPaddingRight" format="dimension"/> 235 236 <!-- ListPopupWindow compatibility --> 237 <attr name="dropDownListViewStyle" format="reference"/> 238 <attr name="listPopupWindowStyle" format="reference"/> 239 240 <!-- The preferred TextAppearance for the primary text of list items. --> 241 <attr name="textAppearanceListItem" format="reference"/> 242 <!-- The preferred TextAppearance for the primary text of small list items. --> 243 <attr name="textAppearanceListItemSmall" format="reference"/> 244 245 246 <!-- ============ --> 247 <!-- Panel styles --> 248 <!-- ============ --> 249 <eat-comment /> 250 251 <!-- Default Panel Menu width. --> 252 <attr name="panelMenuListWidth" format="dimension" /> 253 254 <!-- Default Panel Menu style. --> 255 <attr name="panelMenuListTheme" format="reference" /> 256 257 <!-- Drawable used as a background for selected list items. --> 258 <attr name="listChoiceBackgroundIndicator" format="reference" /> 259 260 <!-- ============= --> 261 <!-- Color palette --> 262 <!-- ============= --> 263 <eat-comment /> 264 265 <!-- The primary branding color for the app. By default, this is the color applied to the 266 action bar background. --> 267 <attr name="colorPrimary" format="color" /> 268 269 <!-- Dark variant of the primary branding color. By default, this is the color applied to 270 the status bar (via statusBarColor) and navigation bar (via navigationBarColor). --> 271 <attr name="colorPrimaryDark" format="color" /> 272 273 <!-- Bright complement to the primary branding color. By default, this is the color applied 274 to framework controls (via colorControlActivated). --> 275 <attr name="colorAccent" format="color" /> 276 277 <!-- The color applied to framework controls in their normal state. --> 278 <attr name="colorControlNormal" format="color" /> 279 280 <!-- The color applied to framework controls in their activated (ex. checked) state. --> 281 <attr name="colorControlActivated" format="color" /> 282 283 <!-- The color applied to framework control highlights (ex. ripples, list selectors). --> 284 <attr name="colorControlHighlight" format="color" /> 285 286 <!-- The color applied to framework buttons in their normal state. --> 287 <attr name="colorButtonNormal" format="color" /> 288 289 </declare-styleable> 290 291 292 <!-- ============================================ --> 293 294 <!-- Attributes used to style the Action Bar. 295 These should be set on your theme; the default actionBarStyle will 296 propagate them to the correct elements as needed. 297 298 Please Note: when overriding attributes for an ActionBar style 299 you must specify each attribute twice: once with the "android:" 300 namespace prefix and once without. --> 301 <declare-styleable name="ActionBar"> 302 <!-- The type of navigation to use. --> 303 <attr name="navigationMode"> 304 <!-- Normal static title text --> 305 <enum name="normal" value="0"/> 306 <!-- The action bar will use a selection list for navigation. --> 307 <enum name="listMode" value="1"/> 308 <!-- The action bar will use a series of horizontal tabs for navigation. --> 309 <enum name="tabMode" value="2"/> 310 </attr> 311 <!-- Options affecting how the action bar is displayed. --> 312 <attr name="displayOptions"> 313 <flag name="none" value="0" /> 314 <flag name="useLogo" value="0x1"/> 315 <flag name="showHome" value="0x2"/> 316 <flag name="homeAsUp" value="0x4"/> 317 <flag name="showTitle" value="0x8"/> 318 <flag name="showCustom" value="0x10"/> 319 <flag name="disableHome" value="0x20"/> 320 </attr> 321 <!-- Specifies title text used for navigationMode="normal" --> 322 <attr name="title"/> 323 <!-- Specifies subtitle text used for navigationMode="normal" --> 324 <attr name="subtitle" format="string"/> 325 <!-- Specifies a style to use for title text. --> 326 <attr name="titleTextStyle" format="reference"/> 327 <!-- Specifies a style to use for subtitle text. --> 328 <attr name="subtitleTextStyle" format="reference"/> 329 <!-- Specifies the drawable used for the application icon. --> 330 <attr name="icon" format="reference"/> 331 <!-- Specifies the drawable used for the application logo. --> 332 <attr name="logo" format="reference"/> 333 <!-- Specifies the drawable used for item dividers. --> 334 <attr name="divider" format="reference"/> 335 <!-- Specifies a background drawable for the action bar. --> 336 <attr name="background" format="reference"/> 337 <!-- Specifies a background drawable for a second stacked row of the action bar. --> 338 <attr name="backgroundStacked" format="reference|color"/> 339 <!-- Specifies a background drawable for the bottom component of a split action bar. --> 340 <attr name="backgroundSplit" format="reference|color"/> 341 <!-- Specifies a layout for custom navigation. Overrides navigationMode. --> 342 <attr name="customNavigationLayout" format="reference"/> 343 <!-- Specifies a fixed height. --> 344 <attr name="height"/> 345 <!-- Specifies a layout to use for the "home" section of the action bar. --> 346 <attr name="homeLayout" format="reference"/> 347 <!-- Specifies a style resource to use for an embedded progress bar. --> 348 <attr name="progressBarStyle" format="reference"/> 349 <!-- Specifies a style resource to use for an indeterminate progress spinner. --> 350 <attr name="indeterminateProgressStyle" format="reference"/> 351 <!-- Specifies the horizontal padding on either end for an embedded progress bar. --> 352 <attr name="progressBarPadding" format="dimension"/> 353 <!-- Up navigation glyph --> 354 <attr name="homeAsUpIndicator" /> 355 <!-- Specifies padding that should be applied to the left and right sides of 356 system-provided items in the bar. --> 357 <attr name="itemPadding" format="dimension"/> 358 <!-- Set true to hide the action bar on a vertical nested scroll of content. --> 359 <attr name="hideOnContentScroll" format="boolean"/> 360 <!-- Minimum inset for content views within a bar. Navigation buttons and 361 menu views are excepted. Only valid for some themes and configurations. --> 362 <attr name="contentInsetStart" format="dimension"/> 363 <!-- Minimum inset for content views within a bar. Navigation buttons and 364 menu views are excepted. Only valid for some themes and configurations. --> 365 <attr name="contentInsetEnd" format="dimension"/> 366 <!-- Minimum inset for content views within a bar. Navigation buttons and 367 menu views are excepted. Only valid for some themes and configurations. --> 368 <attr name="contentInsetLeft" format="dimension"/> 369 <!-- Minimum inset for content views within a bar. Navigation buttons and 370 menu views are excepted. Only valid for some themes and configurations. --> 371 <attr name="contentInsetRight" format="dimension"/> 372 <!-- Elevation for the action bar itself --> 373 <attr name="elevation" format="dimension" /> 374 </declare-styleable> 375 376 <!-- Valid LayoutParams for views placed in the action bar as custom views. --> 377 <declare-styleable name="ActionBarLayout"> 378 <attr name="android:layout_gravity"/> 379 </declare-styleable> 380 381 <declare-styleable name="ActionMenuItemView"> 382 <attr name="android:minWidth"/> 383 </declare-styleable> 384 385 <declare-styleable name="ActionMode"> 386 <!-- Specifies a style to use for title text. --> 387 <attr name="titleTextStyle"/> 388 <!-- Specifies a style to use for subtitle text. --> 389 <attr name="subtitleTextStyle"/> 390 <!-- Specifies a background for the action mode bar. --> 391 <attr name="background"/> 392 <!-- Specifies a background for the split action mode bar. --> 393 <attr name="backgroundSplit"/> 394 <!-- Specifies a fixed height for the action mode bar. --> 395 <attr name="height"/> 396 </declare-styleable> 397 398 <declare-styleable name="View"> 399 <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. --> 400 <attr name="paddingStart" format="dimension"/> 401 <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. --> 402 <attr name="paddingEnd" format="dimension"/> 403 404 <!-- Boolean that controls whether a view can take focus. By default the user can not 405 move focus to a view; by setting this attribute to true the view is 406 allowed to take focus. This value does not impact the behavior of 407 directly calling {@link android.view.View#requestFocus}, which will 408 always request focus regardless of this view. It only impacts where 409 focus navigation will try to move focus. --> 410 <attr name="android:focusable" /> 411 </declare-styleable> 412 413 <declare-styleable name="MenuView"> 414 <!-- Default appearance of menu item text. --> 415 <attr name="android:itemTextAppearance"/> 416 <!-- Default horizontal divider between rows of menu items. --> 417 <attr name="android:horizontalDivider"/> 418 <!-- Default vertical divider between menu items. --> 419 <attr name="android:verticalDivider"/> 420 <!-- Default background for the menu header. --> 421 <attr name="android:headerBackground"/> 422 <!-- Default background for each menu item. --> 423 <attr name="android:itemBackground"/> 424 <!-- Default animations for the menu. --> 425 <attr name="android:windowAnimationStyle"/> 426 <!-- Default disabled icon alpha for each menu item that shows an icon. --> 427 <attr name="android:itemIconDisabledAlpha"/> 428 <!-- Whether space should be reserved in layout when an icon is missing. --> 429 <attr name="android:preserveIconSpacing"/> 430 </declare-styleable> 431 <declare-styleable name="ActionMenuView"> 432 <!-- Size of padding on either end of a divider. --> 433 </declare-styleable> 434 435 <!-- Base attributes that are available to all groups. --> 436 <declare-styleable name="MenuGroup"> 437 438 <!-- The ID of the group. --> 439 <attr name="android:id" /> 440 441 <!-- The category applied to all items within this group. 442 (This will be or'ed with the orderInCategory attribute.) --> 443 <attr name="android:menuCategory" /> 444 445 <!-- The order within the category applied to all items within this group. 446 (This will be or'ed with the category attribute.) --> 447 <attr name="android:orderInCategory" /> 448 449 <!-- Whether the items are capable of displaying a check mark. --> 450 <attr name="android:checkableBehavior" /> 451 452 <!-- Whether the items are shown/visible. --> 453 <attr name="android:visible" /> 454 455 <!-- Whether the items are enabled. --> 456 <attr name="android:enabled" /> 457 458 </declare-styleable> 459 460 <!-- Base attributes that are available to all Item objects. --> 461 <declare-styleable name="MenuItem"> 462 463 <!-- The ID of the item. --> 464 <attr name="android:id" /> 465 466 <!-- The category applied to the item. 467 (This will be or'ed with the orderInCategory attribute.) --> 468 <attr name="android:menuCategory" /> 469 470 <!-- The order within the category applied to the item. 471 (This will be or'ed with the category attribute.) --> 472 <attr name="android:orderInCategory" /> 473 474 <!-- The title associated with the item. --> 475 <attr name="android:title" /> 476 477 <!-- The condensed title associated with the item. This is used in situations where the 478 normal title may be too long to be displayed. --> 479 <attr name="android:titleCondensed" /> 480 481 <!-- The icon associated with this item. This icon will not always be shown, so 482 the title should be sufficient in describing this item. --> 483 <attr name="android:icon" /> 484 485 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard 486 with alphabetic keys. --> 487 <attr name="android:alphabeticShortcut" /> 488 489 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) 490 keyboard. --> 491 <attr name="android:numericShortcut" /> 492 493 <!-- Whether the item is capable of displaying a check mark. --> 494 <attr name="android:checkable" /> 495 496 <!-- Whether the item is checked. Note that you must first have enabled checking with 497 the checkable attribute or else the check mark will not appear. --> 498 <attr name="android:checked" /> 499 500 <!-- Whether the item is shown/visible. --> 501 <attr name="android:visible" /> 502 503 <!-- Whether the item is enabled. --> 504 <attr name="android:enabled" /> 505 506 <!-- Name of a method on the Context used to inflate the menu that will be 507 called when the item is clicked. --> 508 <attr name="android:onClick" /> 509 510 <!-- How this item should display in the Action Bar, if present. --> 511 <attr name="showAsAction"> 512 <!-- Never show this item in an action bar, show it in the overflow menu instead. 513 Mutually exclusive with "ifRoom" and "always". --> 514 <flag name="never" value="0" /> 515 <!-- Show this item in an action bar if there is room for it as determined 516 by the system. Favor this option over "always" where possible. 517 Mutually exclusive with "never" and "always". --> 518 <flag name="ifRoom" value="1" /> 519 <!-- Always show this item in an actionbar, even if it would override 520 the system's limits of how much stuff to put there. This may make 521 your action bar look bad on some screens. In most cases you should 522 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". --> 523 <flag name="always" value="2" /> 524 <!-- When this item is shown as an action in the action bar, show a text 525 label with it even if it has an icon representation. --> 526 <flag name="withText" value="4" /> 527 <!-- This item's action view collapses to a normal menu 528 item. When expanded, the action view takes over a 529 larger segment of its container. --> 530 <flag name="collapseActionView" value="8" /> 531 </attr> 532 533 <!-- An optional layout to be used as an action view. 534 See {@link android.view.MenuItem#setActionView(android.view.View)} 535 for more info. --> 536 <attr name="actionLayout" format="reference" /> 537 538 <!-- The name of an optional View class to instantiate and use as an 539 action view. See {@link android.view.MenuItem#setActionView(android.view.View)} 540 for more info. --> 541 <attr name="actionViewClass" format="string" /> 542 543 <!-- The name of an optional ActionProvider class to instantiate an action view 544 and perform operations such as default action for that menu item. 545 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} 546 for more info. --> 547 <attr name="actionProviderClass" format="string" /> 548 549 </declare-styleable> 550 551 <declare-styleable name="Spinner"> 552 <!-- The prompt to display when the spinner's dialog is shown. --> 553 <attr name="prompt" format="reference" /> 554 <!-- Display mode for spinner options. --> 555 <attr name="spinnerMode" format="enum"> 556 <!-- Spinner options will be presented to the user as a dialog window. --> 557 <enum name="dialog" value="0" /> 558 <!-- Spinner options will be presented to the user as an inline dropdown 559 anchored to the spinner widget itself. --> 560 <enum name="dropdown" value="1" /> 561 </attr> 562 <!-- List selector to use for spinnerMode="dropdown" display. --> 563 <attr name="android:dropDownSelector" /> 564 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". --> 565 <attr name="android:popupBackground" /> 566 <!-- Vertical offset from the spinner widget for positioning the dropdown in 567 spinnerMode="dropdown". --> 568 <attr name="android:dropDownVerticalOffset" /> 569 <!-- Horizontal offset from the spinner widget for positioning the dropdown 570 in spinnerMode="dropdown". --> 571 <attr name="android:dropDownHorizontalOffset" /> 572 <!-- Width of the dropdown in spinnerMode="dropdown". --> 573 <attr name="android:dropDownWidth" /> 574 <!-- Reference to a layout to use for displaying a prompt in the dropdown for 575 spinnerMode="dropdown". This layout must contain a TextView with the id 576 {@code @android:id/text1} to be populated with the prompt text. --> 577 <attr name="popupPromptView" format="reference" /> 578 <!-- Gravity setting for positioning the currently selected item. --> 579 <attr name="android:gravity" /> 580 <!-- Whether this spinner should mark child views as enabled/disabled when 581 the spinner itself is enabled/disabled. --> 582 <attr name="disableChildrenWhenDisabled" format="boolean" /> 583 </declare-styleable> 584 585 <declare-styleable name="SearchView"> 586 <!-- The layout to use for the search view. --> 587 <attr name="layout" format="reference" /> 588 <!-- The default state of the SearchView. If true, it will be iconified when not in 589 use and expanded when clicked. --> 590 <attr name="iconifiedByDefault" format="boolean" /> 591 <!-- An optional maximum width of the SearchView. --> 592 <attr name="android:maxWidth" /> 593 <!-- An optional query hint string to be displayed in the empty query field. --> 594 <attr name="queryHint" format="string" /> 595 <!-- The IME options to set on the query text field. --> 596 <attr name="android:imeOptions" /> 597 <!-- The input type to set on the query text field. --> 598 <attr name="android:inputType" /> 599 <!-- Close button icon --> 600 <attr name="closeIcon" format="reference" /> 601 <!-- Go button icon --> 602 <attr name="goIcon" format="reference" /> 603 <!-- Search icon --> 604 <attr name="searchIcon" format="reference" /> 605 <!-- Voice button icon --> 606 <attr name="voiceIcon" format="reference" /> 607 <!-- Commit icon shown in the query suggestion row --> 608 <attr name="commitIcon" format="reference" /> 609 <!-- Layout for query suggestion rows --> 610 <attr name="suggestionRowLayout" format="reference" /> 611 <!-- Background for the section containing the search query --> 612 <attr name="queryBackground" format="reference" /> 613 <!-- Background for the section containing the action (e.g. voice search) --> 614 <attr name="submitBackground" format="reference" /> 615 </declare-styleable> 616 617 <!-- Attrbitutes for a ActivityChooserView. --> 618 <declare-styleable name="ActivityChooserView"> 619 <!-- The maximal number of items initially shown in the activity list. --> 620 <attr name="initialActivityCount" format="string" /> 621 <!-- The drawable to show in the button for expanding the activities overflow popup. 622 <strong>Note:</strong> Clients would like to set this drawable 623 as a clue about the action the chosen activity will perform. For 624 example, if share activity is to be chosen the drawable should 625 give a clue that sharing is to be performed. 626 --> 627 <attr name="expandActivityOverflowButtonDrawable" format="reference" /> 628 </declare-styleable> 629 630 <declare-styleable name="CompatTextView"> 631 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --> 632 <attr name="textAllCaps" format="reference|boolean" /> 633 </declare-styleable> 634 635 <declare-styleable name="LinearLayoutCompat"> 636 <!-- Should the layout be a column or a row? Use "horizontal" 637 for a row, "vertical" for a column. The default is 638 horizontal. --> 639 <attr name="android:orientation" /> 640 <attr name="android:gravity" /> 641 <!-- When set to false, prevents the layout from aligning its children's 642 baselines. This attribute is particularly useful when the children 643 use different values for gravity. The default value is true. --> 644 <attr name="android:baselineAligned" /> 645 <!-- When a linear layout is part of another layout that is baseline 646 aligned, it can specify which of its children to baseline align to 647 (that is, which child TextView).--> 648 <attr name="android:baselineAlignedChildIndex" /> 649 <!-- Defines the maximum weight sum. If unspecified, the sum is computed 650 by adding the layout_weight of all of the children. This can be 651 used for instance to give a single child 50% of the total available 652 space by giving it a layout_weight of 0.5 and setting the weightSum 653 to 1.0. --> 654 <attr name="android:weightSum" /> 655 <!-- When set to true, all children with a weight will be considered having 656 the minimum size of the largest child. If false, all children are 657 measured normally. --> 658 <attr name="measureWithLargestChild" format="boolean" /> 659 <!-- Drawable to use as a vertical divider between buttons. --> 660 <attr name="divider" /> 661 <!-- Setting for which dividers to show. --> 662 <attr name="showDividers"> 663 <flag name="none" value="0" /> 664 <flag name="beginning" value="1" /> 665 <flag name="middle" value="2" /> 666 <flag name="end" value="4" /> 667 </attr> 668 <!-- Size of padding on either end of a divider. --> 669 <attr name="dividerPadding" format="dimension" /> 670 </declare-styleable> 671 672 <declare-styleable name="LinearLayoutCompat_Layout"> 673 <attr name="android:layout_width" /> 674 <attr name="android:layout_height" /> 675 <attr name="android:layout_weight" /> 676 <attr name="android:layout_gravity" /> 677 </declare-styleable> 678 679 <declare-styleable name="Toolbar"> 680 <attr name="titleTextAppearance" format="reference" /> 681 <attr name="subtitleTextAppearance" format="reference" /> 682 <attr name="title" /> 683 <attr name="subtitle" /> 684 <attr name="android:gravity" /> 685 <attr name="titleMargins" format="dimension" /> 686 <attr name="titleMarginStart" format="dimension" /> 687 <attr name="titleMarginEnd" format="dimension" /> 688 <attr name="titleMarginTop" format="dimension" /> 689 <attr name="titleMarginBottom" format="dimension" /> 690 <attr name="contentInsetStart" /> 691 <attr name="contentInsetEnd" /> 692 <attr name="contentInsetLeft" /> 693 <attr name="contentInsetRight" /> 694 <attr name="maxButtonHeight" format="dimension" /> 695 696 <!-- Use Theme toolbarNavigationButtonStyle instead --> 697 <!-- <attr name="navigationButtonStyle" format="reference" /> --> 698 699 <attr name="buttonGravity"> 700 <!-- Push object to the top of its container, not changing its size. --> 701 <flag name="top" value="0x30" /> 702 <!-- Push object to the bottom of its container, not changing its size. --> 703 <flag name="bottom" value="0x50" /> 704 </attr> 705 <attr name="collapseIcon" format="reference" /> 706 </declare-styleable> 707 708 <declare-styleable name="PopupWindowBackgroundState"> 709 <!-- State identifier indicating the popup will be above the anchor. --> 710 <attr name="state_above_anchor" format="boolean" /> 711 </declare-styleable> 712 713</resources> 714