1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   2 <!-- Copyright (C) 
2012 The Android Open Source Project
 
   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
 
   8           http://www.apache.org/licenses/LICENSE-
2.0 
  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.
 
  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.
 
  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
 
  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" /> 
  33     <!-- These are the standard attributes that make up a complete theme. --
> 
  34     <declare-styleable name=
"Theme"> 
  36         <!-- ============= --
> 
  37         <!-- Window styles --
> 
  38         <!-- ============= --
> 
  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" /> 
  45         <!-- Flag indicating whether there should be no title on this window. --
> 
  46         <attr name=
"windowNoTitle" format=
"boolean" /> 
  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" /> 
  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" /> 
  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" /> 
  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" /> 
  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
 
  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
 
  84         <attr name=
"windowMinWidthMinor" format=
"dimension|fraction" /> 
  86         <attr name=
"android:windowIsFloating" /> 
  87         <attr name=
"android:windowAnimationStyle" /> 
  89         <!-- =================== --
> 
  90         <!-- Action bar styles   --
> 
  91         <!-- =================== --
> 
  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
 
 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" /> 
 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"/> 
 138         <!-- =================== --
> 
 139         <!-- Action mode styles  --
> 
 140         <!-- =================== --
> 
 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"/> 
 165         <!-- PopupWindow style to use for action modes when showing as a window overlay. --
> 
 166         <attr name=
"actionModePopupWindowStyle" format=
"reference"/> 
 169         <!-- =================== --
> 
 171         <!-- =================== --
> 
 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"/> 
 179         <!-- =================== --
> 
 180         <!-- Dialog styles --
> 
 181         <!-- =================== --
> 
 184         <!-- Theme to use for dialogs spawned from this theme. --
> 
 185         <attr name=
"dialogTheme" format=
"reference" /> 
 186         <!-- Preferred padding for dialog content. --
> 
 187         <attr name=
"dialogPreferredPadding" format=
"dimension" /> 
 188         <!-- The list divider used in alert dialogs. --
> 
 189         <attr name=
"listDividerAlertDialog" format=
"reference" /> 
 191         <!-- =================== --
> 
 192         <!-- Other widget styles --
> 
 193         <!-- =================== --
> 
 196         <!-- Default ActionBar dropdown style. --
> 
 197         <attr name=
"actionDropDownStyle" format=
"reference"/> 
 198         <!-- The preferred item height for dropdown lists. --
> 
 199         <attr name=
"dropdownListPreferredItemHeight" format=
"dimension"/> 
 200         <!-- Default Spinner style. --
> 
 201         <attr name=
"spinnerDropDownItemStyle" format=
"reference" /> 
 202         <!-- Specifies a drawable to use for the 'home as up' indicator. --
> 
 203         <attr name=
"homeAsUpIndicator" format=
"reference"/> 
 205         <!-- Default action button style. --
> 
 206         <attr name=
"actionButtonStyle" format=
"reference"/> 
 208         <!-- Style for button bars --
> 
 209         <attr name=
"buttonBarStyle" format=
"reference"/> 
 210         <!-- Style for buttons within button bars --
> 
 211         <attr name=
"buttonBarButtonStyle" format=
"reference"/> 
 212         <!-- A style that may be applied to buttons or other selectable items
 
 213              that should react to pressed and focus states, but that do not
 
 214              have a clear visual border along the edges. --
> 
 215         <attr name=
"selectableItemBackground" format=
"reference"/> 
 216         <!-- Background drawable for borderless standalone items that need focus/pressed states. --
> 
 217         <attr name=
"selectableItemBackgroundBorderless" format=
"reference" /> 
 218         <!-- Style for buttons without an explicit border, often used in groups. --
> 
 219         <attr name=
"borderlessButtonStyle" format=
"reference" /> 
 220         <!-- A drawable that may be used as a vertical divider between visual elements. --
> 
 221         <attr name=
"dividerVertical" format=
"reference"/> 
 222         <!-- A drawable that may be used as a horizontal divider between visual elements. --
> 
 223         <attr name=
"dividerHorizontal" format=
"reference"/> 
 224         <!-- Default ActivityChooserView style. --
> 
 225         <attr name=
"activityChooserViewStyle" format=
"reference" /> 
 227         <!-- Default Toolbar style. --
> 
 228         <attr name=
"toolbarStyle" format=
"reference" /> 
 229         <!-- Default Toolar NavigationButtonStyle --
> 
 230         <attr name=
"toolbarNavigationButtonStyle" format=
"reference" /> 
 232         <!-- Default PopupMenu style. --
> 
 233         <attr name=
"popupMenuStyle" format=
"reference"/> 
 234         <!-- Default PopupWindow style. --
> 
 235         <attr name=
"popupWindowStyle" format=
"reference" /> 
 237         <!-- EditText text foreground color. --
> 
 238         <attr name=
"editTextColor" format=
"reference|color" /> 
 239         <!-- EditText background drawable. --
> 
 240         <attr name=
"editTextBackground" format=
"reference" /> 
 242         <!-- ============================ --
> 
 243         <!-- SearchView styles and assets --
> 
 244         <!-- ============================ --
