blob: 7d26a3275b06e7598ef16064797c1877f66361a9 [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" />
Lucas Dupindd47d232017-11-17 11:34:34 -0800192 <!-- Preferred corner radius of dialogs. -->
193 <attr name="dialogCornerRadius" format="dimension" />
Chris Banes16e8d4d2014-12-23 10:10:20 +0000194
195 <!-- =================== -->
Chris Banes49c78902014-07-15 15:30:55 +0100196 <!-- Other widget styles -->
197 <!-- =================== -->
198 <eat-comment />
Adam Powellbbbb8f32012-04-25 13:03:55 -0700199
Adam Powellbbbb8f32012-04-25 13:03:55 -0700200 <!-- Default ActionBar dropdown style. -->
Chris Banes79e7a9e2013-03-01 14:48:09 +0000201 <attr name="actionDropDownStyle" format="reference"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700202 <!-- The preferred item height for dropdown lists. -->
Trevor Johns20ac7242012-12-06 13:18:15 -0800203 <attr name="dropdownListPreferredItemHeight" format="dimension"/>
Chris Banes49c78902014-07-15 15:30:55 +0100204 <!-- Default Spinner style. -->
205 <attr name="spinnerDropDownItemStyle" format="reference" />
206 <!-- Specifies a drawable to use for the 'home as up' indicator. -->
207 <attr name="homeAsUpIndicator" format="reference"/>
208
209 <!-- Default action button style. -->
210 <attr name="actionButtonStyle" format="reference"/>
211
Chris Banes6b80dd62015-01-29 17:35:09 +0000212 <!-- Style for button bars -->
Chris Banes49c78902014-07-15 15:30:55 +0100213 <attr name="buttonBarStyle" format="reference"/>
Chris Banes6b80dd62015-01-29 17:35:09 +0000214 <!-- Style for buttons within button bars -->
Chris Banes49c78902014-07-15 15:30:55 +0100215 <attr name="buttonBarButtonStyle" format="reference"/>
216 <!-- A style that may be applied to buttons or other selectable items
217 that should react to pressed and focus states, but that do not
218 have a clear visual border along the edges. -->
219 <attr name="selectableItemBackground" format="reference"/>
Chris Banesd167dc42014-08-13 13:39:52 +0100220 <!-- Background drawable for borderless standalone items that need focus/pressed states. -->
221 <attr name="selectableItemBackgroundBorderless" format="reference" />
Chris Banes11924542015-05-13 13:38:02 +0100222 <!-- Style for buttons without an explicit border, often used in groups. -->
223 <attr name="borderlessButtonStyle" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100224 <!-- A drawable that may be used as a vertical divider between visual elements. -->
225 <attr name="dividerVertical" format="reference"/>
226 <!-- A drawable that may be used as a horizontal divider between visual elements. -->
227 <attr name="dividerHorizontal" format="reference"/>
228 <!-- Default ActivityChooserView style. -->
229 <attr name="activityChooserViewStyle" format="reference" />
230
231 <!-- Default Toolbar style. -->
232 <attr name="toolbarStyle" format="reference" />
233 <!-- Default Toolar NavigationButtonStyle -->
234 <attr name="toolbarNavigationButtonStyle" format="reference" />
235
Adam Powellbbbb8f32012-04-25 13:03:55 -0700236 <!-- Default PopupMenu style. -->
Trevor Johns20ac7242012-12-06 13:18:15 -0800237 <attr name="popupMenuStyle" format="reference"/>
Chris Banes49c78902014-07-15 15:30:55 +0100238 <!-- Default PopupWindow style. -->
239 <attr name="popupWindowStyle" format="reference" />
240
Chris Banes968c5932014-07-27 11:23:58 +0100241 <!-- EditText text foreground color. -->
242 <attr name="editTextColor" format="reference|color" />
243 <!-- EditText background drawable. -->
244 <attr name="editTextBackground" format="reference" />
245
Chris Banese6874502015-09-25 10:52:30 +0100246 <!-- ImageButton background drawable. -->
247 <attr name="imageButtonStyle" format="reference" />
248
Chris Banes1b01ce22014-07-24 16:45:25 +0100249 <!-- ============================ -->
250 <!-- SearchView styles and assets -->
251 <!-- ============================ -->
252 <eat-comment />
Chris Banes1b01ce22014-07-24 16:45:25 +0100253 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
254 <attr name="textAppearanceSearchResultTitle" format="reference" />
255 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
256 <attr name="textAppearanceSearchResultSubtitle" format="reference" />
257 <!-- Text color for urls in search suggestions, used by things like global search -->
258 <attr name="textColorSearchUrl" format="reference|color" />
259 <!-- Style for the search query widget. -->
260 <attr name="searchViewStyle" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100261
Chris Banes1b01ce22014-07-24 16:45:25 +0100262 <!-- =========== -->
263 <!-- List styles -->
Chris Banes49c78902014-07-15 15:30:55 +0100264 <!-- =========== -->
265 <eat-comment />
266
267 <!-- The preferred list item height. -->
268 <attr name="listPreferredItemHeight" format="dimension"/>
269 <!-- A smaller, sleeker list item height. -->
270 <attr name="listPreferredItemHeightSmall" format="dimension"/>
271 <!-- A larger, more robust list item height. -->
272 <attr name="listPreferredItemHeightLarge" format="dimension"/>
273
274 <!-- The preferred padding along the left edge of list items. -->
275 <attr name="listPreferredItemPaddingLeft" format="dimension"/>
276 <!-- The preferred padding along the right edge of list items. -->
277 <attr name="listPreferredItemPaddingRight" format="dimension"/>
278
279 <!-- ListPopupWindow compatibility -->
280 <attr name="dropDownListViewStyle" format="reference"/>
281 <attr name="listPopupWindowStyle" format="reference"/>
282
283 <!-- The preferred TextAppearance for the primary text of list items. -->
284 <attr name="textAppearanceListItem" format="reference"/>
Kirill Grouchnikov826d08e2017-03-16 16:29:20 -0400285 <!-- The preferred TextAppearance for the secondary text of list items. -->
286 <attr name="textAppearanceListItemSecondary" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100287 <!-- The preferred TextAppearance for the primary text of small list items. -->
288 <attr name="textAppearanceListItemSmall" format="reference"/>
289
Chris Baneseb686f82013-02-25 16:15:44 +0000290 <!-- ============ -->
291 <!-- Panel styles -->
292 <!-- ============ -->
293 <eat-comment />
294
Chris Banes57c6de92014-09-19 11:33:22 +0100295 <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
296 <attr name="panelBackground" format="reference" />
Chris Banesd900fe02013-04-08 18:00:57 +0100297 <!-- Default Panel Menu width. -->
Chris Baneseb686f82013-02-25 16:15:44 +0000298 <attr name="panelMenuListWidth" format="dimension" />
Chris Baneseb686f82013-02-25 16:15:44 +0000299 <!-- Default Panel Menu style. -->
300 <attr name="panelMenuListTheme" format="reference" />
Chris Banes61cb91b2013-04-15 12:41:53 +0100301 <!-- Drawable used as a background for selected list items. -->
302 <attr name="listChoiceBackgroundIndicator" format="reference" />
303
Chris Banes13ab4aa2014-07-08 08:37:35 +0100304 <!-- ============= -->
305 <!-- Color palette -->
306 <!-- ============= -->
307 <eat-comment />
308
309 <!-- The primary branding color for the app. By default, this is the color applied to the
310 action bar background. -->
311 <attr name="colorPrimary" format="color" />
312
313 <!-- Dark variant of the primary branding color. By default, this is the color applied to
314 the status bar (via statusBarColor) and navigation bar (via navigationBarColor). -->
315 <attr name="colorPrimaryDark" format="color" />
316
317 <!-- Bright complement to the primary branding color. By default, this is the color applied
318 to framework controls (via colorControlActivated). -->
319 <attr name="colorAccent" format="color" />
320
321 <!-- The color applied to framework controls in their normal state. -->
322 <attr name="colorControlNormal" format="color" />
323
324 <!-- The color applied to framework controls in their activated (ex. checked) state. -->
325 <attr name="colorControlActivated" format="color" />
326
327 <!-- The color applied to framework control highlights (ex. ripples, list selectors). -->
328 <attr name="colorControlHighlight" format="color" />
329
330 <!-- The color applied to framework buttons in their normal state. -->
331 <attr name="colorButtonNormal" format="color" />
332
Chris Banes415f7402014-09-22 11:49:54 +0100333 <!-- The color applied to framework switch thumbs in their normal state. -->
334 <attr name="colorSwitchThumbNormal" format="color" />
335
Chris Banesb1131c62015-05-08 15:00:39 +0100336 <!-- The background used by framework controls. -->
337 <attr name="controlBackground" format="reference" />
338
Chris Banes593d8bc2016-02-22 17:04:33 +0000339 <!-- Default color of background imagery for floating components, ex. dialogs, popups, and cards. -->
340 <attr name="colorBackgroundFloating" format="color" />
341
Chris Banes19eaf142015-02-04 23:39:54 +0000342 <!-- ============ -->
343 <!-- Alert Dialog styles -->
344 <!-- ============ -->
345 <eat-comment />
346 <attr name="alertDialogStyle" format="reference" />
347 <attr name="alertDialogButtonGroupStyle" format="reference" />
348 <attr name="alertDialogCenterButtons" format="boolean" />
349 <!-- Theme to use for alert dialogs spawned from this theme. -->
350 <attr name="alertDialogTheme" format="reference" />
351
352 <!-- Color of list item text in alert dialogs. -->
353 <attr name="textColorAlertDialogListItem" format="reference|color" />
354
355 <!-- Style for the "positive" buttons within button bars -->
356 <attr name="buttonBarPositiveButtonStyle" format="reference" />
357
358 <!-- Style for the "negative" buttons within button bars -->
359 <attr name="buttonBarNegativeButtonStyle" format="reference" />
360
361 <!-- Style for the "neutral" buttons within button bars -->
362 <attr name="buttonBarNeutralButtonStyle" format="reference" />
363
Chris Banes2cccf602015-02-18 12:32:08 +0000364 <!-- ===================== -->
365 <!-- Default widget styles -->
366 <!-- ===================== -->
367 <eat-comment />
368
369 <!-- Default AutoCompleteTextView style. -->
370 <attr name="autoCompleteTextViewStyle" format="reference" />
371 <!-- Normal Button style. -->
372 <attr name="buttonStyle" format="reference" />
373 <!-- Small Button style. -->
374 <attr name="buttonStyleSmall" format="reference" />
375 <!-- Default Checkbox style. -->
376 <attr name="checkboxStyle" format="reference" />
377 <!-- Default CheckedTextView style. -->
378 <attr name="checkedTextViewStyle" format="reference" />
379 <!-- Default EditText style. -->
380 <attr name="editTextStyle" format="reference" />
381 <!-- Default RadioButton style. -->
382 <attr name="radioButtonStyle" format="reference" />
383 <!-- Default RatingBar style. -->
384 <attr name="ratingBarStyle" format="reference" />
Chris Banes7c8ba0f2015-12-10 15:51:38 +0000385 <!-- Indicator RatingBar style. -->
386 <attr name="ratingBarStyleIndicator" format="reference" />
387 <!-- Small indicator RatingBar style. -->
388 <attr name="ratingBarStyleSmall" format="reference" />
Chris Banes10e2dbc2015-05-08 13:49:25 +0100389 <!-- Default SeekBar style. -->
390 <attr name="seekBarStyle" format="reference" />
Chris Banes2cccf602015-02-18 12:32:08 +0000391 <!-- Default Spinner style. -->
392 <attr name="spinnerStyle" format="reference" />
393 <!-- Default style for the Switch widget. -->
394 <attr name="switchStyle" format="reference" />
395
Chris Banes6142a542016-01-27 13:05:29 +0000396 <!-- Default menu-style ListView style. -->
397 <attr name="listMenuViewStyle" format="reference" />
Vladislav Kaznacheeva4c68252017-03-03 13:09:06 -0800398
399 <!-- ===================== -->
400 <!-- Tooltip styles -->
401 <!-- ===================== -->
402 <eat-comment />
403
404 <!-- Background to use for tooltips -->
405 <attr name="tooltipFrameBackground" format="reference" />
406 <!-- Foreground color to use for tooltips -->
407 <attr name="tooltipForegroundColor" format="reference|color" />
Kirill Grouchnikovbe551c42017-04-18 11:39:27 -0400408
Kirill Grouchnikovf0554392017-04-20 12:08:17 -0400409 <!-- Color used for error states and things that need to be drawn to
410 the user's attention. -->
411 <attr name="colorError" format="reference|color" />
Kirill Grouchnikov3f27daa2017-10-13 17:04:40 -0400412
413 <attr name="viewInflaterClass" format="string" />
Adam Powellbbbb8f32012-04-25 13:03:55 -0700414 </declare-styleable>
415
Chris Banes49c78902014-07-15 15:30:55 +0100416
417 <!-- ============================================ -->
418
419 <!-- Attributes used to style the Action Bar.
420 These should be set on your theme; the default actionBarStyle will
421 propagate them to the correct elements as needed.
422
423 Please Note: when overriding attributes for an ActionBar style
424 you must specify each attribute twice: once with the "android:"
425 namespace prefix and once without. -->
426 <declare-styleable name="ActionBar">
427 <!-- The type of navigation to use. -->
428 <attr name="navigationMode">
429 <!-- Normal static title text -->
430 <enum name="normal" value="0"/>
431 <!-- The action bar will use a selection list for navigation. -->
432 <enum name="listMode" value="1"/>
433 <!-- The action bar will use a series of horizontal tabs for navigation. -->
434 <enum name="tabMode" value="2"/>
435 </attr>
436 <!-- Options affecting how the action bar is displayed. -->
437 <attr name="displayOptions">
438 <flag name="none" value="0" />
439 <flag name="useLogo" value="0x1"/>
440 <flag name="showHome" value="0x2"/>
441 <flag name="homeAsUp" value="0x4"/>
442 <flag name="showTitle" value="0x8"/>
443 <flag name="showCustom" value="0x10"/>
444 <flag name="disableHome" value="0x20"/>
445 </attr>
446 <!-- Specifies title text used for navigationMode="normal" -->
447 <attr name="title"/>
448 <!-- Specifies subtitle text used for navigationMode="normal" -->
449 <attr name="subtitle" format="string"/>
450 <!-- Specifies a style to use for title text. -->
451 <attr name="titleTextStyle" format="reference"/>
452 <!-- Specifies a style to use for subtitle text. -->
453 <attr name="subtitleTextStyle" format="reference"/>
454 <!-- Specifies the drawable used for the application icon. -->
455 <attr name="icon" format="reference"/>
456 <!-- Specifies the drawable used for the application logo. -->
457 <attr name="logo" format="reference"/>
458 <!-- Specifies the drawable used for item dividers. -->
459 <attr name="divider" format="reference"/>
460 <!-- Specifies a background drawable for the action bar. -->
461 <attr name="background" format="reference"/>
462 <!-- Specifies a background drawable for a second stacked row of the action bar. -->
463 <attr name="backgroundStacked" format="reference|color"/>
464 <!-- Specifies a background drawable for the bottom component of a split action bar. -->
465 <attr name="backgroundSplit" format="reference|color"/>
466 <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
467 <attr name="customNavigationLayout" format="reference"/>
468 <!-- Specifies a fixed height. -->
469 <attr name="height"/>
470 <!-- Specifies a layout to use for the "home" section of the action bar. -->
471 <attr name="homeLayout" format="reference"/>
472 <!-- Specifies a style resource to use for an embedded progress bar. -->
473 <attr name="progressBarStyle" format="reference"/>
474 <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
475 <attr name="indeterminateProgressStyle" format="reference"/>
476 <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
477 <attr name="progressBarPadding" format="dimension"/>
478 <!-- Up navigation glyph -->
479 <attr name="homeAsUpIndicator" />
480 <!-- Specifies padding that should be applied to the left and right sides of
481 system-provided items in the bar. -->
482 <attr name="itemPadding" format="dimension"/>
483 <!-- Set true to hide the action bar on a vertical nested scroll of content. -->
484 <attr name="hideOnContentScroll" format="boolean"/>
485 <!-- Minimum inset for content views within a bar. Navigation buttons and
486 menu views are excepted. Only valid for some themes and configurations. -->
487 <attr name="contentInsetStart" format="dimension"/>
488 <!-- Minimum inset for content views within a bar. Navigation buttons and
489 menu views are excepted. Only valid for some themes and configurations. -->
490 <attr name="contentInsetEnd" format="dimension"/>
491 <!-- Minimum inset for content views within a bar. Navigation buttons and
492 menu views are excepted. Only valid for some themes and configurations. -->
493 <attr name="contentInsetLeft" format="dimension"/>
494 <!-- Minimum inset for content views within a bar. Navigation buttons and
495 menu views are excepted. Only valid for some themes and configurations. -->
496 <attr name="contentInsetRight" format="dimension"/>
Adam Powell62d19a62016-03-28 11:12:24 -0700497 <!-- Minimum inset for content views within a bar when a navigation button
498 is present, such as the Up button. Only valid for some themes and configurations. -->
499 <attr name="contentInsetStartWithNavigation" format="dimension" />
500 <!-- Minimum inset for content views within a bar when actions from a menu
501 are present. Only valid for some themes and configurations. -->
502 <attr name="contentInsetEndWithActions" format="dimension" />
Chris Banes49c78902014-07-15 15:30:55 +0100503 <!-- Elevation for the action bar itself -->
504 <attr name="elevation" format="dimension" />
Chris Banes61c0bbe2014-07-31 14:21:02 +0100505 <!-- Reference to a theme that should be used to inflate popups
506 shown by widgets in the action bar. -->
507 <attr name="popupTheme" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100508 </declare-styleable>
509
510 <!-- Valid LayoutParams for views placed in the action bar as custom views. -->
511 <declare-styleable name="ActionBarLayout">
512 <attr name="android:layout_gravity"/>
513 </declare-styleable>
514
515 <declare-styleable name="ActionMenuItemView">
516 <attr name="android:minWidth"/>
517 </declare-styleable>
518
519 <declare-styleable name="ActionMode">
520 <!-- Specifies a style to use for title text. -->
521 <attr name="titleTextStyle"/>
522 <!-- Specifies a style to use for subtitle text. -->
523 <attr name="subtitleTextStyle"/>
524 <!-- Specifies a background for the action mode bar. -->
525 <attr name="background"/>
526 <!-- Specifies a background for the split action mode bar. -->
527 <attr name="backgroundSplit"/>
528 <!-- Specifies a fixed height for the action mode bar. -->
529 <attr name="height"/>
Chris Banes156b08e2014-09-05 12:08:03 +0100530 <!-- Specifies a layout to use for the "close" item at the starting edge. -->
531 <attr name="closeItemLayout" format="reference" />
Chris Banes49c78902014-07-15 15:30:55 +0100532 </declare-styleable>
533
534 <declare-styleable name="View">
535 <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
536 <attr name="paddingStart" format="dimension"/>
537 <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
538 <attr name="paddingEnd" format="dimension"/>
Chris Banes49c78902014-07-15 15:30:55 +0100539 <!-- Boolean that controls whether a view can take focus. By default the user can not
540 move focus to a view; by setting this attribute to true the view is
541 allowed to take focus. This value does not impact the behavior of
542 directly calling {@link android.view.View#requestFocus}, which will
543 always request focus regardless of this view. It only impacts where
544 focus navigation will try to move focus. -->
545 <attr name="android:focusable" />
Chris Banesfd1eb272014-10-24 13:07:51 +0100546 <!-- Deprecated. -->
547 <attr name="theme" format="reference" />
Chris Banesfd1eb272014-10-24 13:07:51 +0100548 <!-- Specifies a theme override for a view. When a theme override is set, the
549 view will be inflated using a {@link android.content.Context} themed with
550 the specified resource. -->
551 <attr name="android:theme" />
Chris Banes091b0f92015-05-06 19:13:34 +0100552 </declare-styleable>
Chris Banesfd1eb272014-10-24 13:07:51 +0100553
Chris Banes091b0f92015-05-06 19:13:34 +0100554 <declare-styleable name="ViewBackgroundHelper">
555 <attr name="android:background" />
Chris Banes9840efe2015-01-06 14:02:01 +0000556 <!-- Tint to apply to the background. -->
557 <attr name="backgroundTint" format="color" />
558
559 <!-- Blending mode used to apply the background tint. -->
560 <attr name="backgroundTintMode">
561 <!-- The tint is drawn on top of the drawable.
562 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
563 <enum name="src_over" value="3" />
564 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
565 color channels are thrown out. [Sa * Da, Sc * Da] -->
566 <enum name="src_in" value="5" />
567 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
568 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
569 <enum name="src_atop" value="9" />
570 <!-- Multiplies the color and alpha channels of the drawable with those of
571 the tint. [Sa * Da, Sc * Dc] -->
572 <enum name="multiply" value="14" />
573 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
574 <enum name="screen" value="15" />
Kamal Faraj4076f7b2017-09-01 16:17:55 +0200575 <!-- Combines the tint and icon color and alpha channels, clamping the
576 result to valid color values. Saturate(S + D) -->
577 <enum name="add" value="16" />
Chris Banes9840efe2015-01-06 14:02:01 +0000578 </attr>
Chris Banes49c78902014-07-15 15:30:55 +0100579 </declare-styleable>
580
Adam Powellbbbb8f32012-04-25 13:03:55 -0700581 <declare-styleable name="MenuView">
582 <!-- Default appearance of menu item text. -->
Trevor Johns82629492013-01-10 18:11:19 -0800583 <attr name="android:itemTextAppearance"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700584 <!-- Default horizontal divider between rows of menu items. -->
Trevor Johns82629492013-01-10 18:11:19 -0800585 <attr name="android:horizontalDivider"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700586 <!-- Default vertical divider between menu items. -->
Trevor Johns82629492013-01-10 18:11:19 -0800587 <attr name="android:verticalDivider"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700588 <!-- Default background for the menu header. -->
Trevor Johns82629492013-01-10 18:11:19 -0800589 <attr name="android:headerBackground"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700590 <!-- Default background for each menu item. -->
Trevor Johns82629492013-01-10 18:11:19 -0800591 <attr name="android:itemBackground"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700592 <!-- Default animations for the menu. -->
Trevor Johns82629492013-01-10 18:11:19 -0800593 <attr name="android:windowAnimationStyle"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700594 <!-- Default disabled icon alpha for each menu item that shows an icon. -->
Trevor Johns82629492013-01-10 18:11:19 -0800595 <attr name="android:itemIconDisabledAlpha"/>
Adam Powellbbbb8f32012-04-25 13:03:55 -0700596 <!-- Whether space should be reserved in layout when an icon is missing. -->
Chris Banes692b7042014-09-17 18:39:59 +0100597 <attr name="preserveIconSpacing" format="boolean" />
Chris Banes6142a542016-01-27 13:05:29 +0000598 <!-- Drawable for the arrow icon indicating a particular item is a submenu. -->
599 <attr name="subMenuArrow" format="reference" />
Adam Powellbbbb8f32012-04-25 13:03:55 -0700600 </declare-styleable>
601 <declare-styleable name="ActionMenuView">
602 <!-- Size of padding on either end of a divider. -->
603 </declare-styleable>
604
Trevor Johns82629492013-01-10 18:11:19 -0800605 <!-- Base attributes that are available to all groups. -->
606 <declare-styleable name="MenuGroup">
607
608 <!-- The ID of the group. -->
609 <attr name="android:id" />
610
611 <!-- The category applied to all items within this group.
612 (This will be or'ed with the orderInCategory attribute.) -->
613 <attr name="android:menuCategory" />
614
615 <!-- The order within the category applied to all items within this group.
616 (This will be or'ed with the category attribute.) -->
617 <attr name="android:orderInCategory" />
618
619 <!-- Whether the items are capable of displaying a check mark. -->
620 <attr name="android:checkableBehavior" />
621
622 <!-- Whether the items are shown/visible. -->
623 <attr name="android:visible" />
624
625 <!-- Whether the items are enabled. -->
626 <attr name="android:enabled" />
627
628 </declare-styleable>
629
630 <!-- Base attributes that are available to all Item objects. -->
631 <declare-styleable name="MenuItem">
632
633 <!-- The ID of the item. -->
634 <attr name="android:id" />
635
636 <!-- The category applied to the item.
637 (This will be or'ed with the orderInCategory attribute.) -->
638 <attr name="android:menuCategory" />
639
640 <!-- The order within the category applied to the item.
641 (This will be or'ed with the category attribute.) -->
642 <attr name="android:orderInCategory" />
643
644 <!-- The title associated with the item. -->
645 <attr name="android:title" />
646
647 <!-- The condensed title associated with the item. This is used in situations where the
648 normal title may be too long to be displayed. -->
649 <attr name="android:titleCondensed" />
650
651 <!-- The icon associated with this item. This icon will not always be shown, so
652 the title should be sufficient in describing this item. -->
653 <attr name="android:icon" />
654
655 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard
656 with alphabetic keys. -->
657 <attr name="android:alphabeticShortcut" />
658
Peeyush Agarwal09231da2016-10-27 15:11:42 +0100659 <!-- The alphabetic modifier key. This is the modifier when using a keyboard
660 with alphabetic keys. The values should be kept in sync with KeyEvent -->
661 <attr name="alphabeticModifiers">
662 <flag name="META" value="0x10000" />
663 <flag name="CTRL" value="0x1000" />
664 <flag name="ALT" value="0x02" />
665 <flag name="SHIFT" value="0x1" />
666 <flag name="SYM" value="0x4" />
667 <flag name="FUNCTION" value="0x8" />
668 </attr>
669
Trevor Johns82629492013-01-10 18:11:19 -0800670 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
671 keyboard. -->
672 <attr name="android:numericShortcut" />
673
Peeyush Agarwal09231da2016-10-27 15:11:42 +0100674 <!-- The numeric modifier key. This is the modifier when using a numeric (e.g., 12-key)
675 keyboard. The values should be kept in sync with KeyEvent -->
676 <attr name="numericModifiers">
677 <flag name="META" value="0x10000" />
678 <flag name="CTRL" value="0x1000" />
679 <flag name="ALT" value="0x02" />
680 <flag name="SHIFT" value="0x1" />
681 <flag name="SYM" value="0x4" />
682 <flag name="FUNCTION" value="0x8" />
683 </attr>
684
Trevor Johns82629492013-01-10 18:11:19 -0800685 <!-- Whether the item is capable of displaying a check mark. -->
686 <attr name="android:checkable" />
687
688 <!-- Whether the item is checked. Note that you must first have enabled checking with
689 the checkable attribute or else the check mark will not appear. -->
690 <attr name="android:checked" />
691
692 <!-- Whether the item is shown/visible. -->
693 <attr name="android:visible" />
694
695 <!-- Whether the item is enabled. -->
696 <attr name="android:enabled" />
697
698 <!-- Name of a method on the Context used to inflate the menu that will be
699 called when the item is clicked. -->
700 <attr name="android:onClick" />
701
702 <!-- How this item should display in the Action Bar, if present. -->
703 <attr name="showAsAction">
704 <!-- Never show this item in an action bar, show it in the overflow menu instead.
705 Mutually exclusive with "ifRoom" and "always". -->
706 <flag name="never" value="0" />
707 <!-- Show this item in an action bar if there is room for it as determined
708 by the system. Favor this option over "always" where possible.
709 Mutually exclusive with "never" and "always". -->
710 <flag name="ifRoom" value="1" />
711 <!-- Always show this item in an actionbar, even if it would override
712 the system's limits of how much stuff to put there. This may make
713 your action bar look bad on some screens. In most cases you should
714 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
715 <flag name="always" value="2" />
716 <!-- When this item is shown as an action in the action bar, show a text
717 label with it even if it has an icon representation. -->
718 <flag name="withText" value="4" />
719 <!-- This item's action view collapses to a normal menu
720 item. When expanded, the action view takes over a
721 larger segment of its container. -->
722 <flag name="collapseActionView" value="8" />
723 </attr>
724
725 <!-- An optional layout to be used as an action view.
726 See {@link android.view.MenuItem#setActionView(android.view.View)}
727 for more info. -->
728 <attr name="actionLayout" format="reference" />
729
730 <!-- The name of an optional View class to instantiate and use as an
731 action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
732 for more info. -->
733 <attr name="actionViewClass" format="string" />
734
735 <!-- The name of an optional ActionProvider class to instantiate an action view
736 and perform operations such as default action for that menu item.
737 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
738 for more info. -->
739 <attr name="actionProviderClass" format="string" />
740
Vladislav Kaznacheevfd3c4562017-01-25 18:27:47 +0000741 <!-- The content description associated with the item. -->
742 <attr name="contentDescription" format="string"/>
743
744 <!-- The tooltip text associated with the item. -->
745 <attr name="tooltipText" format="string"/>
746
Kirill Grouchnikov3a7c6d22017-04-10 16:54:23 -0400747 <!-- Tint to apply to the icon. -->
748 <attr name="iconTint" format="color" />
749
750 <!-- Blending mode used to apply the icon tint. -->
751 <attr name="iconTintMode">
752 <!-- The tint is drawn on top of the icon.
753 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
754 <enum name="src_over" value="3" />
755 <!-- The tint is masked by the alpha channel of the icon. The icon’s
756 color channels are thrown out. [Sa * Da, Sc * Da] -->
757 <enum name="src_in" value="5" />
758 <!-- The tint is drawn above the icon, but with the icon’s alpha
759 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
760 <enum name="src_atop" value="9" />
761 <!-- Multiplies the color and alpha channels of the icon with those of
762 the tint. [Sa * Da, Sc * Dc] -->
763 <enum name="multiply" value="14" />
764 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
765 <enum name="screen" value="15" />
766 <!-- Combines the tint and icon color and alpha channels, clamping the
767 result to valid color values. Saturate(S + D) -->
768 <enum name="add" value="16" />
769 </attr>
770
Trevor Johns82629492013-01-10 18:11:19 -0800771 </declare-styleable>
772
Chris Banes79e7a9e2013-03-01 14:48:09 +0000773 <declare-styleable name="Spinner">
774 <!-- The prompt to display when the spinner's dialog is shown. -->
Chris Banesf9336722015-04-28 16:15:24 +0100775 <attr name="android:prompt" />
776 <!-- Theme to use for the drop-down or dialog popup window. -->
777 <attr name="popupTheme" />
Chris Banes79e7a9e2013-03-01 14:48:09 +0000778 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
779 <attr name="android:popupBackground" />
Chris Banes79e7a9e2013-03-01 14:48:09 +0000780 <!-- Width of the dropdown in spinnerMode="dropdown". -->
781 <attr name="android:dropDownWidth" />
Chris Banes98e3c722015-10-22 10:24:58 +0100782 <!-- Reference to an array resource that will populate the Spinner. -->
783 <attr name="android:entries" />
Chris Banes79e7a9e2013-03-01 14:48:09 +0000784 </declare-styleable>
785
Chris Banes81804142013-05-22 09:55:42 +0100786 <declare-styleable name="SearchView">
Chris Banes1b01ce22014-07-24 16:45:25 +0100787 <!-- The layout to use for the search view. -->
788 <attr name="layout" format="reference" />
Chris Banes81804142013-05-22 09:55:42 +0100789 <!-- The default state of the SearchView. If true, it will be iconified when not in
790 use and expanded when clicked. -->
Chris Banes1b01ce22014-07-24 16:45:25 +0100791 <attr name="iconifiedByDefault" format="boolean" />
Chris Banes81804142013-05-22 09:55:42 +0100792 <!-- An optional maximum width of the SearchView. -->
793 <attr name="android:maxWidth" />
Chris Banesecd75f22015-04-27 10:44:00 +0100794 <!-- An optional user-defined query hint string to be displayed in the empty query field. -->
Chris Banes81804142013-05-22 09:55:42 +0100795 <attr name="queryHint" format="string" />
Chris Banesecd75f22015-04-27 10:44:00 +0100796 <!-- Default query hint used when {@code queryHint} is undefined and
797 the search view's {@code SearchableInfo} does not provide a hint. -->
798 <attr name="defaultQueryHint" format="string" />
Chris Banes81804142013-05-22 09:55:42 +0100799 <!-- The IME options to set on the query text field. -->
800 <attr name="android:imeOptions" />
801 <!-- The input type to set on the query text field. -->
802 <attr name="android:inputType" />
Chris Banes1b01ce22014-07-24 16:45:25 +0100803 <!-- Close button icon -->
804 <attr name="closeIcon" format="reference" />
805 <!-- Go button icon -->
806 <attr name="goIcon" format="reference" />
807 <!-- Search icon -->
808 <attr name="searchIcon" format="reference" />
Chris Banescc489cd2014-11-20 11:00:42 +0000809 <!-- Search icon displayed as a text field hint -->
810 <attr name="searchHintIcon" format="reference" />
Chris Banes1b01ce22014-07-24 16:45:25 +0100811 <!-- Voice button icon -->
812 <attr name="voiceIcon" format="reference" />
813 <!-- Commit icon shown in the query suggestion row -->
814 <attr name="commitIcon" format="reference" />
815 <!-- Layout for query suggestion rows -->
816 <attr name="suggestionRowLayout" format="reference" />
817 <!-- Background for the section containing the search query -->
818 <attr name="queryBackground" format="reference" />
819 <!-- Background for the section containing the action (e.g. voice search) -->
820 <attr name="submitBackground" format="reference" />
Adam Powell6912ef42014-09-03 19:38:38 -0700821 <attr name="android:focusable" />
Chris Banes81804142013-05-22 09:55:42 +0100822 </declare-styleable>
823
Chris Banese290ed32013-05-25 12:26:32 +0100824 <!-- Attrbitutes for a ActivityChooserView. -->
825 <declare-styleable name="ActivityChooserView">
826 <!-- The maximal number of items initially shown in the activity list. -->
827 <attr name="initialActivityCount" format="string" />
828 <!-- The drawable to show in the button for expanding the activities overflow popup.
829 <strong>Note:</strong> Clients would like to set this drawable
830 as a clue about the action the chosen activity will perform. For
831 example, if share activity is to be chosen the drawable should
832 give a clue that sharing is to be performed.
833 -->
834 <attr name="expandActivityOverflowButtonDrawable" format="reference" />
835 </declare-styleable>
836
Chris Banes2cccf602015-02-18 12:32:08 +0000837 <declare-styleable name="AppCompatTextView">
Chris Banes89208232013-05-31 13:36:59 +0100838 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
839 <attr name="textAllCaps" format="reference|boolean" />
Chris Banes320c3e92015-01-28 11:22:57 +0000840 <attr name="android:textAppearance" />
Andrei Stingaceanu41ce3472017-03-17 14:56:40 +0000841 <!-- Specify the type of auto-size. Note that this feature is not supported by EditText,
842 works only for TextView. -->
843 <attr name="autoSizeTextType" format="enum">
844 <!-- No auto-sizing (default). -->
845 <enum name="none" value="0" />
846 <!-- Uniform horizontal and vertical text size scaling to fit within the
847 container. -->
848 <enum name="uniform" value="1" />
849 </attr>
850 <!-- Specify the auto-size step size if <code>autoSizeTextType</code> is set to
851 <code>uniform</code>. The default is 1px. Overwrites
852 <code>autoSizePresetSizes</code> if set. -->
853 <attr name="autoSizeStepGranularity" format="dimension" />
854 <!-- Resource array of dimensions to be used in conjunction with
855 <code>autoSizeTextType</code> set to <code>uniform</code>. Overrides
856 <code>autoSizeStepGranularity</code> if set. -->
857 <attr name="autoSizePresetSizes" format="reference"/>
858 <!-- The minimum text size constraint to be used when auto-sizing text. -->
859 <attr name="autoSizeMinTextSize" format="dimension" />
860 <!-- The maximum text size constraint to be used when auto-sizing text. -->
861 <attr name="autoSizeMaxTextSize" format="dimension" />
Seigo Nonakab92b7c82017-05-10 17:49:54 -0700862 <!-- The attribute for the font family. -->
863 <attr name="fontFamily" format="string" />
Chris Banes89208232013-05-31 13:36:59 +0100864 </declare-styleable>
865
Chris Banes49c78902014-07-15 15:30:55 +0100866 <declare-styleable name="LinearLayoutCompat">
867 <!-- Should the layout be a column or a row? Use "horizontal"
868 for a row, "vertical" for a column. The default is
869 horizontal. -->
870 <attr name="android:orientation" />
871 <attr name="android:gravity" />
872 <!-- When set to false, prevents the layout from aligning its children's
873 baselines. This attribute is particularly useful when the children
874 use different values for gravity. The default value is true. -->
875 <attr name="android:baselineAligned" />
876 <!-- When a linear layout is part of another layout that is baseline
877 aligned, it can specify which of its children to baseline align to
878 (that is, which child TextView).-->
879 <attr name="android:baselineAlignedChildIndex" />
880 <!-- Defines the maximum weight sum. If unspecified, the sum is computed
881 by adding the layout_weight of all of the children. This can be
882 used for instance to give a single child 50% of the total available
883 space by giving it a layout_weight of 0.5 and setting the weightSum
884 to 1.0. -->
885 <attr name="android:weightSum" />
886 <!-- When set to true, all children with a weight will be considered having
887 the minimum size of the largest child. If false, all children are
888 measured normally. -->
889 <attr name="measureWithLargestChild" format="boolean" />
890 <!-- Drawable to use as a vertical divider between buttons. -->
891 <attr name="divider" />
892 <!-- Setting for which dividers to show. -->
893 <attr name="showDividers">
894 <flag name="none" value="0" />
895 <flag name="beginning" value="1" />
896 <flag name="middle" value="2" />
897 <flag name="end" value="4" />
898 </attr>
899 <!-- Size of padding on either end of a divider. -->
900 <attr name="dividerPadding" format="dimension" />
901 </declare-styleable>
902
903 <declare-styleable name="LinearLayoutCompat_Layout">
904 <attr name="android:layout_width" />
905 <attr name="android:layout_height" />
906 <attr name="android:layout_weight" />
907 <attr name="android:layout_gravity" />
908 </declare-styleable>
909
910 <declare-styleable name="Toolbar">
911 <attr name="titleTextAppearance" format="reference" />
912 <attr name="subtitleTextAppearance" format="reference" />
913 <attr name="title" />
914 <attr name="subtitle" />
915 <attr name="android:gravity" />
Chris Banesb1d11402015-10-15 13:48:16 +0100916 <!-- Specifies extra space on the left, start, right and end sides
917 of the toolbar's title. Margin values should be positive. -->
918 <attr name="titleMargin" format="dimension" />
919 <!-- Specifies extra space on the start 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. -->
Chris Banes49c78902014-07-15 15:30:55 +0100922 <attr name="titleMarginStart" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100923 <!-- Specifies extra space on the end 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. -->
Chris Banes49c78902014-07-15 15:30:55 +0100926 <attr name="titleMarginEnd" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100927 <!-- Specifies extra space on the top 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. -->
Chris Banes49c78902014-07-15 15:30:55 +0100930 <attr name="titleMarginTop" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100931 <!-- Specifies extra space on the bottom side of the toolbar's title.
932 If both this attribute and titleMargin are specified, then this
933 attribute takes precedence. Margin values should be positive. -->
Chris Banes49c78902014-07-15 15:30:55 +0100934 <attr name="titleMarginBottom" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100935 <!-- {@deprecated Use titleMargin} -->
936 <attr name="titleMargins" format="dimension" />
Chris Banes49c78902014-07-15 15:30:55 +0100937 <attr name="contentInsetStart" />
938 <attr name="contentInsetEnd" />
939 <attr name="contentInsetLeft" />
940 <attr name="contentInsetRight" />
Adam Powell62d19a62016-03-28 11:12:24 -0700941 <attr name="contentInsetStartWithNavigation" />
942 <attr name="contentInsetEndWithActions" />
Chris Banes49c78902014-07-15 15:30:55 +0100943 <attr name="maxButtonHeight" format="dimension" />
Chris Banesb1d11402015-10-15 13:48:16 +0100944 <attr name="buttonGravity">
945 <!-- Push object to the top of its container, not changing its size. -->
946 <flag name="top" value="0x30" />
947 <!-- Push object to the bottom of its container, not changing its size. -->
948 <flag name="bottom" value="0x50" />
949 </attr>
950 <!-- Icon drawable to use for the collapse button. -->
Chris Banes49c78902014-07-15 15:30:55 +0100951 <attr name="collapseIcon" format="reference" />
Alan Viverette3e2b5bd2014-10-28 16:15:02 -0700952 <!-- Text to set as the content description for the collapse button. -->
953 <attr name="collapseContentDescription" format="string" />
Chris Banes61c0bbe2014-07-31 14:21:02 +0100954 <!-- Reference to a theme that should be used to inflate popups
955 shown by widgets in the toolbar. -->
956 <attr name="popupTheme" />
Chris Banesac00a982014-09-01 11:32:44 +0100957 <!-- Icon drawable to use for the navigation button located at
958 the start of the toolbar. -->
959 <attr name="navigationIcon" format="reference" />
960 <!-- Text to set as the content description for the navigation button
961 located at the start of the toolbar. -->
962 <attr name="navigationContentDescription" format="string" />
Adam Powell64c32ba2015-06-16 17:08:03 -0700963 <!-- Drawable to set as the logo that appears at the starting side of
964 the Toolbar, just after the navigation button. -->
965 <attr name="logo" />
966 <!-- A content description string to describe the appearance of the
967 associated logo image. -->
968 <attr name="logoDescription" format="string" />
969 <!-- A color to apply to the title string. -->
970 <attr name="titleTextColor" format="color" />
971 <!-- A color to apply to the subtitle string. -->
972 <attr name="subtitleTextColor" format="color" />
Chris Banesb1d11402015-10-15 13:48:16 +0100973 <attr name="android:minHeight" />
Chris Banes49c78902014-07-15 15:30:55 +0100974 </declare-styleable>
975
976 <declare-styleable name="PopupWindowBackgroundState">
977 <!-- State identifier indicating the popup will be above the anchor. -->
978 <attr name="state_above_anchor" format="boolean" />
979 </declare-styleable>
980
Chris Banesac00a982014-09-01 11:32:44 +0100981 <declare-styleable name="ListPopupWindow">
982 <!-- Amount of pixels by which the drop down should be offset vertically. -->
983 <attr name="android:dropDownVerticalOffset" />
984 <!-- Amount of pixels by which the drop down should be offset horizontally. -->
985 <attr name="android:dropDownHorizontalOffset" />
986 </declare-styleable>
987
Chris Banes5ec2faa2014-09-04 13:10:12 +0100988 <declare-styleable name="PopupWindow">
989 <!-- Whether the popup window should overlap its anchor view. -->
990 <attr name="overlapAnchor" format="boolean" />
Chris Banes46928612014-09-02 11:28:36 +0100991 <attr name="android:popupBackground" />
Chris Banesb2d52312016-05-06 10:28:03 +0100992 <attr name="android:popupAnimationStyle"/>
Chris Banes5ec2faa2014-09-04 13:10:12 +0100993 </declare-styleable>
994
Yigit Boyar058467c2014-08-26 16:55:01 -0700995 <declare-styleable name="DrawerArrowToggle">
996 <!-- The drawing color for the bars -->
997 <attr name="color" format="color"/>
998 <!-- Whether bars should rotate or not during transition -->
999 <attr name="spinBars" format="boolean"/>
1000 <!-- The total size of the drawable -->
1001 <attr name="drawableSize" format="dimension"/>
1002 <!-- The max gap between the bars when they are parallel to each other -->
1003 <attr name="gapBetweenBars" format="dimension"/>
Chris Banesfab671e2015-07-11 09:23:31 +01001004 <!-- The length of the arrow head when formed to make an arrow -->
1005 <attr name="arrowHeadLength" format="dimension"/>
1006 <!-- The length of the shaft when formed to make an arrow -->
1007 <attr name="arrowShaftLength" format="dimension"/>
1008 <!-- The length of the bars when they are parallel to each other -->
1009 <attr name="barLength" format="dimension"/>
Yigit Boyar058467c2014-08-26 16:55:01 -07001010 <!-- The thickness (stroke size) for the bar paint -->
1011 <attr name="thickness" format="dimension"/>
1012 </declare-styleable>
1013
1014 <attr name="drawerArrowStyle" format="reference" />
1015
Chris Banes4bd5cbd2014-09-05 18:26:41 +01001016 <declare-styleable name="ViewStubCompat">
1017 <!-- Supply an identifier for the layout resource to inflate when the ViewStub
1018 becomes visible or when forced to do so. The layout resource must be a
1019 valid reference to a layout. -->
1020 <attr name="android:layout" />
1021 <!-- Overrides the id of the inflated View with this value. -->
1022 <attr name="android:inflatedId" />
1023 <attr name="android:id" />
1024 </declare-styleable>
1025
Chris Banes091b0f92015-05-06 19:13:34 +01001026 <declare-styleable name="CompoundButton">
1027 <attr name="android:button"/>
1028 <!-- Tint to apply to the button drawable. -->
1029 <attr name="buttonTint" format="color" />
1030
1031 <!-- Blending mode used to apply the button tint. -->
1032 <attr name="buttonTintMode">
1033 <!-- The tint is drawn on top of the drawable.
1034 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1035 <enum name="src_over" value="3" />
1036 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1037 color channels are thrown out. [Sa * Da, Sc * Da] -->
1038 <enum name="src_in" value="5" />
1039 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1040 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1041 <enum name="src_atop" value="9" />
1042 <!-- Multiplies the color and alpha channels of the drawable with those of
1043 the tint. [Sa * Da, Sc * Dc] -->
1044 <enum name="multiply" value="14" />
1045 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1046 <enum name="screen" value="15" />
Kamal Faraj4076f7b2017-09-01 16:17:55 +02001047 <!-- Combines the tint and icon color and alpha channels, clamping the
1048 result to valid color values. Saturate(S + D) -->
1049 <enum name="add" value="16" />
Chris Banes091b0f92015-05-06 19:13:34 +01001050 </attr>
1051 </declare-styleable>
1052
Chris Banes415f7402014-09-22 11:49:54 +01001053 <declare-styleable name="SwitchCompat">
1054 <!-- Drawable to use as the "thumb" that switches back and forth. -->
1055 <attr name="android:thumb" />
Chris Banesd6e47222016-04-21 13:55:23 +01001056 <!-- Tint to apply to the thumb drawable. -->
1057 <attr name="thumbTint" format="color" />
1058 <!-- Blending mode used to apply the thumb tint. -->
1059 <attr name="thumbTintMode">
1060 <!-- The tint is drawn on top of the drawable.
1061 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1062 <enum name="src_over" value="3" />
1063 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1064 color channels are thrown out. [Sa * Da, Sc * Da] -->
1065 <enum name="src_in" value="5" />
1066 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1067 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1068 <enum name="src_atop" value="9" />
1069 <!-- Multiplies the color and alpha channels of the drawable with those of
1070 the tint. [Sa * Da, Sc * Dc] -->
1071 <enum name="multiply" value="14" />
1072 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1073 <enum name="screen" value="15" />
1074 <!-- Combines the tint and drawable color and alpha channels, clamping the
1075 result to valid color values. Saturate(S + D) -->
1076 <enum name="add" value="16" />
1077 </attr>
Chris Banes415f7402014-09-22 11:49:54 +01001078 <!-- Drawable to use as the "track" that the switch thumb slides within. -->
1079 <attr name="track" format="reference" />
Chris Banesd6e47222016-04-21 13:55:23 +01001080 <!-- Tint to apply to the track. -->
1081 <attr name="trackTint" format="color" />
1082 <!-- Blending mode used to apply the track tint. -->
1083 <attr name="trackTintMode">
1084 <!-- The tint is drawn on top of the drawable.
1085 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1086 <enum name="src_over" value="3" />
1087 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1088 color channels are thrown out. [Sa * Da, Sc * Da] -->
1089 <enum name="src_in" value="5" />
1090 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1091 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1092 <enum name="src_atop" value="9" />
1093 <!-- Multiplies the color and alpha channels of the drawable with those of
1094 the tint. [Sa * Da, Sc * Dc] -->
1095 <enum name="multiply" value="14" />
1096 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1097 <enum name="screen" value="15" />
1098 <!-- Combines the tint and drawable color and alpha channels, clamping the
1099 result to valid color values. Saturate(S + D) -->
1100 <enum name="add" value="16" />
1101 </attr>
Chris Banes415f7402014-09-22 11:49:54 +01001102 <!-- Text to use when the switch is in the checked/"on" state. -->
1103 <attr name="android:textOn" />
1104 <!-- Text to use when the switch is in the unchecked/"off" state. -->
1105 <attr name="android:textOff" />
1106 <!-- Amount of padding on either side of text within the switch thumb. -->
1107 <attr name="thumbTextPadding" format="dimension" />
1108 <!-- TextAppearance style for text displayed on the switch thumb. -->
1109 <attr name="switchTextAppearance" format="reference" />
1110 <!-- Minimum width for the switch component -->
1111 <attr name="switchMinWidth" format="dimension" />
1112 <!-- Minimum space between the switch and caption text -->
1113 <attr name="switchPadding" format="dimension" />
1114 <!-- Whether to split the track and leave a gap for the thumb drawable. -->
1115 <attr name="splitTrack" format="boolean" />
1116 <!-- Whether to draw on/off text. -->
1117 <attr name="showText" format="boolean" />
1118 </declare-styleable>
1119
Chris Banes320c3e92015-01-28 11:22:57 +00001120 <declare-styleable name="TextAppearance">
Chris Banes36ba98b2014-10-28 10:45:10 +00001121 <attr name="android:textSize" />
1122 <attr name="android:textColor" />
Chris Banes286a5132016-09-09 10:56:58 +01001123 <attr name="android:textColorHint"/>
Kirill Grouchnikov88d05bd2017-03-15 11:12:44 -04001124 <attr name="android:textColorLink"/>
Chris Banes414f5232014-12-11 10:29:47 +00001125 <attr name="android:textStyle" />
1126 <attr name="android:typeface" />
Clara Bayarri543fd292017-03-24 11:29:49 +00001127 <attr name="android:fontFamily" />
Seigo Nonakab92b7c82017-05-10 17:49:54 -07001128 <attr name="fontFamily" />
Chris Banes36ba98b2014-10-28 10:45:10 +00001129 <attr name="textAllCaps" />
Chris Banes23caabc2015-08-07 10:30:48 +01001130 <attr name="android:shadowColor"/>
1131 <attr name="android:shadowDy"/>
1132 <attr name="android:shadowDx"/>
1133 <attr name="android:shadowRadius"/>
Chris Banes36ba98b2014-10-28 10:45:10 +00001134 </declare-styleable>
1135
Chris Banes19eaf142015-02-04 23:39:54 +00001136 <!-- The set of attributes that describe a AlertDialog's theme. -->
1137 <declare-styleable name="AlertDialog">
1138 <attr name="android:layout" />
1139 <attr name="buttonPanelSideLayout" format="reference" />
1140 <attr name="listLayout" format="reference" />
1141 <attr name="multiChoiceItemLayout" format="reference" />
1142 <attr name="singleChoiceItemLayout" format="reference" />
1143 <attr name="listItemLayout" format="reference" />
Chris Banes2c960112016-11-07 12:33:18 +00001144 <attr name="showTitle" format="boolean" />
Aga Madurska70a61be2017-10-25 19:26:16 +01001145 <attr name="buttonIconDimen" format="dimension" />
Chris Banes19eaf142015-02-04 23:39:54 +00001146 </declare-styleable>
1147
Chris Banes9b8f7082015-07-29 14:34:44 +01001148 <!-- @hide -->
1149 <declare-styleable name="ButtonBarLayout">
1150 <!-- Whether to automatically stack the buttons when there is not
1151 enough space to lay them out side-by-side. -->
1152 <attr name="allowStacking" format="boolean" />
1153 </declare-styleable>
1154
Chris Banes9d5f84f2015-06-18 17:08:14 +01001155 <!-- Attributes that can be assigned to a ColorStateList item. -->
1156 <declare-styleable name="ColorStateListItem">
1157 <!-- Base color for this state. -->
1158 <attr name="android:color" />
1159 <!-- Alpha multiplier applied to the base color. -->
1160 <attr name="alpha" format="float" />
1161 <attr name="android:alpha"/>
1162 </declare-styleable>
1163
Chris Banese4beadb2015-11-10 10:45:58 +00001164 <declare-styleable name="AppCompatImageView">
1165 <attr name="android:src"/>
Chris Banesba337d52016-06-10 12:23:39 +01001166 <!-- Sets a drawable as the content of this ImageView. Allows the use of vector drawable
1167 when running on older versions of the platform. -->
Chris Banese4beadb2015-11-10 10:45:58 +00001168 <attr name="srcCompat" format="reference" />
Kirill Grouchnikovb277db22017-03-22 13:47:51 -04001169
1170 <!-- Tint to apply to the image source. -->
1171 <attr name="tint" format="color" />
1172
1173 <!-- Blending mode used to apply the image source tint. -->
1174 <attr name="tintMode">
1175 <!-- The tint is drawn on top of the drawable.
1176 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1177 <enum name="src_over" value="3" />
1178 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1179 color channels are thrown out. [Sa * Da, Sc * Da] -->
1180 <enum name="src_in" value="5" />
1181 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1182 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1183 <enum name="src_atop" value="9" />
1184 <!-- Multiplies the color and alpha channels of the drawable with those of
1185 the tint. [Sa * Da, Sc * Dc] -->
1186 <enum name="multiply" value="14" />
1187 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1188 <enum name="screen" value="15" />
Kamal Faraj4076f7b2017-09-01 16:17:55 +02001189 <!-- Combines the tint and icon color and alpha channels, clamping the
1190 result to valid color values. Saturate(S + D) -->
1191 <enum name="add" value="16" />
Kirill Grouchnikovb277db22017-03-22 13:47:51 -04001192 </attr>
Chris Banese4beadb2015-11-10 10:45:58 +00001193 </declare-styleable>
1194
Chris Banesb19cba12016-02-22 15:02:39 +00001195 <declare-styleable name="AppCompatSeekBar">
1196 <attr name="android:thumb" />
1197 <!-- Drawable displayed at each progress position on a seekbar. -->
1198 <attr name="tickMark" format="reference" />
1199 <!-- Tint to apply to the tick mark drawable. -->
1200 <attr name="tickMarkTint" format="color" />
1201 <!-- Blending mode used to apply the tick mark tint. -->
1202 <attr name="tickMarkTintMode">
1203 <!-- The tint is drawn on top of the drawable.
1204 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
1205 <enum name="src_over" value="3" />
1206 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
1207 color channels are thrown out. [Sa * Da, Sc * Da] -->
1208 <enum name="src_in" value="5" />
1209 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
1210 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
1211 <enum name="src_atop" value="9" />
1212 <!-- Multiplies the color and alpha channels of the drawable with those of
1213 the tint. [Sa * Da, Sc * Dc] -->
1214 <enum name="multiply" value="14" />
1215 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
1216 <enum name="screen" value="15" />
1217 <!-- Combines the tint and drawable color and alpha channels, clamping the
1218 result to valid color values. Saturate(S + D) -->
1219 <enum name="add" value="16" />
1220 </attr>
1221 </declare-styleable>
1222
Chris Banes31a373d2016-06-27 15:52:06 +01001223 <declare-styleable name="AppCompatTextHelper">
1224 <attr name="android:drawableLeft" />
1225 <attr name="android:drawableTop" />
1226 <attr name="android:drawableRight" />
1227 <attr name="android:drawableBottom" />
1228 <attr name="android:drawableStart" />
1229 <attr name="android:drawableEnd" />
1230 <attr name="android:textAppearance" />
1231 </declare-styleable>
1232
Chris Banes2c960112016-11-07 12:33:18 +00001233 <declare-styleable name="RecycleListView">
1234 <!-- Bottom padding to use when no buttons are present. -->
1235 <attr name="paddingBottomNoButtons" format="dimension" />
1236 <!-- Top padding to use when no title is present. -->
1237 <attr name="paddingTopNoTitle" format="dimension" />
1238 </declare-styleable>
1239
Adam Powellbbbb8f32012-04-25 13:03:55 -07001240</resources>