You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not too sure if this is already posted, but I had faced a problem.
Suppose, I had range of 0-2, so when I moved the left seekbar 25%, it used to
give min and max range as 0 and 2 but used to stay at 25% (which is confusing
for the users, it should move to 1 (50%) or 0 ideally). So the below code sets
the min and max value of seekbar once the seekbar is adjusted. And special
thanks to the developer for providing the range seek bar. It is simply awesome.
final RangeSeekBar<Double> seekBar = new RangeSeekBar<Double>(0.0,
iMatches*1.0, context);
seekBar.setOnRangeSeekBarChangeListener(new OnRangeSeekBarChangeListener<Double>() {
@Override
public void onRangeSeekBarValuesChanged(RangeSeekBar<?> bar, Double minValue, Double maxValue) {
// handle changed range values
minValue = (double) Math.round(minValue);
maxValue = (double) Math.round(maxValue);
Log.i("Yoooo", "User selected new range values: MIN=" + minValue + ", MAX=" + maxValue);
seekBar.setSelectedMinValue(minValue);
seekBar.setSelectedMaxValue(maxValue);
}
});
Original issue reported on code.google.com by [email protected] on 6 Sep 2013 at 10:33
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 6 Sep 2013 at 10:33The text was updated successfully, but these errors were encountered: