-
Notifications
You must be signed in to change notification settings - Fork 3k
/
attrs.xml
167 lines (142 loc) · 7.55 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2017 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>
<!-- Style to use for ChipGroups in this theme. -->
<attr name="chipGroupStyle" format="reference"/>
<!-- Style to use for Chips in this theme, usually to be used as a view. -->
<attr name="chipStyle" format="reference"/>
<!-- Style to use for standalone Chips in this theme, usually to be used in an EditText. -->
<attr name="chipStandaloneStyle" format="reference"/>
<declare-styleable name="Chip">
<!-- Surface layer color to apply to the chip. -->
<!-- Do not expose publicly because there is no public getter/setter and the user doesn't need
to configure this.-->
<attr name="chipSurfaceColor" format="color"/>
<!-- Background color to apply to the chip. -->
<attr name="chipBackgroundColor" format="color"/>
<!-- Min height to apply to the chip. Total height includes stroke width. -->
<attr name="chipMinHeight" format="dimension"/>
<!-- Corner radius to apply to the chip's shape. -->
<attr name="chipCornerRadius" format="dimension"/>
<!-- Stroke color to apply to the chip's outline. -->
<attr name="chipStrokeColor" format="color"/>
<!-- Stroke width to apply to the chip's outline. -->
<attr name="chipStrokeWidth" format="dimension"/>
<!-- Ripple color to apply to the chip. -->
<attr name="rippleColor"/>
<!-- Minimum size of chip's touch target, by default, Android recommended 48dp. -->
<attr name="chipMinTouchTargetSize" format="dimension"/>
<!-- Whether to extend the bounds of chip to meet chipMinTouchTargetSize. -->
<attr name="ensureMinTouchTargetSize"/>
<!-- Text to display on the chip. -->
<attr name="android:text"/>
<!-- Default appearance of text: color, typeface, size, and style. -->
<attr name="android:textAppearance"/>
<!-- Text color. Overrides the color set in the textAppearance -->
<attr name="android:textColor"/>
<!-- Text size. Overrides the size set in the textAppearance -->
<attr name="android:textSize"/>
<!-- If set, causes words that are longer than the view is wide to be ellipsized instead of
truncated at the end. -->
<attr name="android:ellipsize"/>
<!-- Make the Chip to be at most this many pixels wide. -->
<attr name="android:maxWidth"/>
<!-- Whether to show the chip icon. -->
<attr name="chipIconVisible" format="boolean"/>
<!-- Deprecated. Use chipIconVisible instead. -->
<attr name="chipIconEnabled" format="boolean"/>
<!-- Icon drawable to display at the start of the chip. -->
<attr name="chipIcon" format="reference"/>
<!-- Tint to apply to the chip icon. -->
<attr name="chipIconTint" format="color"/>
<!-- Size of the chip's icon and checked icon. -->
<attr name="chipIconSize" format="dimension"/>
<!-- Whether to show the close icon. -->
<attr name="closeIconVisible" format="boolean"/>
<!-- Deprecated. Use closeIconVisible instead. -->
<attr name="closeIconEnabled" format="boolean"/>
<!-- Close icon drawable to display at the end of the chip. -->
<attr name="closeIcon" format="reference"/>
<!-- Tint to apply to the chip's close icon. -->
<attr name="closeIconTint" format="color"/>
<!-- Size of the chip's close icon. -->
<attr name="closeIconSize" format="dimension"/>
<!-- Whether the chip can be checked. If false, the chip will act as a button. -->
<attr name="android:checkable"/>
<!-- Whether to show the checked icon. -->
<attr name="checkedIconVisible" format="boolean"/>
<!-- Deprecated. Use checkedIconVisible instead -->
<attr name="checkedIconEnabled" format="boolean"/>
<!-- Check icon drawable to overlay the chip's icon. -->
<attr name="checkedIcon"/>
<!-- Tint to apply to the chip's checked icon. -->
<attr name="checkedIconTint"/>
<!-- Motion spec for show animation. This should be a MotionSpec resource. -->
<attr name="showMotionSpec"/>
<!-- Motion spec for hide animation. This should be a MotionSpec resource. -->
<attr name="hideMotionSpec"/>
<!-- Shape appearance style reference for Chip. Attribute declaration is in the Shape
package. -->
<attr name="shapeAppearance"/>
<!-- Shape appearance overlay style reference for Chip. To be used to augment attributes
declared in the shapeAppearance. Attribute declaration is in the Shape package. -->
<attr name="shapeAppearanceOverlay"/>
<!-- The following attributes are adjustable padding on the chip, listed from start to end. -->
<!-- Chip starts here. -->
<!-- Padding at the start of the chip, before the icon. -->
<attr name="chipStartPadding" format="dimension"/>
<!-- Padding at the start of the icon, after the start of the chip. If icon exists. -->
<attr name="iconStartPadding" format="dimension"/>
<!-- Icon is here. -->
<!-- Padding at the end of the icon, before the text. If icon exists. -->
<attr name="iconEndPadding" format="dimension"/>
<!-- Padding at the start of the text, after the icon. -->
<attr name="textStartPadding" format="dimension"/>
<!-- Text is here. -->
<!-- Padding at the end of the text, before the close icon. -->
<attr name="textEndPadding" format="dimension"/>
<!-- Padding at the start of the close icon, after the text. If close icon exists. -->
<attr name="closeIconStartPadding" format="dimension"/>
<!-- Close icon is here. -->
<!-- Padding at the end of the close icon, before the end of the chip. If close icon exists. -->
<attr name="closeIconEndPadding" format="dimension"/>
<!-- Padding at the end of the chip, after the close icon. -->
<attr name="chipEndPadding" format="dimension"/>
<!-- Chip ends here. -->
</declare-styleable>
<declare-styleable name="ChipGroup">
<!-- Horizontal and vertical spacing between chips in this group. -->
<attr name="chipSpacing" format="dimension"/>
<!-- Horizontal spacing between chips in this group. -->
<attr name="chipSpacingHorizontal" format="dimension"/>
<!-- Vertical spacing between chips in this group. -->
<attr name="chipSpacingVertical" format="dimension"/>
<!-- Constrains the chips in this group to a single horizontal line. By default, this is false
and the chips in this group will reflow to multiple lines.
If you set this to true, you'll usually want to wrap this ChipGroup in a
HorizontalScrollView. -->
<attr name="singleLine" format="boolean"/>
<!-- Whether only a single chip in this group is allowed to be checked at any time. By default,
this is false and multiple chips in this group are allowed to be checked at once. -->
<attr name="singleSelection"/>
<!-- Whether we prevent all child chips from being deselected.
It's false by default. -->
<attr name="selectionRequired"/>
<!-- The id of the child chip that should be checked by default within this chip group. -->
<attr name="checkedChip" format="reference"/>
</declare-styleable>
</resources>