How to set range between two thumbs in range seek bar in android?

前端 未结 1 421
灰色年华
灰色年华 2021-01-13 02:23

I am using the range seek bar in my app.It\'s working fine but my requirement is set the range between the two thumbs.In default both thumbs are overlapping each other in my

1条回答
  •  执笔经年
    2021-01-13 02:55

    For stopping the motion of thumbs when the difference is 4. You can use

    if(diff==4) {
        bar.setEnabled(false);
    }
    

    For getting more clear go to our blog and see How to disable thumbs while dragging in RangedSeekBar section.

    0 讨论(0)
提交回复
热议问题