I am trying to set different color to the rounded progress bar. Below is my code..
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5dip" />
<solid android:color="@color/purple" />
</shape>
</clip>
<color android:color="@color/purple" />
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="5dip" />
<solid android:color="@color/purple" />
</shape>
</clip>
<color android:color="@color/purple" />
</item>
</layer-list>
<ProgressBar
android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:progressDrawable="@drawable/progress_bar"
android:visibility="visible" />
But this is not working. Still the progress bar is showing with gray color. Please help me, where i am going wrong?