Android SeekBar Touch Sensitivity -
recently have been working on app has seekbar
. seekbar
rather thin can @ times difficult use (you have precise in gestures). there way increase touchable area of seekbar
? want users able touch above or below seekbar
move thumb. i'd appreciate can offer!
one of straightforward approaches increase value of 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 custom thumb , increase background's size adding e.g. transparent border.
you can use this library more complex seekbars
.
in addition, there have nice tutorial describing custom seekbar
creation.
Comments
Post a Comment