I used the following seek bar for displacing the progress of my audio.
Try this
seekBar.setEnabled(false);
Just add touch event handler and return true, like example below:
seekBar.setOnTouchListener(new OnTouchListener(){
@Override
public boolean onTouch(View v, MotionEvent event) {
return true;
}
});
User won't be able to touch and change the progress this way.
Try adding a empty eventhandler for the event of "click".
Kotlin lambda solution:
seekbar.setOnTouchListener { _, _ -> true }