Android SeekBar Minimum Value
Here is what I use to get android:max
for a max/min range for a SeekBar
.
mSeekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
int progressChanged = minimumValue;
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
progressChanged = minimumValue+ progress;
}
});
So you will get the range minimum to minimum+max
;
To set the max value in xml, use max=(desiredMax-min)
;
How to define a SeekBar's minimum value?
You can't define the minimum value. It is 0
.
Basically I need to change my minimum value from 0 to 0.2
When you get the value, add 0.2
to it.