title: Set Custom values to seek Bar
body: <p>I want to start My seek baar from base 3 and increment by 2 and max is 9 how to set , i need 3,5,7,9,11. my code is</p>
  
  <p>it not working as i want , please help</p>
  
  <pre><code>SeekBar sb1 = (SeekBar)findViewById(R.id.sBtaxitype);
  
      sb1.setMax(11);
      sb1.setLeft(3);
      sb1.incrementProgressBy(2);
      sb1.setProgress(0); // Set it to zero so it will start at the left-most edge
      sb1.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
  
          @Override
          public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
               if (progress &lt; 3) {
                   progress = 3;
                   progress = progress + 2;
               } else {
                   progress = progress + 2; // Add the minimum value (10)
               }
  
              TextView text = (TextView)findViewById(R.id.tvTaxitype);
              text.setText(Integer.toString(progress));
  
          }
  
          @Override
          public void onStartTrackingTouch(SeekBar seekBar) {}
  
          @Override
          public void onStopTrackingTouch(SeekBar seekBar) {}
  
      });
  </code></pre>