0

I have a xml shape in drawable folder

<shape 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:shape="rectangle">

    <corners android:radius="0dp" />
    <solid android:color="@color/very_light_gray" />
    <stroke
        android:width="1dip"
        android:color="@color/dark_gray" />
</shape>

how can i change very_light_gray and dark_gray color programmatically? is there any way? Is this possible with overriding shape class and using overrided class instead of shape in xml?

KTG
  • 345
  • 1
  • 4
  • 8

0 Answers0