Today, in the page display of modifying the progress bar, write a drawable according to the online saying as follows:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background" android:drawable="@drawable/slide_bg" />
<item android:id="@android:id/progress" android:drawable="@drawable/slide"/item>
</layer-list>
At this time, my progress bar showed only the following slide, which was not feasible after trying for a long time. Finally, after many searches, I finally determined that the above xml should be written like this:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background" android:drawable="@drawable/slide_bg" />
<item android:id="@android:id/progress">
<clip android:drawable="@drawable/slide"/>
</item>
</layer-list>
It's ok to modify it to the following way, and you're done!