title: Set Min Value for Android Seek bar
body: <pre><code>private static int INCREMENT_BY = 10;
  private static int MAX = 1000;
  private static int MIN = 0;
  SeekBar seekbar_min, seekbar_max;
  private int max = 0, min = 0;
  
  
   seekbar_min.setProgress(MIN);
      seekbar_min.incrementProgressBy(INCREMENT_BY);
      seekbar_min.setMax(MAX);
      seekbar_min.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
          @Override
          public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
              progress = progress / INCREMENT_BY;
              progress = progress * INCREMENT_BY;
              if (progress &lt; 100) {
                  min = progress * 10;
              } else if (progress &lt; 300) {
                  min = progress * 50;
              } else if (progress &lt; 900) {
                  min = progress * 100;
              } else {
                  min = progress * MAX;
              }
              tv_price_min.setText(String.valueOf(min));
          }
  
          @Override
          public void onStartTrackingTouch(SeekBar seekBar) {
          }
  
          @Override
          public void onStopTrackingTouch(SeekBar seekBar) {
              if (seekBar.getProgress() != MIN || seekBar.getProgress() != MAX){
                  if (seekBar.getProgress() &lt; 100) {
                      max = seekBar.getProgress() + 10;
                  } else if (seekBar.getProgress() &lt; 300) {
                      max = seekBar.getProgress() + 50;
                  } else if (seekBar.getProgress() &lt; 900) {
                      max = seekBar.getProgress() + 100;
                  } else {
                      max = seekBar.getProgress() + MAX;
                  }
                  seekbar_max.setProgress(max);
              }
          }
      });
  
  
      seekbar_max.incrementProgressBy(INCREMENT_BY);
      seekbar_max.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
          @Override
          public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
              progress = progress / INCREMENT_BY;
              progress = progress * INCREMENT_BY;
              if (progress &lt; 100) {
                  max = progress * 10;
              } else if (progress &lt; 300) {
                  max = progress * 50;
              } else if (progress &lt; 900) {
                  max = progress * 100;
              } else {
                  max = progress * MAX;
              }
              tv_price_max.setText(String.valueOf(max));
          }
  
          @Override
          public void onStartTrackingTouch(SeekBar seekBar) {
          }
  
          @Override
          public void onStopTrackingTouch(SeekBar seekBar) {
          }
      });
  </code></pre>
  
  <p>The Seek bar is for maximum price must have the minimum value, which is Minimum Seek bar current value. I can do this successfully, but the problem is that, the maximum seek bar allows to change the min value to until 0, which i do not want.</p>