Setting opacity to a shape
<p>I have a shape like this:</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;stroke
  android:width="1dp"
  android:color="#d5dce5" /&gt;

&lt;corners android:radius="5dp" /&gt;

&lt;gradient
  android:angle="270"
  android:centerColor="#e7eff8"
  android:endColor="#e9f0f8"
  android:startColor="#e0e8f1" /&gt;


&lt;/shape&gt;
</code></pre>

<p>Which I include in my layout like this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

....

  &lt;LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/rectangle"
        android:layout_width="276dp"
        android:layout_height="wrap_content"
        android:background="@drawable/rectangle"
        android:layout_gravity="center_horizontal"&gt;
  &lt;/LinearLayout&gt;

....

&lt;/LinearLayout&gt;
</code></pre>

<p>How can I set the opacity of this shape to 50 % ? Is it possible? </p>
