I want to develop custom layout for seekbar below shown. I have track,thumb and progress images . Can any body help me?
Asked
Active
Viewed 3,654 times
1
-
http://stackoverflow.com/a/35308311/2826147 – Amit Vaghela Feb 11 '16 at 04:02
1 Answers
0
XML code
<SeekBar
android:id="@+id/seekBar1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:progressDrawable="@drawable/seek_bar"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:thumb="@drawable/thumbler_small"
android:indeterminate="false" />
seek_bar.xml
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+android:id/SecondaryProgress"
android:drawable="@drawable/first"/>
<item
android:id="@+android:id/progress"
android:drawable="@drawable/second"/>
</layer-list>
first drawable is empty or shown not color full area.
second drawable is fill or color full area.
this link help your more.

duggu
- 37,851
- 12
- 116
- 113
-
sir I am getting error `error: Error: No resource found that matches the given name (at 'id' with value '@+android:id/ SecondaryProgress').` – Maveňツ Aug 19 '15 at 07:35