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

纵然是瞬间 提交于 2019-11-29 02:56:29

mySeekBar.setEnabled(false);

or for XML:

android:enabled="false"

greg7gkb

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!