title: Translate normal SVG file into android convenient SVG
body: <p>I´ve created a SVG file using Inkscape.
  However it seems like Vector Asset Studio doesn´t work with "random" local SVG files, containing unsupported features. (as described <a href="http://developer.android.com/tools/help/vector-asset-studio.html#svg" rel="nofollow">here</a>) </p>
  
  <p>There´s no problem choosing Material Icons directly, which I´ve done before.
  If you choose downloaded local versions of them, you also get an empty preview image.
  So the Material icons which are internally used have an entirely new shortened layout.</p>
  
  <p>The question is, how to translate "normal" SVGs into "android" SVGs (with vector tag).
  I´ve found no docs on it (maybe cause it´s a new feature). Especially the android:pathData String seems to be calculated out of the two path d-attributes.</p>
  
  <p>Can someone help me translating this already shortened normal SVG file into an android convenient one and explain how the pathData attribute is calculated?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;svg
     xmlns="http://www.w3.org/2000/svg"
     viewBox="0 0 48 48"
     height="48"
     width="48"&gt;
    &lt;path
       fill="none"
       d="M0 0h48v48H0z" /&gt;
      &lt;path
         d="M 24.320312 3.9550781 C 21.710313 3.9550781 19.509453 5.6350781 18.689453 7.9550781 L 10.320312 7.9550781 C 8.1103138 7.9550781 6.3203125 9.745079 6.3203125 11.955078 L 6.3203125 39.955078 C 6.3203125 42.165078 8.1103138 43.955078 10.320312 43.955078 L 38.320312 43.955078 C 40.530313 43.955078 42.320312 42.165078 42.320312 39.955078 L 42.320312 11.955078 C 42.320312 9.745079 40.530313 7.9550781 38.320312 7.9550781 L 29.949219 7.9550781 C 29.129219 5.6350781 26.930312 3.9550781 24.320312 3.9550781 z M 24.320312 7.9550781 C 25.420313 7.9550781 26.320312 8.8450781 26.320312 9.9550781 C 26.320312 11.065078 25.420313 11.955078 24.320312 11.955078 C 23.220312 11.955078 22.320312 11.065078 22.320312 9.9550781 C 22.320312 8.8450781 23.220313 7.9550781 24.320312 7.9550781 z M 25.53125 13.337891 L 27.794922 15.603516 L 14.994141 28.402344 L 8.59375 22.001953 L 10.857422 19.738281 L 14.994141 23.875 L 25.53125 13.337891 z M 23.130859 24.044922 L 39.130859 24.044922 L 39.130859 27.246094 L 23.130859 27.246094 L 23.130859 24.044922 z M 23.130859 30.445312 L 39.130859 30.445312 L 39.130859 33.646484 L 23.130859 33.646484 L 23.130859 30.445312 z M 23.130859 36.845703 L 34.332031 36.845703 L 34.332031 40.044922 L 23.130859 40.044922 L 23.130859 36.845703 z " /&gt;
  &lt;/svg&gt;
  </code></pre>