Merge branch 'material_buttons' of https://github.com/owncloud/android into material_fab
[pub/Android/ownCloud.git] / libs / android-support-appcompat-v7-23-1-0-exploded-aar / res / values / attrs.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2012 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 -->
16
17 <resources>
18 <!-- Many app-specific attributes are declared in this file.
19 Unless otherwise specified, they are intended to be set within
20 the context of a theme declaration.
21
22 Each cluster of attributes below states whether it is meant to
23 be set by the app and read by the system, or set by the system and
24 read by the app. -->
25 <eat-comment/>
26
27
28 <attr name="title" format="string"/>
29 <attr name="height" format="dimension"/>
30 <!-- Specifies whether the theme is light, otherwise it is dark. -->
31 <attr name="isLightTheme" format="boolean" />
32
33 <!-- These are the standard attributes that make up a complete theme. -->
34 <declare-styleable name="Theme">
35
36 <!-- ============= -->
37 <!-- Window styles -->
38 <!-- ============= -->
39 <eat-comment />
40
41 <!-- Flag indicating whether this window should have an Action Bar
42 in place of the usual title bar. -->
43 <attr name="windowActionBar" format="boolean" />
44
45 <!-- Flag indicating whether there should be no title on this window. -->
46 <attr name="windowNoTitle" format="boolean" />
47
48 <!-- Flag indicating whether this window's Action Bar should overlay
49 application content. Does nothing if the window would not
50 have an Action Bar. -->
51 <attr name="windowActionBarOverlay" format="boolean" />
52
53 <!-- Flag indicating whether action modes should overlay window content
54 when there is not reserved space for their UI (such as an Action Bar). -->
55 <attr name="windowActionModeOverlay" format="boolean" />
56
57 <!-- A fixed width for the window along the major axis of the screen,
58 that is, when in landscape. Can be either an absolute dimension
59 or a fraction of the screen size in that dimension. -->
60 <attr name="windowFixedWidthMajor" format="dimension|fraction" />
61 <!-- A fixed height for the window along the minor axis of the screen,
62 that is, when in landscape. Can be either an absolute dimension
63 or a fraction of the screen size in that dimension. -->
64 <attr name="windowFixedHeightMinor" format="dimension|fraction" />
65
66 <!-- A fixed width for the window along the minor axis of the screen,
67 that is, when in portrait. Can be either an absolute dimension
68 or a fraction of the screen size in that dimension. -->
69 <attr name="windowFixedWidthMinor" format="dimension|fraction" />
70 <!-- A fixed height for the window along the major axis of the screen,
71 that is, when in portrait. Can be either an absolute dimension
72 or a fraction of the screen size in that dimension. -->
73 <attr name="windowFixedHeightMajor" format="dimension|fraction" />
74
75 <!-- The minimum width the window is allowed to be, along the major
76 axis of the screen. That is, when in landscape. Can be either
77 an absolute dimension or a fraction of the screen size in that
78 dimension. -->
79 <attr name="windowMinWidthMajor" format="dimension|fraction" />
80 <!-- The minimum width the window is allowed to be, along the minor
81 axis of the screen. That is, when in portrait. Can be either
82 an absolute dimension or a fraction of the screen size in that
83 dimension. -->
84 <attr name="windowMinWidthMinor" format="dimension|fraction" />
85
86 <attr name="android:windowIsFloating" />
87 <attr name="android:windowAnimationStyle" />
88
89 <!-- =================== -->
90 <!-- Action bar styles -->
91 <!-- =================== -->
92 <eat-comment />
93 <!-- Default style for tabs within an action bar -->
94 <attr name="actionBarTabStyle" format="reference" />
95 <attr name="actionBarTabBarStyle" format="reference" />
96 <attr name="actionBarTabTextStyle" format="reference" />
97 <attr name="actionOverflowButtonStyle" format="reference" />
98 <attr name="actionOverflowMenuStyle" format="reference" />
99 <!-- Reference to a theme that should be used to inflate popups
100 shown by widgets in the action bar. -->
101 <attr name="actionBarPopupTheme" format="reference" />
102 <!-- Reference to a style for the Action Bar -->
103 <attr name="actionBarStyle" format="reference" />
104 <!-- Reference to a style for the split Action Bar. This style
105 controls the split component that holds the menu/action
106 buttons. actionBarStyle is still used for the primary
107 bar. -->
108 <attr name="actionBarSplitStyle" format="reference" />
109 <!-- Reference to a theme that should be used to inflate the
110 action bar. This will be inherited by any widget inflated
111 into the action bar. -->
112 <attr name="actionBarTheme" format="reference" />
113 <!-- Reference to a theme that should be used to inflate widgets
114 and layouts destined for the action bar. Most of the time
115 this will be a reference to the current theme, but when
116 the action bar has a significantly different contrast
117 profile than the rest of the activity the difference
118 can become important. If this is set to @null the current
119 theme will be used.-->
120 <attr name="actionBarWidgetTheme" format="reference" />
121 <!-- Size of the Action Bar, including the contextual
122 bar used to present Action Modes. -->
123 <attr name="actionBarSize" format="dimension" >
124 <enum name="wrap_content" value="0" />
125 </attr>
126 <!-- Custom divider drawable to use for elements in the action bar. -->
127 <attr name="actionBarDivider" format="reference" />
128 <!-- Custom item state list drawable background for action bar items. -->
129 <attr name="actionBarItemBackground" format="reference" />
130 <!-- TextAppearance style that will be applied to text that
131 appears within action menu items. -->
132 <attr name="actionMenuTextAppearance" format="reference" />
133 <!-- Color for text that appears within action menu items. -->
134 <!-- Color for text that appears within action menu items. -->
135 <attr name="actionMenuTextColor" format="color|reference"/>
136
137
138 <!-- =================== -->
139 <!-- Action mode styles -->
140 <!-- =================== -->
141 <eat-comment/>
142 <attr name="actionModeStyle" format="reference"/>
143 <attr name="actionModeCloseButtonStyle" format="reference"/>
144 <!-- Background drawable to use for action mode UI -->
145 <attr name="actionModeBackground" format="reference"/>
146 <!-- Background drawable to use for action mode UI in the lower split bar -->
147 <attr name="actionModeSplitBackground" format="reference"/>
148 <!-- Drawable to use for the close action mode button -->
149 <attr name="actionModeCloseDrawable" format="reference"/>
150 <!-- Drawable to use for the Cut action button in Contextual Action Bar -->
151 <attr name="actionModeCutDrawable" format="reference"/>
152 <!-- Drawable to use for the Copy action button in Contextual Action Bar -->
153 <attr name="actionModeCopyDrawable" format="reference"/>
154 <!-- Drawable to use for the Paste action button in Contextual Action Bar -->
155 <attr name="actionModePasteDrawable" format="reference"/>
156 <!-- Drawable to use for the Select all action button in Contextual Action Bar -->
157 <attr name="actionModeSelectAllDrawable" format="reference"/>
158 <!-- Drawable to use for the Share action button in WebView selection action modes -->
159 <attr name="actionModeShareDrawable" format="reference"/>
160 <!-- Drawable to use for the Find action button in WebView selection action modes -->
161 <attr name="actionModeFindDrawable" format="reference"/>
162 <!-- Drawable to use for the Web Search action button in WebView selection action modes -->
163 <attr name="actionModeWebSearchDrawable" format="reference"/>
164
165 <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
166 <attr name="actionModePopupWindowStyle" format="reference"/>
167
168
169 <!-- =================== -->
170 <!-- Text styles -->
171 <!-- =================== -->
172 <eat-comment />
173 <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
174 <attr name="textAppearanceLargePopupMenu" format="reference"/>
175 <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
176 <attr name="textAppearanceSmallPopupMenu" format="reference"/>
177
178
179 <!-- =================== -->
180 <!-- Dialog styles -->
181 <!-- =================== -->
182 <eat-comment />
183
184 <!-- Theme to use for dialogs spawned from this theme. -->
185 <attr name="dialogTheme" format="reference" />
186 <!-- Preferred padding for dialog content. -->
187 <attr name="dialogPreferredPadding" format="dimension" />
188 <!-- The list divider used in alert dialogs. -->
189 <attr name="listDividerAlertDialog" format="reference" />
190
191 <!-- =================== -->
192 <!-- Other widget styles -->
193 <!-- =================== -->
194 <eat-comment />
195
196 <!-- Default ActionBar dropdown style. -->
197 <attr name="actionDropDownStyle" format="reference"/>
198 <!-- The preferred item height for dropdown lists. -->
199 <attr name="dropdownListPreferredItemHeight" format="dimension"/>
200 <!-- Default Spinner style. -->
201 <attr name="spinnerDropDownItemStyle" format="reference" />
202 <!-- Specifies a drawable to use for the 'home as up' indicator. -->
203 <attr name="homeAsUpIndicator" format="reference"/>
204
205 <!-- Default action button style. -->
206 <attr name="actionButtonStyle" format="reference"/>
207
208 <!-- Style for button bars -->
209 <attr name="buttonBarStyle" format="reference"/>
210 <!-- Style for buttons within button bars -->
211 <attr name="buttonBarButtonStyle" format="reference"/>
212 <!-- A style that may be applied to buttons or other selectable items
213 that should react to pressed and focus states, but that do not
214 have a clear visual border along the edges. -->
215 <attr name="selectableItemBackground" format="reference"/>
216 <!-- Background drawable for borderless standalone items that need focus/pressed states. -->
217 <attr name="selectableItemBackgroundBorderless" format="reference" />
218 <!-- Style for buttons without an explicit border, often used in groups. -->
219 <attr name="borderlessButtonStyle" format="reference" />
220 <!-- A drawable that may be used as a vertical divider between visual elements. -->
221 <attr name="dividerVertical" format="reference"/>
222 <!-- A drawable that may be used as a horizontal divider between visual elements. -->
223 <attr name="dividerHorizontal" format="reference"/>
224 <!-- Default ActivityChooserView style. -->
225 <attr name="activityChooserViewStyle" format="reference" />
226
227 <!-- Default Toolbar style. -->
228 <attr name="toolbarStyle" format="reference" />
229 <!-- Default Toolar NavigationButtonStyle -->
230 <attr name="toolbarNavigationButtonStyle" format="reference" />
231
232 <!-- Default PopupMenu style. -->
233 <attr name="popupMenuStyle" format="reference"/>
234 <!-- Default PopupWindow style. -->
235 <attr name="popupWindowStyle" format="reference" />
236
237 <!-- EditText text foreground color. -->
238 <attr name="editTextColor" format="reference|color" />
239 <!-- EditText background drawable. -->
240 <attr name="editTextBackground" format="reference" />
241
242 <!-- ImageButton background drawable. -->
243 <attr name="imageButtonStyle" format="reference" />
244
245 <!-- ============================ -->
246 <!-- SearchView styles and assets -->
247 <!-- ============================ -->
248 <eat-comment />
249 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
250 <attr name="textAppearanceSearchResultTitle" format="reference" />
251 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
252 <attr name="textAppearanceSearchResultSubtitle" format="reference" />
253 <!-- Text color for urls in search suggestions, used by things like global search -->
254 <attr name="textColorSearchUrl" format="reference|color" />
255 <!-- Style for the search query widget. -->
256 <attr name="searchViewStyle" format="reference" />
257
258 <!-- =========== -->
259 <!-- List styles -->
260 <!-- =========== -->
261 <eat-comment />
262
263 <!-- The preferred list item height. -->
264 <attr name="listPreferredItemHeight" format="dimension"/>
265 <!-- A smaller, sleeker list item height. -->
266 <attr name="listPreferredItemHeightSmall" format="dimension"/>
267 <!-- A larger, more robust list item height. -->
268 <attr name="listPreferredItemHeightLarge" format="dimension"/>
269
270 <!-- The preferred padding along the left edge of list items. -->
271 <attr name="listPreferredItemPaddingLeft" format="dimension"/>
272 <!-- The preferred padding along the right edge of list items. -->
273 <attr name="listPreferredItemPaddingRight" format="dimension"/>
274
275 <!-- ListPopupWindow compatibility -->
276 <attr name="dropDownListViewStyle" format="reference"/>
277 <attr name="listPopupWindowStyle" format="reference"/>
278
279 <!-- The preferred TextAppearance for the primary text of list items. -->
280 <attr name="textAppearanceListItem" format="reference"/>
281 <!-- The preferred TextAppearance for the primary text of small list items. -->
282 <attr name="textAppearanceListItemSmall" format="reference"/>
283
284
285 <!-- ============ -->
286 <!-- Panel styles -->
287 <!-- ============ -->
288 <eat-comment />
289
290 <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
291 <attr name="panelBackground" format="reference" />
292 <!-- Default Panel Menu width. -->
293 <attr name="panelMenuListWidth" format="dimension" />
294 <!-- Default Panel Menu style. -->
295 <attr name="panelMenuListTheme" format="reference" />
296 <!-- Drawable used as a background for selected list items. -->
297 <attr name="listChoiceBackgroundIndicator" format="reference" />
298
299 <!-- ============= -->
300 <!-- Color palette -->
301 <!-- ============= -->
302 <eat-comment />
303
304 <!-- The primary branding color for the app. By default, this is the color applied to the
305 action bar background. -->
306 <attr name="colorPrimary" format="color" />
307
308 <!-- Dark variant of the primary branding color. By default, this is the color applied to
309 the status bar (via statusBarColor) and navigation bar (via navigationBarColor). -->
310 <attr name="colorPrimaryDark" format="color" />
311
312 <!-- Bright complement to the primary branding color. By default, this is the color applied
313 to framework controls (via colorControlActivated). -->
314 <attr name="colorAccent" format="color" />
315
316 <!-- The color applied to framework controls in their normal state. -->
317 <attr name="colorControlNormal" format="color" />
318
319 <!-- The color applied to framework controls in their activated (ex. checked) state. -->
320 <attr name="colorControlActivated" format="color" />
321
322 <!-- The color applied to framework control highlights (ex. ripples, list selectors). -->
323 <attr name="colorControlHighlight" format="color" />
324
325 <!-- The color applied to framework buttons in their normal state. -->
326 <attr name="colorButtonNormal" format="color" />
327
328 <!-- The color applied to framework switch thumbs in their normal state. -->
329 <attr name="colorSwitchThumbNormal" format="color" />
330
331 <!-- The background used by framework controls. -->
332 <attr name="controlBackground" format="reference" />
333
334 <!-- ============ -->
335 <!-- Alert Dialog styles -->
336 <!-- ============ -->
337 <eat-comment />
338 <attr name="alertDialogStyle" format="reference" />
339 <attr name="alertDialogButtonGroupStyle" format="reference" />
340 <attr name="alertDialogCenterButtons" format="boolean" />
341 <!-- Theme to use for alert dialogs spawned from this theme. -->
342 <attr name="alertDialogTheme" format="reference" />
343
344 <!-- Color of list item text in alert dialogs. -->
345 <attr name="textColorAlertDialogListItem" format="reference|color" />
346
347 <!-- Style for the "positive" buttons within button bars -->
348 <attr name="buttonBarPositiveButtonStyle" format="reference" />
349
350 <!-- Style for the "negative" buttons within button bars -->
351 <attr name="buttonBarNegativeButtonStyle" format="reference" />
352
353 <!-- Style for the "neutral" buttons within button bars -->
354 <attr name="buttonBarNeutralButtonStyle" format="reference" />
355
356 <!-- ===================== -->
357 <!-- Default widget styles -->
358 <!-- ===================== -->
359 <eat-comment />
360
361 <!-- Default AutoCompleteTextView style. -->
362 <attr name="autoCompleteTextViewStyle" format="reference" />
363 <!-- Normal Button style. -->
364 <attr name="buttonStyle" format="reference" />
365 <!-- Small Button style. -->
366 <attr name="buttonStyleSmall" format="reference" />
367 <!-- Default Checkbox style. -->
368 <attr name="checkboxStyle" format="reference" />
369 <!-- Default CheckedTextView style. -->
370 <attr name="checkedTextViewStyle" format="reference" />
371 <!-- Default EditText style. -->
372 <attr name="editTextStyle" format="reference" />
373 <!-- Default RadioButton style. -->
374 <attr name="radioButtonStyle" format="reference" />
375 <!-- Default RatingBar style. -->
376 <attr name="ratingBarStyle" format="reference" />
377 <!-- Default SeekBar style. -->
378 <attr name="seekBarStyle" format="reference" />
379 <!-- Default Spinner style. -->
380 <attr name="spinnerStyle" format="reference" />
381 <!-- Default style for the Switch widget. -->
382 <attr name="switchStyle" format="reference" />
383
384 </declare-styleable>
385
386
387 <!-- ============================================ -->
388
389 <!-- Attributes used to style the Action Bar.
390 These should be set on your theme; the default actionBarStyle will
391 propagate them to the correct elements as needed.
392
393 Please Note: when overriding attributes for an ActionBar style
394 you must specify each attribute twice: once with the "android:"
395 namespace prefix and once without. -->
396 <declare-styleable name="ActionBar">
397 <!-- The type of navigation to use. -->
398 <attr name="navigationMode">
399 <!-- Normal static title text -->
400 <enum name="normal" value="0"/>
401 <!-- The action bar will use a selection list for navigation. -->
402 <enum name="listMode" value="1"/>
403 <!-- The action bar will use a series of horizontal tabs for navigation. -->
404 <enum name="tabMode" value="2"/>
405 </attr>
406 <!-- Options affecting how the action bar is displayed. -->
407 <attr name="displayOptions">
408 <flag name="none" value="0" />
409 <flag name="useLogo" value="0x1"/>
410 <flag name="showHome" value="0x2"/>
411 <flag name="homeAsUp" value="0x4"/>
412 <flag name="showTitle" value="0x8"/>
413 <flag name="showCustom" value="0x10"/>
414 <flag name="disableHome" value="0x20"/>
415 </attr>
416 <!-- Specifies title text used for navigationMode="normal" -->
417 <attr name="title"/>
418 <!-- Specifies subtitle text used for navigationMode="normal" -->
419 <attr name="subtitle" format="string"/>
420 <!-- Specifies a style to use for title text. -->
421 <attr name="titleTextStyle" format="reference"/>
422 <!-- Specifies a style to use for subtitle text. -->
423 <attr name="subtitleTextStyle" format="reference"/>
424 <!-- Specifies the drawable used for the application icon. -->
425 <attr name="icon" format="reference"/>
426 <!-- Specifies the drawable used for the application logo. -->
427 <attr name="logo" format="reference"/>
428 <!-- Specifies the drawable used for item dividers. -->
429 <attr name="divider" format="reference"/>
430 <!-- Specifies a background drawable for the action bar. -->
431 <attr name="background" format="reference"/>
432 <!-- Specifies a background drawable for a second stacked row of the action bar. -->
433 <attr name="backgroundStacked" format="reference|color"/>
434 <!-- Specifies a background drawable for the bottom component of a split action bar. -->
435 <attr name="backgroundSplit" format="reference|color"/>
436 <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
437 <attr name="customNavigationLayout" format="reference"/>
438 <!-- Specifies a fixed height. -->
439 <attr name="height"/>
440 <!-- Specifies a layout to use for the "home" section of the action bar. -->
441 <attr name="homeLayout" format="reference"/>
442 <!-- Specifies a style resource to use for an embedded progress bar. -->
443 <attr name="progressBarStyle" format="reference"/>
444 <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
445 <attr name="indeterminateProgressStyle" format="reference"/>
446 <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
447 <attr name="progressBarPadding" format="dimension"/>
448 <!-- Up navigation glyph -->
449 <attr name="homeAsUpIndicator" />
450 <!-- Specifies padding that should be applied to the left and right sides of
451 system-provided items in the bar. -->
452 <attr name="itemPadding" format="dimension"/>
453 <!-- Set true to hide the action bar on a vertical nested scroll of content. -->
454 <attr name="hideOnContentScroll" format="boolean"/>
455 <!-- Minimum inset for content views within a bar. Navigation buttons and
456 menu views are excepted. Only valid for some themes and configurations. -->
457 <attr name="contentInsetStart" format="dimension"/>
458 <!-- Minimum inset for content views within a bar. Navigation buttons and
459 menu views are excepted. Only valid for some themes and configurations. -->
460 <attr name="contentInsetEnd" format="dimension"/>
461 <!-- Minimum inset for content views within a bar. Navigation buttons and
462 menu views are excepted. Only valid for some themes and configurations. -->
463 <attr name="contentInsetLeft" format="dimension"/>
464 <!-- Minimum inset for content views within a bar. Navigation buttons and
465 menu views are excepted. Only valid for some themes and configurations. -->
466 <attr name="contentInsetRight" format="dimension"/>
467 <!-- Elevation for the action bar itself -->
468 <attr name="elevation" format="dimension" />
469 <!-- Reference to a theme that should be used to inflate popups
470 shown by widgets in the action bar. -->
471 <attr name="popupTheme" format="reference" />
472 </declare-styleable>
473
474 <!-- Valid LayoutParams for views placed in the action bar as custom views. -->
475 <declare-styleable name="ActionBarLayout">
476 <attr name="android:layout_gravity"/>
477 </declare-styleable>
478
479 <declare-styleable name="ActionMenuItemView">
480 <attr name="android:minWidth"/>
481 </declare-styleable>
482
483 <declare-styleable name="ActionMode">
484 <!-- Specifies a style to use for title text. -->
485 <attr name="titleTextStyle"/>
486 <!-- Specifies a style to use for subtitle text. -->
487 <attr name="subtitleTextStyle"/>
488 <!-- Specifies a background for the action mode bar. -->
489 <attr name="background"/>
490 <!-- Specifies a background for the split action mode bar. -->
491 <attr name="backgroundSplit"/>
492 <!-- Specifies a fixed height for the action mode bar. -->
493 <attr name="height"/>
494 <!-- Specifies a layout to use for the "close" item at the starting edge. -->
495 <attr name="closeItemLayout" format="reference" />
496 </declare-styleable>
497
498 <declare-styleable name="View">
499 <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
500 <attr name="paddingStart" format="dimension"/>
501 <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
502 <attr name="paddingEnd" format="dimension"/>
503 <!-- Boolean that controls whether a view can take focus. By default the user can not
504 move focus to a view; by setting this attribute to true the view is
505 allowed to take focus. This value does not impact the behavior of
506 directly calling {@link android.view.View#requestFocus}, which will
507 always request focus regardless of this view. It only impacts where
508 focus navigation will try to move focus. -->
509 <attr name="android:focusable" />
510 <!-- Deprecated. -->
511 <attr name="theme" format="reference" />
512 <!-- Specifies a theme override for a view. When a theme override is set, the
513 view will be inflated using a {@link android.content.Context} themed with
514 the specified resource. -->
515 <attr name="android:theme" />
516 </declare-styleable>
517
518 <declare-styleable name="ViewBackgroundHelper">
519 <attr name="android:background" />
520 <!-- Tint to apply to the background. -->
521 <attr name="backgroundTint" format="color" />
522
523 <!-- Blending mode used to apply the background tint. -->
524 <attr name="backgroundTintMode">
525 <!-- The tint is drawn on top of the drawable.
526 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
527 <enum name="src_over" value="3" />
528 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
529 color channels are thrown out. [Sa * Da, Sc * Da] -->
530 <enum name="src_in" value="5" />
531 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
532 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
533 <enum name="src_atop" value="9" />
534 <!-- Multiplies the color and alpha channels of the drawable with those of
535 the tint. [Sa * Da, Sc * Dc] -->
536 <enum name="multiply" value="14" />
537 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
538 <enum name="screen" value="15" />
539 </attr>
540 </declare-styleable>
541
542 <declare-styleable name="MenuView">
543 <!-- Default appearance of menu item text. -->
544 <attr name="android:itemTextAppearance"/>
545 <!-- Default horizontal divider between rows of menu items. -->
546 <attr name="android:horizontalDivider"/>
547 <!-- Default vertical divider between menu items. -->
548 <attr name="android:verticalDivider"/>
549 <!-- Default background for the menu header. -->
550 <attr name="android:headerBackground"/>
551 <!-- Default background for each menu item. -->
552 <attr name="android:itemBackground"/>
553 <!-- Default animations for the menu. -->
554 <attr name="android:windowAnimationStyle"/>
555 <!-- Default disabled icon alpha for each menu item that shows an icon. -->
556 <attr name="android:itemIconDisabledAlpha"/>
557 <!-- Whether space should be reserved in layout when an icon is missing. -->
558 <attr name="preserveIconSpacing" format="boolean" />
559 </declare-styleable>
560 <declare-styleable name="ActionMenuView">
561 <!-- Size of padding on either end of a divider. -->
562 </declare-styleable>
563
564 <!-- Base attributes that are available to all groups. -->
565 <declare-styleable name="MenuGroup">
566
567 <!-- The ID of the group. -->
568 <attr name="android:id" />
569
570 <!-- The category applied to all items within this group.
571 (This will be or'ed with the orderInCategory attribute.) -->
572 <attr name="android:menuCategory" />
573
574 <!-- The order within the category applied to all items within this group.
575 (This will be or'ed with the category attribute.) -->
576 <attr name="android:orderInCategory" />
577
578 <!-- Whether the items are capable of displaying a check mark. -->
579 <attr name="android:checkableBehavior" />
580
581 <!-- Whether the items are shown/visible. -->
582 <attr name="android:visible" />
583
584 <!-- Whether the items are enabled. -->
585 <attr name="android:enabled" />
586
587 </declare-styleable>
588
589 <!-- Base attributes that are available to all Item objects. -->
590 <declare-styleable name="MenuItem">
591
592 <!-- The ID of the item. -->
593 <attr name="android:id" />
594
595 <!-- The category applied to the item.
596 (This will be or'ed with the orderInCategory attribute.) -->
597 <attr name="android:menuCategory" />
598
599 <!-- The order within the category applied to the item.
600 (This will be or'ed with the category attribute.) -->
601 <attr name="android:orderInCategory" />
602
603 <!-- The title associated with the item. -->
604 <attr name="android:title" />
605
606 <!-- The condensed title associated with the item. This is used in situations where the
607 normal title may be too long to be displayed. -->
608 <attr name="android:titleCondensed" />
609
610 <!-- The icon associated with this item. This icon will not always be shown, so
611 the title should be sufficient in describing this item. -->
612 <attr name="android:icon" />
613
614 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard
615 with alphabetic keys. -->
616 <attr name="android:alphabeticShortcut" />
617
618 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
619 keyboard. -->
620 <attr name="android:numericShortcut" />
621
622 <!-- Whether the item is capable of displaying a check mark. -->
623 <attr name="android:checkable" />
624
625 <!-- Whether the item is checked. Note that you must first have enabled checking with
626 the checkable attribute or else the check mark will not appear. -->
627 <attr name="android:checked" />
628
629 <!-- Whether the item is shown/visible. -->
630 <attr name="android:visible" />
631
632 <!-- Whether the item is enabled. -->
633 <attr name="android:enabled" />
634
635 <!-- Name of a method on the Context used to inflate the menu that will be
636 called when the item is clicked. -->
637 <attr name="android:onClick" />
638
639 <!-- How this item should display in the Action Bar, if present. -->
640 <attr name="showAsAction">
641 <!-- Never show this item in an action bar, show it in the overflow menu instead.
642 Mutually exclusive with "ifRoom" and "always". -->
643 <flag name="never" value="0" />
644 <!-- Show this item in an action bar if there is room for it as determined
645 by the system. Favor this option over "always" where possible.
646 Mutually exclusive with "never" and "always". -->
647 <flag name="ifRoom" value="1" />
648 <!-- Always show this item in an actionbar, even if it would override
649 the system's limits of how much stuff to put there. This may make
650 your action bar look bad on some screens. In most cases you should
651 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
652 <flag name="always" value="2" />
653 <!-- When this item is shown as an action in the action bar, show a text
654 label with it even if it has an icon representation. -->
655 <flag name="withText" value="4" />
656 <!-- This item's action view collapses to a normal menu
657 item. When expanded, the action view takes over a
658 larger segment of its container. -->
659 <flag name="collapseActionView" value="8" />
660 </attr>
661
662 <!-- An optional layout to be used as an action view.
663 See {@link android.view.MenuItem#setActionView(android.view.View)}
664 for more info. -->
665 <attr name="actionLayout" format="reference" />
666
667 <!-- The name of an optional View class to instantiate and use as an
668 action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
669 for more info. -->
670 <attr name="actionViewClass" format="string" />
671
672 <!-- The name of an optional ActionProvider class to instantiate an action view
673 and perform operations such as default action for that menu item.
674 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
675 for more info. -->
676 <attr name="actionProviderClass" format="string" />
677
678 </declare-styleable>
679
680 <declare-styleable name="Spinner">
681 <!-- The prompt to display when the spinner's dialog is shown. -->
682 <attr name="android:prompt" />
683 <!-- Theme to use for the drop-down or dialog popup window. -->
684 <attr name="popupTheme" />
685 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
686 <attr name="android:popupBackground" />
687 <!-- Width of the dropdown in spinnerMode="dropdown". -->
688 <attr name="android:dropDownWidth" />
689 </declare-styleable>
690
691 <declare-styleable name="SearchView">
692 <!-- The layout to use for the search view. -->
693 <attr name="layout" format="reference" />
694 <!-- The default state of the SearchView. If true, it will be iconified when not in
695 use and expanded when clicked. -->
696 <attr name="iconifiedByDefault" format="boolean" />
697 <!-- An optional maximum width of the SearchView. -->
698 <attr name="android:maxWidth" />
699 <!-- An optional user-defined query hint string to be displayed in the empty query field. -->
700 <attr name="queryHint" format="string" />
701 <!-- Default query hint used when {@code queryHint} is undefined and
702 the search view's {@code SearchableInfo} does not provide a hint. -->
703 <attr name="defaultQueryHint" format="string" />
704 <!-- The IME options to set on the query text field. -->
705 <attr name="android:imeOptions" />
706 <!-- The input type to set on the query text field. -->
707 <attr name="android:inputType" />
708 <!-- Close button icon -->
709 <attr name="closeIcon" format="reference" />
710 <!-- Go button icon -->
711 <attr name="goIcon" format="reference" />
712 <!-- Search icon -->
713 <attr name="searchIcon" format="reference" />
714 <!-- Search icon displayed as a text field hint -->
715 <attr name="searchHintIcon" format="reference" />
716 <!-- Voice button icon -->
717 <attr name="voiceIcon" format="reference" />
718 <!-- Commit icon shown in the query suggestion row -->
719 <attr name="commitIcon" format="reference" />
720 <!-- Layout for query suggestion rows -->
721 <attr name="suggestionRowLayout" format="reference" />
722 <!-- Background for the section containing the search query -->
723 <attr name="queryBackground" format="reference" />
724 <!-- Background for the section containing the action (e.g. voice search) -->
725 <attr name="submitBackground" format="reference" />
726 <attr name="android:focusable" />
727 </declare-styleable>
728
729 <!-- Attrbitutes for a ActivityChooserView. -->
730 <declare-styleable name="ActivityChooserView">
731 <!-- The maximal number of items initially shown in the activity list. -->
732 <attr name="initialActivityCount" format="string" />
733 <!-- The drawable to show in the button for expanding the activities overflow popup.
734 <strong>Note:</strong> Clients would like to set this drawable
735 as a clue about the action the chosen activity will perform. For
736 example, if share activity is to be chosen the drawable should
737 give a clue that sharing is to be performed.
738 -->
739 <attr name="expandActivityOverflowButtonDrawable" format="reference" />
740 </declare-styleable>
741
742 <declare-styleable name="AppCompatTextView">
743 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
744 <attr name="textAllCaps" format="reference|boolean" />
745 <attr name="android:textAppearance" />
746 </declare-styleable>
747
748 <declare-styleable name="LinearLayoutCompat">
749 <!-- Should the layout be a column or a row? Use "horizontal"
750 for a row, "vertical" for a column. The default is
751 horizontal. -->
752 <attr name="android:orientation" />
753 <attr name="android:gravity" />
754 <!-- When set to false, prevents the layout from aligning its children's
755 baselines. This attribute is particularly useful when the children
756 use different values for gravity. The default value is true. -->
757 <attr name="android:baselineAligned" />
758 <!-- When a linear layout is part of another layout that is baseline
759 aligned, it can specify which of its children to baseline align to
760 (that is, which child TextView).-->
761 <attr name="android:baselineAlignedChildIndex" />
762 <!-- Defines the maximum weight sum. If unspecified, the sum is computed
763 by adding the layout_weight of all of the children. This can be
764 used for instance to give a single child 50% of the total available
765 space by giving it a layout_weight of 0.5 and setting the weightSum
766 to 1.0. -->
767 <attr name="android:weightSum" />
768 <!-- When set to true, all children with a weight will be considered having
769 the minimum size of the largest child. If false, all children are
770 measured normally. -->
771 <attr name="measureWithLargestChild" format="boolean" />
772 <!-- Drawable to use as a vertical divider between buttons. -->
773 <attr name="divider" />
774 <!-- Setting for which dividers to show. -->
775 <attr name="showDividers">
776 <flag name="none" value="0" />
777 <flag name="beginning" value="1" />
778 <flag name="middle" value="2" />
779 <flag name="end" value="4" />
780 </attr>
781 <!-- Size of padding on either end of a divider. -->
782 <attr name="dividerPadding" format="dimension" />
783 </declare-styleable>
784
785 <declare-styleable name="LinearLayoutCompat_Layout">
786 <attr name="android:layout_width" />
787 <attr name="android:layout_height" />
788 <attr name="android:layout_weight" />
789 <attr name="android:layout_gravity" />
790 </declare-styleable>
791
792 <declare-styleable name="Toolbar">
793 <attr name="titleTextAppearance" format="reference" />
794 <attr name="subtitleTextAppearance" format="reference" />
795 <attr name="title" />
796 <attr name="subtitle" />
797 <attr name="android:gravity" />
798 <attr name="titleMargins" format="dimension" />
799 <attr name="titleMarginStart" format="dimension" />
800 <attr name="titleMarginEnd" format="dimension" />
801 <attr name="titleMarginTop" format="dimension" />
802 <attr name="titleMarginBottom" format="dimension" />
803 <attr name="contentInsetStart" />
804 <attr name="contentInsetEnd" />
805 <attr name="contentInsetLeft" />
806 <attr name="contentInsetRight" />
807 <attr name="maxButtonHeight" format="dimension" />
808
809 <attr name="collapseIcon" format="reference" />
810 <!-- Text to set as the content description for the collapse button. -->
811 <attr name="collapseContentDescription" format="string" />
812 <!-- Reference to a theme that should be used to inflate popups
813 shown by widgets in the toolbar. -->
814 <attr name="popupTheme" />
815 <!-- Icon drawable to use for the navigation button located at
816 the start of the toolbar. -->
817 <attr name="navigationIcon" format="reference" />
818 <!-- Text to set as the content description for the navigation button
819 located at the start of the toolbar. -->
820 <attr name="navigationContentDescription" format="string" />
821
822 <!-- Allows us to read in the minHeight attr pre-v16 -->
823 <attr name="android:minHeight" />
824
825 <!-- Drawable to set as the logo that appears at the starting side of
826 the Toolbar, just after the navigation button. -->
827 <attr name="logo" />
828 <!-- A content description string to describe the appearance of the
829 associated logo image. -->
830 <attr name="logoDescription" format="string" />
831 <!-- A color to apply to the title string. -->
832 <attr name="titleTextColor" format="color" />
833 <!-- A color to apply to the subtitle string. -->
834 <attr name="subtitleTextColor" format="color" />
835 </declare-styleable>
836
837 <declare-styleable name="PopupWindowBackgroundState">
838 <!-- State identifier indicating the popup will be above the anchor. -->
839 <attr name="state_above_anchor" format="boolean" />
840 </declare-styleable>
841
842 <declare-styleable name="ListPopupWindow">
843 <!-- Amount of pixels by which the drop down should be offset vertically. -->
844 <attr name="android:dropDownVerticalOffset" />
845 <!-- Amount of pixels by which the drop down should be offset horizontally. -->
846 <attr name="android:dropDownHorizontalOffset" />
847 </declare-styleable>
848
849 <declare-styleable name="PopupWindow">
850 <!-- Whether the popup window should overlap its anchor view. -->
851 <attr name="overlapAnchor" format="boolean" />
852 <attr name="android:popupBackground" />
853 </declare-styleable>
854
855 <declare-styleable name="DrawerArrowToggle">
856 <!-- The drawing color for the bars -->
857 <attr name="color" format="color"/>
858 <!-- Whether bars should rotate or not during transition -->
859 <attr name="spinBars" format="boolean"/>
860 <!-- The total size of the drawable -->
861 <attr name="drawableSize" format="dimension"/>
862 <!-- The max gap between the bars when they are parallel to each other -->
863 <attr name="gapBetweenBars" format="dimension"/>
864 <!-- The length of the arrow head when formed to make an arrow -->
865 <attr name="arrowHeadLength" format="dimension"/>
866 <!-- The length of the shaft when formed to make an arrow -->
867 <attr name="arrowShaftLength" format="dimension"/>
868 <!-- The length of the bars when they are parallel to each other -->
869 <attr name="barLength" format="dimension"/>
870 <!-- The thickness (stroke size) for the bar paint -->
871 <attr name="thickness" format="dimension"/>
872 </declare-styleable>
873
874 <attr name="drawerArrowStyle" format="reference" />
875
876 <declare-styleable name="ViewStubCompat">
877 <!-- Supply an identifier for the layout resource to inflate when the ViewStub
878 becomes visible or when forced to do so. The layout resource must be a
879 valid reference to a layout. -->
880 <attr name="android:layout" />
881 <!-- Overrides the id of the inflated View with this value. -->
882 <attr name="android:inflatedId" />
883 <attr name="android:id" />
884 </declare-styleable>
885
886 <declare-styleable name="CompoundButton">
887 <attr name="android:button"/>
888 <!-- Tint to apply to the button drawable. -->
889 <attr name="buttonTint" format="color" />
890
891 <!-- Blending mode used to apply the button tint. -->
892 <attr name="buttonTintMode">
893 <!-- The tint is drawn on top of the drawable.
894 [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] -->
895 <enum name="src_over" value="3" />
896 <!-- The tint is masked by the alpha channel of the drawable. The drawable’s
897 color channels are thrown out. [Sa * Da, Sc * Da] -->
898 <enum name="src_in" value="5" />
899 <!-- The tint is drawn above the drawable, but with the drawable’s alpha
900 channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] -->
901 <enum name="src_atop" value="9" />
902 <!-- Multiplies the color and alpha channels of the drawable with those of
903 the tint. [Sa * Da, Sc * Dc] -->
904 <enum name="multiply" value="14" />
905 <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] -->
906 <enum name="screen" value="15" />
907 </attr>
908 </declare-styleable>
909
910 <declare-styleable name="SwitchCompat">
911 <!-- Drawable to use as the "thumb" that switches back and forth. -->
912 <attr name="android:thumb" />
913 <!-- Drawable to use as the "track" that the switch thumb slides within. -->
914 <attr name="track" format="reference" />
915 <!-- Text to use when the switch is in the checked/"on" state. -->
916 <attr name="android:textOn" />
917 <!-- Text to use when the switch is in the unchecked/"off" state. -->
918 <attr name="android:textOff" />
919 <!-- Amount of padding on either side of text within the switch thumb. -->
920 <attr name="thumbTextPadding" format="dimension" />
921 <!-- TextAppearance style for text displayed on the switch thumb. -->
922 <attr name="switchTextAppearance" format="reference" />
923 <!-- Minimum width for the switch component -->
924 <attr name="switchMinWidth" format="dimension" />
925 <!-- Minimum space between the switch and caption text -->
926 <attr name="switchPadding" format="dimension" />
927 <!-- Whether to split the track and leave a gap for the thumb drawable. -->
928 <attr name="splitTrack" format="boolean" />
929 <!-- Whether to draw on/off text. -->
930 <attr name="showText" format="boolean" />
931 </declare-styleable>
932
933 <declare-styleable name="TextAppearance">
934 <attr name="android:textSize" />
935 <attr name="android:textColor" />
936 <attr name="android:textStyle" />
937 <attr name="android:typeface" />
938 <attr name="textAllCaps" />
939 <attr name="android:shadowColor"/>
940 <attr name="android:shadowDy"/>
941 <attr name="android:shadowDx"/>
942 <attr name="android:shadowRadius"/>
943 </declare-styleable>
944
945 <!-- The set of attributes that describe a AlertDialog's theme. -->
946 <declare-styleable name="AlertDialog">
947 <attr name="android:layout" />
948 <attr name="buttonPanelSideLayout" format="reference" />
949 <attr name="listLayout" format="reference" />
950 <attr name="multiChoiceItemLayout" format="reference" />
951 <attr name="singleChoiceItemLayout" format="reference" />
952 <attr name="listItemLayout" format="reference" />
953 </declare-styleable>
954
955 <!-- @hide -->
956 <declare-styleable name="ButtonBarLayout">
957 <!-- Whether to automatically stack the buttons when there is not
958 enough space to lay them out side-by-side. -->
959 <attr name="allowStacking" format="boolean" />
960 </declare-styleable>
961
962 </resources>