I want to change a button that has a shape with a color set:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="@color/custom"/>
<corners android:bottomLeftRadius="10dp"/>
</shape>
and in my colors list resources I have <color name="custom">#A281E0</color>
.
Is it possible to programmatically change the color of custom? Thanks in advance