Why isn't my vector drawable scaling as expected?

后端 未结 8 1413
北恋
北恋 2020-11-28 20:18

I am attempting to use vector drawables in my Android app. From http://developer.android.com/training/material/drawables.html (emphasis mine):

In And

8条回答
  •  醉酒成梦
    2020-11-28 20:26

    For me the reason that caused vectors to be converted to png was android:fillType="evenodd" attribute in my vector drawable. When I removed all occurrences of this attribute in my drawable (therefor the default nonzero fill type applied to the vector), next time the app was built everything was fine.

提交回复
热议问题