次のドローアブルを動的に作成して、Circle Progress バー内で使用したいと考えています。
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:pivotX="50%"
android:pivotY="50%"
android:fromDegrees="0"
android:toDegrees="720">
<shape
android:shape="ring"
android:innerRadiusRatio="3"
android:thicknessRatio="8"
android:useLevel="false">
<gradient
android:type="linear"
android:useLevel="false"
android:startColor="@android:color/transparent"
android:centerColor="@color/colorAccent"
android:endColor="@android:color/black"
android:angle="45" />
</shape>
実行時に startColor/centerColor/endColor を変更する必要があるため、動的に作成する必要があります。
ご回答ありがとうございます。