Vector Drawable as Menu icon
pooyanmajd opened this issue · comments
Pöøyàn commented
It doesn't show vector drawable as menu icon on API 19 with below err:
Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
Dima Warko commented
Hi, @pooyanmajd! Currently this lib doesn't support vector-drawables. Can you use just ordinary drawable?
Pöøyàn commented
Hi @warko-san, I fixed the issue by adding this support for vector-drawable
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);