How to display widget button at bottom of screen.
I want to display Send button at the bottom of the screen.
Attaching the screenshot :
The following the is the layout xml :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="vertical" >
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/to"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/subject"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/message"/>
<Button
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:text="@string/send"/>
</LinearLayout>
Check the button (Send) above i want to display this button at bottom of the screen. what should i do. I have used android:layout_gravity=0.0 for the button widget, but not works.