Working With Seekbar With Two Thumbs
I've used this link to implement SeekBar with two thumbs and I got the output. But this seekbar has one issue that it allows crossing of thumb 1 and thumb 2 i.e. it allows thumb 1
Solution 1:
At the end of OnTouch
event, replace your code with below code. Hope it helps
calculateThumbValue();
if(thumb1Value < thumb2Value) {
invalidate();
if(scl != null){
scl.SeekBarValueChanged(thumb1Value, thumb2Value);
}
}
Post a Comment for "Working With Seekbar With Two Thumbs"