注意是否在vector里设置了 android:fillType="evenOdd",有的话把它删掉
有问题的代码:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="12dp"
android:height="11dp"
android:viewportWidth="12"
android:viewportHeight="11">
<path
android:fillColor="#00000000"
android:fillType="evenOdd"
android:pathData="M1.2696,1.6109L10.159,9.3891"
android:strokeWidth="2"
android:strokeColor="#FF3B30"
android:strokeLineCap="round" />
<path
android:fillColor="#00000000"
android:fillType="evenOdd"
android:pathData="M10.159,1.6109L1.2696,9.3891"
android:strokeWidth="2"
android:strokeColor="#FF3B30"
android:strokeLineCap