> 
 246         <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --
> 
 247         <attr name=
"textAppearanceSearchResultTitle" format=
"reference" /> 
 248         <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --
> 
 249         <attr name=
"textAppearanceSearchResultSubtitle" format=
"reference" /> 
 250         <!-- Text color for urls in search suggestions, used by things like global search --
> 
 251         <attr name=
"textColorSearchUrl" format=
"reference|color" /> 
 252         <!-- Style for the search query widget. --
> 
 253         <attr name=
"searchViewStyle" format=
"reference" /> 
 260         <!-- The preferred list item height. --
> 
 261         <attr name=
"listPreferredItemHeight" format=
"dimension"/> 
 262         <!-- A smaller, sleeker list item height. --
> 
 263         <attr name=
"listPreferredItemHeightSmall" format=
"dimension"/> 
 264         <!-- A larger, more robust list item height. --
> 
 265         <attr name=
"listPreferredItemHeightLarge" format=
"dimension"/> 
 267         <!-- The preferred padding along the left edge of list items. --
> 
 268         <attr name=
"listPreferredItemPaddingLeft" format=
"dimension"/> 
 269         <!-- The preferred padding along the right edge of list items. --
> 
 270         <attr name=
"listPreferredItemPaddingRight" format=
"dimension"/> 
 272         <!-- ListPopupWindow compatibility --
> 
 273         <attr name=
"dropDownListViewStyle" format=
"reference"/> 
 274         <attr name=
"listPopupWindowStyle" format=
"reference"/> 
 276         <!-- The preferred TextAppearance for the primary text of list items. --
> 
 277         <attr name=
"textAppearanceListItem" format=
"reference"/> 
 278         <!-- The preferred TextAppearance for the primary text of small list items. --
> 
 279         <attr name=
"textAppearanceListItemSmall" format=
"reference"/> 
 282         <!-- ============ --
> 
 283         <!-- Panel styles --
> 
 284         <!-- ============ --
> 
 287         <!-- The background of a panel when it is inset from the left and right edges of the screen. --
> 
 288         <attr name=
"panelBackground" format=
"reference" /> 
 289         <!-- Default Panel Menu width. --
> 
 290         <attr name=
"panelMenuListWidth" format=
"dimension" /> 
 291         <!-- Default Panel Menu style. --
> 
 292         <attr name=
"panelMenuListTheme" format=
"reference" /> 
 293         <!-- Drawable used as a background for selected list items. --
> 
 294         <attr name=
"listChoiceBackgroundIndicator" format=
"reference" /> 
 296         <!-- ============= --
> 
 297         <!-- Color palette --
> 
 298         <!-- ============= --
> 
 301         <!-- The primary branding color for the app. By default, this is the color applied to the
 
 302              action bar background. --
> 
 303         <attr name=
"colorPrimary" format=
"color" /> 
 305         <!-- Dark variant of the primary branding color. By default, this is the color applied to
 
 306              the status bar (via statusBarColor) and navigation bar (via navigationBarColor). --
> 
 307         <attr name=
"colorPrimaryDark" format=
"color" /> 
 309         <!-- Bright complement to the primary branding color. By default, this is the color applied
 
 310              to framework controls (via colorControlActivated). --
> 
 311         <attr name=
"colorAccent" format=
"color" /> 
 313         <!-- The color applied to framework controls in their normal state. --
> 
 314         <attr name=
"colorControlNormal" format=
"color" /> 
 316         <!-- The color applied to framework controls in their activated (ex. checked) state. --
> 
 317         <attr name=
"colorControlActivated" format=
"color" /> 
 319         <!-- The color applied to framework control highlights (ex. ripples, list selectors). --
> 
 320         <attr name=
"colorControlHighlight" format=
"color" /> 
 322         <!-- The color applied to framework buttons in their normal state. --
> 
 323         <attr name=
"colorButtonNormal" format=
"color" /> 
 325         <!-- The color applied to framework switch thumbs in their normal state. --
> 
 326         <attr name=
"colorSwitchThumbNormal" format=
"color" /> 
 328         <!-- ============ --
> 
 329         <!-- Alert Dialog styles --
> 
 330         <!-- ============ --
> 
 332         <attr name=
"alertDialogStyle" format=
"reference" /> 
 333         <attr name=
"alertDialogButtonGroupStyle" format=
"reference" /> 
 334         <attr name=
"alertDialogCenterButtons" format=
"boolean" /> 
 335         <!-- Theme to use for alert dialogs spawned from this theme. --
> 
 336         <attr name=
"alertDialogTheme" format=
"reference" /> 
 338         <!-- Color of list item text in alert dialogs. --
> 
 339         <attr name=
"textColorAlertDialogListItem" format=
"reference|color" /> 
 341         <!-- Style for the 
"positive" buttons within button bars --
> 
 342         <attr name=
"buttonBarPositiveButtonStyle" format=
"reference" /> 
 344         <!-- Style for the 
"negative" buttons within button bars --
> 
 345         <attr name=
"buttonBarNegativeButtonStyle" format=
"reference" /> 
 347         <!-- Style for the 
"neutral" buttons within button bars --
> 
 348         <attr name=
