Basically, I had to split the progress_bar_layout.xml graphic file for each element, so one file with progress settings and another for background settings. And then I added them to the corresponding elements.
android:background="@drawable/circle_shape" android:progressDrawable="@drawable/circular_progress_bar" />
Using a list of layers, the project did not find the background settings, so this approach solved my problem.
circle_shape.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadius="60dp" android:shape="ring" android:thickness="10dp" android:useLevel="false"> <solid android:color="@color/blue"></solid> </shape>
circular_progress_bar.xml
<?xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="270" android:toDegrees="270"> <shape android:innerRadius="60dp" android:shape="ring" android:thickness="10dp" android:useLevel="true"> <solid android:color="@color/blue"></solid> </shape> </rotate>
source share