Q:

Custom SeekBar: set min value

I need to set the seekbar values from -10 to 10. The default SeekBar class do not allow to set a minimum value but only max. How can i set also a minimum value? Thanks in advance.

A:

You can't set the minimum value.
What you can do is:
seekBar.setMax(20);
Then simply offset the value you get from the seekbar:
int progress = seekBar.getProgress() - 10;

