I was looking at the documentation for GradientColor https://developer.android.com/reference/android/R.styleable.html#GradientColor . How can I define a gradient color in XM
I'm not sure about this, but according to this document:
android:strokeColor Specifies the color used to draw the path outline. May be a color or, for SDK 24+, a color state list or a gradient color (See GradientColor and GradientColorItem). If this property is animated, any value set by the animation will override the original value. No path outline is drawn if this property is not specified.
if your sdk is <24 it should just be one color.
on the other hand if your sdk is greater than 24, i think that it would be beter to use
to fill your path instead of