title: Android How to add intervals texts in a seekbar
body: <p>I am using a seekbar, and I want to add certain marks in the seekbar with text to use it as a scale. The selected interval points should be highlighted.
  <img src="https://i.stack.imgur.com/Fqw6r.png" alt="enter image description here"></p>
  
  <p>The corresponding code is here:</p>
  
  <pre><code>   seekbar = (SeekBar) findViewById(R.id.seekBar1);
      seekbar.setMax(max);
      seekbar.setProgress(50);
      seekbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
          public void onProgressChanged(SeekBar seekBar, int progress,
                  boolean fromUser) {
              // TODO Auto-generated method stub
              value.setText("SeekBar value is " + progress);
          }
  
          public void onStartTrackingTouch(SeekBar seekBar) {
              // TODO Auto-generated method stub
          }
  
          public void onStopTrackingTouch(SeekBar seekBar) {
              // TODO Auto-generated method stub
          }
      });
  </code></pre>