title: Drawing top border on a semi-transparent shape on Android
body: <p>I want to set the background of my layout to semi-transparent color with top border (not transparent) on it. I tried to achieve this. Currently my drawable file looks like the following: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;solid android:color="#FF0000FF" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item android:top="5dp"&gt;
          &lt;shape&gt;
              &lt;solid android:color="#7F000000" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>But in this xml the semi-transparent shape goes on the non-transparent shape, so in the result it isn't semi-transparent at all. Can you please help me to get the background I want?
  Thanks in advance.</p>