blob: c48b7bac3518aac16bd526b96c9b515d8055418c [file] [log] [blame]
Adam Powellbbbb8f32012-04-25 13:03:55 -07001<?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. -->
Trevor Johns20ac7242012-12-06 13:18:15 -080025 <eat-comment/>
Adam Powellbbbb8f32012-04-25 13:03:55 -070026
Chris Banes49c78902014-07-15 15:30:55 +010027
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. -->
Chris Banesa7776942016-02-09 15:30:16 -080034 <declare-styleable name="AppCompatTheme">
Chris Banes49c78902014-07-15 15:30:55 +010035
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
Chris Banes0f584012015-02-04 01:30:24 +000045 <!-- Flag indicating whether there should be no title on this window. -->
46 <attr name="windowNoTitle" format="boolean" />
47
Chris Banes49c78902014-07-15 15:30:55 +010048 <!-- 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" />
Chris Banes56fd5012013-11-06 15:24:22 +000052
Chris Banesde9f38c2014-08-07 17:36:09 +010053 <!-- 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
Chris Banes56fd5012013-11-06 15:24:22 +000057 <!-- 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
Chris Banes19eaf142015-02-04 23:39:54 +000075 <!-- 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
Chris Banes4c2a9592014-08-01 15:26:43 +010086 <attr name="android:windowIsFloating" />
Chris Banes46dfe0c2014-11-03 10:47:19 +000087 <attr name="android:windowAnimationStyle" />
Adam Powellbbbb8f32012-04-25 13:03:55 -070088
Chris Banes49c78902014-07-15 15:30:55 +010089 <!-- =================== -->
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" />
Adam Powellbbbb8f32012-04-25 13:03:55 -0700125 </attr>
Chris Banes49c78902014-07-15 15:30:55 +0100126 <!-- 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"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700136
Adam Powellbbbb8f32012-04-25 13:03:55 -0700137
Chris Banes49c78902014-07-15 15:30:55 +0100138 <!-- =================== -->
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"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700164
Chris Banes49c78902014-07-15 15:30:55 +0100165 <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
166 <attr name="actionModePopupWindowStyle" format="reference"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700167
Chris Banes81804142013-05-22 09:55:42 +0100168
Chris Banes49c78902014-07-15 15:30:55 +0100169 <!-- =================== -->
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"/>
Chris Banes6142a542016-01-27 13:05:29 +0000177 <!-- Text color, typeface, size, and style for header text inside of a popup menu. -->
178 <attr name="textAppearancePopupMenuHeader" format="reference" />
Trevor Johns23344272012-10-05 20:13:05 -0700179
Adam Powellbbbb8f32012-04-25 13:03:55 -0700180
Chris Banes49c78902014-07-15 15:30:55 +0100181 <!-- =================== -->
Chris Banes16e8d4d2014-12-23 10:10:20 +0000182 <!-- 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" />
Chris Banes19eaf142015-02-04 23:39:54 +0000190 <!-- The list divider used in alert dialogs. -->
191 <attr name="listDividerAlertDialog" format="reference" />
Chris Banes16e8d4d2014-12-23 10:10:20 +0000192
193 <!-- =================== -->
Chris Banes49c78902014-07-15 15:30:55 +0100194 <!-- Other widget styles -->
195 <!-- =================== -->
196 <eat-comment />
Adam Powellbbbb8f32012-04-25 13:03:55 -0700197
Adam Powellbbbb8f32012-04-25 13:03:55 -0700198 <!-- Default ActionBar dropdown style. -->
Chris Banes79e7a9e2013-03-01 14:48:09 +0000199 <attr name="actionDropDownStyle" format="reference"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700200 <!-- The preferred item height for dropdown lists. -->
Trevor Johns20ac7242012-12-06 13:18:15 -0800201 <attr name="dropdownListPreferredItemHeight" format="dimension"/>
Chris Banes49c78902014-07-15 15:30:55 +0100202 <!-- 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
Chris Banes6b80dd62015-01-29 17:35:09 +0000210 <!-- Style for button bars -->
Chris Banes49c78902014-07-15 15:30:55 +0100211 <attr name="buttonBarStyle" format="reference"/>
Chris Banes6b80dd62015-01-29 17:35:09 +0000212 <!-- Style for buttons within button bars -->
Chris Banes49c78902014-07-15 15:30:55 +0100213 <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"/>
Chris Banesd167dc42014-08-13 13:39:52 +0100218 <!-- Background drawable for borderless standalone items that need focus/pressed states. -->
219 <attr name="selectableItemBackgroundBorderless" format="reference" />
Chris Banes11924542015-05-13 13:38:02 +0100220 <!-- Style for buttons without an explicit border, often used in groups. -->
221 <attr name="borderlessButtonStyle" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100222 <!-- 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
Adam Powellbbbb8f32012-04-25 13:03:55 -0700234 <!-- Default PopupMenu style. -->
Trevor Johns20ac7242012-12-06 13:18:15 -0800235 <attr name="popupMenuStyle" format="reference"/>
Chris Banes49c78902014-07-15 15:30:55 +0100236 <!-- Default PopupWindow style. -->
237 <attr name="popupWindowStyle" format="reference" />
238
Chris Banes968c5932014-07-27 11:23:58 +0100239 <!-- EditText text foreground color. -->
240 <attr name="editTextColor" format="reference|color" />
241 <!-- EditText background drawable. -->
242 <attr name="editTextBackground" format="reference" />
243
Chris Banese6874502015-09-25 10:52:30 +0100244 <!-- ImageButton background drawable. -->
245 <attr name="imageButtonStyle" format="reference" />
246
Chris Banes1b01ce22014-07-24 16:45:25 +0100247 <!-- ============================ -->
248 <!-- SearchView styles and assets -->
249 <!-- ============================ -->
250 <eat-comment />
Chris Banes1b01ce22014-07-24 16:45:25 +0100251 <!-- 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" />
Chris Banes49c78902014-07-15 15:30:55 +0100259
Chris Banes1b01ce22014-07-24 16:45:25 +0100260 <!-- =========== -->
261 <!-- List styles -->
Chris Banes49c78902014-07-15 15:30:55 +0100262 <!-- =========== -->
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"/>
Kirill Grouchnikov826d08e2017-03-16 16:29:20 -0400283 <!-- The preferred TextAppearance for the secondary text of list items. -->
284 <attr name="textAppearanceListItemSecondary" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100285 <!-- The preferred TextAppearance for the primary text of small list items. -->
286 <attr name="textAppearanceListItemSmall" format="reference"/>
287
Chris Baneseb686f82013-02-25 16:15:44 +0000288 <!-- ============ -->
289 <!-- Panel styles -->
290 <!-- ============ -->
291 <eat-comment />
292
Chris Banes57c6de92014-09-19 11:33:22 +0100293 <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
294 <attr name="panelBackground" format="reference" />
Chris Banesd900fe02013-04-08 18:00:57 +0100295 <!-- Default Panel Menu width. -->
Chris Baneseb686f82013-02-25 16:15:44 +0000296 <attr name="panelMenuListWidth" format="dimension" />
Chris Baneseb686f82013-02-25 16:15:44 +0000297 <!-- Default Panel Menu style. -->
298 <attr name="panelMenuListTheme" format="reference" />
Chris Banes61cb91b2013-04-15 12:41:53 +0100299 <!-- Drawable used as a background for selected list items. -->
300 <attr name="listChoiceBackgroundIndicator" format="reference" />
301
Chris Banes13ab4aa2014-07-08 08:37:35 +0100302 <!-- ============= -->
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
Chris Banes415f7402014-09-22 11:49:54 +0100331 <!-- The color applied to framework switch thumbs in their normal state. -->
332 <attr name="colorSwitchThumbNormal" format="color" />
333
Chris Banesb1131c62015-05-08 15:00:39 +0100334 <!-- The background used by framework controls. -->
335 <attr name="controlBackground" format="reference" />
336
Chris Banes593d8bc2016-02-22 17:04:33 +0000337 <!-- Default color of background imagery for floating components, ex. dialogs, popups, and cards. -->
338 <attr name="colorBackgroundFloating" format="color" />
339
Chris Banes19eaf142015-02-04 23:39:54 +0000340 <!-- ============ -->
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
Chris Banes2cccf602015-02-18 12:32:08 +0000362 <!-- ===================== -->
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" />
Chris Banes7c8ba0f2015-12-10 15:51:38 +0000383 <!-- Indicator RatingBar style. -->
384 <attr name="ratingBarStyleIndicator" format="reference" />
385 <!-- Small indicator RatingBar style. -->
386 <attr name="ratingBarStyleSmall" format="reference" />
Chris Banes10e2dbc2015-05-08 13:49:25 +0100387 <!-- Default SeekBar style. -->
388 <attr name="seekBarStyle" format="reference" />
Chris Banes2cccf602015-02-18 12:32:08 +0000389 <!-- Default Spinner style. -->
390 <attr name="spinnerStyle" format="reference" />
391 <!-- Default style for the Switch widget. -->
392 <attr name="switchStyle" format="reference" />
393
Chris Banes6142a542016-01-27 13:05:29 +0000394 <!-- Default menu-style ListView style. -->
395 <attr name="listMenuViewStyle" format="reference" />
Vladislav Kaznacheeva4c68252017-03-03 13:09:06 -0800396
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" />
Kirill Grouchnikovbe551c42017-04-18 11:39:27 -0400406
Kirill Grouchnikovf0554392017-04-20 12:08:17 -0400407 <!-- 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" />
Kirill Grouchnikov3f27daa2017-10-13 17:04:40 -0400410
411 <attr name="viewInflaterClass" format="string" />
Adam Powellbbbb8f32012-04-25 13:03:55 -0700412 </declare-styleable>
413
Chris Banes49c78902014-07-15 15:30:55 +0100414
415 <!-- ============================================ -->
416
417 <!-- Attributes used to style the Action Bar.
418 These should be set on your theme; the default actionBarStyle will
419 propagate them to the correct elements as needed.
420
421 Please Note: when overriding attributes for an ActionBar style
422 you must specify each attribute twice: once with the "android:"
423 namespace prefix and once without. -->
424 <declare-styleable name="ActionBar">
425 <!-- The type of navigation to use. -->
426 <attr name="navigationMode">
427 <!-- Normal static title text -->
428 <enum name="normal" value="0"/>
429 <!-- The action bar will use a selection list for navigation. -->
430 <enum name="listMode" value="1"/>
431 <!-- The action bar will use a series of horizontal tabs for navigation. -->
432 <enum name="tabMode" value="2"/>
433 </attr>
434 <!-- Options affecting how the action bar is displayed. -->
435 <attr name="displayOptions">
436 <flag name="none" value="0" />
437 <flag name="useLogo" value="0x1"/>
438 <flag name="showHome" value="0x2"/>
439 <flag name="homeAsUp" value="0x4"/>
440 <flag name="showTitle" value="0x8"/>
441 <flag name="showCustom" value="0x10"/>
442 <flag name="disableHome" value="0x20"/>
443 </attr>
444 <!-- Specifies title text used for navigationMode="normal" -->
445 <attr name="title"/>
446 <!-- Specifies subtitle text used for navigationMode="normal" -->
447 <attr name="subtitle" format="string"/>
448 <!-- Specifies a style to use for title text. -->
449 <attr name="titleTextStyle" format="reference"/>
450 <!-- Specifies a style to use for subtitle text. -->
451 <attr name="subtitleTextStyle" format="reference"/>
452 <!-- Specifies the drawable used for the application icon. -->
453 <attr name="icon" format="reference"/>
454 <!-- Specifies the drawable used for the application logo. -->
455 <attr name="logo" format="reference"/>
456 <!-- Specifies the drawable used for item dividers. -->
457 <attr name="divider" format="reference"/>
458 <!-- Specifies a background drawable for the action bar. -->
459 <attr name="background" format="reference"/>
460 <!-- Specifies a background drawable for a second stacked row of the action bar. -->
461 <attr name="backgroundStacked" format="reference|color"/>
462 <!-- Specifies a background drawable for the bottom component of a split action bar. -->
463 <attr name="backgroundSplit" format="reference|color"/>
464 <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
465 <attr name="customNavigationLayout" format="reference"/>
466 <!-- Specifies a fixed height. -->
467 <attr name="height"/>
468 <!-- Specifies a layout to use for the "home" section of the action bar. -->
469 <attr name="homeLayout" format="reference"/>
470 <!-- Specifies a style resource to use for an embedded progress bar. -->
471 <attr name="progressBarStyle" format="reference"/>
472 <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
473 <attr name="indeterminateProgressStyle" format="reference"/>
474 <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
475 <attr name="progressBarPadding" format="dimension"/>
476 <!-- Up navigation glyph -->
477 <attr name="homeAsUpIndicator" />
478 <!-- Specifies padding that should be applied to the left and right sides of
479 system-provided items in the bar. -->
480 <attr name="itemPadding" format="dimension"/>
481 <!-- Set true to hide the action bar on a vertical nested scroll of content. -->
482 <attr name="hideOnContentScroll" format="boolean"/>
483 <!-- Minimum inset for content views within a bar. Navigation buttons and
484 menu views are excepted. Only valid for some themes and configurations. -->
485 <attr name="contentInsetStart" format="dimension"/>
486 <!-- Minimum inset for content views within a bar. Navigation buttons and
487 menu views are excepted. Only valid for some themes and configurations. -->
488 <attr name="contentInsetEnd" format="dimension"/>
489 <!-- Minimum inset for content views within a bar. Navigation buttons and
490 menu views are excepted. Only valid for some themes and configurations. -->
491 <attr name="contentInsetLeft" format="dimension"/>
492 <!-- Minimum inset for content views within a bar. Navigation buttons and
493 menu views are excepted. Only valid for some themes and configurations. -->
494 <attr name="contentInsetRight" format="dimension"/>
Adam Powell62d19a62016-03-28 11:12:24 -0700495 <!-- Minimum inset for content views within a bar when a navigation button
496 is present, such as the Up button. Only valid for some themes and configurations. -->
497 <attr name="contentInsetStartWithNavigation" format="dimension" />
498 <!-- Minimum inset for content views within a bar when actions from a menu
499 are present. Only valid for some themes and configurations. -->
500 <attr name="contentInsetEndWithActions" format="dimension" />
Chris Banes49c78902014-07-15 15:30:55 +0100501 <!-- Elevation for the action bar itself -->
502 <attr name="elevation" format="dimension" />
Chris Banes61c0bbe2014-07-31 14:21:02 +0100503 <!-- Reference to a theme that should be used to inflate popups
504 shown by widgets in the action bar. -->
505 <attr name="popupTheme" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100506 </declare-styleable>
507
508 <!-- Valid LayoutParams for views placed in the action bar as custom views. -->
509 <declare-styleable name="ActionBarLayout">
510 <attr name="android:layout_gravity"/>
511 </declare-styleable>
512
513 <declare-styleable name="ActionMenuItemView">
514 <attr name="android:minWidth"/>
515 </declare-styleable>
516
517 <declare-styleable name="ActionMode">
518 <!-- Specifies a style to use for title text. -->
519 <attr name="titleTextStyle"/>
520 <!-- Specifies a style to use for subtitle text. -->
521 <attr name="subtitleTextStyle"/>
522 <!-- Specifies a background for the action mode bar. -->
523 <attr name="background"/>
524 <!-- Specifies a background for the split action mode bar. -->
525 <attr name="backgroundSplit"/>
526 <!-- Specifies a fixed height for the action mode bar. -->
527 <attr name="height"/>
Chris Banes156b08e2014-09-05 12:08:03 +0100528 <!-- Specifies a layout to use for the "close" item at the starting edge. -->
529 <attr name="closeItemLayout" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100530 </declare-styleable>
531
532 <declare-styleable name="View">
533 <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
534 <attr name="paddingStart" format="dimension"/>
535 <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
536 <attr name="paddingEnd" format="dimension"/>
Chris Banes49c78902014-07-15 15:30:55 +0100537 <!-- Boolean that controls whether a view can take focus. By default the user can not
538 move focus to a view; by setting this attribute to true the view is
539 allowed to take focus. This value does not impact the behavior of
540 directly calling {@link android.view.View#requestFocus}, which will
541 always request focus regardless of this view. It only impacts where
542 focus navigation will try to move focus. -->
543 <attr name="android:focusable" />
Chris Banesfd1eb272014-10-24 13:07:51 +0100544 <!-- Deprecated. -->
545 <attr name="theme" format="reference" />
Chris Banesfd1eb272014-10-24 13:07:51 +0100546 <!-- Specifies a theme override for a view. When a theme override is set, the
547 view will be inflated using a {@link android.content.Context} themed with
548 the specified resource. -->
549 <attr name="android:theme" />
Chris Banes091b0f92015-05-06 19:13:34 +0100550 </declare-styleable>
Chris Banesfd1eb272014-10-24 13:07:51 +0100551
Chris Banes091b0f92015-05-06 19:13:34 +0100552 <declare-styleable name="ViewBackgroundHelper">
553 <attr name="android:background" />
Chris Banes9840efe2015-01-06 14:02:01 +0000554 <!-- Tint to apply to the background. -->
555 <attr name="backgroundTint" format="color" />
556
557 <!-- Blending mode used to apply the background tint. -->
558 <attr name="backgroundTintMode">
559 <!-- The tint is drawn on top of the drawable.
560 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
561 <enum name="src_over" value="3" />
562 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
563 color channels are thrown out. [Sa * Da, Sc * Da] -->
564 <enum name="src_in" value="5" />
565 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
566 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
567 <enum name="src_atop" value="9" />
568 <!-- Multiplies the color and alpha channels of the drawable with those of
569 the tint. [Sa * Da, Sc * Dc] -->
570 <enum name="multiply" value="14" />
571 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
572 <enum name="screen" value="15" />
Kamal Faraj4076f7b2017-09-01 16:17:55 +0200573 <!-- Combines the tint and icon color and alpha channels, clamping the
574 result to valid color values. Saturate(S + D) -->
575 <enum name="add" value="16" />
Chris Banes9840efe2015-01-06 14:02:01 +0000576 </attr>
Chris Banes49c78902014-07-15 15:30:55 +0100577 </declare-styleable>
578
Adam Powellbbbb8f32012-04-25 13:03:55 -0700579 <declare-styleable name="MenuView">
580 <!-- Default appearance of menu item text. -->
Trevor Johns82629492013-01-10 18:11:19 -0800581 <attr name="android:itemTextAppearance"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700582 <!-- Default horizontal divider between rows of menu items. -->
Trevor Johns82629492013-01-10 18:11:19 -0800583 <attr name="android:horizontalDivider"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700584 <!-- Default vertical divider between menu items. -->
Trevor Johns82629492013-01-10 18:11:19 -0800585 <attr name="android:verticalDivider"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700586 <!-- Default background for the menu header. -->
Trevor Johns82629492013-01-10 18:11:19 -0800587 <attr name="android:headerBackground"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700588 <!-- Default background for each menu item. -->
Trevor Johns82629492013-01-10 18:11:19 -0800589 <attr name="android:itemBackground"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700590 <!-- Default animations for the menu. -->
Trevor Johns82629492013-01-10 18:11:19 -0800591 <attr name="android:windowAnimationStyle"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700592 <!-- Default disabled icon alpha for each menu item that shows an icon. -->
Trevor Johns82629492013-01-10 18:11:19 -0800593 <attr name="android:itemIconDisabledAlpha"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700594 <!-- Whether space should be reserved in layout when an icon is missing. -->
Chris Banes692b7042014-09-17 18:39:59 +0100595 <attr name="preserveIconSpacing" format="boolean" />
Chris Banes6142a542016-01-27 13:05:29 +0000596 <!-- Drawable for the arrow icon indicating a particular item is a submenu. -->
597 <attr name="subMenuArrow" format="reference" />
Adam Powellbbbb8f32012-04-25 13:03:55 -0700598 </declare-styleable>
599 <declare-styleable name="ActionMenuView">
600 <!-- Size of padding on either end of a divider. -->
601 </declare-styleable>
602
Trevor Johns82629492013-01-10 18:11:19 -0800603 <!-- Base attributes that are available to all groups. -->
604 <declare-styleable name="MenuGroup">
605
606 <!-- The ID of the group. -->
607 <attr name="android:id" />
608
609 <!-- The category applied to all items within this group.
610 (This will be or'ed with the orderInCategory attribute.) -->
611 <attr name="android:menuCategory" />
612
613 <!-- The order within the category applied to all items within this group.
614 (This will be or'ed with the category attribute.) -->
615 <attr name="android:orderInCategory" />
616
617 <!-- Whether the items are capable of displaying a check mark. -->
618 <attr name="android:checkableBehavior" />
619
620 <!-- Whether the items are shown/visible. -->
621 <attr name="android:visible" />
622
623 <!-- Whether the items are enabled. -->
624 <attr name="android:enabled" />
625
626 </declare-styleable>
627
628 <!-- Base attributes that are available to all Item objects. -->
629 <declare-styleable name="MenuItem">
630
631 <!-- The ID of the item. -->
632 <attr name="android:id" />
633
634 <!-- The category applied to the item.
635 (This will be or'ed with the orderInCategory attribute.) -->
636 <attr name="android:menuCategory" />
637
638 <!-- The order within the category applied to the item.
639 (This will be or'ed with the category attribute.) -->
640 <attr name="android:orderInCategory" />
641
642 <!-- The title associated with the item. -->
643 <attr name="android:title" />
644
645 <!-- The condensed title associated with the item. This is used in situations where the
646 normal title may be too long to be displayed. -->
647 <attr name="android:titleCondensed" />
648
649 <!-- The icon associated with this item. This icon will not always be shown, so
650 the title should be sufficient in describing this item. -->
651 <attr name="android:icon" />
652
653 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard
654 with alphabetic keys. -->
655 <attr name="android:alphabeticShortcut" />
656
Peeyush Agarwal09231da2016-10-27 15:11:42 +0100657 <!-- The alphabetic modifier key. This is the modifier when using a keyboard
658 with alphabetic keys. The values should be kept in sync with KeyEvent -->
659 <attr name="alphabeticModifiers">
660 <flag name="META" value="0x10000" />
661 <flag name="CTRL" value="0x1000" />
662 <flag name="ALT" value="0x02" />
663 <flag name="SHIFT" value="0x1" />
664 <flag name="SYM" value="0x4" />
665 <flag name="FUNCTION" value="0x8" />
666 </attr>
667
Trevor Johns82629492013-01-10 18:11:19 -0800668 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
669 keyboard. -->
670 <attr name="android:numericShortcut" />
671
Peeyush Agarwal09231da2016-10-27 15:11:42 +0100672 <!-- The numeric modifier key. This is the modifier when using a numeric (e.g., 12-key)
673 keyboard. The values should be kept in sync with KeyEvent -->
674 <attr name="numericModifiers">
675 <flag name="META" value="0x10000" />
676 <flag name="CTRL" value="0x1000" />
677 <flag name="ALT" value="0x02" />
678 <flag name="SHIFT" value="0x1" />
679 <flag name="SYM" value="0x4" />
680 <flag name="FUNCTION" value="0x8" />
681 </attr>
682
Trevor Johns82629492013-01-10 18:11:19 -0800683 <!-- Whether the item is capable of displaying a check mark. -->
684 <attr name="android:checkable" />
685
686 <!-- Whether the item is checked. Note that you must first have enabled checking with
687 the checkable attribute or else the check mark will not appear. -->
688 <attr name="android:checked" />
689
690 <!-- Whether the item is shown/visible. -->
691 <attr name="android:visible" />
692
693 <!-- Whether the item is enabled. -->
694 <attr name="android:enabled" />
695
696 <!-- Name of a method on the Context used to inflate the menu that will be
697 called when the item is clicked. -->
698 <attr name="android:onClick" />
699
700 <!-- How this item should display in the Action Bar, if present. -->
701 <attr name="showAsAction">
702 <!-- Never show this item in an action bar, show it in the overflow menu instead.
703 Mutually exclusive with "ifRoom" and "always". -->
704 <flag name="never" value="0" />
705 <!-- Show this item in an action bar if there is room for it as determined
706 by the system. Favor this option over "always" where possible.
707 Mutually exclusive with "never" and "always". -->
708 <flag name="ifRoom" value="1" />
709 <!-- Always show this item in an actionbar, even if it would override
710 the system's limits of how much stuff to put there. This may make
711 your action bar look bad on some screens. In most cases you should
712 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
713 <flag name="always" value="2" />
714 <!-- When this item is shown as an action in the action bar, show a text
715 label with it even if it has an icon representation. -->
716 <flag name="withText" value="4" />
717 <!-- This item's action view collapses to a normal menu
718 item. When expanded, the action view takes over a
719 larger segment of its container. -->
720 <flag name="collapseActionView" value="8" />
721 </attr>
722
723 <!-- An optional layout to be used as an action view.
724 See {@link android.view.MenuItem#setActionView(android.view.View)}
725 for more info. -->
726 <attr name="actionLayout" format="reference" />
727
728 <!-- The name of an optional View class to instantiate and use as an
729 action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
730 for more info. -->
731 <attr name="actionViewClass" format="string" />
732
733 <!-- The name of an optional ActionProvider class to instantiate an action view
734 and perform operations such as default action for that menu item.
735 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
736 for more info. -->
737 <attr name="actionProviderClass" format="string" />
738
Vladislav Kaznacheevfd3c4562017-01-25 18:27:47 +0000739 <!-- The content description associated with the item. -->
740 <attr name="contentDescription" format="string"/>
741
742 <!-- The tooltip text associated with the item. -->
743 <attr name="tooltipText" format="string"/>
744
Kirill Grouchnikov3a7c6d22017-04-10 16:54:23 -0400745 <!-- Tint to apply to the icon. -->
746 <attr name="iconTint" format="color" />
747
748 <!-- Blending mode used to apply the icon tint. -->
749 <attr name="iconTintMode">
750 <!-- The tint is drawn on top of the icon.
751 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
752 <enum name="src_over" value="3" />
753 <!-- The tint is masked by the alpha channel of the icon. The icon’s
754 color channels are thrown out. [Sa * Da, Sc * Da] -->
755 <enum name="src_in" value="5" />
756 <!-- The tint is drawn above the icon, but with the icon’s alpha
757 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
758 <enum name="src_atop" value="9" />
759 <!-- Multiplies the color and alpha channels of the icon with those of
760 the tint. [Sa * Da, Sc * Dc] -->
761 <enum name="multiply" value="14" />
762 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
763 <enum name="screen" value="15" />
764 <!-- Combines the tint and icon color and alpha channels, clamping the
765 result to valid color values. Saturate(S + D) -->
766 <enum name="add" value="16" />
767 </attr>
768
Trevor Johns82629492013-01-10 18:11:19 -0800769 </declare-styleable>
770
Chris Banes79e7a9e2013-03-01 14:48:09 +0000771 <declare-styleable name="Spinner">
772 <!-- The prompt to display when the spinner's dialog is shown. -->
Chris Banesf9336722015-04-28 16:15:24 +0100773 <attr name="android:prompt" />
774 <!-- Theme to use for the drop-down or dialog popup window. -->
775 <attr name="popupTheme" />
Chris Banes79e7a9e2013-03-01 14:48:09 +0000776 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
777 <attr name="android:popupBackground" />
Chris Banes79e7a9e2013-03-01 14:48:09 +0000778 <!-- Width of the dropdown in spinnerMode="dropdown". -->
779 <attr name="android:dropDownWidth" />
Chris Banes98e3c722015-10-22 10:24:58 +0100780 <!-- Reference to an array resource that will populate the Spinner. -->
781 <attr name="android:entries" />
Chris Banes79e7a9e2013-03-01 14:48:09 +0000782 </declare-styleable>
783
Chris Banes81804142013-05-22 09:55:42 +0100784 <declare-styleable name="SearchView">
Chris Banes1b01ce22014-07-24 16:45:25 +0100785 <!-- The layout to use for the search view. -->
786 <attr name="layout" format="reference" />
Chris Banes81804142013-05-22 09:55:42 +0100787 <!-- The default state of the SearchView. If true, it will be iconified when not in
788 use and expanded when clicked. -->
Chris Banes1b01ce22014-07-24 16:45:25 +0100789 <attr name="iconifiedByDefault" format="boolean" />
Chris Banes81804142013-05-22 09:55:42 +0100790 <!-- An optional maximum width of the SearchView. -->
791 <attr name="android:maxWidth" />
Chris Banesecd75f22015-04-27 10:44:00 +0100792 <!-- An optional user-defined query hint string to be displayed in the empty query field. -->
Chris Banes81804142013-05-22 09:55:42 +0100793 <attr name="queryHint" format="string" />
Chris Banesecd75f22015-04-27 10:44:00 +0100794 <!-- Default query hint used when {@code queryHint} is undefined and
795 the search view's {@code SearchableInfo} does not provide a hint. -->
796 <attr name="defaultQueryHint" format="string" />
Chris Banes81804142013-05-22 09:55:42 +0100797 <!-- The IME options to set on the query text field. -->
798 <attr name="android:imeOptions" />
799 <!-- The input type to set on the query text field. -->
800 <attr name="android:inputType" />
Chris Banes1b01ce22014-07-24 16:45:25 +0100801 <!-- Close button icon -->
802 <attr name="closeIcon" format="reference" />
803 <!-- Go button icon -->
804 <attr name="goIcon" format="reference" />
805 <!-- Search icon -->
806 <attr name="searchIcon" format="reference" />
Chris Banescc489cd2014-11-20 11:00:42 +0000807 <!-- Search icon displayed as a text field hint -->
808 <attr name="searchHintIcon" format="reference" />
Chris Banes1b01ce22014-07-24 16:45:25 +0100809 <!-- Voice button icon -->
810 <attr name="voiceIcon" format="reference" />
811 <!-- Commit icon shown in the query suggestion row -->
812 <attr name="commitIcon" format="reference" />
813 <!-- Layout for query suggestion rows -->
814 <attr name="suggestionRowLayout" format="reference" />
815 <!-- Background for the section containing the search query -->
816 <attr name="queryBackground" format="reference" />
817 <!-- Background for the section containing the action (e.g. voice search) -->
818 <attr name="submitBackground" format="reference" />
Adam Powell6912ef42014-09-03 19:38:38 -0700819 <attr name="android:focusable" />
Chris Banes81804142013-05-22 09:55:42 +0100820 </declare-styleable>
821
Chris Banese290ed32013-05-25 12:26:32 +0100822 <!-- Attrbitutes for a ActivityChooserView. -->
823 <declare-styleable name="ActivityChooserView">
824 <!-- The maximal number of items initially shown in the activity list. -->
825 <attr name="initialActivityCount" format="string" />
826 <!-- The drawable to show in the button for expanding the activities overflow popup.
827 <strong>Note:</strong> Clients would like to set this drawable
828 as a clue about the action the chosen activity will perform. For
829 example, if share activity is to be chosen the drawable should
830 give a clue that sharing is to be performed.
831 -->
832 <attr name="expandActivityOverflowButtonDrawable" format="reference" />
833 </declare-styleable>
834
Chris Banes2cccf602015-02-18 12:32:08 +0000835 <declare-styleable name="AppCompatTextView">
Chris Banes89208232013-05-31 13:36:59 +0100836 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
837 <attr name="textAllCaps" format="reference|boolean" />
Chris Banes320c3e92015-01-28 11:22:57 +0000838 <attr name="android:textAppearance" />
Andrei Stingaceanu41ce3472017-03-17 14:56:40 +0000839 <!-- Specify the type of auto-size. Note that this feature is not supported by EditText,
840 works only for TextView. -->
841 <attr name="autoSizeTextType" format="enum">
842 <!-- No auto-sizing (default). -->
843 <enum name="none" value="0" />
844 <!-- Uniform horizontal and vertical text size scaling to fit within the
845 container. -->
846 <enum name="uniform" value="1" />
847 </attr>
848 <!-- Specify the auto-size step size if <code>autoSizeTextType</code> is set to
849 <code>uniform</code>. The default is 1px. Overwrites
850 <code>autoSizePresetSizes</code> if set. -->
851 <attr name="autoSizeStepGranularity" format="dimension" />
852 <!-- Resource array of dimensions to be used in conjunction with
853 <code>autoSizeTextType</code> set to <code>uniform</code>. Overrides
854 <code>autoSizeStepGranularity</code> if set. -->
855 <attr name="autoSizePresetSizes" format="reference"/>
856 <!-- The minimum text size constraint to be used when auto-sizing text. -->
857 <attr name="autoSizeMinTextSize" format="dimension" />
858 <!-- The maximum text size constraint to be used when auto-sizing text. -->
859 <attr name="autoSizeMaxTextSize" format="dimension" />
Seigo Nonakab92b7c82017-05-10 17:49:54 -0700860 <!-- The attribute for the font family. -->
861 <attr name="fontFamily" format="string" />
Chris Banes89208232013-05-31 13:36:59 +0100862 </declare-styleable>
863
Chris Banes49c78902014-07-15 15:30:55 +0100864 <declare-styleable name="LinearLayoutCompat">
865 <!-- Should the layout be a column or a row? Use "horizontal"
866 for a row, "vertical" for a column. The default is
867 horizontal. -->
868 <attr name="android:orientation" />
869 <attr name="android:gravity" />
870 <!-- When set to false, prevents the layout from aligning its children's
871 baselines. This attribute is particularly useful when the children
872 use different values for gravity. The default value is true. -->
873 <attr name="android:baselineAligned" />
874 <!-- When a linear layout is part of another layout that is baseline
875 aligned, it can specify which of its children to baseline align to
876 (that is, which child TextView).-->
877 <attr name="android:baselineAlignedChildIndex" />
878 <!-- Defines the maximum weight sum. If unspecified, the sum is computed
879 by adding the layout_weight of all of the children. This can be
880 used for instance to give a single child 50% of the total available
881 space by giving it a layout_weight of 0.5 and setting the weightSum
882 to 1.0. -->
883 <attr name="android:weightSum" />
884 <!-- When set to true, all children with a weight will be considered having
885 the minimum size of the largest child. If false, all children are
886 measured normally. -->
887 <attr name="measureWithLargestChild" format="boolean" />
888 <!-- Drawable to use as a vertical divider between buttons. -->
889 <attr name="divider" />
890 <!-- Setting for which dividers to show. -->
891 <attr name="showDividers">
892 <flag name="none" value="0" />
893 <flag name="beginning" value="1" />
894 <flag name="middle" value="2" />
895 <flag name="end" value="4" />
896 </attr>
897 <!-- Size of padding on either end of a divider. -->
898 <attr name="dividerPadding" format="dimension" />
899 </declare-styleable>
900
901 <declare-styleable name="LinearLayoutCompat_Layout">
902 <attr name="android:layout_width" />
903 <attr name="android:layout_height" />
904 <attr name="android:layout_weight" />
905 <attr name="android:layout_gravity" />
906 </declare-styleable>
907
908 <declare-styleable name="Toolbar">
909 <attr name="titleTextAppearance" format="reference" />
910 <attr name="subtitleTextAppearance" format="reference" />
911 <attr name="title" />
912 <attr name="subtitle" />
913 <attr name="android:gravity" />
Chris Banesb1d11402015-10-15 13:48:16 +0100914 <!-- Specifies extra space on the left, start, right and end sides
915 of the toolbar's title. Margin values should be positive. -->
916 <attr name="titleMargin" format="dimension" />
917 <!-- Specifies extra space on the start side of the toolbar's title.
918 If both this attribute and titleMargin are specified, then this
919 attribute takes precedence. Margin values should be positive. -->
Chris Banes49c78902014-07-15 15:30:55 +0100920 <attr name="titleMarginStart" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100921 <!-- Specifies extra space on the end side of the toolbar's title.
922 If both this attribute and titleMargin are specified, then this
923 attribute takes precedence. Margin values should be positive. -->
Chris Banes49c78902014-07-15 15:30:55 +0100924 <attr name="titleMarginEnd" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100925 <!-- Specifies extra space on the top side of the toolbar's title.
926 If both this attribute and titleMargin are specified, then this
927 attribute takes precedence. Margin values should be positive. -->
Chris Banes49c78902014-07-15 15:30:55 +0100928 <attr name="titleMarginTop" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100929 <!-- Specifies extra space on the bottom side of the toolbar's title.
930 If both this attribute and titleMargin are specified, then this
931 attribute takes precedence. Margin values should be positive. -->
Chris Banes49c78902014-07-15 15:30:55 +0100932 <attr name="titleMarginBottom" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100933 <!-- {@deprecated Use titleMargin} -->
934 <attr name="titleMargins" format="dimension" />
Chris Banes49c78902014-07-15 15:30:55 +0100935 <attr name="contentInsetStart" />
936 <attr name="contentInsetEnd" />
937 <attr name="contentInsetLeft" />
938 <attr name="contentInsetRight" />
Adam Powell62d19a62016-03-28 11:12:24 -0700939 <attr name="contentInsetStartWithNavigation" />
940 <attr name="contentInsetEndWithActions" />
Chris Banes49c78902014-07-15 15:30:55 +0100941 <attr name="maxButtonHeight" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100942 <attr name="buttonGravity">
943 <!-- Push object to the top of its container, not changing its size. -->
944 <flag name="top" value="0x30" />
945 <!-- Push object to the bottom of its container, not changing its size. -->
946 <flag name="bottom" value="0x50" />
947 </attr>
948 <!-- Icon drawable to use for the collapse button. -->
Chris Banes49c78902014-07-15 15:30:55 +0100949 <attr name="collapseIcon" format="reference" />
Alan Viverette3e2b5bd2014-10-28 16:15:02 -0700950 <!-- Text to set as the content description for the collapse button. -->
951 <attr name="collapseContentDescription" format="string" />
Chris Banes61c0bbe2014-07-31 14:21:02 +0100952 <!-- Reference to a theme that should be used to inflate popups
953 shown by widgets in the toolbar. -->
954 <attr name="popupTheme" />
Chris Banesac00a982014-09-01 11:32:44 +0100955 <!-- Icon drawable to use for the navigation button located at
956 the start of the toolbar. -->
957 <attr name="navigationIcon" format="reference" />
958 <!-- Text to set as the content description for the navigation button
959 located at the start of the toolbar. -->
960 <attr name="navigationContentDescription" format="string" />
Adam Powell64c32ba2015-06-16 17:08:03 -0700961 <!-- Drawable to set as the logo that appears at the starting side of
962 the Toolbar, just after the navigation button. -->
963 <attr name="logo" />
964 <!-- A content description string to describe the appearance of the
965 associated logo image. -->
966 <attr name="logoDescription" format="string" />
967 <!-- A color to apply to the title string. -->
968 <attr name="titleTextColor" format="color" />
969 <!-- A color to apply to the subtitle string. -->
970 <attr name="subtitleTextColor" format="color" />
Chris Banesb1d11402015-10-15 13:48:16 +0100971 <attr name="android:minHeight" />
Chris Banes49c78902014-07-15 15:30:55 +0100972 </declare-styleable>
973
974 <declare-styleable name="PopupWindowBackgroundState">
975 <!-- State identifier indicating the popup will be above the anchor. -->
976 <attr name="state_above_anchor" format="boolean" />
977 </declare-styleable>
978
Chris Banesac00a982014-09-01 11:32:44 +0100979 <declare-styleable name="ListPopupWindow">
980 <!-- Amount of pixels by which the drop down should be offset vertically. -->
981 <attr name="android:dropDownVerticalOffset" />
982 <!-- Amount of pixels by which the drop down should be offset horizontally. -->
983 <attr name="android:dropDownHorizontalOffset" />
984 </declare-styleable>
985
Chris Banes5ec2faa2014-09-04 13:10:12 +0100986 <declare-styleable name="PopupWindow">
987 <!-- Whether the popup window should overlap its anchor view. -->
988 <attr name="overlapAnchor" format="boolean" />
Chris Banes46928612014-09-02 11:28:36 +0100989 <attr name="android:popupBackground" />
Chris Banesb2d52312016-05-06 10:28:03 +0100990 <attr name="android:popupAnimationStyle"/>
Chris Banes5ec2faa2014-09-04 13:10:12 +0100991 </declare-styleable>
992
Yigit Boyar058467c2014-08-26 16:55:01 -0700993 <declare-styleable name="DrawerArrowToggle">
994 <!-- The drawing color for the bars -->
995 <attr name="color" format="color"/>
996 <!-- Whether bars should rotate or not during transition -->
997 <attr name="spinBars" format="boolean"/>
998 <!-- The total size of the drawable -->
999 <attr name="drawableSize" format="dimension"/>
1000 <!-- The max gap between the bars when they are parallel to each other -->
1001 <attr name="gapBetweenBars" format="dimension"/>
Chris Banesfab671e2015-07-11 09:23:31 +01001002 <!-- The length of the arrow head when formed to make an arrow -->
1003 <attr name="arrowHeadLength" format="dimension"/>
1004 <!-- The length of the shaft when formed to make an arrow -->
1005 <attr name="arrowShaftLength" format="dimension"/>
1006 <!-- The length of the bars when they are parallel to each other -->
1007 <attr name="barLength" format="dimension"/>
Yigit Boyar058467c2014-08-26 16:55:01 -07001008 <!-- The thickness (stroke size) for the bar paint -->
1009 <attr name="thickness" format="dimension"/>
1010 </declare-styleable>
1011
1012 <attr name="drawerArrowStyle" format="reference" />
1013
Chris Banes4bd5cbd2014-09-05 18:26:41 +01001014 <declare-styleable name="ViewStubCompat">
1015 <!-- Supply an identifier for the layout resource to inflate when the ViewStub
1016 becomes visible or when forced to do so. The layout resource must be a
1017 valid reference to a layout. -->
1018 <attr name="android:layout" />
1019 <!-- Overrides the id of the inflated View with this value. -->
1020 <attr name="android:inflatedId" />
1021 <attr name="android:id" />
1022 </declare-styleable>
1023
Chris Banes091b0f92015-05-06 19:13:34 +01001024 <declare-styleable name="CompoundButton">
1025 <attr name="android:button"/>
1026 <!-- Tint to apply to the button drawable. -->
1027 <attr name="buttonTint" format="color" />
1028
1029 <!-- Blending mode used to apply the button tint. -->
1030 <attr name="buttonTintMode">
1031 <!-- The tint is drawn on top of the drawable.
1032 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1033 <enum name="src_over" value="3" />
1034 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1035 color channels are thrown out. [Sa * Da, Sc * Da] -->
1036 <enum name="src_in" value="5" />
1037 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1038 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1039 <enum name="src_atop" value="9" />
1040 <!-- Multiplies the color and alpha channels of the drawable with those of
1041 the tint. [Sa * Da, Sc * Dc] -->
1042 <enum name="multiply" value="14" />
1043 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1044 <enum name="screen" value="15" />
Kamal Faraj4076f7b2017-09-01 16:17:55 +02001045 <!-- Combines the tint and icon color and alpha channels, clamping the
1046 result to valid color values. Saturate(S + D) -->
1047 <enum name="add" value="16" />
Chris Banes091b0f92015-05-06 19:13:34 +01001048 </attr>
1049 </declare-styleable>
1050
Chris Banes415f7402014-09-22 11:49:54 +01001051 <declare-styleable name="SwitchCompat">
1052 <!-- Drawable to use as the "thumb" that switches back and forth. -->
1053 <attr name="android:thumb" />
Chris Banesd6e47222016-04-21 13:55:23 +01001054 <!-- Tint to apply to the thumb drawable. -->
1055 <attr name="thumbTint" format="color" />
1056 <!-- Blending mode used to apply the thumb tint. -->
1057 <attr name="thumbTintMode">
1058 <!-- The tint is drawn on top of the drawable.
1059 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1060 <enum name="src_over" value="3" />
1061 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1062 color channels are thrown out. [Sa * Da, Sc * Da] -->
1063 <enum name="src_in" value="5" />
1064 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1065 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1066 <enum name="src_atop" value="9" />
1067 <!-- Multiplies the color and alpha channels of the drawable with those of
1068 the tint. [Sa * Da, Sc * Dc] -->
1069 <enum name="multiply" value="14" />
1070 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1071 <enum name="screen" value="15" />
1072 <!-- Combines the tint and drawable color and alpha channels, clamping the
1073 result to valid color values. Saturate(S + D) -->
1074 <enum name="add" value="16" />
1075 </attr>
Chris Banes415f7402014-09-22 11:49:54 +01001076 <!-- Drawable to use as the "track" that the switch thumb slides within. -->
1077 <attr name="track" format="reference" />
Chris Banesd6e47222016-04-21 13:55:23 +01001078 <!-- Tint to apply to the track. -->
1079 <attr name="trackTint" format="color" />
1080 <!-- Blending mode used to apply the track tint. -->
1081 <attr name="trackTintMode">
1082 <!-- The tint is drawn on top of the drawable.
1083 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1084 <enum name="src_over" value="3" />
1085 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1086 color channels are thrown out. [Sa * Da, Sc * Da] -->
1087 <enum name="src_in" value="5" />
1088 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1089 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1090 <enum name="src_atop" value="9" />
1091 <!-- Multiplies the color and alpha channels of the drawable with those of
1092 the tint. [Sa * Da, Sc * Dc] -->
1093 <enum name="multiply" value="14" />
1094 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1095 <enum name="screen" value="15" />
1096 <!-- Combines the tint and drawable color and alpha channels, clamping the
1097 result to valid color values. Saturate(S + D) -->
1098 <enum name="add" value="16" />
1099 </attr>
Chris Banes415f7402014-09-22 11:49:54 +01001100 <!-- Text to use when the switch is in the checked/"on" state. -->
1101 <attr name="android:textOn" />
1102 <!-- Text to use when the switch is in the unchecked/"off" state. -->
1103 <attr name="android:textOff" />
1104 <!-- Amount of padding on either side of text within the switch thumb. -->
1105 <attr name="thumbTextPadding" format="dimension" />
1106 <!-- TextAppearance style for text displayed on the switch thumb. -->
1107 <attr name="switchTextAppearance" format="reference" />
1108 <!-- Minimum width for the switch component -->
1109 <attr name="switchMinWidth" format="dimension" />
1110 <!-- Minimum space between the switch and caption text -->
1111 <attr name="switchPadding" format="dimension" />
1112 <!-- Whether to split the track and leave a gap for the thumb drawable. -->
1113 <attr name="splitTrack" format="boolean" />
1114 <!-- Whether to draw on/off text. -->
1115 <attr name="showText" format="boolean" />
1116 </declare-styleable>
1117
Chris Banes320c3e92015-01-28 11:22:57 +00001118 <declare-styleable name="TextAppearance">
Chris Banes36ba98b2014-10-28 10:45:10 +00001119 <attr name="android:textSize" />
1120 <attr name="android:textColor" />
Chris Banes286a5132016-09-09 10:56:58 +01001121 <attr name="android:textColorHint"/>
Kirill Grouchnikov88d05bd2017-03-15 11:12:44 -04001122 <attr name="android:textColorLink"/>
Chris Banes414f5232014-12-11 10:29:47 +00001123 <attr name="android:textStyle" />
1124 <attr name="android:typeface" />
Clara Bayarri543fd292017-03-24 11:29:49 +00001125 <attr name="android:fontFamily" />
Seigo Nonakab92b7c82017-05-10 17:49:54 -07001126 <attr name="fontFamily" />
Chris Banes36ba98b2014-10-28 10:45:10 +00001127 <attr name="textAllCaps" />
Chris Banes23caabc2015-08-07 10:30:48 +01001128 <attr name="android:shadowColor"/>
1129 <attr name="android:shadowDy"/>
1130 <attr name="android:shadowDx"/>
1131 <attr name="android:shadowRadius"/>
Chris Banes36ba98b2014-10-28 10:45:10 +00001132 </declare-styleable>
1133
Chris Banes19eaf142015-02-04 23:39:54 +00001134 <!-- The set of attributes that describe a AlertDialog's theme. -->
1135 <declare-styleable name="AlertDialog">
1136 <attr name="android:layout" />
1137 <attr name="buttonPanelSideLayout" format="reference" />
1138 <attr name="listLayout" format="reference" />
1139 <attr name="multiChoiceItemLayout" format="reference" />
1140 <attr name="singleChoiceItemLayout" format="reference" />
1141 <attr name="listItemLayout" format="reference" />
Chris Banes2c960112016-11-07 12:33:18 +00001142 <attr name="showTitle" format="boolean" />
Aga Madurska70a61be2017-10-25 19:26:16 +01001143 <attr name="buttonIconDimen" format="dimension" />
Chris Banes19eaf142015-02-04 23:39:54 +00001144 </declare-styleable>
1145
Chris Banes9b8f7082015-07-29 14:34:44 +01001146 <!-- @hide -->
1147 <declare-styleable name="ButtonBarLayout">
1148 <!-- Whether to automatically stack the buttons when there is not
1149 enough space to lay them out side-by-side. -->
1150 <attr name="allowStacking" format="boolean" />
1151 </declare-styleable>
1152
Chris Banes9d5f84f2015-06-18 17:08:14 +01001153 <!-- Attributes that can be assigned to a ColorStateList item. -->
1154 <declare-styleable name="ColorStateListItem">
1155 <!-- Base color for this state. -->
1156 <attr name="android:color" />
1157 <!-- Alpha multiplier applied to the base color. -->
1158 <attr name="alpha" format="float" />
1159 <attr name="android:alpha"/>
1160 </declare-styleable>
1161
Chris Banese4beadb2015-11-10 10:45:58 +00001162 <declare-styleable name="AppCompatImageView">
1163 <attr name="android:src"/>
Chris Banesba337d52016-06-10 12:23:39 +01001164 <!-- Sets a drawable as the content of this ImageView. Allows the use of vector drawable
1165 when running on older versions of the platform. -->
Chris Banese4beadb2015-11-10 10:45:58 +00001166 <attr name="srcCompat" format="reference" />
Kirill Grouchnikovb277db22017-03-22 13:47:51 -04001167
1168 <!-- Tint to apply to the image source. -->
1169 <attr name="tint" format="color" />
1170
1171 <!-- Blending mode used to apply the image source tint. -->
1172 <attr name="tintMode">
1173 <!-- The tint is drawn on top of the drawable.
1174 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1175 <enum name="src_over" value="3" />
1176 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1177 color channels are thrown out. [Sa * Da, Sc * Da] -->
1178 <enum name="src_in" value="5" />
1179 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1180 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1181 <enum name="src_atop" value="9" />
1182 <!-- Multiplies the color and alpha channels of the drawable with those of
1183 the tint. [Sa * Da, Sc * Dc] -->
1184 <enum name="multiply" value="14" />
1185 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1186 <enum name="screen" value="15" />
Kamal Faraj4076f7b2017-09-01 16:17:55 +02001187 <!-- Combines the tint and icon color and alpha channels, clamping the
1188 result to valid color values. Saturate(S + D) -->
1189 <enum name="add" value="16" />
Kirill Grouchnikovb277db22017-03-22 13:47:51 -04001190 </attr>
Chris Banese4beadb2015-11-10 10:45:58 +00001191 </declare-styleable>
1192
Chris Banesb19cba12016-02-22 15:02:39 +00001193 <declare-styleable name="AppCompatSeekBar">
1194 <attr name="android:thumb" />
1195 <!-- Drawable displayed at each progress position on a seekbar. -->
1196 <attr name="tickMark" format="reference" />
1197 <!-- Tint to apply to the tick mark drawable. -->
1198 <attr name="tickMarkTint" format="color" />
1199 <!-- Blending mode used to apply the tick mark tint. -->
1200 <attr name="tickMarkTintMode">
1201 <!-- The tint is drawn on top of the drawable.
1202 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1203 <enum name="src_over" value="3" />
1204 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1205 color channels are thrown out. [Sa * Da, Sc * Da] -->
1206 <enum name="src_in" value="5" />
1207 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1208 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1209 <enum name="src_atop" value="9" />
1210 <!-- Multiplies the color and alpha channels of the drawable with those of
1211 the tint. [Sa * Da, Sc * Dc] -->
1212 <enum name="multiply" value="14" />
1213 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1214 <enum name="screen" value="15" />
1215 <!-- Combines the tint and drawable color and alpha channels, clamping the
1216 result to valid color values. Saturate(S + D) -->
1217 <enum name="add" value="16" />
1218 </attr>
1219 </declare-styleable>
1220
Chris Banes31a373d2016-06-27 15:52:06 +01001221 <declare-styleable name="AppCompatTextHelper">
1222 <attr name="android:drawableLeft" />
1223 <attr name="android:drawableTop" />
1224 <attr name="android:drawableRight" />
1225 <attr name="android:drawableBottom" />
1226 <attr name="android:drawableStart" />
1227 <attr name="android:drawableEnd" />
1228 <attr name="android:textAppearance" />
1229 </declare-styleable>
1230
Chris Banes2c960112016-11-07 12:33:18 +00001231 <declare-styleable name="RecycleListView">
1232 <!-- Bottom padding to use when no buttons are present. -->
1233 <attr name="paddingBottomNoButtons" format="dimension" />
1234 <!-- Top padding to use when no title is present. -->
1235 <attr name="paddingTopNoTitle" format="dimension" />
1236 </declare-styleable>
1237
Adam Powellbbbb8f32012-04-25 13:03:55 -07001238</resources>