I experienced the strange effect associated with shapes with lib support attributes. I have a code that crashes every time during inflation.
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <size android:width="26dp" android:height="26dp"/> <solid android:color="?attr/colorPrimary"/>
Note. I used? attr / colorPrimary as color. If i use
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <size android:width="26dp" android:height="26dp"/> <solid android:color="@color/primary"/>
It works great without any glitches. The problem is only in devices with a lower version of Android than 5.0. I am using the following lib support
compile 'com.android.support:support-v4:22.2.1'
Has anyone found a reason why this is happening? Is this a bug in the support library?
source share