Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 877 Bytes

File metadata and controls

31 lines (27 loc) · 877 Bytes

GraduatedWheelView

Screenshot

How to use

Gradle:

dependencies {
    compile 'com.github.bzsy:GraduatedWheelView:1.0'
}

Configure

setMinVal();            //min value
setMaxVal();            //max value
setCurValue();          //current value
setValueType();         //GraduatedWheelView.TYPE_DECIMAL or GraduatedWheelView.TYPE_INTEGER
setDivLineColor();      //divide line color
setStrokeColor();       //stroke line color
setCenterLineColor();   //center line color
setTextColor();         //text color
setOnValueChangedListener(new GraduatedWheelView.OnValueChangedListener() {
    @Override
    public void onChanged(float oldValue, float newValue) {
        //newValue is current selected value
      }
});