Closed irshadsparky closed 7 years ago
Example, for using range as float/double values:
private static final double SCALE_FACTOR = 10.0;
...
multiSlider.setStep(2);
multiSlider.setMin(1, true, true);
multiSlider.setMax(7, true, true);
multiSlider.setOnThumbValueChangeListener(new MultiSlider.OnThumbValueChangeListener() {
@Override
public void onValueChanged(MultiSlider multiSlider, MultiSlider.Thumb thumb, int thumbIndex, int value) {
final double value_d = value / SCALE_FACTOR;
doSmth(value_d);
}
});
He developers, Thankyou for this library i am facing problem with useing float or double type value in range selecter .Return values are always in int