自定义彩色进度条SeekBar
把seekBar的颜色换成一个渐变的效果
progressDrawable属性就是配置layer-list的渐变颜色
thumb就是seekbar的拖动按钮,可以换成一个图片
<SeekBar
android:id="@+id/sb_progress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:progressDrawable="@drawable/img_progress_line"
android:thumb="@drawable/icon_color" />
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<solid android:color="#2B2B2B" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<gradient
android:endColor="@color/color_single_F48D27"
android:startColor="@color/color_single_2d449f" />
</shape>
</clip>
</item>
</layer-list>