attrs.xml
4.11 KB
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
<resources>
<!--可展开布局自定义属性-->
<declare-styleable name="ExpandTextView">
<!--文本最大缩略行数,对应于TextView的maxLines-->
<attr name="maxLines" format="integer" />
<!--展开时对应的图片-->
<attr name="expandIconResId" format="reference" />
<!--不展开时对应的图片-->
<attr name="collapseIconResId" format="reference" />
<!--展开时对应末尾提示的文字-->
<attr name="expandMoreText" format="string" />
<!--不展开时对应末尾提示的文字-->
<attr name="collapseLessText" format="string" />
<!--内容文字的颜色-->
<attr name="contentTextColor" format="reference|color" />
<!--更多或收起文字的颜色-->
<attr name="expandTextColor" format="reference|color" />
<!--文字大小-->
<attr name="contentTextSize" format="dimension" />
<!--更多/收起文字大小-->
<attr name="expandTextSize" format="dimension" />
<!--展开/收缩布局对应图标的宽度-->
<attr name="expandIconWidth" format="dimension" />
<!--缩略文本展示时与展开/收缩布局的间距-->
<attr name="spaceMargin" format="dimension" />
<!--文本显示的lineSpacingExtra,对应于TextView的lineSpacingExtra属性-->
<attr name="lineSpacingExtra" format="dimension" />
<!--文本显示的lineSpacingMultiplier,对应于TextView的lineSpacingMultiplier属性-->
<attr name="lineSpacingMultiplier" format="float" />
<!--展开样式-->
<attr name="expandStyle" format="integer">
<!--默认样式:图标+文字-->
<enum name="DEFAULT" value="0" />
<enum name="ICON" value="1" />
<enum name="TEXT" value="2" />
</attr>
<!--是否收缩-->
<attr name="isShrink" format="boolean" />
<!--是否左右对齐-->
<attr name="isJustify" format="boolean" />
</declare-styleable>
<declare-styleable name="WaveView">
<attr name="waveColor" format="color|reference" />
<attr name="waveCount" format="integer" />
<attr name="waveCenterIcon" format="reference" />
</declare-styleable>
<declare-styleable name="CustomScrollView">
<attr name="maxHeight" format="dimension" />
</declare-styleable>
<declare-styleable name="ShapeBlurView">
<attr name="blur_radius" format="dimension" />
<attr name="blur_down_sample" format="float" />
<attr name="blur_overlay_color" format="color" />
<attr name="blur_corner_radius" format="dimension" />
<attr name="blur_corner_radius_top_left" format="dimension" />
<attr name="blur_corner_radius_top_right" format="dimension" />
<attr name="blur_corner_radius_bottom_left" format="dimension" />
<attr name="blur_corner_radius_bottom_right" format="dimension" />
<attr name="blur_border_width" format="dimension" />
<attr name="blur_border_color" format="color" />
<attr name="blur_mode">
<enum name="rectangle" value="0" />
<enum name="circle" value="1" />
<enum name="oval" value="2" />
</attr>
</declare-styleable>
<declare-styleable name="MarqueeViewStyle">
<attr name="mvInterval" format="integer|reference" />
<attr name="mvAnimDuration" format="integer|reference" />
<attr name="mvTextMaxLine" format="integer|reference" />
<attr name="mvTextSize" format="dimension|reference" />
<attr name="mvTextColor" format="color|reference" />
<attr name="mvSingleLine" format="boolean" />
<attr name="mvGravity">
<enum name="left" value="0" />
<enum name="center" value="1" />
<enum name="right" value="2" />
</attr>
<attr name="mvDirection">
<enum name="bottom_to_top" value="0" />
<enum name="top_to_bottom" value="1" />
<enum name="right_to_left" value="2" />
<enum name="left_to_right" value="3" />
</attr>
</declare-styleable>
</resources>