How to Set an Android SeekBar to be unmoveable/frozen?

Rockmaninoff picture Rockmaninoff · Nov 9, 2010 · Viewed 32.3k times · Source

In my XML, I've set the focusable, focusableInTouchMode, clickable, and longClickable variables to false, yet I can still click and move the SeekBar. Do I need to actually change the listener events to do this? That seems so unnecessary.

Answer

james picture james · Nov 9, 2010

You need to do this from your activity or fragment by

mySeekBar.setEnabled(false);