38 lines
1.6 KiB
XML
38 lines
1.6 KiB
XML
|
|
<resources>
|
||
|
|
|
||
|
|
<declare-styleable name="FashionAvatarView">
|
||
|
|
<!-- 头像相关属性 -->
|
||
|
|
<attr name="avatarUrl" format="string" />
|
||
|
|
<attr name="placeholderAvatar" format="reference" />
|
||
|
|
<attr name="avatarRadius" format="dimension" />
|
||
|
|
<attr name="avatarBorderWidth" format="dimension" />
|
||
|
|
<attr name="avatarBorderColor" format="color" />
|
||
|
|
|
||
|
|
<!-- 顶部标签相关属性 -->
|
||
|
|
<attr name="tagText" format="string" />
|
||
|
|
<attr name="tagTextColor" format="color" />
|
||
|
|
<attr name="tagTextSize" format="dimension" />
|
||
|
|
<attr name="tagBackgroundColor" format="color" />
|
||
|
|
<attr name="tagCornerRadius" format="dimension" />
|
||
|
|
<attr name="tagPadding" format="dimension" />
|
||
|
|
<attr name="tagOffsetY" format="dimension" />
|
||
|
|
|
||
|
|
<!-- 底部文字相关属性 -->
|
||
|
|
<attr name="bottomText" format="string" />
|
||
|
|
<attr name="bottomTextColor" format="color" />
|
||
|
|
<attr name="bottomTextSize" format="dimension" />
|
||
|
|
<attr name="bottomTextOffsetY" format="dimension" />
|
||
|
|
|
||
|
|
<!-- 爱心装饰相关属性 -->
|
||
|
|
<attr name="heartIcon" format="reference" />
|
||
|
|
<attr name="heartCount" format="integer" />
|
||
|
|
<attr name="heartSize" format="dimension" />
|
||
|
|
</declare-styleable>
|
||
|
|
|
||
|
|
<declare-styleable name="AvatarWithDecoration">
|
||
|
|
<attr name="decoration" format="reference" />
|
||
|
|
<attr name="decorationScale" format="float" />
|
||
|
|
<attr name="decorationOffsetX" format="integer" />
|
||
|
|
<attr name="decorationOffsetY" format="integer" />
|
||
|
|
</declare-styleable>
|
||
|
|
</resources>
|