I am using a SeekBar in my Android app. When a user single taps anywhere on the SeekBar, its progress value is changed. I only want the progress value to change when the user slides the SeekBar thumb (just like a UISlider in iOS).
I have tried setting the clickable property of the SeekBar to false but that didn't work. How can I achieve the desired behavior?

The situation I was facing is that the SeekBar was created by another piece of code so I couldn't create a subclass with the onTouchEvent() handler. Instead I overrode the OnTouchListener for the instance I wanted to mess with...
Yes, I could simply return the contents of the "if" expression, but that wouldn't make the code readable.