title: How to change seek bar progress colour according to its progress?
body: <p>I want to create a custom seekbar, whose progress bar's colour change between red and blue as the user changes the progress of the bar.</p>
  
  <p>I have tried it but its only changing the background colour not the progress bar color.</p>
  
  <pre><code>seekBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
  
              public void onStopTrackingTouch(SeekBar seekBar) {
                  // TODO Auto-generated method stub
  
              }
  
              public void onStartTrackingTouch(SeekBar seekBar) {
                  // TODO Auto-generated method stub
  
              }
  
              public void onProgressChanged(SeekBar seekBar, int progress,
                      boolean fromUser) {
  
  
                  seekBar.setBackgroundColor(Color.RED + progress);
  
              }
          });
  </code></pre>