title: glass like background color in android
body: <p>I am creating an app, where  i am creating a layout like this image,</p>
  
  <p><img src="https://i.stack.imgur.com/lIK73.jpg" alt="glassy Look"></p>
  
  <p>but i want that the upper part of the image should be of some other color, but the color should be transparent, so that the background should be visible from that color.
  I am using a style xml for this,</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;stroke android:width="2dp" android:color="#FFFFFFFF" /&gt;
       &lt;gradient android:startColor="#DD000000" android:endColor="#DD2ECCFA" 
              android:angle="225"/&gt; 
  
      &lt;corners android:bottomRightRadius="7dp" android:bottomLeftRadius="7dp" 
       android:topLeftRadius="7dp" android:topRightRadius="7dp"/&gt; 
  &lt;/shape&gt; 
  </code></pre>
  
  <p>But it is creating a color layout that is not transparent and the background is not visible from this color. suggest some tips to make the color transparent, so that i can attain a glassy look for layout.</p>