• 授权协议:Apache
  • 开发厂商:-
  • 软件语言:Java
  • 更新日期:2017-03-16
CircleRangeView

CircleRangeView ​自定义圆形仪表盘 View

CircleRangeView ​自定义圆形仪表盘 View 项目简介

CircleRangeView是自定义圆形仪表盘View,适合根据数值显示不同等级范围的场景一、效果图二、用法1.布局文件引入:<com.ganxin.circlerangeview.CircleRangeView
        android:id="@+id/circleRangeView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:rangeColorArray="@array/circlerangeview_colors"
        app:rangeTextArray="@array/circlerangeview_txts"
        app:rangeValueArray="@array/circlerangeview_values"/>自定义属性:rangeColorArray:等级颜色数组,必填rangeValueArray:等级数值数组,数组长度同rangeColorArray保持一致,必填rangeTextArray:等级文本数组,数组长度同rangeColorArray保持一致,必填borderColor:外圆弧颜色,可选cursorColor:指示标颜色,可选extraTextColor:附加文本颜色,可选 rangeTextSize:等级文本字体大小,可选 extraTextSize:附加文本字体大小,可选2.在你的onCreate方法或者fragment的onCreateView方法中,根据id绑定该控件 CircleRangeView circleRangeView= (CircleRangeView) findViewById(R.id.circleRangeView);3.在合适的时机,调用方法给控件设值    List<String> extras =new ArrayList<>();
    extras.add("收缩压:116");
    extras.add("舒张压:85  ");

    //circleRangeView.setValueWithAnim(value);
    circleRangeView.setValueWithAnim(value,extras);

CircleRangeView ​自定义圆形仪表盘 View 相关推荐

CircleRangeView ​自定义圆形仪表盘 View 评论内容