title: Recreate shape as in xml file by using code and set width programmatically
body: <p>I already have shape code and now I need to draw the same programmatically and set its width according to the length of texts in an array. I am not able to reproduce the same using path data.</p>
  <p>This is the code:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;vector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:viewportWidth=&quot;2778&quot;
      android:viewportHeight=&quot;1250&quot;
      android:width=&quot;250.0002dp&quot;
      android:height=&quot;112.5dp&quot;&gt;
      &lt;path
          android:pathData=&quot;M2764 1250L0 1250 0 0l2256 0 4 4 513 468 4 4 0 774 -14 0 0 0zm-2737 -27l2723 0 0 -736L2245 26 27 26 27 1222Z&quot;
          android:fillColor=&quot;#FF6E00&quot; /&gt;
  &lt;/vector&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/WS8bY.png" rel="nofollow noreferrer">Output shape should be this</a></p>
  <p>Please help me on this..</p>