I have a selector
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
>
<shape android:shape="rectangle">
<solid android:color="@color/red"/>
<corners android:radius="10dp" />
</shape>
</item>
</selector>
I want to set the solid color and stroke color programatically in this selector.How to achieve that.