Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
881 views
in Technique[技术] by (71.8m points)

How to set seekbar drag in a larger area android?

How can I make sekbar draggable area large in android? I've tried to increase height of seekbar but it does not work too.

Here is code

<SeekBar
  android:id="@+id/seek"
  android:layout_width="match_parent"
  android:layout_height="48dp"
  android:max="100" 
  android:progress="10"
  android:progressDrawable="@drawable/seek_bar"
  android:splitTrack="false"
  android:thumb="@drawable/ic_thumb" />
question from:https://stackoverflow.com/questions/65598500/how-to-set-seekbar-drag-in-a-larger-area-android

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There are many solutions for that. You can simply increase the padding, use a TouchDelegate or use the material version of seekbar


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...