title: Android custom background xml send attribute
body: <p>I have the following xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;solid android:color="#FFFFFF"/&gt;
      &lt;corners android:radius="10dp"/&gt;
      &lt;padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" /&gt; 
  &lt;/shape&gt;
  </code></pre>
  
  <p>as you can see, all it is, is a shape with rounded corners. I use it for background in activity layouts as follows:</p>
  
  <pre><code>android:background="@drawable/rounded_corners"
  </code></pre>
  
  <p>The shape in the file is currently set to white. In different layouts I need different colors. Do I need to create a different shape xml file for each color? I need a way to just specify in the layout what color to send to the background, and that way I can use the same xml for any color I want.</p>
  
  <p>Thanks.</p>