puzhibing
2026-08-21 5fa94b3718b4a78a4fcea4c97652b0ef20b7de3a
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
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="CircularProgressView">
        <!-- 环宽度 -->
        <attr name="ringWidth" format="dimension" />
 
        <!-- 背景环颜色 -->
        <attr name="backgroundProgressColor" format="color" />
 
        <!-- 进度环颜色 -->
        <attr name="progressColor" format="color" />
 
        <!-- 进度圆角风格 -->
        <attr name="progressRoundStyle" format="boolean" />
 
        <!-- 当前进度 -->
        <attr name="progress" format="float" />
 
        <!-- 最大进度 -->
        <attr name="maxProgress" format="float" />
    </declare-styleable>
    <declare-styleable name="LineView">
        <!--虚线长度-->
        <attr name="dashLineSize" format="dimension" />
        <!--虚线厚度-->
        <attr name="dashLineStroke" format="dimension" />
        <!--间隔-->
        <attr name="lineInterval" format="dimension" />
        <!--线颜色-->
        <attr name="lineColor" format="color" />
        <!--是否启用虚线-->
        <attr name="dashLineEnable" format="boolean" />
    </declare-styleable>
    <declare-styleable name="WatermarkView">
        <attr name="watermarkText" format="string" />
        <attr name="textColor" format="color" />
        <attr name="textSize" format="dimension" />
        <attr name="watermarkTextRotation" format="float" />
        <attr name="spacingX" format="dimension" />
        <attr name="spacingY" format="dimension" />
        <attr name="isStaggered" format="boolean" />
    </declare-styleable>
    <declare-styleable name="ClearEditText">
        <!-- 清除按钮图标 -->
        <attr name="clearIcon" format="reference" />
        <!-- 图标宽度 -->
        <attr name="iconWidth" format="dimension" />
        <!-- 图标高度 -->
        <attr name="iconHeight" format="dimension" />
        <!-- 图标距离右边的距离 -->
        <attr name="iconMarginRight" format="dimension" />
        <!-- 图标距离顶部的偏移(用于垂直居中微调) -->
        <attr name="iconMarginTop" format="dimension" />
        <!-- 是否显示清除按钮(默认true) -->
        <attr name="showClearIcon" format="boolean" />
        <!-- 图标着色(可选) -->
        <attr name="iconTint" format="color|reference" />
    </declare-styleable>
</resources>