Android自定义控件-SlidingValidationView

效果图

图2

代码

属性

1
2
3
4
5
6
7
8
9
<declare-styleable name="SlidingValidationView">
<attr name="sv_drag_view_color" format="color|reference" />
<attr name="sv_line_color" format="color|reference" />
<attr name="sv_final_point_color" format="color|reference" />
<attr name="sv_sliding_progress" format="integer" />
<attr name="sv_draw_radius" format="dimension|reference" />
<attr name="sv_final_point_radius" format="dimension|reference" />
<attr name="sv_line_point_radius" format="dimension|reference" />
</declare-styleable>

Android自定义控件-RatioColorBar

效果图

图2

代码

属性

1
2
3
4
5
6
7
<declare-styleable name="RatioColorBar">
<attr name="rcb_show_border" format="boolean" />
<attr name="rcb_show_padding" format="boolean" />
<attr name="rcb_border_width" format="dimension|reference" />
<attr name="rcb_border_padding" format="dimension|reference" />
<attr name="rcb_border_color" format="color|reference" />
</declare-styleable>

Android自定义控件-ZzImageBox

ZzImageBox

A powerful image container for adding and removing images.

功能简介:

1.支持添加、删除、默认图片的配置;

2.支持最大行数限制;

3.支持每行数量修改;

4.支持添加、删除、图片点击回调接口。

5.支持Box的添加(.addImage(String imagePath))和删除(.removeImage(int position));

6.支持加载本地图片(使用方法.addImage(String imagePath));

7.支持左右margin设置。

Gradle

1
compile 'me.zhouzhuo.zzimagebox:zz-image-box:1.0.4'