title: How to make a drawable Shape programmatically (Android)
body: <p>i'm making a custom TextView (Java class) and i'm having trouble "to translate" the line (on "original TextView" xml)</p>
  
  <pre><code>android:background="@drawable/myDrawableShape"
  </code></pre>
  
  <p>to a java void to change the color of the "myDrawableShape"</p>
  
  <p>myDrawableShape.xml</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  &lt;solid android:color="#ffafafaf" /&gt;
  &lt;corners android:radius="15dp" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'll get the color to set from a String, the void to change the color programmatically could be (for example)</p>
  
  <pre><code>void colorSet(String color)
  </code></pre>
  
  <p>Thanks in advance!</p>