title: WebView with buttons on the bottom
body: <p>Seems pretty simple, but ust can't get this right. Looked at a ton of examples, but I either get the button(s) filling the whole screen or the webview filling the whole screen. I want it to look like this (with the webView filling the screen no matter what the resolution) except that the bottom would have 2 buttons (Yeah they are ugly but I will fix that later):</p>
  
  <p><a href="https://i.stack.imgur.com/b9tJj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b9tJj.jpg" alt="enter image description here"></a></p>
  
  <p>The XML currently:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/ssoViewerLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
         &lt;WebView
             android:id="@+id/ssoViewer"
             android:layout_width="fill_parent"
             android:layout_height="fill_parent"
             android:layout_weight="0"/&gt;   
  
          &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:tools="http://schemas.android.com/tools"
              android:layout_width="fill_parent"
              android:layout_height="match_parent"
              android:orientation="horizontal"
              android:layout_height="0dip"
              android:layout_weight="1"
              android:gravity="center|bottom"&gt;      
  
              &lt;Button
                  android:id="@+id/cancelSSO"
                  android:layout_marginTop="16dp"
                  android:layout_width="125dp"
                  android:layout_height="55dp"
                  android:layout_margin="5dp"
                  android:onClick="cancelSSOClick"
                  android:text="Cancel Login"
                  android:background="@drawable/button_login" /&gt;
              &lt;Button
                  android:id="@+id/resetSSO"
                  android:layout_marginTop="16dp"
                  android:layout_width="125dp"
                  android:layout_height="55dp"
                  android:layout_margin="5dp"
                  android:onClick="resetSSOClick"
                  android:text="Reset SSO"
                  android:background="@drawable/button_login"/&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Thanks to Arpit Ratan's answer, with a couple modifications got it to work. The final XML looks like:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:tools="http://schemas.android.com/tools"
              android:id="@+id/ssoViewerLayout"
              android:layout_width="match_parent"
              android:layout_height="match_parent" &gt;
  
              &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:tools="http://schemas.android.com/tools"
                  android:id="@+id/button_layout"
                  android:layout_width="match_parent"
                  android:orientation="horizontal"
                  android:layout_height="wrap_content"
                  android:gravity="center|bottom"
                  android:layout_alignParentBottom="true"&gt;      
  
                  &lt;Button
                      android:id="@+id/cancelSSO"
                      android:layout_marginTop="16dp"
                      android:layout_width="125dp"
                      android:layout_height="55dp"
                      android:layout_margin="5dp"
                      android:onClick="cancelSSOClick"
                      android:text="Cancel Login"
                      android:background="@drawable/button_login" /&gt;
                  &lt;Button
                      android:id="@+id/resetSSO"
                      android:layout_marginTop="16dp"
                      android:layout_width="125dp"
                      android:layout_height="55dp"
                      android:layout_margin="5dp"
                      android:onClick="resetSSOClick"
                      android:text="Reset SSO"
                      android:background="@drawable/button_login"/&gt;
          &lt;/LinearLayout&gt;
       &lt;WebView
                 android:id="@+id/ssoViewer"
                 android:layout_width="fill_parent"
                 android:layout_height="fill_parent"
                 android:layout_above="@id/button_layout" /&gt;  
      &lt;/RelativeLayout&gt;
  </code></pre>