Search code examples
androidseekbarandroid-vertical-seekbar

How to make a vertical range seekbar?


I have a application which needs a vertical range seekbar which has two thumbs for adjusting the position.I have no idea how to make a one. Please help me out.. Similar to this seekbar.

enter image description here


Solution

  • ok I found this library:

    https://github.com/edmodo/range-bar

    <com.edmodo.rangebar.RangeBar
            android:id="@+id/rb"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:rotation="90"
            app:tickCount="16"
             />
    

    int left_index = rb.getLeftIndex();

    int right_index = rb.getRightIndex();

    hope it will be usefull