Can I override some attribute of drawable shape?
问题 I have two buttons, they are same shape, only color is different b1.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:radius="10dp" /> <stroke android:width="5px" android:color="#000000" /> <solid android:color="#ff0000"/> </shape> b2.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:radius