title: How to stop the movement of seekBar past a dynamic point
body: <p>I am trying to stop the movement of a certain seekBar after it reaches a dynamic point (calculated from subtraction the setMax() value and other seekBar.getProgress()). 
  I tried using the onTouchEvent() but couldn't stop the movement of the bar and setting manually the seekBar.setProgress() but it only jumps to that point and continue moving with the finger. </p>
  
  <pre><code>  sb1.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
          @Override
          public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
              sb1.setMax(Integer.parseInt(et.getText().toString()));
              if (progress &gt;= Integer.parseInt(et.getText().toString()) - sb2.getProgress() - sb3.getProgress())
                  sb1.setProgress(progress);
              tv1.setText(String.valueOf(progress));
          }
  
  
      });
  
      sb2.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
          @Override
          public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
              sb2.setMax(Integer.parseInt(et.getText().toString()));
  
              if (progress &gt;= Integer.parseInt(et.getText().toString()) - sb1.getProgress() - sb3.getProgress())
                  sb2.setProgress(progress);
              tv2.setText(String.valueOf(progress));
          }
  
      });
  </code></pre>
  
  <p>please help</p>