RangeSeekBar
RangeSeekBar copied to clipboard
How to prevent overlap of thumb i am using three thumb any hit in where i can fit it
Hello ,
I have three thumbs, one is left, other it right and last one which is center one.
How I can prevent center thumb to prevent overlap of left and right thumb while dragging it.
Thanks, Himanshu
The comment on RangeSeekBar.java line 218 indicates that it can't be dragged over other thumbs? Doesn't it stop when dragged over other thumbs? I haven't touched the code in years so everything should still be working :)
@Larpon That correct but I can prevent drawable to draw to overlap each other when the user moves them to closest one.
@himanshumistri - then I'm afraid you can't. In that case you could add some kind of collision detection based on the drawable bounds or some bounding rectangle somewhere in onTouchEvent - the most straight forward would be to use the thumbs drawables bounding box I guess