I had the same problem and the following code resolved it.
Wherever you use the code to change the pull-out code, simply do the following (where "p" is your search drum):
int currentProgress = p.getProgress(); p.setProgress(0); Rect bounds = p.getProgressDrawable().getBounds(); p.setProgressDrawable(getResources().getDrawable(R.drawable.progress_drawable_orange)); p.getProgressDrawable().setBounds(bounds); p.setProgress(currentProgress);
and remember to add the following check in the onProgressChanged
Method:
@Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if(!fromUser) return;
example
source share