Reputation: 21
I am searching code for seekbar minimum value setting at runtime. taking min value and adding into progress value in progresschanged function will not solve my issue.
My code is having multiple seekbar, second seekbar min value is depend on first seekbar selection value. with adding min value as first seekbar progress value. it is crashing as addition og both was exceeding max value and it is not feasible when i am trying for 6 seekbars.
I have also searched for custom seekbar, where they are providing min and max value setting runtime, but i didnot find progress value.
I didnot understand how google left such widget.Please let me know if any solution is there. In my requirement max value is fix and min value varies based on previos seekbar selection.
Upvotes: 0
Views: 1417
Reputation: 94
Please find the library for custom seek bar.It provides different types of seek bar. You can change bar value programatically using
rangeSeekbar.setMinStartValue(float minValue).apply();
and
rangeSeekbar.setMinStartValue(float minValue).setMaxStartValue(float maxValue).apply();
Upvotes: 1