"buttonBarNeutralButtonStyle" format=
"reference" /> 
 350         <!-- ===================== --
> 
 351         <!-- Default widget styles --
> 
 352         <!-- ===================== --
> 
 355         <!-- Default AutoCompleteTextView style. --
> 
 356         <attr name=
"autoCompleteTextViewStyle" format=
"reference" /> 
 357         <!-- Normal Button style. --
> 
 358         <attr name=
"buttonStyle" format=
"reference" /> 
 359         <!-- Small Button style. --
> 
 360         <attr name=
"buttonStyleSmall" format=
"reference" /> 
 361         <!-- Default Checkbox style. --
> 
 362         <attr name=
"checkboxStyle" format=
"reference" /> 
 363         <!-- Default CheckedTextView style. --
> 
 364         <attr name=
"checkedTextViewStyle" format=
"reference" /> 
 365         <!-- Default EditText style. --
> 
 366         <attr name=
"editTextStyle" format=
"reference" /> 
 367         <!-- Default RadioButton style. --
> 
 368         <attr name=
"radioButtonStyle" format=
"reference" /> 
 369         <!-- Default RatingBar style. --
> 
 370         <attr name=
"ratingBarStyle" format=
"reference" /> 
 371         <!-- Default Spinner style. --
> 
 372         <attr name=
"spinnerStyle" format=
"reference" /> 
 373         <!-- Default style for the Switch widget. --
> 
 374         <attr name=
"switchStyle" format=
"reference" /> 
 379     <!-- ============================================ --
> 
 381     <!-- Attributes used to style the Action Bar.
 
 382          These should be set on your theme; the default actionBarStyle will
 
 383          propagate them to the correct elements as needed.
 
 385          Please Note: when overriding attributes for an ActionBar style
 
 386          you must specify each attribute twice: once with the 
"android:" 
 387          namespace prefix and once without. --
> 
 388     <declare-styleable name=
"ActionBar"> 
 389         <!-- The type of navigation to use. --
> 
 390         <attr name=
"navigationMode"> 
 391             <!-- Normal static title text --
> 
 392             <enum name=
"normal" value=
"0"/> 
 393             <!-- The action bar will use a selection list for navigation. --
> 
 394             <enum name=
"listMode" value=
"1"/> 
 395             <!-- The action bar will use a series of horizontal tabs for navigation. --
> 
 396             <enum name=
"tabMode" value=
"2"/> 
 398         <!-- Options affecting how the action bar is displayed. --
> 
 399         <attr name=
"displayOptions"> 
 400             <flag name=
"none" value=
"0" /> 
 401             <flag name=
"useLogo" value=
"0x1"/> 
 402             <flag name=
"showHome" value=
"0x2"/> 
 403             <flag name=
"homeAsUp" value=
"0x4"/> 
 404             <flag name=
"showTitle" value=
"0x8"/> 
 405             <flag name=
"showCustom" value=
"0x10"/> 
 406             <flag name=
"disableHome" value=
"0x20"/> 
 408         <!-- Specifies title text used for 
navigationMode=
"normal" --
> 
 410         <!-- Specifies subtitle text used for 
navigationMode=
"normal" --
> 
 411         <attr name=
"subtitle" format=
"string"/> 
 412         <!-- Specifies a style to use for title text. --
> 
 413         <attr name=
"titleTextStyle" format=
"reference"/> 
 414         <!-- Specifies a style to use for subtitle text. --
> 
 415         <attr name=
"subtitleTextStyle" format=
"reference"/> 
 416         <!-- Specifies the drawable used for the application icon. --
> 
 417         <attr name=
"icon" format=
"reference"/> 
 418         <!-- Specifies the drawable used for the application logo. --
> 
 419         <attr name=
"logo" format=
"reference"/> 
 420         <!-- Specifies the drawable used for item dividers. --
> 
 421         <attr name=
"divider" format=
"reference"/> 
 422         <!-- Specifies a background drawable for the action bar. --
> 
 423         <attr name=
"background" format=
"reference"/> 
 424         <!-- Specifies a background drawable for a second stacked row of the action bar. --
> 
 425         <attr name=
"backgroundStacked" format=
"reference|color"/> 
 426         <!-- Specifies a background drawable for the bottom component of a split action bar. --
> 
 427         <attr name=
"backgroundSplit" format=
"reference|color"/> 
 428         <!-- Specifies a layout for custom navigation. Overrides navigationMode. --
> 
 429         <attr name=
"customNavigationLayout" format=
"reference"/> 
 430         <!-- Specifies a fixed height. --
> 
 431         <attr name=
"height"/> 
 432         <!-- Specifies a layout to use for the 
"home" section of the action bar. --
> 
 433         <attr name=
"homeLayout" format=
"reference"/> 
 434         <!-- Specifies a style resource to use for an embedded progress bar. --
> 
 435         <attr name=
"progressBarStyle" format=
"reference"/> 
 436         <!-- Specifies a style resource to use for an indeterminate progress spinner. --
> 
 437         <attr name=
"indeterminateProgressStyle" format=
"reference"/> 
 438         <!-- Specifies the horizontal padding on either end for an embedded progress bar. --
