panlili2024
2024-11-12 69afac92a320033297d71e901e3c5b65e690f0b2
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
<?xml version="1.0" encoding="utf-8"?>
<resources>
 
    <declare-styleable name="OcDialView">
 
        <!--最大刻度值-->
        <attr name="maxScale" format="integer" />
        <attr name="minScale" format="integer" />
        <attr name="scaleGap" format="integer" />
 
        <!--刻度-->
        <attr name="scaleHeight" format="dimension" />
        <attr name="scaleWidth" format="dimension" />
        <attr name="scaleColor" format="color|reference" />
 
        <!--指针-->
        <attr name="pointerHeight" format="dimension" />
        <attr name="pointerWidth" format="dimension" />
        <attr name="pointerColor" format="color|reference" />
        <!--指针左边范围或者右边范围-->
        <attr name="pointerLimit" format="integer" />
        <!--文字大小-->
        <attr name="android:textSize" />
        <attr name="android:textColor" />
    </declare-styleable>
 
    <attr name="markColor" format="color|reference" />
    <attr name="markSize" format="dimension" />
 
    <declare-styleable name="SeekBarView">
        <!--背景-->
        <attr name="trackTopLeftRadius" format="dimension" />
        <attr name="trackTopRightRadius" format="dimension" />
        <attr name="trackBottomLeftRadius" format="dimension" />
        <attr name="trackBottomRightRadius" format="dimension" />
        <attr name="trackRadius" format="dimension" />
 
        <!--滑动轨迹-->
        <attr name="thumbTopLeftRadius" format="dimension" />
        <attr name="thumbTopRightRadius" format="dimension" />
        <attr name="thumbBottomLeftRadius" format="dimension" />
        <attr name="thumbBottomRightRadius" format="dimension" />
        <attr name="thumbRadius" format="dimension" />
 
        <attr name="trackColor" format="color|reference" />
        <attr name="trackSecondColor" format="color|reference" />
        <attr name="thumbColor" format="color|reference" />
        <attr name="thumbSecondColor" format="color|reference" />
 
        <attr name="markColor" />
        <attr name="markSize" />
 
        <attr name="maxProgress" format="integer" />
        <attr name="minProgress" format="integer" />
        <attr name="progress" format="integer" />
        <attr name="barSize" format="dimension" />
 
        <attr name="orientation">
            <enum name="horizontal" value="0" />
            <enum name="vertical" value="1" />
        </attr>
 
    </declare-styleable>
 
 
    <attr name="currentColor" format="color|reference" />
    <declare-styleable name="RingColorPicker">
        <!--默认角度-->
        <attr name="angle" format="float" />
        <!--圆形选择器填充色-->
        <attr name="markBackground" format="color|reference" />
        <!--圆形选择器边框颜色-->
        <attr name="markStrokeColor" format="color|reference" />
        <!--圆形选择器描边-->
        <attr name="isMarkStroke" format="boolean" />
        <!--圆环宽度-->
        <attr name="ringWidth" format="dimension" />
        <!--选择器自动色-->
        <attr name="isMarkAutoColor" format="boolean" />
        <!--扩散特效透明度-->
        <attr name="spreadAlpha" format="integer" />
        <!--选择器描边宽度-->
        <attr name="markStrokeWidth" format="dimension|reference" />
        <!--中心按钮图像资源-->
        <attr name="srcCompat" />
        <!--中心按钮图像透明度-->
        <attr name="centerImageAlpha" format="integer" />
        <!--中心复选状态-->
        <attr name="checked" format="boolean" />
        <!--当前指向的颜色-->
        <attr name="currentColor" />
        <!--过滤颜色-->
        <attr name="tint" />
        <!--视图样式-->
        <attr name="colorPickerStyle" format="enum">
            <enum name="MARK_RING_INNER" value="0" />
            <enum name="MARK_RING_OUTER" value="1" />
            <enum name="MARK_RING_DOWN_OUTER" value="2" />
        </attr>
    </declare-styleable>
 
    <declare-styleable name="RGBColorPicker">
        <attr name="markColor" />
        <attr name="markSize" />
        <attr name="currentColor" />
    </declare-styleable>
 
    <!--类似首页卡片用到-->
    <attr name="cardBackgroundColor" format="color" />
    <attr name="cardBorderWidth" format="reference|dimension" />
    <attr name="cardRadius" format="reference|dimension" />
    <declare-styleable name="ExpandLayout">
        <attr name="android:radius" />
 
        <attr name="cardBorderWidth" />
        <attr name="cardBackgroundColor" />
 
    </declare-styleable>
 
 
    <declare-styleable name="CardLayout">
        <attr name="cardRadius" />
        <attr name="cardBorderWidth" />
        <attr name="cardBackgroundColor" />
    </declare-styleable>
    <!--类似首页卡片用到-->
 
    <!--角标-->
    <declare-styleable name="BadgeView">
        <attr name="badgePadding" format="reference|dimension" />
        <attr name="badgeTextSize" format="reference|dimension" />
        <attr name="badgeBackgroundColor" format="color|reference" />
        <attr name="badgeBorderWidth" format="reference|dimension" />
        <attr name="badgeBorderColor" format="reference|dimension" />
        <attr name="badgeTextColor" format="color|reference" />
        <attr name="showShadow" format="boolean" />
    </declare-styleable>
 
    <declare-styleable name="LoadingView">
 
    </declare-styleable>
 
 
    <!--SeekBar-->
    <declare-styleable name="SmartSeekBar">
 
        <!--最大值-->
        <attr name="sb_max" format="float" />
        <!--最小值-->
        <attr name="sb_min" format="float" />
 
        <attr name="sb_gravity" format="enum">
            <enum name="top" value="0" />
            <enum name="bottom" value="1" />
            <enum name="center" value="2" />
        </attr>
 
        <!--刻度-->
 
        <!--最小间隔-->
        <attr name="sb_min_interval" format="float" />
        <!-- 0 for the normal mode, greater than 1 to switch to scale mode-->
        <attr name="sb_tick_mark_number" format="integer" />
 
        <attr name="sb_tick_mark_mode" format="enum">
            <!--按数组来-->
            <enum name="number" value="0" />
            <!--平分-->
            <enum name="other" value="1" />
        </attr>
 
        <!--The tick mark text gravity -->
        <attr name="sb_tick_mark_gravity" format="enum">
            <enum name="left" value="0" />
            <enum name="center" value="1" />
            <enum name="right" value="2" />
        </attr>
 
        <!--The tick mark text layout gravity -->
        <attr name="sb_tick_mark_layout_gravity" format="enum">
            <enum name="top" value="0" />
            <enum name="bottom" value="1" />
        </attr>
 
        <!--The tick mark text array -->
        <attr name="sb_tick_mark_text_array" format="reference" />
 
        <!--The tick mark text margin bottom to progress -->
        <attr name="sb_tick_mark_text_margin" format="dimension" />
 
        <attr name="sb_tick_mark_text_size" format="dimension" />
 
        <attr name="sb_tick_mark_text_color" format="color" />
 
        <!--it just work in range && number mode now-->
        <attr name="sb_tick_mark_in_range_text_color" format="color" />
 
        <!--进度条-->
        <attr name="sb_progress_height" format="dimension" />
        <attr name="sb_progress_radius" format="dimension" />
        <attr name="sb_progress_color" format="color" />
        <attr name="sb_progress_drawable" format="reference" />
 
        <!--底-->
        <attr name="sb_progress_default_color" format="color" />
        <attr name="sb_progress_drawable_default" format="reference" />
 
 
        <!--指示器-->
        <attr name="sb_indicator_show_mode" format="enum">
            <enum name="showWhenTouch" value="0" />
            <enum name="alwaysHide" value="1" />
            <enum name="alwaysShowAfterTouch" value="2" />
            <enum name="alwaysShow" value="3" />
        </attr>
 
        <attr name="sb_indicator_height" format="dimension" />
        <attr name="sb_indicator_width" format="dimension" />
        <attr name="sb_indicator_margin" format="dimension" />
        <attr name="sb_indicator_text_size" format="dimension" />
        <attr name="sb_indicator_text_color" format="color" />
        <attr name="sb_indicator_arrow_size" format="dimension" />
        <attr name="sb_indicator_drawable" format="reference" />
        <attr name="sb_indicator_background_color" format="color" />
        <attr name="sb_indicator_padding_left" format="dimension" />
        <attr name="sb_indicator_padding_right" format="dimension" />
        <attr name="sb_indicator_padding_top" format="dimension" />
        <attr name="sb_indicator_padding_bottom" format="dimension" />
        <attr name="sb_indicator_radius" format="dimension" />
 
 
        <!--触摸块-->
        <attr name="sb_thumb_drawable" format="reference" />
        <attr name="sb_thumb_inactivated_drawable" format="reference" />
        <attr name="sb_thumb_width" format="dimension" />
        <attr name="sb_thumb_height" format="dimension" />
        <attr name="sb_thumb_scale_ratio" format="float" />
 
 
        <!--分段-->
        <attr name="sb_steps" format="integer" />
        <attr name="sb_step_color" format="color" />
        <attr name="sb_step_width" format="dimension" />
        <attr name="sb_step_height" format="dimension" />
        <attr name="sb_step_radius" format="dimension" />
        <attr name="sb_step_auto_bonding" format="boolean" />
        <attr name="sb_step_drawable" format="reference" />
 
    </declare-styleable>
 
    <declare-styleable name="VerticalSmartSeekBar">
        <!--the vertical RangeSeekBar draw orientation-->
        <attr name="sb_orientation" format="enum">
            <enum name="top" value="1" />
            <enum name="bottom" value="2" />
        </attr>
        <attr name="sb_tick_mark_orientation" format="enum">
            <enum name="vertical" value="1" />
            <enum name="horizontal" value="2" />
        </attr>
        <attr name="sb_indicator_text_orientation" format="enum">
            <enum name="vertical" value="1" />
            <enum name="horizontal" value="2" />
        </attr>
    </declare-styleable>
    <!--SeekBar-->
 
    <declare-styleable name="RangeSeekBar">
        <!--RangeSeekBar common attrs-->
 
        <!--The maximum-->
        <attr name="rsb_max" format="float"/>
 
        <!--The minimum-->
        <attr name="rsb_min" format="float"/>
 
        <!--RangeSeekBar mode, single is normal seekBar, range is RangeSeekBar-->
        <attr name="rsb_mode" format="enum">
            <enum name="single" value="1"/>
            <enum name="range" value="2"/>
        </attr>
 
        <!--RangeSeekBar gravity-->
        <attr name="rsb_gravity" format="enum">
            <enum name="top" value="0"/>
            <enum name="bottom" value="1"/>
            <enum name="center" value="2"/>
        </attr>
 
        <!--The min interval of the thumbs -->
        <attr name="rsb_min_interval" format="float"/>
 
        <!-- 0 for the normal mode, greater than 1 to switch to scale mode-->
        <attr name="rsb_tick_mark_number" format="integer"/>
 
        <!--Scale mode
        Number according to the scale of the actual proportion of the distribution of the location (markTextArray must be a number)
        Other bisects the current layout (markTextArray can be any character)
        -->
        <attr name="rsb_tick_mark_mode" format="enum">
            <enum name="number" value="0"/>
            <enum name="other" value="1"/>
        </attr>
 
        <!--The tick mark text gravity -->
        <attr name="rsb_tick_mark_gravity" format="enum">
            <enum name="left" value="0"/>
            <enum name="center" value="1"/>
            <enum name="right" value="2"/>
        </attr>
 
        <!--The tick mark text layout gravity -->
        <attr name="rsb_tick_mark_layout_gravity" format="enum">
            <enum name="top" value="0"/>
            <enum name="bottom" value="1"/>
        </attr>
 
        <!--The tick mark text array -->
        <attr name="rsb_tick_mark_text_array" format="reference"/>
 
        <!--The tick mark text margin bottom to progress -->
        <attr name="rsb_tick_mark_text_margin" format="dimension" />
 
        <attr name="rsb_tick_mark_text_size" format="dimension" />
 
        <attr name="rsb_tick_mark_text_color" format="color" />
 
        <!--it just work in range && number mode now-->
        <attr name="rsb_tick_mark_in_range_text_color" format="color" />
 
        <attr name="rsb_progress_height" format="dimension"/>
 
        <attr name="rsb_progress_radius" format="dimension"/>
 
        <!--the color of progress bar when in progress-->
        <attr name="rsb_progress_color" format="color"/>
        <!--the default color of the progress bar-->
        <attr name="rsb_progress_default_color" format="color"/>
 
        <attr name="rsb_progress_drawable" format="reference"/>
 
        <attr name="rsb_progress_drawable_default" format="reference"/>
 
        <!--SeekBar attrs-->
        <attr name="rsb_indicator_show_mode" format="enum">
            <enum name="showWhenTouch" value="0"/>
            <enum name="alwaysHide" value="1"/>
            <enum name="alwaysShowAfterTouch" value="2"/>
            <enum name="alwaysShow" value="3"/>
        </attr>
        <attr name="rsb_indicator_height" format="dimension" >
            <enum name="wrap_content" value="-1" />
        </attr>
        <attr name="rsb_indicator_width" format="dimension" >
            <enum name="wrap_content" value="-1" />
        </attr>
        <!--indicator margin bottom to progress bar-->
        <attr name="rsb_indicator_margin" format="dimension" />
        <attr name="rsb_indicator_text_size" format="dimension" />
        <attr name="rsb_indicator_text_color" format="color" />
        <!--indicator arrow size, it just work when you not use rsb_indicator_drawable -->
        <attr name="rsb_indicator_arrow_size" format="dimension" />
        <!-- must use 9 path !!!-->
        <attr name="rsb_indicator_drawable" format="reference"/>
        <attr name="rsb_indicator_background_color" format="color" />
        <attr name="rsb_indicator_padding_left" format="dimension" />
        <attr name="rsb_indicator_padding_right" format="dimension" />
        <attr name="rsb_indicator_padding_top" format="dimension" />
        <attr name="rsb_indicator_padding_bottom" format="dimension" />
        <attr name="rsb_indicator_radius" format="dimension" />
        <attr name="rsb_thumb_drawable" format="reference"/>
        <!--the thumb inactivated is when you don't touch the thumb button-->
        <attr name="rsb_thumb_inactivated_drawable" format="reference"/>
        <attr name="rsb_thumb_width" format="dimension"/>
        <attr name="rsb_thumb_height" format="dimension"/>
        <attr name="rsb_thumb_scale_ratio" format="float"/>
 
        <!--steps SeekBar-->
        <attr name="rsb_steps" format="integer"/>
        <attr name="rsb_step_color" format="color"/>
        <attr name="rsb_step_width" format="dimension"/>
        <attr name="rsb_step_height" format="dimension"/>
        <attr name="rsb_step_radius" format="dimension"/>
        <attr name="rsb_step_auto_bonding" format="boolean"/>
        <attr name="rsb_step_drawable" format="reference"/>
 
    </declare-styleable>
 
    <declare-styleable name="VerticalRangeSeekBar">
        <!--the vertical RangeSeekBar draw orientation-->
        <attr format="enum" name="rsb_orientation">
            <enum name="left" value="1"/>
            <enum name="right" value="2"/>
        </attr>
        <attr format="enum" name="rsb_tick_mark_orientation">
            <enum name="vertical" value="1"/>
            <enum name="horizontal" value="2"/>
        </attr>
        <attr format="enum" name="rsb_indicator_text_orientation">
            <enum name="vertical" value="1"/>
            <enum name="horizontal" value="2"/>
        </attr>
    </declare-styleable>
 
    <declare-styleable name="GifImageView">
        <!--gif文件引用-->
        <attr name="gif_src" format="reference"  />
        <!--是否加载完自动播放-->
        <attr name="auth_play" format="boolean"  />
        <!--播放次放,默认永远播放-->
        <attr name="play_count" format="integer"  />
        <!--播放完成后是否停留在最后一帧,默认false-->
        <attr name="end_last_frame" format="boolean"  />
    </declare-styleable>
 
    <declare-styleable name="Battery">
        <attr name="batteryOrientation">
            <enum name="horizontal" value="0"/>
            <enum name="vertical" value="1"/>
        </attr>
        <attr name="batteryColor" format="color"/>
        <attr name="batteryPower" format="integer"/>
    </declare-styleable>
</resources>