title: How do I inflate a shape to draw on a Canvas?
body: <p>I have a shape stored in an xml file in my drawables directory.  I'd like to use it in my Canvas (I know I can define the shape in code, but I'm trying to figure out how to implement it the more "Androidy" way).</p>
  
  <p>I'm at a loss as to the syntax for getting the shape out to the Canvas. Should I be trying to transform it into a Shape or a Drawable? Does it need a Matrix? A Paint? etc.</p>
  
  <p>I don't need a lot of details, just point me in the right direction :)</p>
  
  <p>Thanks.</p>
  
  <p>[edit]
  my Android XML shape looks like this:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="rectangle" &gt;
  &lt;stroke android:width="3px" android:color="#583010"/&gt;
      &lt;solid android:color="#ffffff" /&gt;
      &lt;corners android:bottomRightRadius="3px" android:bottomLeftRadius="3px"
  android:topLeftRadius="3px" android:topRightRadius="3px"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>I'm assuming there must be some way to get that inflated, no?
  [/edit]</p>