title: How to add padding to gradient <shape> in Android?
body: <p>I have a shape with a gradient that I'm using as a divider between <code>ListView</code> items.  I've defined it as follows:</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;gradient
      android:startColor="#ccd0d3"
      android:centerColor="#b6babd"
      android:endColor="#ccd0d3"
      android:height="1px"
      android:angle="0" /&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>I would like to add 6 pixels of padding on either side of the gradient, so that it doesn't extend from edge to edge of the screen.</p>
  
  <p>However, no matter where I put an <code>android:left="6px"</code> and <code>android:right="6px"</code>, it doesn't seem to take effect.  I can put it in the <code>&lt;shape&gt;</code> element, the <code>&lt;gradient&gt;</code> element, or in a separate <code>&lt;padding&gt;</code> child of <code>&lt;shape&gt;</code>, and it doesn't change anything.</p>
  
  <p>How can I add padding on the left and right of my list divider?</p>