/
attrs.xml
58 lines (55 loc) · 2.69 KB
/
attrs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2018 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<declare-styleable name="Snackbar">
<!-- Style to use for Snackbars in this theme. -->
<attr name="snackbarStyle" format="reference"/>
<!-- Style to use for action button within a Snackbar in this theme. -->
<attr name="snackbarButtonStyle" format="reference"/>
<!-- Style to use for message text within a Snackbar in this theme. -->
<attr name="snackbarTextViewStyle" format="reference"/>
</declare-styleable>
<declare-styleable name="SnackbarLayout">
<attr name="android:maxWidth"/>
<attr name="elevation"/>
<attr name="maxActionInlineWidth" format="dimension"/>
<!-- Sets the enter and exit animations for a Snackbar. -->
<attr name="animationMode" format="enum">
<!-- Mode that corresponds to the slide in and out animations. -->
<enum name="slide" value="0"/>
<!-- Mode that corresponds to the fade in and out animations. -->
<enum name="fade" value="1"/>
</attr>
<!-- Alpha level for the color that is overlaid on top of the background color. Ignored if
backgroundTint is set. -->
<attr name="backgroundOverlayColorAlpha" format="float"/>
<!-- Background tint used by the Snackbar background drawable. Accepts a ColorStateList or
ColorInt. -->
<attr name="backgroundTint"/>
<!-- Background tint mode used by the Snackbar background drawable. -->
<attr name="backgroundTintMode"/>
<!-- Alpha level for the action button text, to allow for adjusting the lightness or darkness of
the theme color used for Snackbar text buttons (e.g., colorPrimary). -->
<attr name="actionTextColorAlpha" format="float"/>
<!-- Shape appearance style reference for Snackbar. Attribute declaration is in the
shape package. -->
<attr name="shapeAppearance" />
<!-- Shape appearance overlay style reference for Snackbar. To be used to augment attributes
declared in the shapeAppearance. Attribute declaration is in the shape package. -->
<attr name="shapeAppearanceOverlay" />
</declare-styleable>
</resources>