效果图如下:
首先背景图片如下,底层是背景,上层是进度条颜色
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:radius="6dp" />
<solid android:color="#23252c" />
</shape>
</item>
<item android:width="0dp" android:id="@+id/progress_bg">
<shape android:shape="rectangle">
<gradient android:startColor="#006580df"
android:endColor="#ff6580df"
android:angle="0"/>
<corners androi