I have this drawable shape.xml that looks like this nothing special:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4dp"/>
<solid android:color="?colorPrimary"/>
</shape>
When I run on below api 21 it crashed since I think it´s not supported to use
the "?colorPrimary".
The user can select different themes right so what can I use instead of the "?colorPrimary" on below api 21?
If I set it like this:
<solid android:color="@color/colorPrimary" />
then I will set same color for all my themes and that´s not desirable.
In my styles.xml I have like 10 different themes user can select.
I understand I must move the drawable shape.xml into the drawable-v21 folder but how should I change the same shape.xml above in the default drawable folder to give me same functionality?