syedowaisali / crystal-range-seekbar

538 stars 166 forks source link

Change bar value programatically #17

Closed vanillazz closed 6 years ago

vanillazz commented 7 years ago

How to change bar value programatically.. ? Cant find the setValue method.. all i find just setMinValue, setMinStartValue & setMaxStartValue...

mladenbabic commented 7 years ago

I have the same problem. Any feedback from the author?

syedowaisali commented 7 years ago

You can change bar value programatically using

seekbar.setMinStartValue(float minValue).apply();

and

rangeSeekbar.setMinStartValue(float minValue).setMaxStartValue(float maxValue).apply();

davistsin commented 7 years ago

This is awsome library. I suggest to support databinding in some attributeSet or @BindingAdapter

GastricSpark commented 7 years ago

The library is really nice, would suggest that you add a sample project to it though so people know how to use it. Took me some time to realise I needed to add .apply();

ryust commented 7 years ago

I don't think this is working as stated by the owner. Please see my comment on issue #24. Are others able to set min and max start values successfully at the same time?

ryust commented 7 years ago

It appears my issue was fixed in 1.1.3 version.

OriginApp-Shri commented 7 years ago

Hi, I have two thumb drawable with fix_gap =3. Programmatically I need to set value to those thumbs. Please let me know how to set two different values for two thumbs.

comm1x commented 7 years ago

How to change value from code? I have wondered that there is no setter for this obvious method?

Bajranghudda commented 6 years ago

Its working fine

MohammedShehata commented 4 years ago

setMinStartValue(float minValue).setMaxStartValue(float maxValue).apply();

The view is freezed, and the values aren't changed and also can't change it manually. Any Help! Thanks!