I'm trying to create a custom progressBar in my Android app, but I'm stuck in applying the corners on the progress layout.
My code is this:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<solid android:color="@android:color/white" />
</shape>
</item>
<item android:id="@android:id/progress" android:gravity="center">
<clip>
<shape android:shape="rectangle">
<corners
android:bottomRightRadius="20dp"
android:topRightRadius="20dp" />
<solid android:color="#026B91" />
</shape>
</clip>
</item>
And the layout result from the code:
I can't seem to do the round corner from the progress layout, I tried different approaches but nothing works. What am I missing? Thanks