I create a shape in my drawable with xml. I want this shape in different colors! the only way i know is create xml and change the color! what is the best way? this is my shape:
<shape xmlns:android="http://ift.tt/nIICcg">
<solid android:color="#F44336"/>
<corners android:radius="@dimen/roundedbkgradius"/>
<padding android:left="@dimen/roubdedbkgpadding" android:top="@dimen/roubdedbkgpadding" android:right="@dimen/roubdedbkgpadding" android:bottom="@dimen/roubdedbkgpadding" />
</shape>
for example i want change color to #4CAF50 or something like this.
No comments:
Post a Comment