0

I have been trying to make custom Seekbar,but I couldn't make it properly. Please watch image and guide me how to do it.enter image description here

I have done up to here please watch my progress in 2 image.But I have big white space columns around Seekbar. I have followed this question David answer from Android: SeekBar with custom drawable . enter image description here

Lokesh
  • 316
  • 3
  • 14

1 Answers1

0

All you need to do is to add custom drawable for your Seekbar. You need Seekbar background image and thumb image which you can store into Drawable folder.

Create custom xml as below

<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

     <item
     android:id="@+id/SecondaryProgress"
     android:drawable="@drawable/progress_two"/>

</layer-list>

Use above custom xml file into Seekbar

 <SeekBar
 android:id="@+id/seekBar1"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:layout_alignParentLeft="true"
 android:layout_centerVertical="true"
 android:thumb="@drawable/drag_thumb"
 android:progressDrawable="@layout/custom_seekbar_layout"
 android:max="100" />
Kuls
  • 2,047
  • 21
  • 39