-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid fillType="evenOdd" in Android vector drawables. #28
Comments
It turns out that I can just remove the attribute for the two pin icons and they just render fine. |
Oh yeah, I remember you mentioned this @pocmo. Let me look into this! |
After some research it seems that there is no easy fix that doesn't require manual work. A possible alternative solution would be to export drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi, and drawable-xxxhdpi for products on Android API < 24. Would that work @pocmo? |
Generating PNGs comes with a big APK size hit and it makes it almost pointless to use SVGs on the other platforms. |
@pocmo, I'll try to figure something else out 🙂 |
What about having a |
I wanted to import this vector drawable:
https://github.com/FirefoxUX/photon-icons/blob/master/icons/android/pin-outline-24.xml
Android Studio warns me that it uses fillType="evenodd" which is only supported on API level 24 and higher. Most of our apps have a minSdkVersion of 21.
The text was updated successfully, but these errors were encountered: