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