I want to create a circular progress bar for that I created a drawable, but I can't integrate a background color for the unprogressed part.
this is the drawable code :
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
    <item android:id="@android:id/background">
        <shape  xmlns:android="http://schemas.android.com/apk/res/android"
            android:innerRadiusRatio="3"
            android:shape="ring"
            android:thickness="8dp"
            android:useLevel="true">
            <solid android:color="@color/second_grey"/>
        </shape>
    </item>
    <item  android:id="@android:id/progress">
        <clip>
            <shape
                android:innerRadiusRatio="3"
                android:shape="ring"
                android:thickness="8dp"
                android:useLevel="true">
                <gradient android:type="sweep"
                    android:useLevel="false"
                    android:startColor="@color/blue"
                    android:centerColor="@color/green"
                    android:endColor="@color/magenta"
                    android:angle="0"/>
            </shape>
        </clip>
    </item>
</layer-list>
Background view not displaying properly.
 
     
    