Skip to content

Instantly share code, notes, and snippets.

@zmalltalker
Created April 26, 2017 08:23
Show Gist options
  • Save zmalltalker/cf19c6c712516fbbf6a462572971fc55 to your computer and use it in GitHub Desktop.
Save zmalltalker/cf19c6c712516fbbf6a462572971fc55 to your computer and use it in GitHub Desktop.
SVG from Sketch to Android
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="31dp"
android:height="183dp"
android:viewportWidth="31"
android:viewportHeight="183">
<path
android:fillColor="#902e2e"
android:pathData="M0 0h31v183H0z " />
<path
android:strokeColor="#979797"
android:pathData="M.5 .5 h30v182H.5z " />
</vector>
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8"?>
<svg width="31px" height="183px" viewBox="0 0 31 183" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
<title>Rectangle</title>
<desc>Created with Sketch.</desc>
<defs>
<rect id="path-1" x="0" y="0" width="31" height="183"></rect>
</defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Rectangle">
<use fill="#902E2E" fill-rule="evenodd" xlink:href="#path-1"></use>
<rect stroke="#979797" stroke-width="1" x="0.5" y="0.5" width="30" height="182"></rect>
</g>
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment