Clarify problem with rounded corners in Android Studio (#514)

Android Studio works fine with rounded corners; it just doesn't like percentage length values (or any other values with a unit identifier). Any of the following optional unit identifiers would prevent converting SVGs to Android Vector Drawables: `("em" | "ex" | "px" | "in" | "cm" | "mm" | "pt" | "pc" | "%")`.

I used 77 as a close approximation for 15% of 512.
This commit is contained in:
Daniel Ziegenberg
2021-01-04 18:23:02 +01:00
committed by GitHub
parent 94eee2ef3c
commit 110f26dc9d

View File

@@ -514,7 +514,9 @@ They are converted using Android Studio and are **not** guaranteed to be under 1
To convert in Android Studio, go to Tools ➡ Resource Manager ➡ Drawable ➡ + ➡ Import Drawables ➡ then select the SVGs.
*Note* Android Studio doesn't like rounded corners. Before importing, run `sed -i '/rx\=\"15\%\"/d' ./*.svg`
*Note* Android Studio doesn't like rounded corners with a percentage length value. Before importing, run `sed -i '/rx\=\"15\%\"/d' ./*.svg` to remove the corner or `sed -i -e '/rx\=/s/\"15\%\"/\"77\"/' ./*.svg` to replace the percentage length value with a corresponding fixed length value.
See: https://issuetracker.google.com/issues/176694227
## Submitting Icons