I have my custom progressbar created:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadiusRatio="3"
android:thickness="10dp"
android:useLevel="false">
<solid android:color="@color/lightGrey" />
</shape>
</item>
<item>
<rotate
android:fromDegrees="270"
android:toDegrees="270">
<shape
android:innerRadiusRatio="3"
android:shape="ring"
android:thickness="10dp"
android:useLevel="false">
<gradient
android:angle="0"
android:startColor="@color/grey"
android:endColor="@color/red"
android:type="sweep"
android:useLevel="false" />
</shape>
</rotate>
</item>
so the result is:
but I want to divide it in sections like this:
how can I do this using xml or drawing using canvas? I have to put sections in certain points