title: Android: Put two buttons side by side in RelativeLayout
body: <p>I have a <code>RelativeLayout</code> with two buttons at bottom which are side by side. My goal is to have those buttons side by side but filling the screen width. Can somebody tell me how to do it?</p>
  
  <p>My layout file is:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
  android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"&gt;
  
      &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Left Button"
      android:id="@+id/button"
      android:layout_alignParentTop="false"
      android:layout_weight="1"
      android:layout_marginTop="77dp"
      android:layout_alignParentLeft="true"
      android:layout_alignParentBottom="true"
      android:layout_alignParentEnd="false"
      android:layout_alignParentStart="false" /&gt;
  
      &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Right Button"
      android:id="@+id/button2"
      android:layout_weight="1"
      android:layout_toRightOf="@id/button"
      android:layout_alignParentBottom="true"
      android:layout_alignParentEnd="false"
      android:layout_alignParentStart="false" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>