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