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