I searched a lot about changing fillColor, strokeColor and strokeWidth of a vector that was output but didn't find anything.
This is a vector:
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:viewportWidth="300" android:viewportHeight="300" android:width="300dp" android:height="300dp"> <path android:pathData="M150.412,10.422999999999973,C227.47,10.422999999999973,289.93100000000004,72.81,289.93100000000004,149.771,C289.93100000000004,226.73,227.47,289.119,150.412,289.119,C73.36,289.119,10.893,226.73,10.893,149.771,C10.893,72.81,73.36,10.422999999999973,150.412,10.422999999999973z" android:strokeLineJoin="round" android:strokeWidth="4" android:fillColor="#00000000" android:strokeColor="#010101" android:strokeMiterLimit="10" />
If I want to change my FillColor, StrokeColor and StrokeWidth using Xml, then the code for this would be as follows:
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:viewportWidth="300" android:viewportHeight="300" android:width="300dp" android:height="300dp"> <path android:pathData="M150.412,10.422999999999973,C227.47,10.422999999999973,289.93100000000004,72.81,289.93100000000004,149.771,C289.93100000000004,226.73,227.47,289.119,150.412,289.119,C73.36,289.119,10.893,226.73,10.893,149.771,C10.893,72.81,73.36,10.422999999999973,150.412,10.422999999999973z" android:strokeLineJoin="round" android:strokeWidth="10" android:fillColor="#f50d0d" android:strokeColor="#f1e904" android:strokeMiterLimit="10" />
How can I achieve this programmatically using Java code?