Combining zwebie and Nermeens answers the right solution:
seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { private int mProgressAtStartTracking; private final int SENSITIVITY; @Override public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
Thus, this really only works when you press the thumb, and not when you move the thumb, and not when you click on other parts of the arrow.
You can adjust the sensitivity, because sometimes a click already moves the thumb a little and gives small changes, and clicking becomes less frustrating. A good value here depends on the size of the arrow and the maximum value that it can have. For me, 3 worked well on a full-sized search bar with 50 max on the portrait layout.
BjΓΆrn kechel
source share