I have a thick circle with a transparent centre:
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="@android:color/transparent"/>
<stroke
android:width="24dp"
android:color="@android:color/white"/>
<size
android:width="72dp"
android:height="72dp"/>
</shape>
and would like to animate a reduction in the stroke value so the transparent center dilates, like an iris.
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator
android:propertyName="????"
android:valueFrom="24dp"
android:valueTo="4dp"
android:duration="750"
/>
</set>
... but I don't know what to specify as the property name. "strokeWidth" doesn't seem to work. I'm not even sure how to pull it off programatically because GradientDrawable.setStroke() requires both a width and a color and objectAnimator can only manipulate single parameter properties.