Just use the RangeSlider
in Material Components and the method setValues()
with:
RangeSlider slider = findViewById(R.id.slider);
slider.setValues(1.0f,5.0f);
You can also use:
with res/values/arrays.xml
:
- 1.0
- 5.0
Note: This requires a minimum of version 1.2.0-beta01