Change the color of a seekbar on onProgressChanged
Use this :
bar.setProgressDrawable(new ColorDrawable(Color.rgb( red, green, blue)));
Change the red,green,blue with progress change.
I do something like this using this method:
public void setProgressBarColor(ProgressBar progressBar, int newColor){
LayerDrawable ld = (LayerDrawable) progressBar.getProgressDrawable();
ClipDrawable d1 = (ClipDrawable) ld.findDrawableByLayerId(R.id.progressshape);
d1.setColorFilter(newColor, PorterDuff.Mode.SRC_IN);
}
Then, when you update the progress, you just have to change the desired color.