18034727885
2026-04-14 370014cbb9ec1ef64e7e42bb4f9a12671461d8e4
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
<?xml version="1.0" encoding="utf-8"?>
<resources>
 
    <declare-styleable name="BatteryView">
        <!-- 电池外壳图片资源 -->
        <attr name="batteryFrame" format="reference" />
        <!-- 电量值 (0-100) -->
        <attr name="batteryLevel" format="integer" />
        <!-- 是否显示百分比文字 -->
        <attr name="showPercentage" format="boolean" />
    </declare-styleable>
 
    <declare-styleable name="ShowTextLinearLayout">
        <attr name="margin_width" format="dimension" /><!--左右控件magrin-->
        <attr name="min_padding_width" format="dimension" /> <!--最小的左右padding-->
        <attr name="max_padding_width" format="dimension" /> <!--最大的左右padding-->
        <attr name="padding_height" format="dimension" /> <!--上下padding-->
        <attr name="padding_left" format="dimension" /><!--左padding-->
        <attr name="padding_right" format="dimension" /><!--右padding-->
        <attr name="text_size" format="dimension" />
        <attr name="text_color" format="color" />
        <attr name="text_bg" format="reference" />
    </declare-styleable>
 
    <declare-styleable name="SlideButtonView">
        <!-- 滑动方向:0=左滑,1=右滑 -->
        <attr name="slideDirection" format="enum">
            <enum name="left" value="0" />
            <enum name="right" value="1" />
        </attr>
        <!-- 背景颜色 -->
        <attr name="slideBackgroundColor" format="color" />
        <!-- 文字内容 -->
        <attr name="slideText" format="string" />
        <!-- 文字颜色 -->
        <attr name="slideTextColor" format="color" />
        <!-- 文字大小 -->
        <attr name="slideTextSize" format="dimension" />
        <!-- 滑块图片资源(关键属性) -->
        <attr name="thumbDrawable" format="reference" />
        <!-- 滑块形状:0=圆形裁剪,1=矩形,2=圆角矩形 -->
        <attr name="thumbShape" format="enum">
            <enum name="circle" value="0" />
            <enum name="square" value="1" />
            <enum name="roundRect" value="2" />
        </attr>
        <!-- 滑动阈值 (0.0-1.0) -->
        <attr name="slideThreshold" format="float" />
        <!-- 背景圆角半径(关键:控制矩形圆角程度) -->
        <attr name="backgroundCornerRadius" format="dimension" />
        <!-- 滑块圆角半径(当 thumbShape=roundRect 时有效) -->
        <attr name="thumbCornerRadius" format="dimension" />
    </declare-styleable>
 
    <declare-styleable name="SlideSwitchView">
        <!-- 背景颜色 -->
        <attr name="switchBackgroundColorUnchecked" format="color"/>
        <attr name="switchBackgroundColorChecked" format="color"/>
        <!-- 滑块颜色 -->
        <attr name="switchThumbColorUnchecked" format="color"/>
        <attr name="switchThumbColorChecked" format="color"/>
        <!-- 文字颜色 -->
        <attr name="switchTextColorUnchecked" format="color"/>
        <attr name="switchTextColorChecked" format="color"/>
        <!-- 文字内容 -->
        <attr name="switchTextUnchecked" format="string"/>
        <attr name="switchTextChecked" format="string"/>
        <!-- 文字大小 -->
        <attr name="switchTextSize" format="dimension"/>
        <!-- 圆角 -->
        <attr name="switchCornerRadius" format="dimension"/>
        <attr name="switchThumbCornerRadius" format="dimension"/>
        <!-- 初始状态 -->
        <attr name="switchChecked" format="boolean"/>
        <!-- 滑块与背景间距 -->
        <attr name="switchThumbMargin" format="dimension"/>
    </declare-styleable>
 
    <declare-styleable name="LoopView">
        <attr name="awv_textsize" format="integer" />
        <attr name="awv_lineSpace" format="float" />
        <attr name="awv_centerTextColor" format="integer" />
        <attr name="awv_outerTextColor" format="integer" />
        <attr name="awv_dividerTextColor" format="integer" />
        <attr name="awv_itemsVisibleCount" format="integer" />
        <attr name="awv_isLoop" format="boolean" />
        <attr name="awv_isCurve" format="boolean" />
        <attr name="awv_initialPosition" format="integer" />
        <attr name="awv_scaleX" format="float" />
    </declare-styleable>
</resources>