> 
 439         <attr name=
"progressBarPadding" format=
"dimension"/> 
 440         <!-- Up navigation glyph --
> 
 441         <attr name=
"homeAsUpIndicator" /> 
 442         <!-- Specifies padding that should be applied to the left and right sides of
 
 443              system-provided items in the bar. --
> 
 444         <attr name=
"itemPadding" format=
"dimension"/> 
 445         <!-- Set true to hide the action bar on a vertical nested scroll of content. --
> 
 446         <attr name=
"hideOnContentScroll" format=
"boolean"/> 
 447         <!-- Minimum inset for content views within a bar. Navigation buttons and
 
 448              menu views are excepted. Only valid for some themes and configurations. --
> 
 449         <attr name=
"contentInsetStart" format=
"dimension"/> 
 450         <!-- Minimum inset for content views within a bar. Navigation buttons and
 
 451              menu views are excepted. Only valid for some themes and configurations. --
> 
 452         <attr name=
"contentInsetEnd" format=
"dimension"/> 
 453         <!-- Minimum inset for content views within a bar. Navigation buttons and
 
 454              menu views are excepted. Only valid for some themes and configurations. --
> 
 455         <attr name=
"contentInsetLeft" format=
"dimension"/> 
 456         <!-- Minimum inset for content views within a bar. Navigation buttons and
 
 457              menu views are excepted. Only valid for some themes and configurations. --
> 
 458         <attr name=
"contentInsetRight" format=
"dimension"/> 
 459         <!-- Elevation for the action bar itself --
> 
 460         <attr name=
"elevation" format=
"dimension" /> 
 461         <!-- Reference to a theme that should be used to inflate popups
 
 462              shown by widgets in the action bar. --
> 
 463         <attr name=
"popupTheme" format=
"reference" /> 
 466     <!-- Valid LayoutParams for views placed in the action bar as custom views. --
> 
 467     <declare-styleable name=
"ActionBarLayout"> 
 468         <attr name=
"android:layout_gravity"/> 
 471     <declare-styleable name=
"ActionMenuItemView"> 
 472         <attr name=
"android:minWidth"/> 
 475     <declare-styleable name=
"ActionMode"> 
 476         <!-- Specifies a style to use for title text. --
> 
 477         <attr name=
"titleTextStyle"/> 
 478         <!-- Specifies a style to use for subtitle text. --
> 
 479         <attr name=
"subtitleTextStyle"/> 
 480         <!-- Specifies a background for the action mode bar. --
> 
 481         <attr name=
"background"/> 
 482         <!-- Specifies a background for the split action mode bar. --
> 
 483         <attr name=
"backgroundSplit"/> 
 484         <!-- Specifies a fixed height for the action mode bar. --
> 
 485         <attr name=
"height"/> 
 486         <!-- Specifies a layout to use for the 
"close" item at the starting edge. --
> 
 487         <attr name=
"closeItemLayout" format=
"reference" /> 
 490     <declare-styleable name=
"View"> 
 491         <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. --
> 
 492         <attr name=
"paddingStart" format=
"dimension"/> 
 493         <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. --
> 
 494         <attr name=
