How to Set an Android SeekBar to be unmoveable/frozen?
You need to do this from your activity or fragment by
//java
mySeekBar.setEnabled(false);
//kotlin
mySeekBar.enabled = false;
Or if you want to do it by xml
android:enabled="false"
You could create a subclass whose parent is a SeekBar
. In your new class, override the onTouchEvent()
method to always return false.
This solution should not "grey out" the seek bar since the enabled state will not change.