For anyone who needs to create a similar Seekbar like me:
This library was exactly what I needed, except for the fact that it has 2 thumbs, and in no way eliminate one of them.
https://github.com/edmodo/range-bar

I developed a bit of a โhackโ for this: when you initialize the Range-Bar, you can set the thumb indices using this method, as stated on the wiki:
RangeBar rangebar = (RangeBar) findViewById(R.id.rangebar); rangebar.setThumbIndices(5,5);
And when the index of the thumb changes, in the following method you set the thumbs in one position:
rangebar.setOnRangeBarChangeListener(new RangeBar.OnRangeBarChangeListener() { @Override public void onIndexChangeListener(RangeBar rangeBar, int leftThumbIndex, int rightThumbIndex) {
Hope this will be helpful to everyone.
Thank you all for your help!
Hooray!
source share