<SeekBar
android:id="@+id/sb"
android:layout_width="500px"
android:layout_height="wrap_content"
android:max="100"
android:progress="0"
android:layout_marginTop="5dp"
android:layout_centerHorizontal="true"
android:progressDrawable="@drawable/seek_drawable"
android:thumb="@drawable/seek_thumb" />
seek_drawable.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 背景图 -->
<item android:drawable="@drawable/f" />
</layer-list>
seek_thumb.xml
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 按下状态 -->
<item android:drawable="@drawable/b"></item>
<!-- 普通无焦点状态 -->
</selector>
转载于:https://www.cnblogs.com/MMLoveMeMM/articles/3472328.html