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