syedowaisali / crystal-range-seekbar

538 stars 170 forks source link

Min and Max values are not getting #159

Closed shylendramadda closed 3 years ago

shylendramadda commented 3 years ago

I am using it in one of my app where I used Kotlin with this syntax:

<com.crystal.crystalrangeseekbar.widgets.BubbleThumbRangeSeekbar
                android:id="@+id/rangeSeekBar"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:bar_color="#F7BB88"
                app:bar_highlight_color="#E07416"
                app:corner_radius="10"
                app:data_type="_integer"
                app:left_thumb_image="@drawable/dot_icon"
                app:left_thumb_image_pressed="@drawable/dot_icon"
                app:max_value="100"
                app:min_value="0"
                app:right_thumb_image="@drawable/dot_icon"
                app:right_thumb_image_pressed="@drawable/dot_icon"
                app:steps="1" />
rangeSeekBar.setOnRangeSeekbarChangeListener { minValue, maxValue ->
            minTv.text = minValue.toString()
            maxTv.text = maxValue.toString()
        }

I can able to see the range seek bars but when I drag I am not getting the minValue and maxValue are updating in text.

shylendramadda commented 3 years ago

I am using it in one of my app where I used Kotlin with this syntax:

<com.crystal.crystalrangeseekbar.widgets.BubbleThumbRangeSeekbar
                android:id="@+id/rangeSeekBar"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:bar_color="#F7BB88"
                app:bar_highlight_color="#E07416"
                app:corner_radius="10"
                app:data_type="_integer"
                app:left_thumb_image="@drawable/dot_icon"
                app:left_thumb_image_pressed="@drawable/dot_icon"
                app:max_value="100"
                app:min_value="0"
                app:right_thumb_image="@drawable/dot_icon"
                app:right_thumb_image_pressed="@drawable/dot_icon"
                app:steps="1" />
rangeSeekBar.setOnRangeSeekbarChangeListener { minValue, maxValue ->
            minTv.text = minValue.toString()
            maxTv.text = maxValue.toString()
        }

I can able see the range seek bars but when I drag I am not getting the minValue and maxValue are updating in text.

Sorry, it was my mistake I missed calling this function from the presenter(used MVP design pattern).