How to set background image with transparent gradient color in android?
<p>I am newbie in android development. My goal is set the background image with gradient transparent color,I tried many ways but I can't achieve this goal.Can any one help me?. I have attached the sample screen shot.</p>

<p><a href="https://i.stack.imgur.com/jbAjM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jbAjM.jpg" alt="enter image description here"></a></p>

<p>Source Code</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bc"
    android:orientation="vertical"
    android:paddingLeft="20dp"
    android:alpha="0.7"
    android:id="@+id/about"
    android:paddingRight="20dp"
    android:paddingTop="60dp"&gt;

    &lt;android.support.design.widget.TextInputLayout
        android:id="@+id/otp_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:hintTextAppearance="@style/hintStyle"&gt;

        &lt;EditText
            android:id="@+id/mobNo"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="@string/hint_mob"
            android:inputType="number"
            android:singleLine="true"
            /&gt;
    &lt;/android.support.design.widget.TextInputLayout&gt;


    &lt;Button
        android:id="@+id/submit"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="40dp"
        android:background="@color/colorPrimary"
        android:text="@string/submit"
        android:textColor="@android:color/white"/&gt;

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

<p>Advance Thanks.</p>