张钢
2024-09-12 8aa3165449dd2757e016bdc43cfd5d111cd4c7a6
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
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="CustomTextView">
        <attr name="border_color" format="color"/>
        <attr name="is_border_gradient" format="boolean"/>
        <attr name="border_gradient_start_color" format="color"/>
        <attr name="border_gradient_end_color" format="color"/>
        <attr name="border_width" format="dimension"/>
        <attr name="border_radius" format="dimension"/>
    </declare-styleable>
 
    <declare-styleable name="ClearEditText">
        <attr name="background" format="reference"/>
        <attr name="padding" format="dimension"/>
    </declare-styleable>
 
    <declare-styleable name="PlayButton">
        <!-- 线条颜色 -->
        <attr name="pb_lineColor" format="color" />
        <!-- 线条大小 -->
        <attr name="pb_lineSize" format="integer" />
        <!-- 动画时间 -->
        <attr name="pb_animDuration" format="integer" />
    </declare-styleable>
 
    <!-- 仿 ios 开关按钮 -->
    <declare-styleable name="SwitchButton">
        <!-- 是否选中 -->
        <attr name="android:checked" />
        <!-- 是否禁用 -->
        <attr name="android:enabled" />
    </declare-styleable>
</resources>