title: Align two buttons horizontally
body: <p>I have two buttons and I want to put them horizontally so the screen they will be beside each other, there is not space left, I know I can do it with linearlayout and set weight but I want relativelayout because I already have weight in my XML so it will be bad performance to put two weights in each other.</p>
  
  <p> I tried like this</p>
  
  <pre><code>&lt;RelativeLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/bg_selector" &gt;
  
      &lt;Button
          android:id="@+id/b_orderMeal_send"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_marginLeft="4dip"
          android:layout_marginRight="4dip"
          android:background="@drawable/button_selector"
          android:clickable="true"
          android:focusable="true"
          android:text="@string/b_send"
          android:textColor="#FFFFFF" /&gt;
  
      &lt;Button
          android:id="@+id/b_orderMeal_cancel"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_centerHorizontal="true"
          android:layout_marginLeft="4dip"
          android:layout_marginRight="4dip"
          android:background="@drawable/button_selector"
          android:clickable="true"
          android:focusable="true"
          android:text="@string/b_cancel"
          android:textColor="#FFFFFF" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>But just the cancel button is appeard and that is because I used "fill parent", what is the solution please?</p>