Android SeekBar Touch Sensitivity

对着背影说爱祢 提交于 2019-12-03 11:28:06

One of the most straightforward approaches is to increase a value of the android:padding attribute:

<SeekBar
    android:id="@+id/yourSeekBar"
    android:progressDrawable="@drawable/seekbar_progress"
    android:thumb="@drawable/seekbar_thumb"
    android:paddingTop="@dimen/your_topPadding"
    android:paddingBottom="@dimen/your_bottomPadding" />

Another possibility: make a custom thumb and increase its background's size by adding e.g. transparent border.

You can also use this library for more complex SeekBars.

In addition, there you have a nice tutorial describing a custom SeekBar creation.

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