Skip to content

Instantly share code, notes, and snippets.

@dagezi
Last active April 17, 2017 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagezi/98f8cc80bd82e1c0d7fd923eac73393e to your computer and use it in GitHub Desktop.
Save dagezi/98f8cc80bd82e1c0d7fd923eac73393e to your computer and use it in GitHub Desktop.
VectorDrawableの穴を塞がないようにする ref: http://qiita.com/dagezi/items/3fd71a4c4c1cfd9cfcc0
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="40px" height="40px" viewBox="0 0 40 40" version="1.1" >
<path
d="M10,10 30,10 30,30 10,30 Z M15,15 25,15 25,25 15,25 Z"
fill="#ff0000" fill-rule="evenOdd" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="40px" height="40px" viewBox="0 0 40 40" version="1.1" >
<path
d="M10,10 30,10 30,30 10,30 Z M15,15 25,15 25,25 15,25 Z"
fill="#ff0000" fill-rule="evenOdd" />
</svg>
% vbw app/src/main/res/drawable/box_evenodd.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment