Is it possible to chamfer the progress bar on Android without writing my own class of the progress bar?
Current look:
Desired look:
This is how my drawable looks at the moment:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/border">
<shape android:shape="rectangle">
<padding android:bottom="2dp"
android:left="2dp"
android:right="2dp"
android:top="2dp" />
<corners android:radius="12dp" />
<solid android:color="#ffffff" />
</shape>
</item>
<item android:id="@android:id/background">
<shape android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="#e0e0e0" />
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="#b3e5fc" />
</shape>
</clip>
</item>
<item android:id="@android:id/progress">
<clip>
<shape android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="#7ed9f0" />
</shape>
</clip>
</item>
</layer-list>