title: Android drawable with parameters
body: <p>Is it possible to have something like</p>
  
  <p><strong>drawable/myshape.xml</strong></p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" 
      android:shape="rectangle"&gt;
  
      &lt;solid android:color="{0}" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>and then from java class take this drawable passing values for parameters. Something like</p>
  
  <pre><code>Drawable myshape = ???.getDrawableWithParameters(R.drawable.myshape, 0x00ff00);
  </code></pre>