title: How to make two parallel and adjacent lines in Android xml?
body: <p>I'm trying to make a custom list divider.  It has one horizontal line that's a subtle gradient, and a second horizontal white line immediately below it as a sort of "drop shadow".</p>
  
  <p>I'm trying to use <code>&lt;layer-list&gt;</code> to accomplish what I want, but it's not working out the way I expect.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>&lt;layer-list
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;item&gt;
          &lt;shape&gt;
              &lt;gradient
                  android:startColor="#ccd0d3"
                  android:centerColor="#b6babd"
                  android:endColor="#ccd0d3"
                  android:height="1px"
                  android:angle="0" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
      &lt;item android:top="2px"&gt;        
          &lt;shape
              android:color="@android:color/white"
              android:height="1px" /&gt;
      &lt;/item&gt;
  
  
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>If I use <code>android:divider</code> to assign this to a <code>ListView</code> and set the <code>android:dividerHeight="2"</code>, I get a grey gradient that's two pixels high.  The white line is nowhere to be seen.</p>
  
  <p>If I set the white line's <code>android:top="1px"</code>, I see a one pixel grey gradient and a one pixel black line below it.</p>
  
  <p>Any ideas what I'm doing wrong?</p>