"paddingEnd" format=
"dimension"/> 
 496         <!-- Boolean that controls whether a view can take focus.  By default the user can not
 
 497              move focus to a view; by setting this attribute to true the view is
 
 498              allowed to take focus.  This value does not impact the behavior of
 
 499              directly calling {@link android.view.View#requestFocus}, which will
 
 500              always request focus regardless of this view.  It only impacts where
 
 501              focus navigation will try to move focus. --
> 
 502         <attr name=
"android:focusable" /> 
 505         <attr name=
"theme" format=
"reference" /> 
 507         <!-- Specifies a theme override for a view. When a theme override is set, the
 
 508              view will be inflated using a {@link android.content.Context} themed with
 
 509              the specified resource. --
> 
 510         <attr name=
"android:theme" /> 
 512         <!-- Tint to apply to the background. --
> 
 513         <attr name=
"backgroundTint" format=
"color" /> 
 515         <!-- Blending mode used to apply the background tint. --
> 
 516         <attr name=
"backgroundTintMode"> 
 517             <!-- The tint is drawn on top of the drawable.
 
 518                  [Sa + (
1 - Sa)*Da, Rc = Sc + (
1 - Sa)*Dc] --
> 
 519             <enum name=
"src_over" value=
"3" /> 
 520             <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
 
 521                  color channels are thrown out. [Sa * Da, Sc * Da] --
> 
 522             <enum name=
"src_in" value=
"5" /> 
 523             <!-- The tint is drawn above the drawable, but with the drawable’s alpha
 
 524                  channel masking the result. [Da, Sc * Da + (
1 - Sa) * Dc] --
> 
 525             <enum name=
"src_atop" value=
"9" /> 
 526             <!-- Multiplies the color and alpha channels of the drawable with those of
 
 527                  the tint. [Sa * Da, Sc * Dc] --
> 
 528             <enum name=
"multiply" value=
"14" /> 
 529             <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --
> 
 530             <enum name=
"screen" value=
"15" /> 
 534     <declare-styleable name=
"MenuView"> 
 535         <!-- Default appearance of menu item text. --
> 
 536         <attr name=
"android:itemTextAppearance"/> 
 537         <!-- Default horizontal divider between rows of menu items. --
> 
 538         <attr name=
"android:horizontalDivider"/> 
 539         <!-- Default vertical divider between menu items. --
> 
 540         <attr name=
"android:verticalDivider"/> 
 541         <!-- Default background for the menu header. --
> 
 542         <attr name=
"android:headerBackground"/> 
 543         <!-- Default background for each menu item. --
> 
 544         <attr name=
"android:itemBackground"/> 
 545         <!-- Default animations for the menu. --
> 
 546         <attr name=
"android:windowAnimationStyle"/> 
 547         <!-- Default disabled icon alpha for each menu item that shows an icon. --
> 
 548         <attr name=
"android:itemIconDisabledAlpha"/> 
 549         <!-- Whether space should be reserved in layout when an icon is missing. --
> 
 550         <attr name=
"preserveIconSpacing" format=
"boolean" /> 
 552     <declare-styleable name=
"ActionMenuView"> 
 553         <!-- Size of padding on either end of a divider. --
> 
 556     <!-- Base attributes that are available to all groups. --
> 
 557     <declare-styleable name=
"MenuGroup"> 
 559         <!-- The ID of the group. --
> 
 560         <attr name=
"android:id" /> 
 562         <!-- The category applied to all items within this group.
 
 563              (This will be or'ed with the orderInCategory attribute.) --
> 
 564         <attr name=
"android:menuCategory" /> 
 566         <!-- The order within the category applied to all items within this group.
 
 567              (This will be or'ed with the category attribute.) --
> 
 568         <attr name=
"android:orderInCategory" /> 
 570         <!-- Whether the items are capable of displaying a check mark. --
> 
 571         <attr name=
"android:checkableBehavior" /> 
 573         <!-- Whether the items are shown/visible. --
> 
 574         <attr name=
"android:visible" /> 
 576         <!-- Whether the items are enabled. --
> 
 577         <attr name=
"android:enabled" /> 
 581     <!-- Base attributes that are available to all Item objects. --
> 
 582     <declare-styleable name=
"MenuItem"> 
 584         <!-- The ID of the item. --
> 
 585         <attr name=
"android:id" /> 
 587         <!-- The category applied to the item.
 
 588              (This will be or'ed with the orderInCategory attribute.) --
> 
 589         <attr name=
"android:menuCategory" /> 
 591         <!-- The order within the category applied to the item.
 
 592              (This will be or'ed with the category attribute.) --
> 
 593         <attr name=
"android:orderInCategory" /> 
 595         <!-- The title associated with the item. --
> 
 596         <attr name=
"android:title" /> 
 598         <!-- The condensed title associated with the item.  This is used in situations where the
 
 599              normal title may be too long to be displayed. --
> 
 600         <attr name=
"android:titleCondensed" /> 
 602         <!-- The icon associated with this item.  This icon will not always be shown, so
 
 603              the title should be sufficient in describing this item. --
> 
 604         <attr name=
"android:icon" /> 
 606         <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
 
 607              with alphabetic keys. --
> 
 608         <attr name=
"android:alphabeticShortcut" /> 
 610         <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 
12-key)
 
 612         <attr name=
"android:numericShortcut" /> 
 614         <!-- Whether the item is capable of displaying a check mark. --
> 
 615         <attr name=
"android:checkable" /> 
 617         <!-- Whether the item is checked.  Note that you must first have enabled checking with
 
 618              the checkable attribute or else the check mark will not appear. --
> 
 619         <attr name=
"android:checked"  /> 
 621         <!-- Whether the item is shown/visible. --
> 
 622         <attr name=
"android:visible" /> 
 624         <!-- Whether the item is enabled. --
> 
 625         <attr name=
"android:enabled" /> 
 627         <!-- Name of a method on the Context used to inflate the menu that will be
 
 628              called when the item is clicked. --
> 
 629         <attr name=
"android:onClick" /> 
 631         <!-- How this item should display in the Action Bar, if present. --
> 
 632         <attr name=
"showAsAction"> 
 633             <!-- Never show this item in an action bar, show it in the overflow menu instead.
 
 634                  Mutually exclusive with 
"ifRoom" and 
"always". --
> 
 635             <flag name=
"never" value=
"0" /> 
 636             <!-- Show this item in an action bar if there is room for it as determined
 
 637                  by the system. Favor this option over 
"always" where possible.
 
 638                  Mutually exclusive with 
"never" and 
"always". --
> 
 639             <flag name=
"ifRoom" value=
"1" /> 
 640             <!-- Always show this item in an actionbar, even if it would override
 
 641                  the system's limits of how much stuff to put there. This may make
 
 642                  your action bar look bad on some screens. In most cases you should
 
 643                  use 
"ifRoom" instead. Mutually exclusive with 
"ifRoom" and 
"never". --
> 
 644             <flag name=
"always" value=
"2" /> 
 645             <!-- When this item is shown as an action in the action bar, show a text
 
 646                  label with it even if it has an icon representation. --
> 
 647             <flag name=
"withText" value=
"4" /> 
 648             <!-- This item's action view collapses to a normal menu
 
 649                  item. When expanded, the action view takes over a
 
 650                  larger segment of its container. --
> 
 651             <flag name=
"collapseActionView" value=
"8" /> 
 654         <!-- An optional layout to be used as an action view.
 
 655              See {@link android.view.MenuItem#setActionView(android.view.View)}
 
 657         <attr name=
"actionLayout" format=
"reference" /> 
 659         <!-- The name of an optional View class to instantiate and use as an
 
 660              action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
 
 662         <attr name=
"actionViewClass" format=
"string" /> 
 664         <!-- The name of an optional ActionProvider class to instantiate an action view
 
 665              and perform operations such as default action for that menu item.
 
 666              See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
 
 668         <attr name=
"actionProviderClass" format=
"string" /> 
 672     <declare-styleable name=
"Spinner"> 
 673         <!-- The prompt to display when the spinner's dialog is shown. --
> 
 674         <attr name=
"prompt" format=
"reference" /> 
 675         <!-- Display mode for spinner options. --
> 
 676         <attr name=
"spinnerMode" format=
"enum"> 
 677             <!-- Spinner options will be presented to the user as a dialog window. --
> 
 678             <enum name=
"dialog" value=
"0" /> 
 679             <!-- Spinner options will be presented to the user as an inline dropdown
 
 680                  anchored to the spinner widget itself. --
> 
 681             <enum name=
"dropdown" value=
"1" /> 
 683         <!-- List selector to use for 
spinnerMode=
"dropdown" display. --
> 
 684         <attr name=
"android:dropDownSelector" /> 
 685         <!-- Background drawable to use for the dropdown in 
spinnerMode=
"dropdown". --
> 
 686         <attr name=
"android:popupBackground" /> 
 687         <!-- Vertical offset from the spinner widget for positioning the dropdown in
 
 688              spinnerMode=
"dropdown". --
> 
 689         <attr name=
"android:dropDownVerticalOffset" /> 
 690         <!-- Horizontal offset from the spinner widget for positioning the dropdown
 
 691              in 
spinnerMode=
"dropdown". --
> 
 692         <attr name=
"android:dropDownHorizontalOffset" /> 
 693         <!-- Width of the dropdown in 
spinnerMode=
"dropdown". --
> 
 694         <attr name=
"android:dropDownWidth" /> 
 695         <!-- Reference to a layout to use for displaying a prompt in the dropdown for
 
 696              spinnerMode=
"dropdown". This layout must contain a TextView with the id
 
 697              {@code @android:id/text1} to be populated with the prompt text. --
> 
 698         <attr name=
"popupPromptView" format=
"reference" /> 
 699         <!-- Gravity setting for positioning the currently selected item. --
> 
 700         <attr name=
"android:gravity" /> 
 701         <!-- Whether this spinner should mark child views as enabled/disabled when
 
 702              the spinner itself is enabled/disabled. --
> 
 703         <attr name=
"disableChildrenWhenDisabled" format=
"boolean" /> 
 704         <attr name=
"android:background" /> 
 707     <declare-styleable name=
"SearchView"> 
 708         <!-- The layout to use for the search view. --
> 
 709         <attr name=
"layout" format=
"reference" /> 
 710         <!-- The default state of the SearchView. If true, it will be iconified when not in
 
 711              use and expanded when clicked. --
> 
 712         <attr name=
"iconifiedByDefault" format=
"boolean" /> 
 713         <!-- An optional maximum width of the SearchView. --
> 
 714         <attr name=
"android:maxWidth" /> 
 715         <!-- An optional user-defined query hint string to be displayed in the empty query field. --
> 
 716         <attr name=
"queryHint" format=
"string" /> 
 717         <!-- Default query hint used when {@code queryHint} is undefined and
 
 718              the search view's {@code SearchableInfo} does not provide a hint. --
> 
 719         <attr name=
"defaultQueryHint" format=
"string" /> 
 720         <!-- The IME options to set on the query text field. --
> 
 721         <attr name=
"android:imeOptions" /> 
 722         <!-- The input type to set on the query text field. --
> 
 723         <attr name=
"android:inputType" /> 
 724         <!-- Close button icon --
> 
 725         <attr name=
"closeIcon" format=
"reference" /> 
 726         <!-- Go button icon --
> 
 727         <attr name=
"goIcon" format=
"reference" /> 
 729         <attr name=
"searchIcon" format=
"reference" /> 
 730         <!-- Search icon displayed as a text field hint --
> 
 731         <attr name=
"searchHintIcon" format=
"reference" /> 
 732         <!-- Voice button icon --
> 
 733         <attr name=
"voiceIcon" format=
"reference" /> 
 734         <!-- Commit icon shown in the query suggestion row --
> 
 735         <attr name=
"commitIcon" format=
"reference" /> 
 736         <!-- Layout for query suggestion rows --
> 
 737         <attr name=
"suggestionRowLayout" format=
"reference" /> 
 738         <!-- Background for the section containing the search query --
> 
 739         <attr name=
"queryBackground" format=
"reference" /> 
 740         <!-- Background for the section containing the action (e.g. voice search) --
> 
 741         <attr name=
"submitBackground" format=
"reference" /> 
 742         <attr name=
"android:focusable" /> 
 745     <!-- Attrbitutes for a ActivityChooserView. --
> 
 746     <declare-styleable name=
"ActivityChooserView"> 
 747         <!-- The maximal number of items initially shown in the activity list. --
> 
 748         <attr name=
"initialActivityCount" format=
"string" /> 
 749         <!-- The drawable to show in the button for expanding the activities overflow popup.
 
 750              <strong>Note:
</strong> Clients would like to set this drawable
 
 751              as a clue about the action the chosen activity will perform. For
 
 752              example, if share activity is to be chosen the drawable should
 
 753              give a clue that sharing is to be performed.
 
 755         <attr name=
"expandActivityOverflowButtonDrawable" format=
"reference" /> 
 758     <declare-styleable name=
"AppCompatTextView"> 
 759         <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --
> 
 760         <attr name=
"textAllCaps" format=
"reference|boolean" /> 
 761         <attr name=
"android:textAppearance" /> 
 764     <declare-styleable name=
"LinearLayoutCompat"> 
 765         <!-- Should the layout be a column or a row?  Use 
"horizontal" 
 766              for a row, 
"vertical" for a column.  The default is
 
 768         <attr name=
"android:orientation" /> 
 769         <attr name=
"android:gravity" /> 
 770         <!-- When set to false, prevents the layout from aligning its children's
 
 771              baselines. This attribute is particularly useful when the children
 
 772              use different values for gravity. The default value is true. --
> 
 773         <attr name=
"android:baselineAligned" /> 
 774         <!-- When a linear layout is part of another layout that is baseline
 
 775           aligned, it can specify which of its children to baseline align to
 
 776           (that is, which child TextView).--
> 
 777         <attr name=
"android:baselineAlignedChildIndex" /> 
 778         <!-- Defines the maximum weight sum. If unspecified, the sum is computed
 
 779              by adding the layout_weight of all of the children. This can be
 
 780              used for instance to give a single child 
50% of the total available
 
 781              space by giving it a layout_weight of 
0.5 and setting the weightSum
 
 783         <attr name=
"android:weightSum" /> 
 784         <!-- When set to true, all children with a weight will be considered having
 
 785              the minimum size of the largest child. If false, all children are
 
 786              measured normally. --
> 
 787         <attr name=
"measureWithLargestChild" format=
"boolean" /> 
 788         <!-- Drawable to use as a vertical divider between buttons. --
> 
 789         <attr name=
"divider" /> 
 790         <!-- Setting for which dividers to show. --
> 
 791         <attr name=
"showDividers"> 
 792             <flag name=
"none" value=
"0" /> 
 793             <flag name=
"beginning" value=
"1" /> 
 794             <flag name=
"middle" value=
"2" /> 
 795             <flag name=
"end" value=
"4" /> 
 797         <!-- Size of padding on either end of a divider. --
> 
 798         <attr name=
"dividerPadding" format=
"dimension" /> 
 801     <declare-styleable name=
"LinearLayoutCompat_Layout"> 
 802         <attr name=
"android:layout_width" /> 
 803         <attr name=
"android:layout_height" /> 
 804         <attr name=
"android:layout_weight" /> 
 805         <attr name=
"android:layout_gravity" /> 
 808     <declare-styleable name=
"Toolbar"> 
 809         <attr name=
"titleTextAppearance" format=
"reference" /> 
 810         <attr name=
"subtitleTextAppearance" format=
"reference" /> 
 811         <attr name=
"title" /> 
 812         <attr name=
"subtitle" /> 
 813         <attr name=
"android:gravity" /> 
 814         <attr name=
"titleMargins" format=
"dimension" /> 
 815         <attr name=
"titleMarginStart" format=
"dimension" /> 
 816         <attr name=
"titleMarginEnd" format=
"dimension" /> 
 817         <attr name=
"titleMarginTop" format=
"dimension" /> 
 818         <attr name=
"titleMarginBottom" format=
"dimension" /> 
 819         <attr name=
"contentInsetStart" /> 
 820         <attr name=
"contentInsetEnd" /> 
 821         <attr name=
"contentInsetLeft" /> 
 822         <attr name=
"contentInsetRight" /> 
 823         <attr name=
"maxButtonHeight" format=
"dimension" /> 
 825         <attr name=
"collapseIcon" format=
"reference" /> 
 826         <!-- Text to set as the content description for the collapse button. --
> 
 827         <attr name=
"collapseContentDescription" format=
"string" /> 
 828         <!-- Reference to a theme that should be used to inflate popups
 
 829              shown by widgets in the toolbar. --
> 
 830         <attr name=
"popupTheme" /> 
 831         <!-- Icon drawable to use for the navigation button located at
 
 832              the start of the toolbar. --
> 
 833         <attr name=
"navigationIcon" format=
"reference" /> 
 834         <!-- Text to set as the content description for the navigation button
 
 835              located at the start of the toolbar. --
> 
 836         <attr name=
"navigationContentDescription" format=
"string" /> 
 838         <!-- Allows us to read in the minHeight attr pre-v16 --
> 
 839         <attr name=
"android:minHeight" /> 
 842     <declare-styleable name=
"PopupWindowBackgroundState"> 
 843         <!-- State identifier indicating the popup will be above the anchor. --
> 
 844         <attr name=
"state_above_anchor" format=
"boolean" /> 
 847     <declare-styleable name=
"ListPopupWindow"> 
 848         <!-- Amount of pixels by which the drop down should be offset vertically. --
> 
 849         <attr name=
"android:dropDownVerticalOffset" /> 
 850         <!-- Amount of pixels by which the drop down should be offset horizontally. --
> 
 851         <attr name=
"android:dropDownHorizontalOffset" /> 
 854     <declare-styleable name=
"PopupWindow"> 
 855         <!-- Whether the popup window should overlap its anchor view. --
> 
 856         <attr name=
"overlapAnchor" format=
"boolean" /> 
 857         <attr name=
"android:popupBackground" /> 
 860     <declare-styleable name=
"DrawerArrowToggle"> 
 861         <!-- The drawing color for the bars --
> 
 862         <attr name=
"color" format=
"color"/> 
 863         <!-- Whether bars should rotate or not during transition --
> 
 864         <attr name=
"spinBars" format=
"boolean"/> 
 865         <!-- The total size of the drawable --
> 
 866         <attr name=
"drawableSize" format=
"dimension"/> 
 867         <!-- The max gap between the bars when they are parallel to each other --
> 
 868         <attr name=
"gapBetweenBars" format=
"dimension"/> 
 869         <!-- The size of the top and bottom bars when they merge to the middle bar to form an arrow --
> 
 870         <attr name=
"topBottomBarArrowSize" format=
"dimension"/> 
 871         <!-- The size of the middle bar when top and bottom bars merge into middle bar to form an arrow --
> 
 872         <attr name=
"middleBarArrowSize" format=
"dimension"/> 
 873         <!-- The size of the bars when they are parallel to each other --
> 
 874         <attr name=
"barSize" format=
"dimension"/> 
 875         <!-- The thickness (stroke size) for the bar paint --
> 
 876         <attr name=
"thickness" format=
"dimension"/> 
 879     <attr name=
"drawerArrowStyle" format=
"reference" /> 
 881     <declare-styleable name=
"ViewStubCompat"> 
 882         <!-- Supply an identifier for the layout resource to inflate when the ViewStub
 
 883              becomes visible or when forced to do so. The layout resource must be a
 
 884              valid reference to a layout. --
> 
 885         <attr name=
"android:layout" /> 
 886         <!-- Overrides the id of the inflated View with this value. --
> 
 887         <attr name=
"android:inflatedId" /> 
 888         <attr name=
"android:id" /> 
 891     <declare-styleable name=
"SwitchCompat"> 
 892         <!-- Drawable to use as the 
"thumb" that switches back and forth. --
> 
 893         <attr name=
"android:thumb" /> 
 894         <!-- Drawable to use as the 
"track" that the switch thumb slides within. --
> 
 895         <attr name=
"track" format=
"reference" /> 
 896         <!-- Text to use when the switch is in the checked/
"on" state. --
> 
 897         <attr name=
"android:textOn" /> 
 898         <!-- Text to use when the switch is in the unchecked/
"off" state. --
> 
 899         <attr name=
"android:textOff" /> 
 900         <!-- Amount of padding on either side of text within the switch thumb. --
> 
 901         <attr name=
"thumbTextPadding" format=
"dimension" /> 
 902         <!-- TextAppearance style for text displayed on the switch thumb. --
> 
 903         <attr name=
"switchTextAppearance" format=
"reference" /> 
 904         <!-- Minimum width for the switch component --
> 
 905         <attr name=
"switchMinWidth" format=
"dimension" /> 
 906         <!-- Minimum space between the switch and caption text --
> 
 907         <attr name=
"switchPadding" format=
"dimension" /> 
 908         <!-- Whether to split the track and leave a gap for the thumb drawable. --
> 
 909         <attr name=
"splitTrack" format=
"boolean" /> 
 910         <!-- Whether to draw on/off text. --
> 
 911         <attr name=
"showText" format=
"boolean" /> 
 914     <declare-styleable name=
"TextAppearance"> 
 915         <attr name=
"android:textSize" /> 
 916         <attr name=
"android:textColor" /> 
 917         <attr name=
"android:textStyle" /> 
 918         <attr name=
"android:typeface" /> 
 919         <attr name=
"textAllCaps" /> 
 922     <!-- The set of attributes that describe a AlertDialog's theme. --
> 
 923     <declare-styleable name=
"AlertDialog"> 
 924         <attr name=
"android:layout" /> 
 925         <attr name=
"buttonPanelSideLayout" format=
"reference" /> 
 926         <attr name=
"listLayout" format=
"reference" /> 
 927         <attr name=
"multiChoiceItemLayout" format=
"reference" /> 
 928         <attr name=
"singleChoiceItemLayout" format=
"reference" /> 
 929         <attr name=
"listItemLayout" format=
"reference" />