Disable changes on seekbar by client Disable changes on seekbar by client android android

Disable changes on seekbar by client


You can use android:enabled="false" , but it will display disable effect [darken your seekbar].

So if you want to display enable seekbar with no response to thumb activity, implement touch event handler with return true as shown below.

seekBar.setOnTouchListener(new OnTouchListener(){  @Override  public boolean onTouch(View v, MotionEvent event) {    return true; }});


One thing you can do is to disable the seekbar,Like seekbar.setEnabled(false)

doing so framework will not accept anyTouch event from user and youCan change progress level only through code.

I hope this will help you.......


Just return false from onTouch method of CustomSeekBar class.

Hope this works !