syedowaisali / crystal-range-seekbar

537 stars 164 forks source link

Is i possible to change the size of the thumbs? #78

Closed jofrb closed 6 years ago

jofrb commented 6 years ago

Sorry to bother with this perhaps obvious question. I could not find anything in the documentation nor in the previously asked question so i'm just throwing it out there.

I would prefer to do it in XML but programatically is fine otherwise. Thought the "app:corner_radius" would do something for me but it've gotten me nowhere so far.

This is what i got so far:

<com.crystal.crystalrangeseekbar.widgets.CrystalRangeSeekbar
                android:id="@+id/rbDistanceBar"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/marginMain"
                app:bar_color="@color/colorNoHighlight"
                app:bar_highlight_color="@color/colorBrand"
                app:corner_radius="10"
                app:data_type="_integer"
                app:gap="20"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@id/tvDistanceValue"
                app:left_thumb_color="@color/colorBrand"
                app:left_thumb_color_pressed="@color/colorBrandDark"
                app:max_value="160"
                app:min_value="0"
                app:right_thumb_color="@color/colorBrand"
                app:right_thumb_color_pressed="@color/colorBrandDark"
                app:steps="5" />

Any help is much appreciated:)

jofrb commented 6 years ago

Duplicate of #44 and #23 This is what I'm looking for but it doen't work to use the parameter thumb_diameter as described.

ghost commented 6 years ago

Can you please stop closing the issues without answering whether this feature exists or not