-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
attrs.xml
232 lines (198 loc) · 9.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="GenericDraweeHierarchy">
<!-- NOTE: If adding a new attr here, also add to SimpleDraweeView below -->
<eat-comment />
<!-- Fade duration in milliseconds. -->
<attr name="fadeDuration" format="integer"/>
<!-- Aspect ratio (width / height) of the view, not necessarily of the images. -->
<attr name="viewAspectRatio" format="float"/>
<!-- Image branches -
Scale-type values must match those in GenericDraweeHierarchyInflater.getScaleTypeFromXml.
(GenericDraweeHierarchyInflater.java).
For drawables that should not be scaled, such as those with the android:tileMode
attribute set, use the value 'none'. -->
<!-- A drawable or color to be be used as a placeholder. -->
<attr name="placeholderImage" format="reference"/>
<!-- Scale type of the placeholder image. Ignored if placeholderImage is not specified. -->
<attr name="placeholderImageScaleType">
<enum name="none" value="-1" />
<enum name="fitXY" value="0" />
<enum name="fitStart" value="1" />
<enum name="fitCenter" value="2" />
<enum name="fitEnd" value="3" />
<enum name="center" value="4" />
<enum name="centerInside" value="5" />
<enum name="centerCrop" value="6" />
<enum name="focusCrop" value="7" />
<enum name="fitBottomStart" value="8" />
</attr>
<!-- A drawable to be be used as a retry image. -->
<attr name="retryImage" format="reference"/>
<!-- Scale type of the retry image. Ignored if retryImage is not specified. -->
<attr name="retryImageScaleType">
<enum name="none" value="-1" />
<enum name="fitXY" value="0" />
<enum name="fitStart" value="1" />
<enum name="fitCenter" value="2" />
<enum name="fitEnd" value="3" />
<enum name="center" value="4" />
<enum name="centerInside" value="5" />
<enum name="centerCrop" value="6" />
<enum name="focusCrop" value="7" />
<enum name="fitBottomStart" value="8" />
</attr>
<!-- A drawable to be be used as a failure image. -->
<attr name="failureImage" format="reference"/>
<!-- Scale type of the failure image. Ignored if failureImage is not specified. -->
<attr name="failureImageScaleType">
<enum name="none" value="-1" />
<enum name="fitXY" value="0" />
<enum name="fitStart" value="1" />
<enum name="fitCenter" value="2" />
<enum name="fitEnd" value="3" />
<enum name="center" value="4" />
<enum name="centerInside" value="5" />
<enum name="centerCrop" value="6" />
<enum name="focusCrop" value="7" />
<enum name="fitBottomStart" value="8" />
</attr>
<!-- A drawable to be be used as a progress bar. -->
<attr name="progressBarImage" format="reference"/>
<!-- Scale type of the progress bar. Ignored if progressBarImage is not specified. -->
<attr name="progressBarImageScaleType">
<enum name="none" value="-1" />
<enum name="fitXY" value="0" />
<enum name="fitStart" value="1" />
<enum name="fitCenter" value="2" />
<enum name="fitEnd" value="3" />
<enum name="center" value="4" />
<enum name="centerInside" value="5" />
<enum name="centerCrop" value="6" />
<enum name="focusCrop" value="7" />
<enum name="fitBottomStart" value="8" />
</attr>
<!-- Progress bar Auto Rotate interval in milliseconds -->
<attr name="progressBarAutoRotateInterval" format="integer"/>
<!-- Scale type of the actual image. -->
<attr name="actualImageScaleType">
<enum name="none" value="-1" />
<enum name="fitXY" value="0" />
<enum name="fitStart" value="1" />
<enum name="fitCenter" value="2" />
<enum name="fitEnd" value="3" />
<enum name="center" value="4" />
<enum name="centerInside" value="5" />
<enum name="centerCrop" value="6" />
<enum name="focusCrop" value="7" />
<enum name="fitBottomStart" value="8" />
</attr>
<!-- A drawable or color to be used as a background. -->
<attr name="backgroundImage" format="reference"/>
<!-- A drawable or color to be used as an overlay. -->
<attr name="overlayImage" format="reference"/>
<!-- A drawable or color to be used as a pressed-state-overlay -->
<attr name="pressedStateOverlayImage" format="reference"/>
<!-- Rounding params -
Declares attributes for rounding shape, mode and border. -->
<!-- Round as circle. -->
<attr name="roundAsCircle" format="boolean"/>
<!-- Rounded corner radius. Ignored if roundAsCircle is used. -->
<attr name="roundedCornerRadius" format="dimension"/>
<!-- Round the top-left corner. Ignored if roundAsCircle is used. -->
<attr name="roundTopLeft" format="boolean"/>
<!-- Round the top-right corner. Ignored if roundAsCircle is used. -->
<attr name="roundTopRight" format="boolean"/>
<!-- Round the bottom-right corner. Ignored if roundAsCircle is used. -->
<attr name="roundBottomRight" format="boolean"/>
<!-- Round the bottom-left corner. Ignored if roundAsCircle is used. -->
<attr name="roundBottomLeft" format="boolean"/>
<!-- Round the top-start edge. Ignored if roundAsCircle is used. -->
<attr name="roundTopStart" format="boolean"/>
<!-- Round the top-end edge. Ignored if roundAsCircle is used. -->
<attr name="roundTopEnd" format="boolean"/>
<!-- Round the bottom-start edge. Ignored if roundAsCircle is used. -->
<attr name="roundBottomStart" format="boolean"/>
<!-- Round the bottom-end edge. Ignored if roundAsCircle is used. -->
<attr name="roundBottomEnd" format="boolean"/>
<!-- Round by overlying color. -->
<attr name="roundWithOverlayColor" format="color"/>
<!-- Rounding border width-->
<attr name="roundingBorderWidth" format="dimension"/>
<!-- Rounding border color -->
<attr name="roundingBorderColor" format="color|reference"/>
<!-- Rounding border padding -->
<attr name="roundingBorderPadding" format="dimension" />
</declare-styleable>
<declare-styleable name="SimpleDraweeView" parent="GenericDraweeHierarchy">
<!-- An image uri . -->
<attr name="actualImageUri" format="string"/>
<!-- An image reference -->
<attr name="actualImageResource" format="reference"/>
<!-- Attributes inherited from GenericDraweeHierarchy -->
<eat-comment />
<!-- Fade duration in milliseconds. -->
<attr name="fadeDuration" />
<!-- Aspect ratio (width / height) of the view, not necessarily of the images. -->
<attr name="viewAspectRatio" />
<!-- Image branches -
Scale-type values must match those in GenericDraweeHierarchyInflater.getScaleTypeFromXml.
(GenericDraweeHierarchyInflater.java).
For drawables that should not be scaled, such as those with the android:tileMode
attribute set, use the value 'none'. -->
<!-- A drawable or color to be be used as a placeholder. -->
<attr name="placeholderImage" />
<!-- Scale type of the placeholder image. Ignored if placeholderImage is not specified. -->
<attr name="placeholderImageScaleType" />
<!-- A drawable to be be used as a retry image. -->
<attr name="retryImage" />
<!-- Scale type of the retry image. Ignored if retryImage is not specified. -->
<attr name="retryImageScaleType" />
<!-- A drawable to be be used as a failure image. -->
<attr name="failureImage" />
<!-- Scale type of the failure image. Ignored if failureImage is not specified. -->
<attr name="failureImageScaleType" />
<!-- A drawable to be be used as a progress bar. -->
<attr name="progressBarImage" />
<!-- Scale type of the progress bar. Ignored if progressBarImage is not specified. -->
<attr name="progressBarImageScaleType" />
<!-- Progress bar Auto Rotate interval in milliseconds -->
<attr name="progressBarAutoRotateInterval" />
<!-- A drawable or color to be used as a background. -->
<attr name="backgroundImage" />
<!-- A drawable or color to be used as an overlay. -->
<attr name="overlayImage" />
<!-- A drawable or color to be used as a pressed-state-overlay -->
<attr name="pressedStateOverlayImage" />
<!-- Rounding params -
Declares attributes for rounding shape, mode and border. -->
<!-- Round as circle. -->
<attr name="roundAsCircle" />
<!-- Rounded corner radius. Ignored if roundAsCircle is used. -->
<attr name="roundedCornerRadius" />
<!-- Round the top-left corner. Ignored if roundAsCircle is used. -->
<attr name="roundTopLeft" />
<!-- Round the top-right corner. Ignored if roundAsCircle is used. -->
<attr name="roundTopRight" />
<!-- Round the bottom-right corner. Ignored if roundAsCircle is used. -->
<attr name="roundBottomRight" />
<!-- Round the bottom-left corner. Ignored if roundAsCircle is used. -->
<attr name="roundBottomLeft" />
<!-- Round the top-start edge. Ignored if roundAsCircle is used. -->
<attr name="roundTopStart" />
<!-- Round the top-end edge. Ignored if roundAsCircle is used. -->
<attr name="roundTopEnd" />
<!-- Round the bottom-start edge. Ignored if roundAsCircle is used. -->
<attr name="roundBottomStart" />
<!-- Round the bottom-end edge. Ignored if roundAsCircle is used. -->
<attr name="roundBottomEnd" />
<!-- Round by overlying color. -->
<attr name="roundWithOverlayColor" />
<!-- Rounding border width-->
<attr name="roundingBorderWidth" />
<!-- Rounding border color -->
<attr name="roundingBorderColor" />
<!-- Rounding border padding -->
<attr name="roundingBorderPadding" />
</declare-styleable>
</resources>