Open gmacdev opened 3 years ago
Hey, I'm using the range seekbar and I've set the value as shown below:
XML:
<com.crystal.crystalrangeseekbar.widgets.CrystalRangeSeekbar android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="16dp" android:layout_marginEnd="16dp" android:layout_marginBottom="6dp" app:bar_color="@color/grey" app:bar_highlight_color="@color/white" app:corner_radius="20" app:data_type="_integer" app:left_thumb_color="@color/blue" app:left_thumb_color_pressed="@color/white" app:right_thumb_color="@color/blue" app:right_thumb_color_pressed="@color/white" />
Code:
seek_bar .setMaxValue(449755406) .setMaxStartValue(449755406) .setMinValue(32) .setMinStartValue(32) .apply(); seek_bar.setOnRangeSeekbarChangeListener((minValue, maxValue) -> { start_text.setText(String.valueOf(minValue)); end_text.setText(String.valueOf(maxValue)); });
maxValue
setOnRangeSeekbarChangeListener
449755392
449755406
Here's the screenshot
This doesn't happen for all numbers but only for some, like in this case 449755406. Am I doing something wrong or is this a bug?
Here's a demo project.
Perfect, it's working great. it's save my time. @gmacdev (y)
Hey, I'm using the range seekbar and I've set the value as shown below:
XML:
Code:
But the
maxValue
undersetOnRangeSeekbarChangeListener
is449755392
which is wrong. It should be449755406
.Here's the screenshot![Screenshot_20201231-072849__01](https://user-images.githubusercontent.com/24245103/103390483-b31ada80-4b3a-11eb-9a4d-810a1e2357a3.jpg)
This doesn't happen for all numbers but only for some, like in this case
449755406
. Am I doing something wrong or is this a bug?