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="AppCompatTheme"> 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 there should be no title on this window. --> 46 <attr name="windowNoTitle" format="boolean" /> 47 48 <!-- Flag indicating whether this window's Action Bar should overlay 49 application content. Does nothing if the window would not 50 have an Action Bar. --> 51 <attr name="windowActionBarOverlay" format="boolean" /> 52 53 <!-- Flag indicating whether action modes should overlay window content 54 when there is not reserved space for their UI (such as an Action Bar). --> 55 <attr name="windowActionModeOverlay" format="boolean" /> 56 57 <!-- A fixed width for the window along the major axis of the screen, 58 that is, when in landscape. Can be either an absolute dimension 59 or a fraction of the screen size in that dimension. --> 60 <attr name="windowFixedWidthMajor" format="dimension|fraction" /> 61 <!-- A fixed height for the window along the minor axis of the screen, 62 that is, when in landscape. Can be either an absolute dimension 63 or a fraction of the screen size in that dimension. --> 64 <attr name="windowFixedHeightMinor" format="dimension|fraction" /> 65 66 <!-- A fixed width for the window along the minor axis of the screen, 67 that is, when in portrait. Can be either an absolute dimension 68 or a fraction of the screen size in that dimension. --> 69 <attr name="windowFixedWidthMinor" format="dimension|fraction" /> 70 <!-- A fixed height for the window along the major axis of the screen, 71 that is, when in portrait. Can be either an absolute dimension 72 or a fraction of the screen size in that dimension. --> 73 <attr name="windowFixedHeightMajor" format="dimension|fraction" /> 74 75 <!-- The minimum width the window is allowed to be, along the major 76 axis of the screen. That is, when in landscape. Can be either 77 an absolute dimension or a fraction of the screen size in that 78 dimension. --> 79 <attr name="windowMinWidthMajor" format="dimension|fraction" /> 80 <!-- The minimum width the window is allowed to be, along the minor 81 axis of the screen. That is, when in portrait. Can be either 82 an absolute dimension or a fraction of the screen size in that 83 dimension. --> 84 <attr name="windowMinWidthMinor" format="dimension|fraction" /> 85 86 <attr name="android:windowIsFloating" /> 87 <attr name="android:windowAnimationStyle" /> 88 89 <!-- =================== --> 90 <!-- Action bar styles --> 91 <!-- =================== --> 92 <eat-comment /> 93 <!-- Default style for tabs within an action bar --> 94 <attr name="actionBarTabStyle" format="reference" /> 95 <attr name="actionBarTabBarStyle" format="reference" /> 96 <attr name="actionBarTabTextStyle" format="reference" /> 97 <attr name="actionOverflowButtonStyle" format="reference" /> 98 <attr name="actionOverflowMenuStyle" format="reference" /> 99 <!-- Reference to a theme that should be used to inflate popups 100 shown by widgets in the action bar. --> 101 <attr name="actionBarPopupTheme" format="reference" /> 102 <!-- Reference to a style for the Action Bar --> 103 <attr name="actionBarStyle" format="reference" /> 104 <!-- Reference to a style for the split Action Bar. This style 105 controls the split component that holds the menu/action 106 buttons. actionBarStyle is still used for the primary 107 bar. --> 108 <attr name="actionBarSplitStyle" format="reference" /> 109 <!-- Reference to a theme that should be used to inflate the 110 action bar. This will be inherited by any widget inflated 111 into the action bar. --> 112 <attr name="actionBarTheme" format="reference" /> 113 <!-- Reference to a theme that should be used to inflate widgets 114 and layouts destined for the action bar. Most of the time 115 this will be a reference to the current theme, but when 116 the action bar has a significantly different contrast 117 profile than the rest of the activity the difference 118 can become important. If this is set to @null the current 119 theme will be used.--> 120 <attr name="actionBarWidgetTheme" format="reference" /> 121 <!-- Size of the Action Bar, including the contextual 122 bar used to present Action Modes. --> 123 <attr name="actionBarSize" format="dimension" > 124 <enum name="wrap_content" value="0" /> 125 </attr> 126 <!-- Custom divider drawable to use for elements in the action bar. --> 127 <attr name="actionBarDivider" format="reference" /> 128 <!-- Custom item state list drawable background for action bar items. --> 129 <attr name="actionBarItemBackground" format="reference" /> 130 <!-- TextAppearance style that will be applied to text that 131 appears within action menu items. --> 132 <attr name="actionMenuTextAppearance" format="reference" /> 133 <!-- Color for text that appears within action menu items. --> 134 <!-- Color for text that appears within action menu items. --> 135 <attr name="actionMenuTextColor" format="color|reference"/> 136 137 138 <!-- =================== --> 139 <!-- Action mode styles --> 140 <!-- =================== --> 141 <eat-comment/> 142 <attr name="actionModeStyle" format="reference"/> 143 <attr name="actionModeCloseButtonStyle" format="reference"/> 144 <!-- Background drawable to use for action mode UI --> 145 <attr name="actionModeBackground" format="reference"/> 146 <!-- Background drawable to use for action mode UI in the lower split bar --> 147 <attr name="actionModeSplitBackground" format="reference"/> 148 <!-- Drawable to use for the close action mode button --> 149 <attr name="actionModeCloseDrawable" format="reference"/> 150 <!-- Drawable to use for the Cut action button in Contextual Action Bar --> 151 <attr name="actionModeCutDrawable" format="reference"/> 152 <!-- Drawable to use for the Copy action button in Contextual Action Bar --> 153 <attr name="actionModeCopyDrawable" format="reference"/> 154 <!-- Drawable to use for the Paste action button in Contextual Action Bar --> 155 <attr name="actionModePasteDrawable" format="reference"/> 156 <!-- Drawable to use for the Select all action button in Contextual Action Bar --> 157 <attr name="actionModeSelectAllDrawable" format="reference"/> 158 <!-- Drawable to use for the Share action button in WebView selection action modes --> 159 <attr name="actionModeShareDrawable" format="reference"/> 160 <!-- Drawable to use for the Find action button in WebView selection action modes --> 161 <attr name="actionModeFindDrawable" format="reference"/> 162 <!-- Drawable to use for the Web Search action button in WebView selection action modes --> 163 <attr name="actionModeWebSearchDrawable" format="reference"/> 164 165 <!-- PopupWindow style to use for action modes when showing as a window overlay. --> 166 <attr name="actionModePopupWindowStyle" format="reference"/> 167 168 169 <!-- =================== --> 170 <!-- Text styles --> 171 <!-- =================== --> 172 <eat-comment /> 173 <!-- Text color, typeface, size, and style for the text inside of a popup menu. --> 174 <attr name="textAppearanceLargePopupMenu" format="reference"/> 175 <!-- Text color, typeface, size, and style for small text inside of a popup menu. --> 176 <attr name="textAppearanceSmallPopupMenu" format="reference"/> 177 <!-- Text color, typeface, size, and style for header text inside of a popup menu. --> 178 <attr name="textAppearancePopupMenuHeader" format="reference" /> 179 180 181 <!-- =================== --> 182 <!-- Dialog styles --> 183 <!-- =================== --> 184 <eat-comment /> 185 186 <!-- Theme to use for dialogs spawned from this theme. --> 187 <attr name="dialogTheme" format="reference" /> 188 <!-- Preferred padding for dialog content. --> 189 <attr name="dialogPreferredPadding" format="dimension" /> 190 <!-- The list divider used in alert dialogs. --> 191 <attr name="listDividerAlertDialog" format="reference" /> 192 <!-- Preferred corner radius of dialogs. --> 193 <attr name="dialogCornerRadius" format="dimension" /> 194 195 <!-- =================== --> 196 <!-- Other widget styles --> 197 <!-- =================== --> 198 <eat-comment /> 199 200 <!-- Default ActionBar dropdown style. --> 201 <attr name="actionDropDownStyle" format="reference"/> 202 <!-- The preferred item height for dropdown lists. --> 203 <attr name="dropdownListPreferredItemHeight" format="dimension"/> 204 <!-- Default Spinner style. --> 205 <attr name="spinnerDropDownItemStyle" format="reference" /> 206 <!-- Specifies a drawable to use for the 'home as up' indicator. --> 207 <attr name="homeAsUpIndicator" format="reference"/> 208 209 <!-- Default action button style. --> 210 <attr name="actionButtonStyle" format="reference"/> 211 212 <!-- Style for button bars --> 213 <attr name="buttonBarStyle" format="reference"/> 214 <!-- Style for buttons within button bars --> 215 <attr name="buttonBarButtonStyle" format="reference"/> 216 <!-- A style that may be applied to buttons or other selectable items 217 that should react to pressed and focus states, but that do not 218 have a clear visual border along the edges. --> 219 <attr name="selectableItemBackground" format="reference"/> 220 <!-- Background drawable for borderless standalone items that need focus/pressed states. --> 221 <attr name="selectableItemBackgroundBorderless" format="reference" /> 222 <!-- Style for buttons without an explicit border, often used in groups. --> 223 <attr name="borderlessButtonStyle" format="reference" /> 224 <!-- A drawable that may be used as a vertical divider between visual elements. --> 225 <attr name="dividerVertical" format="reference"/> 226 <!-- A drawable that may be used as a horizontal divider between visual elements. --> 227 <attr name="dividerHorizontal" format="reference"/> 228 <!-- Default ActivityChooserView style. --> 229 <attr name="activityChooserViewStyle" format="reference" /> 230 231 <!-- Default Toolbar style. --> 232 <attr name="toolbarStyle" format="reference" /> 233 <!-- Default Toolar NavigationButtonStyle --> 234 <attr name="toolbarNavigationButtonStyle" format="reference" /> 235 236 <!-- Default PopupMenu style. --> 237 <attr name="popupMenuStyle" format="reference"/> 238 <!-- Default PopupWindow style. --> 239 <attr name="popupWindowStyle" format="reference" /> 240 241 <!-- EditText text foreground color. --> 242 <attr name="editTextColor" format="reference|color" /> 243 <!-- EditText background drawable. --> 244 <attr name="editTextBackground" format="reference" /> 245 246 <!-- ImageButton background drawable. --> 247 <attr name="imageButtonStyle" format="reference" /> 248 249 <!-- ============================ --> 250 <!-- SearchView styles and assets --> 251 <!-- ============================ --> 252 <eat-comment /> 253 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --> 254 <attr name="textAppearanceSearchResultTitle" format="reference" /> 255 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --> 256 <attr name="textAppearanceSearchResultSubtitle" format="reference" /> 257 <!-- Text color for urls in search suggestions, used by things like global search --> 258 <attr name="textColorSearchUrl" format="reference|color" /> 259 <!-- Style for the search query widget. --> 260 <attr name="searchViewStyle" format="reference" /> 261 262 <!-- =========== --> 263 <!-- List styles --> 264 <!-- =========== --> 265 <eat-comment /> 266 267 <!-- The preferred list item height. --> 268 <attr name="listPreferredItemHeight" format="dimension"/> 269 <!-- A smaller, sleeker list item height. --> 270 <attr name="listPreferredItemHeightSmall" format="dimension"/> 271 <!-- A larger, more robust list item height. --> 272 <attr name="listPreferredItemHeightLarge" format="dimension"/> 273 274 <!-- The preferred padding along the left edge of list items. --> 275 <attr name="listPreferredItemPaddingLeft" format="dimension"/> 276 <!-- The preferred padding along the right edge of list items. --> 277 <attr name="listPreferredItemPaddingRight" format="dimension"/> 278 279 <!-- ListPopupWindow compatibility --> 280 <attr name="dropDownListViewStyle" format="reference"/> 281 <attr name="listPopupWindowStyle" format="reference"/> 282 283 <!-- The preferred TextAppearance for the primary text of list items. --> 284 <attr name="textAppearanceListItem" format="reference"/> 285 <!-- The preferred TextAppearance for the secondary text of list items. --> 286 <attr name="textAppearanceListItemSecondary" format="reference" /> 287 <!-- The preferred TextAppearance for the primary text of small list items. --> 288 <attr name="textAppearanceListItemSmall" format="reference"/> 289 290 <!-- ============ --> 291 <!-- Panel styles --> 292 <!-- ============ --> 293 <eat-comment /> 294 295 <!-- The background of a panel when it is inset from the left and right edges of the screen. --> 296 <attr name="panelBackground" format="reference" /> 297 <!-- Default Panel Menu width. --> 298 <attr name="panelMenuListWidth" format="dimension" /> 299 <!-- Default Panel Menu style. --> 300 <attr name="panelMenuListTheme" format="reference" /> 301 <!-- Drawable used as a background for selected list items. --> 302 <attr name="listChoiceBackgroundIndicator" format="reference" /> 303 304 <!-- ============= --> 305 <!-- Color palette --> 306 <!-- ============= --> 307 <eat-comment /> 308 309 <!-- The primary branding color for the app. By default, this is the color applied to the 310 action bar background. --> 311 <attr name="colorPrimary" format="color" /> 312 313 <!-- Dark variant of the primary branding color. By default, this is the color applied to 314 the status bar (via statusBarColor) and navigation bar (via navigationBarColor). --> 315 <attr name="colorPrimaryDark" format="color" /> 316 317 <!-- Bright complement to the primary branding color. By default, this is the color applied 318 to framework controls (via colorControlActivated). --> 319 <attr name="colorAccent" format="color" /> 320 321 <!-- The color applied to framework controls in their normal state. --> 322 <attr name="colorControlNormal" format="color" /> 323 324 <!-- The color applied to framework controls in their activated (ex. checked) state. --> 325 <attr name="colorControlActivated" format="color" /> 326 327 <!-- The color applied to framework control highlights (ex. ripples, list selectors). --> 328 <attr name="colorControlHighlight" format="color" /> 329 330 <!-- The color applied to framework buttons in their normal state. --> 331 <attr name="colorButtonNormal" format="color" /> 332 333 <!-- The color applied to framework switch thumbs in their normal state. --> 334 <attr name="colorSwitchThumbNormal" format="color" /> 335 336 <!-- The background used by framework controls. --> 337 <attr name="controlBackground" format="reference" /> 338 339 <!-- Default color of background imagery for floating components, ex. dialogs, popups, and cards. --> 340 <attr name="colorBackgroundFloating" format="color" /> 341 342 <!-- ============ --> 343 <!-- Alert Dialog styles --> 344 <!-- ============ --> 345 <eat-comment /> 346 <attr name="alertDialogStyle" format="reference" /> 347 <attr name="alertDialogButtonGroupStyle" format="reference" /> 348 <attr name="alertDialogCenterButtons" format="boolean" /> 349 <!-- Theme to use for alert dialogs spawned from this theme. --> 350 <attr name="alertDialogTheme" format="reference" /> 351 352 <!-- Color of list item text in alert dialogs. --> 353 <attr name="textColorAlertDialogListItem" format="reference|color" /> 354 355 <!-- Style for the "positive" buttons within button bars --> 356 <attr name="buttonBarPositiveButtonStyle" format="reference" /> 357 358 <!-- Style for the "negative" buttons within button bars --> 359 <attr name="buttonBarNegativeButtonStyle" format="reference" /> 360 361 <!-- Style for the "neutral" buttons within button bars --> 362 <attr name="buttonBarNeutralButtonStyle" format="reference" /> 363 364 <!-- ===================== --> 365 <!-- Default widget styles --> 366 <!-- ===================== --> 367 <eat-comment /> 368 369 <!-- Default AutoCompleteTextView style. --> 370 <attr name="autoCompleteTextViewStyle" format="reference" /> 371 <!-- Normal Button style. --> 372 <attr name="buttonStyle" format="reference" /> 373 <!-- Small Button style. --> 374 <attr name="buttonStyleSmall" format="reference" /> 375 <!-- Default Checkbox style. --> 376 <attr name="checkboxStyle" format="reference" /> 377 <!-- Default CheckedTextView style. --> 378 <attr name="checkedTextViewStyle" format="reference" /> 379 <!-- Default EditText style. --> 380 <attr name="editTextStyle" format="reference" /> 381 <!-- Default RadioButton style. --> 382 <attr name="radioButtonStyle" format="reference" /> 383 <!-- Default RatingBar style. --> 384 <attr name="ratingBarStyle" format="reference" /> 385 <!-- Indicator RatingBar style. --> 386 <attr name="ratingBarStyleIndicator" format="reference" /> 387 <!-- Small indicator RatingBar style. --> 388 <attr name="ratingBarStyleSmall" format="reference" /> 389 <!-- Default SeekBar style. --> 390 <attr name="seekBarStyle" format="reference" /> 391 <!-- Default Spinner style. --> 392 <attr name="spinnerStyle" format="reference" /> 393 <!-- Default style for the Switch widget. --> 394 <attr name="switchStyle" format="reference" /> 395 396 <!-- Default menu-style ListView style. --> 397 <attr name="listMenuViewStyle" format="reference" /> 398 399 <!-- ===================== --> 400 <!-- Tooltip styles --> 401 <!-- ===================== --> 402 <eat-comment /> 403 404 <!-- Background to use for tooltips --> 405 <attr name="tooltipFrameBackground" format="reference" /> 406 <!-- Foreground color to use for tooltips --> 407 <attr name="tooltipForegroundColor" format="reference|color" /> 408 409 <!-- Color used for error states and things that need to be drawn to 410 the user's attention. --> 411 <attr name="colorError" format="reference|color" /> 412 413 <attr name="viewInflaterClass" format="string" /> 414 </declare-styleable> 415 416 417 <!-- ============================================ --> 418 419 <!-- Attributes used to style the Action Bar. 420 These should be set on your theme; the default actionBarStyle will 421 propagate them to the correct elements as needed. 422 423 Please Note: when overriding attributes for an ActionBar style 424 you must specify each attribute twice: once with the "android:" 425 namespace prefix and once without. --> 426 <declare-styleable name="ActionBar"> 427 <!-- The type of navigation to use. --> 428 <attr name="navigationMode"> 429 <!-- Normal static title text --> 430 <enum name="normal" value="0"/> 431 <!-- The action bar will use a selection list for navigation. --> 432 <enum name="listMode" value="1"/> 433 <!-- The action bar will use a series of horizontal tabs for navigation. --> 434 <enum name="tabMode" value="2"/> 435 </attr> 436 <!-- Options affecting how the action bar is displayed. --> 437 <attr name="displayOptions"> 438 <flag name="none" value="0" /> 439 <flag name="useLogo" value="0x1"/> 440 <flag name="showHome" value="0x2"/> 441 <flag name="homeAsUp" value="0x4"/> 442 <flag name="showTitle" value="0x8"/> 443 <flag name="showCustom" value="0x10"/> 444 <flag name="disableHome" value="0x20"/> 445 </attr> 446 <!-- Specifies title text used for navigationMode="normal" --> 447 <attr name="title"/> 448 <!-- Specifies subtitle text used for navigationMode="normal" --> 449 <attr name="subtitle" format="string"/> 450 <!-- Specifies a style to use for title text. --> 451 <attr name="titleTextStyle" format="reference"/> 452 <!-- Specifies a style to use for subtitle text. --> 453 <attr name="subtitleTextStyle" format="reference"/> 454 <!-- Specifies the drawable used for the application icon. --> 455 <attr name="icon" format="reference"/> 456 <!-- Specifies the drawable used for the application logo. --> 457 <attr name="logo" format="reference"/> 458 <!-- Specifies the drawable used for item dividers. --> 459 <attr name="divider" format="reference"/> 460 <!-- Specifies a background drawable for the action bar. --> 461 <attr name="background" format="reference"/> 462 <!-- Specifies a background drawable for a second stacked row of the action bar. --> 463 <attr name="backgroundStacked" format="reference|color"/> 464 <!-- Specifies a background drawable for the bottom component of a split action bar. --> 465 <attr name="backgroundSplit" format="reference|color"/> 466 <!-- Specifies a layout for custom navigation. Overrides navigationMode. --> 467 <attr name="customNavigationLayout" format="reference"/> 468 <!-- Specifies a fixed height. --> 469 <attr name="height"/> 470 <!-- Specifies a layout to use for the "home" section of the action bar. --> 471 <attr name="homeLayout" format="reference"/> 472 <!-- Specifies a style resource to use for an embedded progress bar. --> 473 <attr name="progressBarStyle" format="reference"/> 474 <!-- Specifies a style resource to use for an indeterminate progress spinner. --> 475 <attr name="indeterminateProgressStyle" format="reference"/> 476 <!-- Specifies the horizontal padding on either end for an embedded progress bar. --> 477 <attr name="progressBarPadding" format="dimension"/> 478 <!-- Up navigation glyph --> 479 <attr name="homeAsUpIndicator" /> 480 <!-- Specifies padding that should be applied to the left and right sides of 481 system-provided items in the bar. --> 482 <attr name="itemPadding" format="dimension"/> 483 <!-- Set true to hide the action bar on a vertical nested scroll of content. --> 484 <attr name="hideOnContentScroll" format="boolean"/> 485 <!-- Minimum inset for content views within a bar. Navigation buttons and 486 menu views are excepted. Only valid for some themes and configurations. --> 487 <attr name="contentInsetStart" format="dimension"/> 488 <!-- Minimum inset for content views within a bar. Navigation buttons and 489 menu views are excepted. Only valid for some themes and configurations. --> 490 <attr name="contentInsetEnd" format="dimension"/> 491 <!-- Minimum inset for content views within a bar. Navigation buttons and 492 menu views are excepted. Only valid for some themes and configurations. --> 493 <attr name="contentInsetLeft" format="dimension"/> 494 <!-- Minimum inset for content views within a bar. Navigation buttons and 495 menu views are excepted. Only valid for some themes and configurations. --> 496 <attr name="contentInsetRight" format="dimension"/> 497 <!-- Minimum inset for content views within a bar when a navigation button 498 is present, such as the Up button. Only valid for some themes and configurations. --> 499 <attr name="contentInsetStartWithNavigation" format="dimension" /> 500 <!-- Minimum inset for content views within a bar when actions from a menu 501 are present. Only valid for some themes and configurations. --> 502 <attr name="contentInsetEndWithActions" format="dimension" /> 503 <!-- Elevation for the action bar itself --> 504 <attr name="elevation" format="dimension" /> 505 <!-- Reference to a theme that should be used to inflate popups 506 shown by widgets in the action bar. --> 507 <attr name="popupTheme" format="reference" /> 508 </declare-styleable> 509 510 <!-- Valid LayoutParams for views placed in the action bar as custom views. --> 511 <declare-styleable name="ActionBarLayout"> 512 <attr name="android:layout_gravity"/> 513 </declare-styleable> 514 515 <declare-styleable name="ActionMenuItemView"> 516 <attr name="android:minWidth"/> 517 </declare-styleable> 518 519 <declare-styleable name="ActionMode"> 520 <!-- Specifies a style to use for title text. --> 521 <attr name="titleTextStyle"/> 522 <!-- Specifies a style to use for subtitle text. --> 523 <attr name="subtitleTextStyle"/> 524 <!-- Specifies a background for the action mode bar. --> 525 <attr name="background"/> 526 <!-- Specifies a background for the split action mode bar. --> 527 <attr name="backgroundSplit"/> 528 <!-- Specifies a fixed height for the action mode bar. --> 529 <attr name="height"/> 530 <!-- Specifies a layout to use for the "close" item at the starting edge. --> 531 <attr name="closeItemLayout" format="reference" /> 532 </declare-styleable> 533 534 <declare-styleable name="View"> 535 <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. --> 536 <attr name="paddingStart" format="dimension"/> 537 <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. --> 538 <attr name="paddingEnd" format="dimension"/> 539 <!-- Boolean that controls whether a view can take focus. By default the user can not 540 move focus to a view; by setting this attribute to true the view is 541 allowed to take focus. This value does not impact the behavior of 542 directly calling {@link android.view.View#requestFocus}, which will 543 always request focus regardless of this view. It only impacts where 544 focus navigation will try to move focus. --> 545 <attr name="android:focusable" /> 546 <!-- Deprecated. --> 547 <attr name="theme" format="reference" /> 548 <!-- Specifies a theme override for a view. When a theme override is set, the 549 view will be inflated using a {@link android.content.Context} themed with 550 the specified resource. --> 551 <attr name="android:theme" /> 552 </declare-styleable> 553 554 <declare-styleable name="ViewBackgroundHelper"> 555 <attr name="android:background" /> 556 <!-- Tint to apply to the background. --> 557 <attr name="backgroundTint" format="color" /> 558 559 <!-- Blending mode used to apply the background tint. --> 560 <attr name="backgroundTintMode"> 561 <!-- The tint is drawn on top of the drawable. 562 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 563 <enum name="src_over" value="3" /> 564 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 565 color channels are thrown out. [Sa * Da, Sc * Da] --> 566 <enum name="src_in" value="5" /> 567 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 568 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 569 <enum name="src_atop" value="9" /> 570 <!-- Multiplies the color and alpha channels of the drawable with those of 571 the tint. [Sa * Da, Sc * Dc] --> 572 <enum name="multiply" value="14" /> 573 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 574 <enum name="screen" value="15" /> 575 <!-- Combines the tint and icon color and alpha channels, clamping the 576 result to valid color values. Saturate(S + D) --> 577 <enum name="add" value="16" /> 578 </attr> 579 </declare-styleable> 580 581 <declare-styleable name="MenuView"> 582 <!-- Default appearance of menu item text. --> 583 <attr name="android:itemTextAppearance"/> 584 <!-- Default horizontal divider between rows of menu items. --> 585 <attr name="android:horizontalDivider"/> 586 <!-- Default vertical divider between menu items. --> 587 <attr name="android:verticalDivider"/> 588 <!-- Default background for the menu header. --> 589 <attr name="android:headerBackground"/> 590 <!-- Default background for each menu item. --> 591 <attr name="android:itemBackground"/> 592 <!-- Default animations for the menu. --> 593 <attr name="android:windowAnimationStyle"/> 594 <!-- Default disabled icon alpha for each menu item that shows an icon. --> 595 <attr name="android:itemIconDisabledAlpha"/> 596 <!-- Whether space should be reserved in layout when an icon is missing. --> 597 <attr name="preserveIconSpacing" format="boolean" /> 598 <!-- Drawable for the arrow icon indicating a particular item is a submenu. --> 599 <attr name="subMenuArrow" format="reference" /> 600 </declare-styleable> 601 <declare-styleable name="ActionMenuView"> 602 <!-- Size of padding on either end of a divider. --> 603 </declare-styleable> 604 605 <!-- Base attributes that are available to all groups. --> 606 <declare-styleable name="MenuGroup"> 607 608 <!-- The ID of the group. --> 609 <attr name="android:id" /> 610 611 <!-- The category applied to all items within this group. 612 (This will be or'ed with the orderInCategory attribute.) --> 613 <attr name="android:menuCategory" /> 614 615 <!-- The order within the category applied to all items within this group. 616 (This will be or'ed with the category attribute.) --> 617 <attr name="android:orderInCategory" /> 618 619 <!-- Whether the items are capable of displaying a check mark. --> 620 <attr name="android:checkableBehavior" /> 621 622 <!-- Whether the items are shown/visible. --> 623 <attr name="android:visible" /> 624 625 <!-- Whether the items are enabled. --> 626 <attr name="android:enabled" /> 627 628 </declare-styleable> 629 630 <!-- Base attributes that are available to all Item objects. --> 631 <declare-styleable name="MenuItem"> 632 633 <!-- The ID of the item. --> 634 <attr name="android:id" /> 635 636 <!-- The category applied to the item. 637 (This will be or'ed with the orderInCategory attribute.) --> 638 <attr name="android:menuCategory" /> 639 640 <!-- The order within the category applied to the item. 641 (This will be or'ed with the category attribute.) --> 642 <attr name="android:orderInCategory" /> 643 644 <!-- The title associated with the item. --> 645 <attr name="android:title" /> 646 647 <!-- The condensed title associated with the item. This is used in situations where the 648 normal title may be too long to be displayed. --> 649 <attr name="android:titleCondensed" /> 650 651 <!-- The icon associated with this item. This icon will not always be shown, so 652 the title should be sufficient in describing this item. --> 653 <attr name="android:icon" /> 654 655 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard 656 with alphabetic keys. --> 657 <attr name="android:alphabeticShortcut" /> 658 659 <!-- The alphabetic modifier key. This is the modifier when using a keyboard 660 with alphabetic keys. The values should be kept in sync with KeyEvent --> 661 <attr name="alphabeticModifiers"> 662 <flag name="META" value="0x10000" /> 663 <flag name="CTRL" value="0x1000" /> 664 <flag name="ALT" value="0x02" /> 665 <flag name="SHIFT" value="0x1" /> 666 <flag name="SYM" value="0x4" /> 667 <flag name="FUNCTION" value="0x8" /> 668 </attr> 669 670 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) 671 keyboard. --> 672 <attr name="android:numericShortcut" /> 673 674 <!-- The numeric modifier key. This is the modifier when using a numeric (e.g., 12-key) 675 keyboard. The values should be kept in sync with KeyEvent --> 676 <attr name="numericModifiers"> 677 <flag name="META" value="0x10000" /> 678 <flag name="CTRL" value="0x1000" /> 679 <flag name="ALT" value="0x02" /> 680 <flag name="SHIFT" value="0x1" /> 681 <flag name="SYM" value="0x4" /> 682 <flag name="FUNCTION" value="0x8" /> 683 </attr> 684 685 <!-- Whether the item is capable of displaying a check mark. --> 686 <attr name="android:checkable" /> 687 688 <!-- Whether the item is checked. Note that you must first have enabled checking with 689 the checkable attribute or else the check mark will not appear. --> 690 <attr name="android:checked" /> 691 692 <!-- Whether the item is shown/visible. --> 693 <attr name="android:visible" /> 694 695 <!-- Whether the item is enabled. --> 696 <attr name="android:enabled" /> 697 698 <!-- Name of a method on the Context used to inflate the menu that will be 699 called when the item is clicked. --> 700 <attr name="android:onClick" /> 701 702 <!-- How this item should display in the Action Bar, if present. --> 703 <attr name="showAsAction"> 704 <!-- Never show this item in an action bar, show it in the overflow menu instead. 705 Mutually exclusive with "ifRoom" and "always". --> 706 <flag name="never" value="0" /> 707 <!-- Show this item in an action bar if there is room for it as determined 708 by the system. Favor this option over "always" where possible. 709 Mutually exclusive with "never" and "always". --> 710 <flag name="ifRoom" value="1" /> 711 <!-- Always show this item in an actionbar, even if it would override 712 the system's limits of how much stuff to put there. This may make 713 your action bar look bad on some screens. In most cases you should 714 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". --> 715 <flag name="always" value="2" /> 716 <!-- When this item is shown as an action in the action bar, show a text 717 label with it even if it has an icon representation. --> 718 <flag name="withText" value="4" /> 719 <!-- This item's action view collapses to a normal menu 720 item. When expanded, the action view takes over a 721 larger segment of its container. --> 722 <flag name="collapseActionView" value="8" /> 723 </attr> 724 725 <!-- An optional layout to be used as an action view. 726 See {@link android.view.MenuItem#setActionView(android.view.View)} 727 for more info. --> 728 <attr name="actionLayout" format="reference" /> 729 730 <!-- The name of an optional View class to instantiate and use as an 731 action view. See {@link android.view.MenuItem#setActionView(android.view.View)} 732 for more info. --> 733 <attr name="actionViewClass" format="string" /> 734 735 <!-- The name of an optional ActionProvider class to instantiate an action view 736 and perform operations such as default action for that menu item. 737 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} 738 for more info. --> 739 <attr name="actionProviderClass" format="string" /> 740 741 <!-- The content description associated with the item. --> 742 <attr name="contentDescription" format="string"/> 743 744 <!-- The tooltip text associated with the item. --> 745 <attr name="tooltipText" format="string"/> 746 747 <!-- Tint to apply to the icon. --> 748 <attr name="iconTint" format="color" /> 749 750 <!-- Blending mode used to apply the icon tint. --> 751 <attr name="iconTintMode"> 752 <!-- The tint is drawn on top of the icon. 753 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 754 <enum name="src_over" value="3" /> 755 <!-- The tint is masked by the alpha channel of the icon. The icon’s 756 color channels are thrown out. [Sa * Da, Sc * Da] --> 757 <enum name="src_in" value="5" /> 758 <!-- The tint is drawn above the icon, but with the icon’s alpha 759 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 760 <enum name="src_atop" value="9" /> 761 <!-- Multiplies the color and alpha channels of the icon with those of 762 the tint. [Sa * Da, Sc * Dc] --> 763 <enum name="multiply" value="14" /> 764 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 765 <enum name="screen" value="15" /> 766 <!-- Combines the tint and icon color and alpha channels, clamping the 767 result to valid color values. Saturate(S + D) --> 768 <enum name="add" value="16" /> 769 </attr> 770 771 </declare-styleable> 772 773 <declare-styleable name="Spinner"> 774 <!-- The prompt to display when the spinner's dialog is shown. --> 775 <attr name="android:prompt" /> 776 <!-- Theme to use for the drop-down or dialog popup window. --> 777 <attr name="popupTheme" /> 778 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". --> 779 <attr name="android:popupBackground" /> 780 <!-- Width of the dropdown in spinnerMode="dropdown". --> 781 <attr name="android:dropDownWidth" /> 782 <!-- Reference to an array resource that will populate the Spinner. --> 783 <attr name="android:entries" /> 784 </declare-styleable> 785 786 <declare-styleable name="SearchView"> 787 <!-- The layout to use for the search view. --> 788 <attr name="layout" format="reference" /> 789 <!-- The default state of the SearchView. If true, it will be iconified when not in 790 use and expanded when clicked. --> 791 <attr name="iconifiedByDefault" format="boolean" /> 792 <!-- An optional maximum width of the SearchView. --> 793 <attr name="android:maxWidth" /> 794 <!-- An optional user-defined query hint string to be displayed in the empty query field. --> 795 <attr name="queryHint" format="string" /> 796 <!-- Default query hint used when {@code queryHint} is undefined and 797 the search view's {@code SearchableInfo} does not provide a hint. --> 798 <attr name="defaultQueryHint" format="string" /> 799 <!-- The IME options to set on the query text field. --> 800 <attr name="android:imeOptions" /> 801 <!-- The input type to set on the query text field. --> 802 <attr name="android:inputType" /> 803 <!-- Close button icon --> 804 <attr name="closeIcon" format="reference" /> 805 <!-- Go button icon --> 806 <attr name="goIcon" format="reference" /> 807 <!-- Search icon --> 808 <attr name="searchIcon" format="reference" /> 809 <!-- Search icon displayed as a text field hint --> 810 <attr name="searchHintIcon" format="reference" /> 811 <!-- Voice button icon --> 812 <attr name="voiceIcon" format="reference" /> 813 <!-- Commit icon shown in the query suggestion row --> 814 <attr name="commitIcon" format="reference" /> 815 <!-- Layout for query suggestion rows --> 816 <attr name="suggestionRowLayout" format="reference" /> 817 <!-- Background for the section containing the search query --> 818 <attr name="queryBackground" format="reference" /> 819 <!-- Background for the section containing the action (e.g. voice search) --> 820 <attr name="submitBackground" format="reference" /> 821 <attr name="android:focusable" /> 822 </declare-styleable> 823 824 <!-- Attrbitutes for a ActivityChooserView. --> 825 <declare-styleable name="ActivityChooserView"> 826 <!-- The maximal number of items initially shown in the activity list. --> 827 <attr name="initialActivityCount" format="string" /> 828 <!-- The drawable to show in the button for expanding the activities overflow popup. 829 <strong>Note:</strong> Clients would like to set this drawable 830 as a clue about the action the chosen activity will perform. For 831 example, if share activity is to be chosen the drawable should 832 give a clue that sharing is to be performed. 833 --> 834 <attr name="expandActivityOverflowButtonDrawable" format="reference" /> 835 </declare-styleable> 836 837 <declare-styleable name="AppCompatTextView"> 838 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --> 839 <attr name="textAllCaps" format="reference|boolean" /> 840 <attr name="android:textAppearance" /> 841 <!-- Specify the type of auto-size. Note that this feature is not supported by EditText, 842 works only for TextView. --> 843 <attr name="autoSizeTextType" format="enum"> 844 <!-- No auto-sizing (default). --> 845 <enum name="none" value="0" /> 846 <!-- Uniform horizontal and vertical text size scaling to fit within the 847 container. --> 848 <enum name="uniform" value="1" /> 849 </attr> 850 <!-- Specify the auto-size step size if <code>autoSizeTextType</code> is set to 851 <code>uniform</code>. The default is 1px. Overwrites 852 <code>autoSizePresetSizes</code> if set. --> 853 <attr name="autoSizeStepGranularity" format="dimension" /> 854 <!-- Resource array of dimensions to be used in conjunction with 855 <code>autoSizeTextType</code> set to <code>uniform</code>. Overrides 856 <code>autoSizeStepGranularity</code> if set. --> 857 <attr name="autoSizePresetSizes" format="reference"/> 858 <!-- The minimum text size constraint to be used when auto-sizing text. --> 859 <attr name="autoSizeMinTextSize" format="dimension" /> 860 <!-- The maximum text size constraint to be used when auto-sizing text. --> 861 <attr name="autoSizeMaxTextSize" format="dimension" /> 862 <!-- The attribute for the font family. --> 863 <attr name="fontFamily" format="string" /> 864 <!-- Explicit height between lines of text. If set, this will override the values set 865 for lineSpacingExtra and lineSpacingMultiplier. --> 866 <attr name="lineHeight" format="dimension" /> 867 <!-- Distance from the top of the TextView to the first text baseline. If set, this 868 overrides the value set for paddingTop. --> 869 <attr name="firstBaselineToTopHeight" format="dimension" /> 870 <!-- Distance from the bottom of the TextView to the last text baseline. If set, this 871 overrides the value set for paddingBottom. --> 872 <attr name="lastBaselineToBottomHeight" format="dimension" /> 873 </declare-styleable> 874 875 <declare-styleable name="LinearLayoutCompat"> 876 <!-- Should the layout be a column or a row? Use "horizontal" 877 for a row, "vertical" for a column. The default is 878 horizontal. --> 879 <attr name="android:orientation" /> 880 <attr name="android:gravity" /> 881 <!-- When set to false, prevents the layout from aligning its children's 882 baselines. This attribute is particularly useful when the children 883 use different values for gravity. The default value is true. --> 884 <attr name="android:baselineAligned" /> 885 <!-- When a linear layout is part of another layout that is baseline 886 aligned, it can specify which of its children to baseline align to 887 (that is, which child TextView).--> 888 <attr name="android:baselineAlignedChildIndex" /> 889 <!-- Defines the maximum weight sum. If unspecified, the sum is computed 890 by adding the layout_weight of all of the children. This can be 891 used for instance to give a single child 50% of the total available 892 space by giving it a layout_weight of 0.5 and setting the weightSum 893 to 1.0. --> 894 <attr name="android:weightSum" /> 895 <!-- When set to true, all children with a weight will be considered having 896 the minimum size of the largest child. If false, all children are 897 measured normally. --> 898 <attr name="measureWithLargestChild" format="boolean" /> 899 <!-- Drawable to use as a vertical divider between buttons. --> 900 <attr name="divider" /> 901 <!-- Setting for which dividers to show. --> 902 <attr name="showDividers"> 903 <flag name="none" value="0" /> 904 <flag name="beginning" value="1" /> 905 <flag name="middle" value="2" /> 906 <flag name="end" value="4" /> 907 </attr> 908 <!-- Size of padding on either end of a divider. --> 909 <attr name="dividerPadding" format="dimension" /> 910 </declare-styleable> 911 912 <declare-styleable name="LinearLayoutCompat_Layout"> 913 <attr name="android:layout_width" /> 914 <attr name="android:layout_height" /> 915 <attr name="android:layout_weight" /> 916 <attr name="android:layout_gravity" /> 917 </declare-styleable> 918 919 <declare-styleable name="Toolbar"> 920 <attr name="titleTextAppearance" format="reference" /> 921 <attr name="subtitleTextAppearance" format="reference" /> 922 <attr name="title" /> 923 <attr name="subtitle" /> 924 <attr name="android:gravity" /> 925 <!-- Specifies extra space on the left, start, right and end sides 926 of the toolbar's title. Margin values should be positive. --> 927 <attr name="titleMargin" format="dimension" /> 928 <!-- Specifies extra space on the start side of the toolbar's title. 929 If both this attribute and titleMargin are specified, then this 930 attribute takes precedence. Margin values should be positive. --> 931 <attr name="titleMarginStart" format="dimension" /> 932 <!-- Specifies extra space on the end side of the toolbar's title. 933 If both this attribute and titleMargin are specified, then this 934 attribute takes precedence. Margin values should be positive. --> 935 <attr name="titleMarginEnd" format="dimension" /> 936 <!-- Specifies extra space on the top side of the toolbar's title. 937 If both this attribute and titleMargin are specified, then this 938 attribute takes precedence. Margin values should be positive. --> 939 <attr name="titleMarginTop" format="dimension" /> 940 <!-- Specifies extra space on the bottom side of the toolbar's title. 941 If both this attribute and titleMargin are specified, then this 942 attribute takes precedence. Margin values should be positive. --> 943 <attr name="titleMarginBottom" format="dimension" /> 944 <!-- {@deprecated Use titleMargin} --> 945 <attr name="titleMargins" format="dimension" /> 946 <attr name="contentInsetStart" /> 947 <attr name="contentInsetEnd" /> 948 <attr name="contentInsetLeft" /> 949 <attr name="contentInsetRight" /> 950 <attr name="contentInsetStartWithNavigation" /> 951 <attr name="contentInsetEndWithActions" /> 952 <attr name="maxButtonHeight" format="dimension" /> 953 <attr name="buttonGravity"> 954 <!-- Push object to the top of its container, not changing its size. --> 955 <flag name="top" value="0x30" /> 956 <!-- Push object to the bottom of its container, not changing its size. --> 957 <flag name="bottom" value="0x50" /> 958 </attr> 959 <!-- Icon drawable to use for the collapse button. --> 960 <attr name="collapseIcon" format="reference" /> 961 <!-- Text to set as the content description for the collapse button. --> 962 <attr name="collapseContentDescription" format="string" /> 963 <!-- Reference to a theme that should be used to inflate popups 964 shown by widgets in the toolbar. --> 965 <attr name="popupTheme" /> 966 <!-- Icon drawable to use for the navigation button located at 967 the start of the toolbar. --> 968 <attr name="navigationIcon" format="reference" /> 969 <!-- Text to set as the content description for the navigation button 970 located at the start of the toolbar. --> 971 <attr name="navigationContentDescription" format="string" /> 972 <!-- Drawable to set as the logo that appears at the starting side of 973 the Toolbar, just after the navigation button. --> 974 <attr name="logo" /> 975 <!-- A content description string to describe the appearance of the 976 associated logo image. --> 977 <attr name="logoDescription" format="string" /> 978 <!-- A color to apply to the title string. --> 979 <attr name="titleTextColor" format="color" /> 980 <!-- A color to apply to the subtitle string. --> 981 <attr name="subtitleTextColor" format="color" /> 982 <attr name="android:minHeight" /> 983 </declare-styleable> 984 985 <declare-styleable name="PopupWindowBackgroundState"> 986 <!-- State identifier indicating the popup will be above the anchor. --> 987 <attr name="state_above_anchor" format="boolean" /> 988 </declare-styleable> 989 990 <declare-styleable name="ListPopupWindow"> 991 <!-- Amount of pixels by which the drop down should be offset vertically. --> 992 <attr name="android:dropDownVerticalOffset" /> 993 <!-- Amount of pixels by which the drop down should be offset horizontally. --> 994 <attr name="android:dropDownHorizontalOffset" /> 995 </declare-styleable> 996 997 <declare-styleable name="PopupWindow"> 998 <!-- Whether the popup window should overlap its anchor view. --> 999 <attr name="overlapAnchor" format="boolean" /> 1000 <attr name="android:popupBackground" /> 1001 <attr name="android:popupAnimationStyle"/> 1002 </declare-styleable> 1003 1004 <declare-styleable name="DrawerArrowToggle"> 1005 <!-- The drawing color for the bars --> 1006 <attr name="color" format="color"/> 1007 <!-- Whether bars should rotate or not during transition --> 1008 <attr name="spinBars" format="boolean"/> 1009 <!-- The total size of the drawable --> 1010 <attr name="drawableSize" format="dimension"/> 1011 <!-- The max gap between the bars when they are parallel to each other --> 1012 <attr name="gapBetweenBars" format="dimension"/> 1013 <!-- The length of the arrow head when formed to make an arrow --> 1014 <attr name="arrowHeadLength" format="dimension"/> 1015 <!-- The length of the shaft when formed to make an arrow --> 1016 <attr name="arrowShaftLength" format="dimension"/> 1017 <!-- The length of the bars when they are parallel to each other --> 1018 <attr name="barLength" format="dimension"/> 1019 <!-- The thickness (stroke size) for the bar paint --> 1020 <attr name="thickness" format="dimension"/> 1021 </declare-styleable> 1022 1023 <attr name="drawerArrowStyle" format="reference" /> 1024 1025 <declare-styleable name="ViewStubCompat"> 1026 <!-- Supply an identifier for the layout resource to inflate when the ViewStub 1027 becomes visible or when forced to do so. The layout resource must be a 1028 valid reference to a layout. --> 1029 <attr name="android:layout" /> 1030 <!-- Overrides the id of the inflated View with this value. --> 1031 <attr name="android:inflatedId" /> 1032 <attr name="android:id" /> 1033 </declare-styleable> 1034 1035 <declare-styleable name="CompoundButton"> 1036 <attr name="android:button"/> 1037 <!-- Tint to apply to the button drawable. --> 1038 <attr name="buttonTint" format="color" /> 1039 1040 <!-- Blending mode used to apply the button tint. --> 1041 <attr name="buttonTintMode"> 1042 <!-- The tint is drawn on top of the drawable. 1043 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 1044 <enum name="src_over" value="3" /> 1045 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 1046 color channels are thrown out. [Sa * Da, Sc * Da] --> 1047 <enum name="src_in" value="5" /> 1048 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 1049 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 1050 <enum name="src_atop" value="9" /> 1051 <!-- Multiplies the color and alpha channels of the drawable with those of 1052 the tint. [Sa * Da, Sc * Dc] --> 1053 <enum name="multiply" value="14" /> 1054 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 1055 <enum name="screen" value="15" /> 1056 <!-- Combines the tint and icon color and alpha channels, clamping the 1057 result to valid color values. Saturate(S + D) --> 1058 <enum name="add" value="16" /> 1059 </attr> 1060 </declare-styleable> 1061 1062 <declare-styleable name="SwitchCompat"> 1063 <!-- Drawable to use as the "thumb" that switches back and forth. --> 1064 <attr name="android:thumb" /> 1065 <!-- Tint to apply to the thumb drawable. --> 1066 <attr name="thumbTint" format="color" /> 1067 <!-- Blending mode used to apply the thumb tint. --> 1068 <attr name="thumbTintMode"> 1069 <!-- The tint is drawn on top of the drawable. 1070 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 1071 <enum name="src_over" value="3" /> 1072 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 1073 color channels are thrown out. [Sa * Da, Sc * Da] --> 1074 <enum name="src_in" value="5" /> 1075 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 1076 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 1077 <enum name="src_atop" value="9" /> 1078 <!-- Multiplies the color and alpha channels of the drawable with those of 1079 the tint. [Sa * Da, Sc * Dc] --> 1080 <enum name="multiply" value="14" /> 1081 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 1082 <enum name="screen" value="15" /> 1083 <!-- Combines the tint and drawable color and alpha channels, clamping the 1084 result to valid color values. Saturate(S + D) --> 1085 <enum name="add" value="16" /> 1086 </attr> 1087 <!-- Drawable to use as the "track" that the switch thumb slides within. --> 1088 <attr name="track" format="reference" /> 1089 <!-- Tint to apply to the track. --> 1090 <attr name="trackTint" format="color" /> 1091 <!-- Blending mode used to apply the track tint. --> 1092 <attr name="trackTintMode"> 1093 <!-- The tint is drawn on top of the drawable. 1094 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 1095 <enum name="src_over" value="3" /> 1096 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 1097 color channels are thrown out. [Sa * Da, Sc * Da] --> 1098 <enum name="src_in" value="5" /> 1099 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 1100 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 1101 <enum name="src_atop" value="9" /> 1102 <!-- Multiplies the color and alpha channels of the drawable with those of 1103 the tint. [Sa * Da, Sc * Dc] --> 1104 <enum name="multiply" value="14" /> 1105 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 1106 <enum name="screen" value="15" /> 1107 <!-- Combines the tint and drawable color and alpha channels, clamping the 1108 result to valid color values. Saturate(S + D) --> 1109 <enum name="add" value="16" /> 1110 </attr> 1111 <!-- Text to use when the switch is in the checked/"on" state. --> 1112 <attr name="android:textOn" /> 1113 <!-- Text to use when the switch is in the unchecked/"off" state. --> 1114 <attr name="android:textOff" /> 1115 <!-- Amount of padding on either side of text within the switch thumb. --> 1116 <attr name="thumbTextPadding" format="dimension" /> 1117 <!-- TextAppearance style for text displayed on the switch thumb. --> 1118 <attr name="switchTextAppearance" format="reference" /> 1119 <!-- Minimum width for the switch component --> 1120 <attr name="switchMinWidth" format="dimension" /> 1121 <!-- Minimum space between the switch and caption text --> 1122 <attr name="switchPadding" format="dimension" /> 1123 <!-- Whether to split the track and leave a gap for the thumb drawable. --> 1124 <attr name="splitTrack" format="boolean" /> 1125 <!-- Whether to draw on/off text. --> 1126 <attr name="showText" format="boolean" /> 1127 </declare-styleable> 1128 1129 <declare-styleable name="TextAppearance"> 1130 <attr name="android:textSize" /> 1131 <attr name="android:textColor" /> 1132 <attr name="android:textColorHint"/> 1133 <attr name="android:textColorLink"/> 1134 <attr name="android:textStyle" /> 1135 <attr name="android:typeface" /> 1136 <attr name="android:fontFamily" /> 1137 <attr name="fontFamily" /> 1138 <attr name="textAllCaps" /> 1139 <attr name="android:shadowColor"/> 1140 <attr name="android:shadowDy"/> 1141 <attr name="android:shadowDx"/> 1142 <attr name="android:shadowRadius"/> 1143 </declare-styleable> 1144 1145 <!-- The set of attributes that describe a AlertDialog's theme. --> 1146 <declare-styleable name="AlertDialog"> 1147 <attr name="android:layout" /> 1148 <attr name="buttonPanelSideLayout" format="reference" /> 1149 <attr name="listLayout" format="reference" /> 1150 <attr name="multiChoiceItemLayout" format="reference" /> 1151 <attr name="singleChoiceItemLayout" format="reference" /> 1152 <attr name="listItemLayout" format="reference" /> 1153 <attr name="showTitle" format="boolean" /> 1154 <attr name="buttonIconDimen" format="dimension" /> 1155 </declare-styleable> 1156 1157 <!-- @hide --> 1158 <declare-styleable name="ButtonBarLayout"> 1159 <!-- Whether to automatically stack the buttons when there is not 1160 enough space to lay them out side-by-side. --> 1161 <attr name="allowStacking" format="boolean" /> 1162 </declare-styleable> 1163 1164 <!-- Attributes that can be assigned to a ColorStateList item. --> 1165 <declare-styleable name="ColorStateListItem"> 1166 <!-- Base color for this state. --> 1167 <attr name="android:color" /> 1168 <!-- Alpha multiplier applied to the base color. --> 1169 <attr name="alpha" format="float" /> 1170 <attr name="android:alpha"/> 1171 </declare-styleable> 1172 1173 <declare-styleable name="AppCompatImageView"> 1174 <attr name="android:src"/> 1175 <!-- Sets a drawable as the content of this ImageView. Allows the use of vector drawable 1176 when running on older versions of the platform. --> 1177 <attr name="srcCompat" format="reference" /> 1178 1179 <!-- Tint to apply to the image source. --> 1180 <attr name="tint" format="color" /> 1181 1182 <!-- Blending mode used to apply the image source tint. --> 1183 <attr name="tintMode"> 1184 <!-- The tint is drawn on top of the drawable. 1185 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 1186 <enum name="src_over" value="3" /> 1187 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 1188 color channels are thrown out. [Sa * Da, Sc * Da] --> 1189 <enum name="src_in" value="5" /> 1190 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 1191 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 1192 <enum name="src_atop" value="9" /> 1193 <!-- Multiplies the color and alpha channels of the drawable with those of 1194 the tint. [Sa * Da, Sc * Dc] --> 1195 <enum name="multiply" value="14" /> 1196 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 1197 <enum name="screen" value="15" /> 1198 <!-- Combines the tint and icon color and alpha channels, clamping the 1199 result to valid color values. Saturate(S + D) --> 1200 <enum name="add" value="16" /> 1201 </attr> 1202 </declare-styleable> 1203 1204 <declare-styleable name="AppCompatSeekBar"> 1205 <attr name="android:thumb" /> 1206 <!-- Drawable displayed at each progress position on a seekbar. --> 1207 <attr name="tickMark" format="reference" /> 1208 <!-- Tint to apply to the tick mark drawable. --> 1209 <attr name="tickMarkTint" format="color" /> 1210 <!-- Blending mode used to apply the tick mark tint. --> 1211 <attr name="tickMarkTintMode"> 1212 <!-- The tint is drawn on top of the drawable. 1213 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> 1214 <enum name="src_over" value="3" /> 1215 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s 1216 color channels are thrown out. [Sa * Da, Sc * Da] --> 1217 <enum name="src_in" value="5" /> 1218 <!-- The tint is drawn above the drawable, but with the drawable’s alpha 1219 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> 1220 <enum name="src_atop" value="9" /> 1221 <!-- Multiplies the color and alpha channels of the drawable with those of 1222 the tint. [Sa * Da, Sc * Dc] --> 1223 <enum name="multiply" value="14" /> 1224 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> 1225 <enum name="screen" value="15" /> 1226 <!-- Combines the tint and drawable color and alpha channels, clamping the 1227 result to valid color values. Saturate(S + D) --> 1228 <enum name="add" value="16" /> 1229 </attr> 1230 </declare-styleable> 1231 1232 <declare-styleable name="AppCompatTextHelper"> 1233 <attr name="android:drawableLeft" /> 1234 <attr name="android:drawableTop" /> 1235 <attr name="android:drawableRight" /> 1236 <attr name="android:drawableBottom" /> 1237 <attr name="android:drawableStart" /> 1238 <attr name="android:drawableEnd" /> 1239 <attr name="android:textAppearance" /> 1240 </declare-styleable> 1241 1242 <declare-styleable name="RecycleListView"> 1243 <!-- Bottom padding to use when no buttons are present. --> 1244 <attr name="paddingBottomNoButtons" format="dimension" /> 1245 <!-- Top padding to use when no title is present. --> 1246 <attr name="paddingTopNoTitle" format="dimension" /> 1247 </declare-styleable> 1248 1249</resources> 1250