Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting min & max start value #24

Closed
StobieC opened this issue Dec 1, 2016 · 5 comments
Closed

Setting min & max start value #24

StobieC opened this issue Dec 1, 2016 · 5 comments

Comments

@StobieC
Copy link

StobieC commented Dec 1, 2016

When I set both the min and max start values it sets both thumbs to the lowest values that I've defined in setMaxValue() and setMinValue(). However when I set only the min start value or max start value using setMinStartValue() or setMaxStartValue() it works as expected.

@ryust
Copy link

ryust commented Dec 3, 2016

The comment above seems a big confusing, but I think I may be encountering the same problem.

I have a range seekbar with two thumbs. You can programmatically set the min or max start values individually, but the action will always put both thumbs at the same value. For example, if you issue setMinStartValue(), it sets both min and max values (with the thumbs) at that min value. If you issue, setMaxStartValue() by itself, it sets both to the max value.

Therefore, issuing mRangeSeekbar.setMinStart(x).setMaxStartValue(y).apply() results in both thumbs residing on top of each other at x.

@ryust
Copy link

ryust commented Dec 8, 2016

It appears version 1.1.3 fixes the issue I had and now both min/max start values can be set correctly.

@gfdarcy
Copy link

gfdarcy commented Feb 14, 2017

I am having an issue setting both min and max, like this;
PriceRange.setMinStartValue(40).apply();
PriceRange.setMaxStartValue(120).apply();

Max works fine.

Min, however, has problems, as follows;

  1. the min range (MinValue) changes to 0 (it was previously 20).
  2. The selected min value changes to 0, not 40.

Version 1.1.3 installed

@Gkundu1
Copy link

Gkundu1 commented Sep 26, 2017

The suggestion of @ryust work fine.The bug got resolved for the version 1.1.3

@nzackoya
Copy link

setMaxStartValue is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants