• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 drawable’s
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 drawable’s 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            <!-- Combines the tint and icon color and alpha channels, clamping the
572                 result to valid color values. Saturate(S + D) -->
573            <enum name="add" value="16" />
574        </attr>
575    </declare-styleable>
576
577    <declare-styleable name="MenuView">
578        <!-- Default appearance of menu item text. -->
579        <attr name="android:itemTextAppearance"/>
580        <!-- Default horizontal divider between rows of menu items. -->
581        <attr name="android:horizontalDivider"/>
582        <!-- Default vertical divider between menu items. -->
583        <attr name="android:verticalDivider"/>
584        <!-- Default background for the menu header. -->
585        <attr name="android:headerBackground"/>
586        <!-- Default background for each menu item. -->
587        <attr name="android:itemBackground"/>
588        <!-- Default animations for the menu. -->
589        <attr name="android:windowAnimationStyle"/>
590        <!-- Default disabled icon alpha for each menu item that shows an icon. -->
591        <attr name="android:itemIconDisabledAlpha"/>
592        <!-- Whether space should be reserved in layout when an icon is missing. -->
593        <attr name="preserveIconSpacing" format="boolean" />
594        <!-- Drawable for the arrow icon indicating a particular item is a submenu. -->
595        <attr name="subMenuArrow" format="reference" />
596    </declare-styleable>
597    <declare-styleable name="ActionMenuView">
598        <!-- Size of padding on either end of a divider. -->
599    </declare-styleable>
600
601    <!-- Base attributes that are available to all groups. -->
602    <declare-styleable name="MenuGroup">
603
604        <!-- The ID of the group. -->
605        <attr name="android:id" />
606
607        <!-- The category applied to all items within this group.
608             (This will be or'ed with the orderInCategory attribute.) -->
609        <attr name="android:menuCategory" />
610
611        <!-- The order within the category applied to all items within this group.
612             (This will be or'ed with the category attribute.) -->
613        <attr name="android:orderInCategory" />
614
615        <!-- Whether the items are capable of displaying a check mark. -->
616        <attr name="android:checkableBehavior" />
617
618        <!-- Whether the items are shown/visible. -->
619        <attr name="android:visible" />
620
621        <!-- Whether the items are enabled. -->
622        <attr name="android:enabled" />
623
624    </declare-styleable>
625
626    <!-- Base attributes that are available to all Item objects. -->
627    <declare-styleable name="MenuItem">
628
629        <!-- The ID of the item. -->
630        <attr name="android:id" />
631
632        <!-- The category applied to the item.
633             (This will be or'ed with the orderInCategory attribute.) -->
634        <attr name="android:menuCategory" />
635
636        <!-- The order within the category applied to the item.
637             (This will be or'ed with the category attribute.) -->
638        <attr name="android:orderInCategory" />
639
640        <!-- The title associated with the item. -->
641        <attr name="android:title" />
642
643        <!-- The condensed title associated with the item.  This is used in situations where the
644             normal title may be too long to be displayed. -->
645        <attr name="android:titleCondensed" />
646
647        <!-- The icon associated with this item.  This icon will not always be shown, so
648             the title should be sufficient in describing this item. -->
649        <attr name="android:icon" />
650
651        <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
652             with alphabetic keys. -->
653        <attr name="android:alphabeticShortcut" />
654
655        <!-- The alphabetic modifier key. This is the modifier when using a keyboard
656            with alphabetic keys. The values should be kept in sync with KeyEvent -->
657        <attr name="alphabeticModifiers">
658            <flag name="META" value="0x10000" />
659            <flag name="CTRL" value="0x1000" />
660            <flag name="ALT" value="0x02" />
661            <flag name="SHIFT" value="0x1" />
662            <flag name="SYM" value="0x4" />
663            <flag name="FUNCTION" value="0x8" />
664        </attr>
665
666        <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
667             keyboard. -->
668        <attr name="android:numericShortcut" />
669
670        <!-- The numeric modifier key. This is the modifier when using a numeric (e.g., 12-key)
671            keyboard. The values should be kept in sync with KeyEvent -->
672        <attr name="numericModifiers">
673            <flag name="META" value="0x10000" />
674            <flag name="CTRL" value="0x1000" />
675            <flag name="ALT" value="0x02" />
676            <flag name="SHIFT" value="0x1" />
677            <flag name="SYM" value="0x4" />
678            <flag name="FUNCTION" value="0x8" />
679        </attr>
680
681        <!-- Whether the item is capable of displaying a check mark. -->
682        <attr name="android:checkable" />
683
684        <!-- Whether the item is checked.  Note that you must first have enabled checking with
685             the checkable attribute or else the check mark will not appear. -->
686        <attr name="android:checked"  />
687
688        <!-- Whether the item is shown/visible. -->
689        <attr name="android:visible" />
690
691        <!-- Whether the item is enabled. -->
692        <attr name="android:enabled" />
693
694        <!-- Name of a method on the Context used to inflate the menu that will be
695             called when the item is clicked. -->
696        <attr name="android:onClick" />
697
698        <!-- How this item should display in the Action Bar, if present. -->
699        <attr name="showAsAction">
700            <!-- Never show this item in an action bar, show it in the overflow menu instead.
701                 Mutually exclusive with "ifRoom" and "always". -->
702            <flag name="never" value="0" />
703            <!-- Show this item in an action bar if there is room for it as determined
704                 by the system. Favor this option over "always" where possible.
705                 Mutually exclusive with "never" and "always". -->
706            <flag name="ifRoom" value="1" />
707            <!-- Always show this item in an actionbar, even if it would override
708                 the system's limits of how much stuff to put there. This may make
709                 your action bar look bad on some screens. In most cases you should
710                 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
711            <flag name="always" value="2" />
712            <!-- When this item is shown as an action in the action bar, show a text
713                 label with it even if it has an icon representation. -->
714            <flag name="withText" value="4" />
715            <!-- This item's action view collapses to a normal menu
716                 item. When expanded, the action view takes over a
717                 larger segment of its container. -->
718            <flag name="collapseActionView" value="8" />
719        </attr>
720
721        <!-- An optional layout to be used as an action view.
722             See {@link android.view.MenuItem#setActionView(android.view.View)}
723             for more info. -->
724        <attr name="actionLayout" format="reference" />
725
726        <!-- The name of an optional View class to instantiate and use as an
727             action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
728             for more info. -->
729        <attr name="actionViewClass" format="string" />
730
731        <!-- The name of an optional ActionProvider class to instantiate an action view
732             and perform operations such as default action for that menu item.
733             See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
734             for more info. -->
735        <attr name="actionProviderClass" format="string" />
736
737        <!-- The content description associated with the item. -->
738        <attr name="contentDescription" format="string"/>
739
740        <!-- The tooltip text associated with the item. -->
741        <attr name="tooltipText" format="string"/>
742
743        <!-- Tint to apply to the icon. -->
744        <attr name="iconTint" format="color" />
745
746        <!-- Blending mode used to apply the icon tint. -->
747        <attr name="iconTintMode">
748            <!-- The tint is drawn on top of the icon.
749                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
750            <enum name="src_over" value="3" />
751            <!-- The tint is masked by the alpha channel of the icon. The icon’s
752                 color channels are thrown out. [Sa * Da, Sc * Da] -->
753            <enum name="src_in" value="5" />
754            <!-- The tint is drawn above the icon, but with the icon’s alpha
755                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
756            <enum name="src_atop" value="9" />
757            <!-- Multiplies the color and alpha channels of the icon with those of
758                 the tint. [Sa * Da, Sc * Dc] -->
759            <enum name="multiply" value="14" />
760            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
761            <enum name="screen" value="15" />
762            <!-- Combines the tint and icon color and alpha channels, clamping the
763                 result to valid color values. Saturate(S + D) -->
764            <enum name="add" value="16" />
765        </attr>
766
767    </declare-styleable>
768
769    <declare-styleable name="Spinner">
770        <!-- The prompt to display when the spinner's dialog is shown. -->
771        <attr name="android:prompt" />
772        <!-- Theme to use for the drop-down or dialog popup window. -->
773        <attr name="popupTheme" />
774        <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
775        <attr name="android:popupBackground" />
776        <!-- Width of the dropdown in spinnerMode="dropdown". -->
777        <attr name="android:dropDownWidth" />
778        <!-- Reference to an array resource that will populate the Spinner. -->
779        <attr name="android:entries" />
780    </declare-styleable>
781
782    <declare-styleable name="SearchView">
783        <!-- The layout to use for the search view. -->
784        <attr name="layout" format="reference" />
785        <!-- The default state of the SearchView. If true, it will be iconified when not in
786             use and expanded when clicked. -->
787        <attr name="iconifiedByDefault" format="boolean" />
788        <!-- An optional maximum width of the SearchView. -->
789        <attr name="android:maxWidth" />
790        <!-- An optional user-defined query hint string to be displayed in the empty query field. -->
791        <attr name="queryHint" format="string" />
792        <!-- Default query hint used when {@code queryHint} is undefined and
793             the search view's {@code SearchableInfo} does not provide a hint. -->
794        <attr name="defaultQueryHint" format="string" />
795        <!-- The IME options to set on the query text field. -->
796        <attr name="android:imeOptions" />
797        <!-- The input type to set on the query text field. -->
798        <attr name="android:inputType" />
799        <!-- Close button icon -->
800        <attr name="closeIcon" format="reference" />
801        <!-- Go button icon -->
802        <attr name="goIcon" format="reference" />
803        <!-- Search icon -->
804        <attr name="searchIcon" format="reference" />
805        <!-- Search icon displayed as a text field hint -->
806        <attr name="searchHintIcon" format="reference" />
807        <!-- Voice button icon -->
808        <attr name="voiceIcon" format="reference" />
809        <!-- Commit icon shown in the query suggestion row -->
810        <attr name="commitIcon" format="reference" />
811        <!-- Layout for query suggestion rows -->
812        <attr name="suggestionRowLayout" format="reference" />
813        <!-- Background for the section containing the search query -->
814        <attr name="queryBackground" format="reference" />
815        <!-- Background for the section containing the action (e.g. voice search) -->
816        <attr name="submitBackground" format="reference" />
817        <attr name="android:focusable" />
818    </declare-styleable>
819
820    <!-- Attrbitutes for a ActivityChooserView. -->
821    <declare-styleable name="ActivityChooserView">
822        <!-- The maximal number of items initially shown in the activity list. -->
823        <attr name="initialActivityCount" format="string" />
824        <!-- The drawable to show in the button for expanding the activities overflow popup.
825             <strong>Note:</strong> Clients would like to set this drawable
826             as a clue about the action the chosen activity will perform. For
827             example, if share activity is to be chosen the drawable should
828             give a clue that sharing is to be performed.
829         -->
830        <attr name="expandActivityOverflowButtonDrawable" format="reference" />
831    </declare-styleable>
832
833    <declare-styleable name="AppCompatTextView">
834        <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
835        <attr name="textAllCaps" format="reference|boolean" />
836        <attr name="android:textAppearance" />
837        <!-- Specify the type of auto-size. Note that this feature is not supported by EditText,
838        works only for TextView. -->
839        <attr name="autoSizeTextType" format="enum">
840            <!-- No auto-sizing (default). -->
841            <enum name="none" value="0" />
842            <!-- Uniform horizontal and vertical text size scaling to fit within the
843            container. -->
844            <enum name="uniform" value="1" />
845        </attr>
846        <!-- Specify the auto-size step size if <code>autoSizeTextType</code> is set to
847        <code>uniform</code>. The default is 1px. Overwrites
848        <code>autoSizePresetSizes</code> if set. -->
849        <attr name="autoSizeStepGranularity" format="dimension" />
850        <!-- Resource array of dimensions to be used in conjunction with
851        <code>autoSizeTextType</code> set to <code>uniform</code>. Overrides
852        <code>autoSizeStepGranularity</code> if set. -->
853        <attr name="autoSizePresetSizes" format="reference"/>
854        <!-- The minimum text size constraint to be used when auto-sizing text. -->
855        <attr name="autoSizeMinTextSize" format="dimension" />
856        <!-- The maximum text size constraint to be used when auto-sizing text. -->
857        <attr name="autoSizeMaxTextSize" format="dimension" />
858        <!-- The attribute for the font family. -->
859        <attr name="fontFamily" format="string" />
860    </declare-styleable>
861
862    <declare-styleable name="LinearLayoutCompat">
863        <!-- Should the layout be a column or a row?  Use "horizontal"
864             for a row, "vertical" for a column.  The default is
865             horizontal. -->
866        <attr name="android:orientation" />
867        <attr name="android:gravity" />
868        <!-- When set to false, prevents the layout from aligning its children's
869             baselines. This attribute is particularly useful when the children
870             use different values for gravity. The default value is true. -->
871        <attr name="android:baselineAligned" />
872        <!-- When a linear layout is part of another layout that is baseline
873          aligned, it can specify which of its children to baseline align to
874          (that is, which child TextView).-->
875        <attr name="android:baselineAlignedChildIndex" />
876        <!-- Defines the maximum weight sum. If unspecified, the sum is computed
877             by adding the layout_weight of all of the children. This can be
878             used for instance to give a single child 50% of the total available
879             space by giving it a layout_weight of 0.5 and setting the weightSum
880             to 1.0. -->
881        <attr name="android:weightSum" />
882        <!-- When set to true, all children with a weight will be considered having
883             the minimum size of the largest child. If false, all children are
884             measured normally. -->
885        <attr name="measureWithLargestChild" format="boolean" />
886        <!-- Drawable to use as a vertical divider between buttons. -->
887        <attr name="divider" />
888        <!-- Setting for which dividers to show. -->
889        <attr name="showDividers">
890            <flag name="none" value="0" />
891            <flag name="beginning" value="1" />
892            <flag name="middle" value="2" />
893            <flag name="end" value="4" />
894        </attr>
895        <!-- Size of padding on either end of a divider. -->
896        <attr name="dividerPadding" format="dimension" />
897    </declare-styleable>
898
899    <declare-styleable name="LinearLayoutCompat_Layout">
900        <attr name="android:layout_width" />
901        <attr name="android:layout_height" />
902        <attr name="android:layout_weight" />
903        <attr name="android:layout_gravity" />
904    </declare-styleable>
905
906    <declare-styleable name="Toolbar">
907        <attr name="titleTextAppearance" format="reference" />
908        <attr name="subtitleTextAppearance" format="reference" />
909        <attr name="title" />
910        <attr name="subtitle" />
911        <attr name="android:gravity" />
912        <!--  Specifies extra space on the left, start, right and end sides
913              of the toolbar's title. Margin values should be positive. -->
914        <attr name="titleMargin" format="dimension" />
915        <!--  Specifies extra space on the start side of the toolbar's title.
916              If both this attribute and titleMargin are specified, then this
917              attribute takes precedence. Margin values should be positive. -->
918        <attr name="titleMarginStart" format="dimension" />
919        <!--  Specifies extra space on the end side of the toolbar's title.
920              If both this attribute and titleMargin are specified, then this
921              attribute takes precedence. Margin values should be positive. -->
922        <attr name="titleMarginEnd" format="dimension" />
923        <!--  Specifies extra space on the top side of the toolbar's title.
924              If both this attribute and titleMargin are specified, then this
925              attribute takes precedence. Margin values should be positive. -->
926        <attr name="titleMarginTop" format="dimension" />
927        <!--  Specifies extra space on the bottom side of the toolbar's title.
928              If both this attribute and titleMargin are specified, then this
929              attribute takes precedence. Margin values should be positive. -->
930        <attr name="titleMarginBottom" format="dimension" />
931        <!-- {@deprecated Use titleMargin} -->
932        <attr name="titleMargins" format="dimension" />
933        <attr name="contentInsetStart" />
934        <attr name="contentInsetEnd" />
935        <attr name="contentInsetLeft" />
936        <attr name="contentInsetRight" />
937        <attr name="contentInsetStartWithNavigation" />
938        <attr name="contentInsetEndWithActions" />
939        <attr name="maxButtonHeight" format="dimension" />
940        <attr name="buttonGravity">
941            <!-- Push object to the top of its container, not changing its size. -->
942            <flag name="top" value="0x30" />
943            <!-- Push object to the bottom of its container, not changing its size. -->
944            <flag name="bottom" value="0x50" />
945        </attr>
946        <!-- Icon drawable to use for the collapse button. -->
947        <attr name="collapseIcon" format="reference" />
948        <!-- Text to set as the content description for the collapse button. -->
949        <attr name="collapseContentDescription" format="string" />
950        <!-- Reference to a theme that should be used to inflate popups
951             shown by widgets in the toolbar. -->
952        <attr name="popupTheme" />
953        <!-- Icon drawable to use for the navigation button located at
954             the start of the toolbar. -->
955        <attr name="navigationIcon" format="reference" />
956        <!-- Text to set as the content description for the navigation button
957             located at the start of the toolbar. -->
958        <attr name="navigationContentDescription" format="string" />
959        <!-- Drawable to set as the logo that appears at the starting side of
960             the Toolbar, just after the navigation button. -->
961        <attr name="logo" />
962        <!-- A content description string to describe the appearance of the
963             associated logo image. -->
964        <attr name="logoDescription" format="string" />
965        <!-- A color to apply to the title string. -->
966        <attr name="titleTextColor" format="color" />
967        <!-- A color to apply to the subtitle string. -->
968        <attr name="subtitleTextColor" format="color" />
969        <attr name="android:minHeight" />
970    </declare-styleable>
971
972    <declare-styleable name="PopupWindowBackgroundState">
973        <!-- State identifier indicating the popup will be above the anchor. -->
974        <attr name="state_above_anchor" format="boolean" />
975    </declare-styleable>
976
977    <declare-styleable name="ListPopupWindow">
978        <!-- Amount of pixels by which the drop down should be offset vertically. -->
979        <attr name="android:dropDownVerticalOffset" />
980        <!-- Amount of pixels by which the drop down should be offset horizontally. -->
981        <attr name="android:dropDownHorizontalOffset" />
982    </declare-styleable>
983
984    <declare-styleable name="PopupWindow">
985        <!-- Whether the popup window should overlap its anchor view. -->
986        <attr name="overlapAnchor" format="boolean" />
987        <attr name="android:popupBackground" />
988        <attr name="android:popupAnimationStyle"/>
989    </declare-styleable>
990
991    <declare-styleable name="DrawerArrowToggle">
992        <!-- The drawing color for the bars -->
993        <attr name="color" format="color"/>
994        <!-- Whether bars should rotate or not during transition -->
995        <attr name="spinBars" format="boolean"/>
996        <!-- The total size of the drawable -->
997        <attr name="drawableSize" format="dimension"/>
998        <!-- The max gap between the bars when they are parallel to each other -->
999        <attr name="gapBetweenBars" format="dimension"/>
1000        <!-- The length of the arrow head when formed to make an arrow -->
1001        <attr name="arrowHeadLength" format="dimension"/>
1002        <!-- The length of the shaft when formed to make an arrow -->
1003        <attr name="arrowShaftLength" format="dimension"/>
1004        <!-- The length of the bars when they are parallel to each other -->
1005        <attr name="barLength" format="dimension"/>
1006        <!-- The thickness (stroke size) for the bar paint -->
1007        <attr name="thickness" format="dimension"/>
1008    </declare-styleable>
1009
1010    <attr name="drawerArrowStyle" format="reference" />
1011
1012    <declare-styleable name="ViewStubCompat">
1013        <!-- Supply an identifier for the layout resource to inflate when the ViewStub
1014             becomes visible or when forced to do so. The layout resource must be a
1015             valid reference to a layout. -->
1016        <attr name="android:layout" />
1017        <!-- Overrides the id of the inflated View with this value. -->
1018        <attr name="android:inflatedId" />
1019        <attr name="android:id" />
1020    </declare-styleable>
1021
1022    <declare-styleable name="CompoundButton">
1023        <attr name="android:button"/>
1024        <!-- Tint to apply to the button drawable. -->
1025        <attr name="buttonTint" format="color" />
1026
1027        <!-- Blending mode used to apply the button tint. -->
1028        <attr name="buttonTintMode">
1029            <!-- The tint is drawn on top of the drawable.
1030                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1031            <enum name="src_over" value="3" />
1032            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1033                 color channels are thrown out. [Sa * Da, Sc * Da] -->
1034            <enum name="src_in" value="5" />
1035            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1036                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1037            <enum name="src_atop" value="9" />
1038            <!-- Multiplies the color and alpha channels of the drawable with those of
1039                 the tint. [Sa * Da, Sc * Dc] -->
1040            <enum name="multiply" value="14" />
1041            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1042            <enum name="screen" value="15" />
1043            <!-- Combines the tint and icon color and alpha channels, clamping the
1044                 result to valid color values. Saturate(S + D) -->
1045            <enum name="add" value="16" />
1046        </attr>
1047    </declare-styleable>
1048
1049    <declare-styleable name="SwitchCompat">
1050        <!-- Drawable to use as the "thumb" that switches back and forth. -->
1051        <attr name="android:thumb" />
1052        <!-- Tint to apply to the thumb drawable. -->
1053        <attr name="thumbTint" format="color" />
1054        <!-- Blending mode used to apply the thumb tint. -->
1055        <attr name="thumbTintMode">
1056            <!-- The tint is drawn on top of the drawable.
1057                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1058            <enum name="src_over" value="3" />
1059            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1060                 color channels are thrown out. [Sa * Da, Sc * Da] -->
1061            <enum name="src_in" value="5" />
1062            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1063                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1064            <enum name="src_atop" value="9" />
1065            <!-- Multiplies the color and alpha channels of the drawable with those of
1066                 the tint. [Sa * Da, Sc * Dc] -->
1067            <enum name="multiply" value="14" />
1068            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1069            <enum name="screen" value="15" />
1070            <!-- Combines the tint and drawable color and alpha channels, clamping the
1071                 result to valid color values. Saturate(S + D) -->
1072            <enum name="add" value="16" />
1073        </attr>
1074        <!-- Drawable to use as the "track" that the switch thumb slides within. -->
1075        <attr name="track" format="reference" />
1076        <!-- Tint to apply to the track. -->
1077        <attr name="trackTint" format="color" />
1078        <!-- Blending mode used to apply the track tint. -->
1079        <attr name="trackTintMode">
1080            <!-- The tint is drawn on top of the drawable.
1081                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1082            <enum name="src_over" value="3" />
1083            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1084                 color channels are thrown out. [Sa * Da, Sc * Da] -->
1085            <enum name="src_in" value="5" />
1086            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1087                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1088            <enum name="src_atop" value="9" />
1089            <!-- Multiplies the color and alpha channels of the drawable with those of
1090                 the tint. [Sa * Da, Sc * Dc] -->
1091            <enum name="multiply" value="14" />
1092            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1093            <enum name="screen" value="15" />
1094            <!-- Combines the tint and drawable color and alpha channels, clamping the
1095                 result to valid color values. Saturate(S + D) -->
1096            <enum name="add" value="16" />
1097        </attr>
1098        <!-- Text to use when the switch is in the checked/"on" state. -->
1099        <attr name="android:textOn" />
1100        <!-- Text to use when the switch is in the unchecked/"off" state. -->
1101        <attr name="android:textOff" />
1102        <!-- Amount of padding on either side of text within the switch thumb. -->
1103        <attr name="thumbTextPadding" format="dimension" />
1104        <!-- TextAppearance style for text displayed on the switch thumb. -->
1105        <attr name="switchTextAppearance" format="reference" />
1106        <!-- Minimum width for the switch component -->
1107        <attr name="switchMinWidth" format="dimension" />
1108        <!-- Minimum space between the switch and caption text -->
1109        <attr name="switchPadding" format="dimension" />
1110        <!-- Whether to split the track and leave a gap for the thumb drawable. -->
1111        <attr name="splitTrack" format="boolean" />
1112        <!-- Whether to draw on/off text. -->
1113        <attr name="showText" format="boolean" />
1114    </declare-styleable>
1115
1116    <declare-styleable name="TextAppearance">
1117        <attr name="android:textSize" />
1118        <attr name="android:textColor" />
1119        <attr name="android:textColorHint"/>
1120        <attr name="android:textColorLink"/>
1121        <attr name="android:textStyle" />
1122        <attr name="android:typeface" />
1123        <attr name="android:fontFamily" />
1124        <attr name="fontFamily" />
1125        <attr name="textAllCaps" />
1126        <attr name="android:shadowColor"/>
1127        <attr name="android:shadowDy"/>
1128        <attr name="android:shadowDx"/>
1129        <attr name="android:shadowRadius"/>
1130    </declare-styleable>
1131
1132    <!-- The set of attributes that describe a AlertDialog's theme. -->
1133    <declare-styleable name="AlertDialog">
1134        <attr name="android:layout" />
1135        <attr name="buttonPanelSideLayout" format="reference" />
1136        <attr name="listLayout" format="reference" />
1137        <attr name="multiChoiceItemLayout" format="reference" />
1138        <attr name="singleChoiceItemLayout" format="reference" />
1139        <attr name="listItemLayout" format="reference" />
1140        <attr name="showTitle" format="boolean" />
1141    </declare-styleable>
1142
1143    <!-- @hide -->
1144    <declare-styleable name="ButtonBarLayout">
1145        <!-- Whether to automatically stack the buttons when there is not
1146             enough space to lay them out side-by-side. -->
1147        <attr name="allowStacking" format="boolean" />
1148    </declare-styleable>
1149
1150    <!-- Attributes that can be assigned to a ColorStateList item. -->
1151    <declare-styleable name="ColorStateListItem">
1152        <!-- Base color for this state. -->
1153        <attr name="android:color" />
1154        <!-- Alpha multiplier applied to the base color. -->
1155        <attr name="alpha" format="float" />
1156        <attr name="android:alpha"/>
1157    </declare-styleable>
1158
1159    <declare-styleable name="AppCompatImageView">
1160        <attr name="android:src"/>
1161        <!-- Sets a drawable as the content of this ImageView. Allows the use of vector drawable
1162             when running on older versions of the platform. -->
1163        <attr name="srcCompat" format="reference" />
1164
1165        <!-- Tint to apply to the image source. -->
1166        <attr name="tint" format="color" />
1167
1168        <!-- Blending mode used to apply the image source tint. -->
1169        <attr name="tintMode">
1170            <!-- The tint is drawn on top of the drawable.
1171                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1172            <enum name="src_over" value="3" />
1173            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1174                 color channels are thrown out. [Sa * Da, Sc * Da] -->
1175            <enum name="src_in" value="5" />
1176            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1177                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1178            <enum name="src_atop" value="9" />
1179            <!-- Multiplies the color and alpha channels of the drawable with those of
1180                 the tint. [Sa * Da, Sc * Dc] -->
1181            <enum name="multiply" value="14" />
1182            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1183            <enum name="screen" value="15" />
1184            <!-- Combines the tint and icon color and alpha channels, clamping the
1185                 result to valid color values. Saturate(S + D) -->
1186            <enum name="add" value="16" />
1187        </attr>
1188    </declare-styleable>
1189
1190    <declare-styleable name="AppCompatSeekBar">
1191        <attr name="android:thumb" />
1192        <!-- Drawable displayed at each progress position on a seekbar. -->
1193        <attr name="tickMark" format="reference" />
1194        <!-- Tint to apply to the tick mark drawable. -->
1195        <attr name="tickMarkTint" format="color" />
1196        <!-- Blending mode used to apply the tick mark tint. -->
1197        <attr name="tickMarkTintMode">
1198            <!-- The tint is drawn on top of the drawable.
1199                 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1200            <enum name="src_over" value="3" />
1201            <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1202                 color channels are thrown out. [Sa * Da, Sc * Da] -->
1203            <enum name="src_in" value="5" />
1204            <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1205                 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1206            <enum name="src_atop" value="9" />
1207            <!-- Multiplies the color and alpha channels of the drawable with those of
1208                 the tint. [Sa * Da, Sc * Dc] -->
1209            <enum name="multiply" value="14" />
1210            <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1211            <enum name="screen" value="15" />
1212            <!-- Combines the tint and drawable color and alpha channels, clamping the
1213                 result to valid color values. Saturate(S + D) -->
1214            <enum name="add" value="16" />
1215        </attr>
1216    </declare-styleable>
1217
1218    <declare-styleable name="AppCompatTextHelper">
1219        <attr name="android:drawableLeft" />
1220        <attr name="android:drawableTop" />
1221        <attr name="android:drawableRight" />
1222        <attr name="android:drawableBottom" />
1223        <attr name="android:drawableStart" />
1224        <attr name="android:drawableEnd" />
1225        <attr name="android:textAppearance" />
1226    </declare-styleable>
1227
1228    <declare-styleable name="RecycleListView">
1229        <!-- Bottom padding to use when no buttons are present. -->
1230        <attr name="paddingBottomNoButtons" format="dimension" />
1231        <!-- Top padding to use when no title is present. -->
1232        <attr name="paddingTopNoTitle" format="dimension" />
1233    </declare-styleable>
1234
1235</resources>
1236