syedowaisali / crystal-range-seekbar

538 stars 170 forks source link

HOW SET PROGRESS PROGRAMMATICALLY? #121

Open aliaksandr-chaulytka opened 6 years ago

aliaksandr-chaulytka commented 6 years ago

HOW SET PROGRESS PROGRAMMATICALLY? like on a picture

screenshot_2018-06-05-23-00-31

fail, there can be no question of a star

MarinaShaposhnikova commented 6 years ago

@memento2801 What kind of problems do you have with it? You should call seekbarRange.setMinStartValue(minValue) seekbarRange.setMaxStartValue(maxValue)

and then seekbarRange.apply()

ejdrian313 commented 6 years ago

add this to documentation, because apply to seekbar is so unintuitive. I lost hour to find this..

keehoo commented 6 years ago

@MarinaShaposhnikova so, the MinStartValue and maxStartValue are the current values, right? If so.. the name should be corrected imho, as for me it took a while to understand that, perhaps (as per android SDK Seekbar minProgress and maxProgress).

MarinaShaposhnikova commented 6 years ago

@keehoo No, the current values are minValue and maxValue if I remember correctly. I'm not the owner of the library, I only used it some months ago :)

idrisadetunmbi commented 4 years ago

@MarinaShaposhnikova, what identifies the range values (not current values) then?

tayyabejaz commented 2 years ago

@MarinaShaposhnikova setMinStartValue() doesn't set the slider to the specific position. why is it so? @syedowaisali