Monday, October 17

Discrete Seekbar without third party library


If you want to implement discrete seekbar with number of gaps without using third party library then use style property of seekbar. 

<SeekBar
     android:id="@+id/sb"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:max="10"
     android:thumb="@drawable/ic_location"
     android:theme="@style/Widget.AppCompat.SeekBar.Discrete" />





1 comment:

  1. Thanku... How can I make the thumb above the line?

    ReplyDelete