title: Dividing a RelativeLayout into two halves
body: <p>Hi I have created a RelativeLayout containing 2 buttons, a radio button and a graph view. </p>
  
  <p>I want to display two different data in graph now. </p>
  
  <p>How do I split the RelativeLayout into two halves?</p>
  
  <p>This is my present XML code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;Button
          android:id="@+id/BtnStart"
          android:layout_width="100dip"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_marginTop="5dip"
          android:text="SlaveEnable" /&gt;
  
      &lt;Button
          android:id="@+id/BtnStop"
          android:layout_width="100dip"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_marginTop="5dip"
          android:layout_toRightOf="@id/BtnStart"
          android:text="SlaveDisable" /&gt;
  
      &lt;RadioButton
          android:id="@+id/BtnSaveFile"
          android:layout_width="100dip"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_toRightOf="@id/BtnStop"
          android:text="SaveFile" /&gt;
  
      &lt;helog.diwesh.NugaBest.GraphView
          android:id="@+id/gview"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_above="@id/BtnStart"
          android:layout_alignParentRight="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>