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.
Source Code
<?xml version="1.0" encoding="utf-8"?>
<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">
<android.support.design.widget.TextInputLayout
android:id="@+id/otp_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hintTextAppearance="@style/hintStyle">
<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"
/>
</android.support.design.widget.TextInputLayout>
<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"/>
</LinearLayout>
Advance Thanks.