2

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.

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
stack Learner
  • 1,318
  • 3
  • 18
  • 35

0 Answers0