attrs.xml revision 968c593da191be785184885043cbf9b70538ada5
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 <!-- EditText text foreground color. --> 207 <attr name="editTextColor" format="reference|color" /> 208 <!-- EditText background drawable. --> 209 <attr name="editTextBackground" format="reference" /> 210 211 <!-- ============================ --> 212 <!-- SearchView styles and assets --> 213 <!-- ============================ --> 214 <eat-comment /> 215 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --> 216 <attr name="textAppearanceSearchResultTitle" format="reference" /> 217 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --> 218 <attr name="textAppearanceSearchResultSubtitle" format="reference" /> 219 <!-- Text color for urls in search suggestions, used by things like global search --> 220 <attr name="textColorSearchUrl" format="reference|color" /> 221 <!-- Style for the search query widget. --> 222 <attr name="searchViewStyle" format="reference" /> 223 224 <!-- =========== --> 225 <!-- List styles --> 226 <!-- =========== --> 227 <eat-comment /> 228 229 <!-- The preferred list item height. --> 230 <attr name="listPreferredItemHeight" format="dimension"/> 231 <!-- A smaller, sleeker list item height. --> 232 <attr name="listPreferredItemHeightSmall" format="dimension"/> 233 <!-- A larger, more robust list item height. --> 234 <attr name="listPreferredItemHeightLarge" format="dimension"/> 235 236 <!-- The preferred padding along the left edge of list items. --> 237 <attr name="listPreferredItemPaddingLeft" format="dimension"/> 238 <!-- The preferred padding along the right edge of list items. --> 239 <attr name="listPreferredItemPaddingRight" format="dimension"/> 240 241 <!-- ListPopupWindow compatibility --> 242 <attr name="dropDownListViewStyle" format="reference"/> 243 <attr name="listPopupWindowStyle" format="reference"/> 244 245 <!-- The preferred TextAppearance for the primary text of list items. --> 246 <attr name="textAppearanceListItem" format="reference"/> 247 <!-- The preferred TextAppearance for the primary text of small list items. --> 248 <attr name="textAppearanceListItemSmall" format="reference"/> 249 250 251 <!-- ============ --> 252 <!-- Panel styles --> 253 <!-- ============ --> 254 <eat-comment /> 255 256 <!-- Default Panel Menu width. --> 257 <attr name="panelMenuListWidth" format="dimension" /> 258 259 <!-- Default Panel Menu style. --> 260 <attr name="panelMenuListTheme" format="reference" /> 261 262 <!-- Drawable used as a background for selected list items. --> 263 <attr name="listChoiceBackgroundIndicator" format="reference" /> 264 265 <!-- ============= --> 266 <!-- Color palette --> 267 <!-- ============= --> 268 <eat-comment /> 269 270 <!-- The primary branding color for the app. By default, this is the color applied to the 271 action bar background. --> 272 <attr name="colorPrimary" format="color" /> 273 274 <!-- Dark variant of the primary branding color. By default, this is the color applied to 275 the status bar (via statusBarColor) and navigation bar (via navigationBarColor). --> 276 <attr name="colorPrimaryDark" format="color" /> 277 278 <!-- Bright complement to the primary branding color. By default, this is the color applied 279 to framework controls (via colorControlActivated). --> 280 <attr name="colorAccent" format="color" /> 281 282 <!-- The color applied to framework controls in their normal state. --> 283 <attr name="colorControlNormal" format="color" /> 284 285 <!-- The color applied to framework controls in their activated (ex. checked) state. --> 286 <attr name="colorControlActivated" format="color" /> 287 288 <!-- The color applied to framework control highlights (ex. ripples, list selectors). --> 289 <attr name="colorControlHighlight" format="color" /> 290 291 <!-- The color applied to framework buttons in their normal state. --> 292 <attr name="colorButtonNormal" format="color" /> 293 294 </declare-styleable> 295 296 297 <!-- ============================================ --> 298 299 <!-- Attributes used to style the Action Bar. 300 These should be set on your theme; the default actionBarStyle will 301 propagate them to the correct elements as needed. 302 303 Please Note: when overriding attributes for an ActionBar style 304 you must specify each attribute twice: once with the "android:" 305 namespace prefix and once without. --> 306 <declare-styleable name="ActionBar"> 307 <!-- The type of navigation to use. --> 308 <attr name="navigationMode"> 309 <!-- Normal static title text --> 310 <enum name="normal" value="0"/> 311 <!-- The action bar will use a selection list for navigation. --> 312 <enum name="listMode" value="1"/> 313 <!-- The action bar will use a series of horizontal tabs for navigation. --> 314 <enum name="tabMode" value="2"/> 315 </attr> 316 <!-- Options affecting how the action bar is displayed. --> 317 <attr name="displayOptions"> 318 <flag name="none" value="0" /> 319 <flag name="useLogo" value="0x1"/> 320 <flag name="showHome" value="0x2"/> 321 <flag name="homeAsUp" value="0x4"/> 322 <flag name="showTitle" value="0x8"/> 323 <flag name="showCustom" value="0x10"/> 324 <flag name="disableHome" value="0x20"/> 325 </attr> 326 <!-- Specifies title text used for navigationMode="normal" --> 327 <attr name="title"/> 328 <!-- Specifies subtitle text used for navigationMode="normal" --> 329 <attr name="subtitle" format="string"/> 330 <!-- Specifies a style to use for title text. --> 331 <attr name="titleTextStyle" format="reference"/> 332 <!-- Specifies a style to use for subtitle text. --> 333 <attr name="subtitleTextStyle" format="reference"/> 334 <!-- Specifies the drawable used for the application icon. --> 335 <attr name="icon" format="reference"/> 336 <!-- Specifies the drawable used for the application logo. --> 337 <attr name="logo" format="reference"/> 338 <!-- Specifies the drawable used for item dividers. --> 339 <attr name="divider" format="reference"/> 340 <!-- Specifies a background drawable for the action bar. --> 341 <attr name="background" format="reference"/> 342 <!-- Specifies a background drawable for a second stacked row of the action bar. --> 343 <attr name="backgroundStacked" format="reference|color"/> 344 <!-- Specifies a background drawable for the bottom component of a split action bar. --> 345 <attr name="backgroundSplit" format="reference|color"/> 346 <!-- Specifies a layout for custom navigation. Overrides navigationMode. --> 347 <attr name="customNavigationLayout" format="reference"/> 348 <!-- Specifies a fixed height. --> 349 <attr name="height"/> 350 <!-- Specifies a layout to use for the "home" section of the action bar. --> 351 <attr name="homeLayout" format="reference"/> 352 <!-- Specifies a style resource to use for an embedded progress bar. --> 353 <attr name="progressBarStyle" format="reference"/> 354 <!-- Specifies a style resource to use for an indeterminate progress spinner. --> 355 <attr name="indeterminateProgressStyle" format="reference"/> 356 <!-- Specifies the horizontal padding on either end for an embedded progress bar. --> 357 <attr name="progressBarPadding" format="dimension"/> 358 <!-- Up navigation glyph --> 359 <attr name="homeAsUpIndicator" /> 360 <!-- Specifies padding that should be applied to the left and right sides of 361 system-provided items in the bar. --> 362 <attr name="itemPadding" format="dimension"/> 363 <!-- Set true to hide the action bar on a vertical nested scroll of content. --> 364 <attr name="hideOnContentScroll" format="boolean"/> 365 <!-- Minimum inset for content views within a bar. Navigation buttons and 366 menu views are excepted. Only valid for some themes and configurations. --> 367 <attr name="contentInsetStart" format="dimension"/> 368 <!-- Minimum inset for content views within a bar. Navigation buttons and 369 menu views are excepted. Only valid for some themes and configurations. --> 370 <attr name="contentInsetEnd" format="dimension"/> 371 <!-- Minimum inset for content views within a bar. Navigation buttons and 372 menu views are excepted. Only valid for some themes and configurations. --> 373 <attr name="contentInsetLeft" format="dimension"/> 374 <!-- Minimum inset for content views within a bar. Navigation buttons and 375 menu views are excepted. Only valid for some themes and configurations. --> 376 <attr name="contentInsetRight" format="dimension"/> 377 <!-- Elevation for the action bar itself --> 378 <attr name="elevation" format="dimension" /> 379 </declare-styleable> 380 381 <!-- Valid LayoutParams for views placed in the action bar as custom views. --> 382 <declare-styleable name="ActionBarLayout"> 383 <attr name="android:layout_gravity"/> 384 </declare-styleable> 385 386 <declare-styleable name="ActionMenuItemView"> 387 <attr name="android:minWidth"/> 388 </declare-styleable> 389 390 <declare-styleable name="ActionMode"> 391 <!-- Specifies a style to use for title text. --> 392 <attr name="titleTextStyle"/> 393 <!-- Specifies a style to use for subtitle text. --> 394 <attr name="subtitleTextStyle"/> 395 <!-- Specifies a background for the action mode bar. --> 396 <attr name="background"/> 397 <!-- Specifies a background for the split action mode bar. --> 398 <attr name="backgroundSplit"/> 399 <!-- Specifies a fixed height for the action mode bar. --> 400 <attr name="height"/> 401 </declare-styleable> 402 403 <declare-styleable name="View"> 404 <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. --> 405 <attr name="paddingStart" format="dimension"/> 406 <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. --> 407 <attr name="paddingEnd" format="dimension"/> 408 409 <!-- Boolean that controls whether a view can take focus. By default the user can not 410 move focus to a view; by setting this attribute to true the view is 411 allowed to take focus. This value does not impact the behavior of 412 directly calling {@link android.view.View#requestFocus}, which will 413 always request focus regardless of this view. It only impacts where 414 focus navigation will try to move focus. --> 415 <attr name="android:focusable" /> 416 </declare-styleable> 417 418 <declare-styleable name="MenuView"> 419 <!-- Default appearance of menu item text. --> 420 <attr name="android:itemTextAppearance"/> 421 <!-- Default horizontal divider between rows of menu items. --> 422 <attr name="android:horizontalDivider"/> 423 <!-- Default vertical divider between menu items. --> 424 <attr name="android:verticalDivider"/> 425 <!-- Default background for the menu header. --> 426 <attr name="android:headerBackground"/> 427 <!-- Default background for each menu item. --> 428 <attr name="android:itemBackground"/> 429 <!-- Default animations for the menu. --> 430 <attr name="android:windowAnimationStyle"/> 431 <!-- Default disabled icon alpha for each menu item that shows an icon. --> 432 <attr name="android:itemIconDisabledAlpha"/> 433 <!-- Whether space should be reserved in layout when an icon is missing. --> 434 <attr name="android:preserveIconSpacing"/> 435 </declare-styleable> 436 <declare-styleable name="ActionMenuView"> 437 <!-- Size of padding on either end of a divider. --> 438 </declare-styleable> 439 440 <!-- Base attributes that are available to all groups. --> 441 <declare-styleable name="MenuGroup"> 442 443 <!-- The ID of the group. --> 444 <attr name="android:id" /> 445 446 <!-- The category applied to all items within this group. 447 (This will be or'ed with the orderInCategory attribute.) --> 448 <attr name="android:menuCategory" /> 449 450 <!-- The order within the category applied to all items within this group. 451 (This will be or'ed with the category attribute.) --> 452 <attr name="android:orderInCategory" /> 453 454 <!-- Whether the items are capable of displaying a check mark. --> 455 <attr name="android:checkableBehavior" /> 456 457 <!-- Whether the items are shown/visible. --> 458 <attr name="android:visible" /> 459 460 <!-- Whether the items are enabled. --> 461 <attr name="android:enabled" /> 462 463 </declare-styleable> 464 465 <!-- Base attributes that are available to all Item objects. --> 466 <declare-styleable name="MenuItem"> 467 468 <!-- The ID of the item. --> 469 <attr name="android:id" /> 470 471 <!-- The category applied to the item. 472 (This will be or'ed with the orderInCategory attribute.) --> 473 <attr name="android:menuCategory" /> 474 475 <!-- The order within the category applied to the item. 476 (This will be or'ed with the category attribute.) --> 477 <attr name="android:orderInCategory" /> 478 479 <!-- The title associated with the item. --> 480 <attr name="android:title" /> 481 482 <!-- The condensed title associated with the item. This is used in situations where the 483 normal title may be too long to be displayed. --> 484 <attr name="android:titleCondensed" /> 485 486 <!-- The icon associated with this item. This icon will not always be shown, so 487 the title should be sufficient in describing this item. --> 488 <attr name="android:icon" /> 489 490 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard 491 with alphabetic keys. --> 492 <attr name="android:alphabeticShortcut" /> 493 494 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) 495 keyboard. --> 496 <attr name="android:numericShortcut" /> 497 498 <!-- Whether the item is capable of displaying a check mark. --> 499 <attr name="android:checkable" /> 500 501 <!-- Whether the item is checked. Note that you must first have enabled checking with 502 the checkable attribute or else the check mark will not appear. --> 503 <attr name="android:checked" /> 504 505 <!-- Whether the item is shown/visible. --> 506 <attr name="android:visible" /> 507 508 <!-- Whether the item is enabled. --> 509 <attr name="android:enabled" /> 510 511 <!-- Name of a method on the Context used to inflate the menu that will be 512 called when the item is clicked. --> 513 <attr name="android:onClick" /> 514 515 <!-- How this item should display in the Action Bar, if present. --> 516 <attr name="showAsAction"> 517 <!-- Never show this item in an action bar, show it in the overflow menu instead. 518 Mutually exclusive with "ifRoom" and "always". --> 519 <flag name="never" value="0" /> 520 <!-- Show this item in an action bar if there is room for it as determined 521 by the system. Favor this option over "always" where possible. 522 Mutually exclusive with "never" and "always". --> 523 <flag name="ifRoom" value="1" /> 524 <!-- Always show this item in an actionbar, even if it would override 525 the system's limits of how much stuff to put there. This may make 526 your action bar look bad on some screens. In most cases you should 527 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". --> 528 <flag name="always" value="2" /> 529 <!-- When this item is shown as an action in the action bar, show a text 530 label with it even if it has an icon representation. --> 531 <flag name="withText" value="4" /> 532 <!-- This item's action view collapses to a normal menu 533 item. When expanded, the action view takes over a 534 larger segment of its container. --> 535 <flag name="collapseActionView" value="8" /> 536 </attr> 537 538 <!-- An optional layout to be used as an action view. 539 See {@link android.view.MenuItem#setActionView(android.view.View)} 540 for more info. --> 541 <attr name="actionLayout" format="reference" /> 542 543 <!-- The name of an optional View class to instantiate and use as an 544 action view. See {@link android.view.MenuItem#setActionView(android.view.View)} 545 for more info. --> 546 <attr name="actionViewClass" format="string" /> 547 548 <!-- The name of an optional ActionProvider class to instantiate an action view 549 and perform operations such as default action for that menu item. 550 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} 551 for more info. --> 552 <attr name="actionProviderClass" format="string" /> 553 554 </declare-styleable> 555 556 <declare-styleable name="Spinner"> 557 <!-- The prompt to display when the spinner's dialog is shown. --> 558 <attr name="prompt" format="reference" /> 559 <!-- Display mode for spinner options. --> 560 <attr name="spinnerMode" format="enum"> 561 <!-- Spinner options will be presented to the user as a dialog window. --> 562 <enum name="dialog" value="0" /> 563 <!-- Spinner options will be presented to the user as an inline dropdown 564 anchored to the spinner widget itself. --> 565 <enum name="dropdown" value="1" /> 566 </attr> 567 <!-- List selector to use for spinnerMode="dropdown" display. --> 568 <attr name="android:dropDownSelector" /> 569 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". --> 570 <attr name="android:popupBackground" /> 571 <!-- Vertical offset from the spinner widget for positioning the dropdown in 572 spinnerMode="dropdown". --> 573 <attr name="android:dropDownVerticalOffset" /> 574 <!-- Horizontal offset from the spinner widget for positioning the dropdown 575 in spinnerMode="dropdown". --> 576 <attr name="android:dropDownHorizontalOffset" /> 577 <!-- Width of the dropdown in spinnerMode="dropdown". --> 578 <attr name="android:dropDownWidth" /> 579 <!-- Reference to a layout to use for displaying a prompt in the dropdown for 580 spinnerMode="dropdown". This layout must contain a TextView with the id 581 {@code @android:id/text1} to be populated with the prompt text. --> 582 <attr name="popupPromptView" format="reference" /> 583 <!-- Gravity setting for positioning the currently selected item. --> 584 <attr name="android:gravity" /> 585 <!-- Whether this spinner should mark child views as enabled/disabled when 586 the spinner itself is enabled/disabled. --> 587 <attr name="disableChildrenWhenDisabled" format="boolean" /> 588 </declare-styleable> 589 590 <declare-styleable name="SearchView"> 591 <!-- The layout to use for the search view. --> 592 <attr name="layout" format="reference" /> 593 <!-- The default state of the SearchView. If true, it will be iconified when not in 594 use and expanded when clicked. --> 595 <attr name="iconifiedByDefault" format="boolean" /> 596 <!-- An optional maximum width of the SearchView. --> 597 <attr name="android:maxWidth" /> 598 <!-- An optional query hint string to be displayed in the empty query field. --> 599 <attr name="queryHint" format="string" /> 600 <!-- The IME options to set on the query text field. --> 601 <attr name="android:imeOptions" /> 602 <!-- The input type to set on the query text field. --> 603 <attr name="android:inputType" /> 604 <!-- Close button icon --> 605 <attr name="closeIcon" format="reference" /> 606 <!-- Go button icon --> 607 <attr name="goIcon" format="reference" /> 608 <!-- Search icon --> 609 <attr name="searchIcon" format="reference" /> 610 <!-- Voice button icon --> 611 <attr name="voiceIcon" format="reference" /> 612 <!-- Commit icon shown in the query suggestion row --> 613 <attr name="commitIcon" format="reference" /> 614 <!-- Layout for query suggestion rows --> 615 <attr name="suggestionRowLayout" format="reference" /> 616 <!-- Background for the section containing the search query --> 617 <attr name="queryBackground" format="reference" /> 618 <!-- Background for the section containing the action (e.g. voice search) --> 619 <attr name="submitBackground" format="reference" /> 620 </declare-styleable> 621 622 <!-- Attrbitutes for a ActivityChooserView. --> 623 <declare-styleable name="ActivityChooserView"> 624 <!-- The maximal number of items initially shown in the activity list. --> 625 <attr name="initialActivityCount" format="string" /> 626 <!-- The drawable to show in the button for expanding the activities overflow popup. 627 <strong>Note:</strong> Clients would like to set this drawable 628 as a clue about the action the chosen activity will perform. For 629 example, if share activity is to be chosen the drawable should 630 give a clue that sharing is to be performed. 631 --> 632 <attr name="expandActivityOverflowButtonDrawable" format="reference" /> 633 </declare-styleable> 634 635 <declare-styleable name="CompatTextView"> 636 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --> 637 <attr name="textAllCaps" format="reference|boolean" /> 638 </declare-styleable> 639 640 <declare-styleable name="LinearLayoutCompat"> 641 <!-- Should the layout be a column or a row? Use "horizontal" 642 for a row, "vertical" for a column. The default is 643 horizontal. --> 644 <attr name="android:orientation" /> 645 <attr name="android:gravity" /> 646 <!-- When set to false, prevents the layout from aligning its children's 647 baselines. This attribute is particularly useful when the children 648 use different values for gravity. The default value is true. --> 649 <attr name="android:baselineAligned" /> 650 <!-- When a linear layout is part of another layout that is baseline 651 aligned, it can specify which of its children to baseline align to 652 (that is, which child TextView).--> 653 <attr name="android:baselineAlignedChildIndex" /> 654 <!-- Defines the maximum weight sum. If unspecified, the sum is computed 655 by adding the layout_weight of all of the children. This can be 656 used for instance to give a single child 50% of the total available 657 space by giving it a layout_weight of 0.5 and setting the weightSum 658 to 1.0. --> 659 <attr name="android:weightSum" /> 660 <!-- When set to true, all children with a weight will be considered having 661 the minimum size of the largest child. If false, all children are 662 measured normally. --> 663 <attr name="measureWithLargestChild" format="boolean" /> 664 <!-- Drawable to use as a vertical divider between buttons. --> 665 <attr name="divider" /> 666 <!-- Setting for which dividers to show. --> 667 <attr name="showDividers"> 668 <flag name="none" value="0" /> 669 <flag name="beginning" value="1" /> 670 <flag name="middle" value="2" /> 671 <flag name="end" value="4" /> 672 </attr> 673 <!-- Size of padding on either end of a divider. --> 674 <attr name="dividerPadding" format="dimension" /> 675 </declare-styleable> 676 677 <declare-styleable name="LinearLayoutCompat_Layout"> 678 <attr name="android:layout_width" /> 679 <attr name="android:layout_height" /> 680 <attr name="android:layout_weight" /> 681 <attr name="android:layout_gravity" /> 682 </declare-styleable> 683 684 <declare-styleable name="Toolbar"> 685 <attr name="titleTextAppearance" format="reference" /> 686 <attr name="subtitleTextAppearance" format="reference" /> 687 <attr name="title" /> 688 <attr name="subtitle" /> 689 <attr name="android:gravity" /> 690 <attr name="titleMargins" format="dimension" /> 691 <attr name="titleMarginStart" format="dimension" /> 692 <attr name="titleMarginEnd" format="dimension" /> 693 <attr name="titleMarginTop" format="dimension" /> 694 <attr name="titleMarginBottom" format="dimension" /> 695 <attr name="contentInsetStart" /> 696 <attr name="contentInsetEnd" /> 697 <attr name="contentInsetLeft" /> 698 <attr name="contentInsetRight" /> 699 <attr name="maxButtonHeight" format="dimension" /> 700 701 <!-- Use Theme toolbarNavigationButtonStyle instead --> 702 <!-- <attr name="navigationButtonStyle" format="reference" /> --> 703 704 <attr name="buttonGravity"> 705 <!-- Push object to the top of its container, not changing its size. --> 706 <flag name="top" value="0x30" /> 707 <!-- Push object to the bottom of its container, not changing its size. --> 708 <flag name="bottom" value="0x50" /> 709 </attr> 710 <attr name="collapseIcon" format="reference" /> 711 </declare-styleable> 712 713 <declare-styleable name="PopupWindowBackgroundState"> 714 <!-- State identifier indicating the popup will be above the anchor. --> 715 <attr name="state_above_anchor" format="boolean" /> 716 </declare-styleable> 717 718</resources> 719