[add] 自定义ratingbar
This commit is contained in:
@@ -8,9 +8,36 @@
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="CustomCircleImageView">
|
||||
<attr format="dimension" name="civ_border_width"/>
|
||||
<attr format="color" name="civ_border_color"/>
|
||||
<attr format="boolean" name="civ_border_overlay"/>
|
||||
<attr format="color" name="civ_fill_color"/>
|
||||
<attr name="civ_border_width" format="dimension" />
|
||||
<attr name="civ_border_color" format="color" />
|
||||
<attr name="civ_border_overlay" format="boolean" />
|
||||
<attr name="civ_fill_color" format="color" />
|
||||
</declare-styleable>
|
||||
<declare-styleable name="CustomRatingBar">
|
||||
<!--宽-->
|
||||
<attr name="elenmentWidth" format="dimension" />
|
||||
<!--高-->
|
||||
<attr name="elenmentHeight" format="dimension" />
|
||||
<!--单元间距-->
|
||||
<attr name="elenmentPadding" format="dimension" />
|
||||
<!--单元总数-->
|
||||
<attr name="elenmentCount" format="integer" />
|
||||
<!--空资源-->
|
||||
<attr name="elenmentEmpty" format="reference" />
|
||||
<!--满资源-->
|
||||
<attr name="elenmentFill" format="reference" />
|
||||
<!--半资源-->
|
||||
<attr name="elenmentHarf" format="reference" />
|
||||
<!--是否可点击-->
|
||||
<attr name="clickable" format="boolean" />
|
||||
<!--当前进度-->
|
||||
<attr name="elenmentStep" format="float" />
|
||||
<!--进度方式 半个还是整个-->
|
||||
|
||||
<attr name="stepSize">
|
||||
<enum name="Half" value="0" />
|
||||
<enum name="Full" value="1" />
|
||||
</attr>
|
||||
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user