Android: Relative layout layout
<p>I'm doing this fill-out questions about BMI and I wanna do this in a relative layout inside a linear layout. I don't have a testing device for this so I'm just relying on the graphical layout of the eclipse.</p>

<p><img src="http://i.stack.imgur.com/tfBlj.png" alt="enter image description here"></p>

<p>The 0.0 on the right of the height is the bmi itself I'm just going to put below the weight then after the BMI I'm going to put a dynamic textview then the compute button. Can anyone help? </p>

<p>Here's the XML:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/relativelayoutbmi"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
            android:background="#009900"&gt;
        &lt;TextView 
            android:id="@+id/textviewattributeheight"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/height"/&gt;
        &lt;EditText 
            android:id="@+id/edittextHeightft"
            android:layout_width="50dp"
            android:inputType="numberDecimal|number"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:minWidth="75dip"
            android:layout_toRightOf="@+id/textviewattributeheight"/&gt;
        &lt;TextView 
            android:id="@+id/textviewattributeheightft"
            android:layout_toRightOf="@+id/edittextHeightft"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/feet"/&gt;
        &lt;EditText 
            android:id="@+id/edittextHeightinch"
            android:layout_toLeftOf="@+id/textviewattributeheightinch"
            android:layout_below="@+id/edittextHeightft"
            android:layout_width="50dp"
            android:inputType="numberDecimal|number"
            android:layout_height="wrap_content"/&gt;
        &lt;TextView 
            android:id="@+id/textviewattributeheightinch"
            android:layout_toRightOf="@+id/edittextHeightinch"
            android:layout_below="@+id/textviewattributeheightft"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/inch"/&gt;
        &lt;TextView 
            android:id="@+id/textviewattributeweight"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/weight"/&gt;
        &lt;EditText 
            android:id="@+id/edittextWeight"
            android:layout_toRightOf="@+id/textviewattributeweight"
            android:layout_below="@+id/edittextHeightinch"
            android:layout_width="50dp"
            android:inputType="numberDecimal|number"
            android:layout_height="wrap_content"/&gt;
        &lt;TextView 
            android:id="@+id/textviewattributeweightlbs"
            android:layout_toRightOf="@+id/edittextweight"
            android:layout_below="@+id/textviewattributeheightft"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/lbs"/&gt;
        &lt;TextView 
            android:id="@+id/textviewattributebmi"
            android:layout_below="@+id/textviewattributeweight"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/bmi"/&gt;
        &lt;TextView 
            android:id="@+id/textviewBMI"
            android:layout_toRightOf="@+id/textviewattributebmi"
            android:layout_below="@+id/edittextWeight"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/&gt;
        &lt;TextView 
            android:id="@+id/textviewBMIDescription"
            android:layout_toRightOf="@+id/textviewBMI"
            android:layout_below="@+id/textviewattributeweightlbs"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/&gt;
        &lt;Button 
            android:id="@+id/buttonComputeBMI"
            android:layout_below="@+id/textviewBMI"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/compute"/&gt;
    &lt;/RelativeLayout&gt;

&lt;/LinearLayout&gt;
</code></pre>
