title: android:layout_below= does not place item below
body: <p>I have an editText and a textView which I'm attempting to set below an imageView however the parameter  android:layout_below= does not place item below. </p>
  
  <p>How might this be avoided? </p>
  
  <p>Also I'm setting      android:layout_alignParentRight="true" on the textView, editText and imageView and that does not seem to be working either. </p>
  
  <h2> XML</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;com.example.project.DragLayer xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
      android:id="@+id/drag_layer"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@android:color/black" &gt;
  
      &lt;LinearLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical"
              android:weightSum="1.0" &gt;
  
              &lt;GridView
                  android:id="@+id/image_grid_view"
                  android:layout_width="wrap_content"
                  android:layout_height="fill_parent"
                  android:layout_weight="0.8"
                  android:background="@color/grid_background"
                  android:gravity="center"
                  android:horizontalSpacing="2dip"
                  android:numColumns="@integer/num_columns"
                  android:stretchMode="columnWidth"
                  android:verticalSpacing="2dip" /&gt;
  
              &lt;RelativeLayout
                  android:id="@+id/bottom_part"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_centerHorizontal="true"
                  android:layout_weight="0.2"
                  android:background="@android:color/black"
                  android:orientation="horizontal"
                  android:weightSum="1.0" &gt;
  
                  &lt;Button
                      android:id="@+id/button_add_image"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerHorizontal="true"
                      android:onClick="onClickAddImage"
                      android:text="Add image" /&gt;
  
                  &lt;com.example.project.DeleteZone
                      android:id="@+id/delete_zone_view"
                      android:layout_width="60dp"
                      android:layout_height="60dp"
                      android:layout_gravity="center"
                      android:src="@drawable/delete_zone" /&gt;
  
                  &lt;FrameLayout
                      android:id="@+id/image_source_frame"
                      android:layout_width="80dp"
                      android:layout_height="200dp"
                      android:layout_weight="0.5" &gt;
  
                      &lt;RelativeLayout
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                           &gt;
  
                          &lt;ImageView
                              android:id="@+id/sqwhite"
                              android:layout_width="20dp"
                              android:layout_height="20dp"
                              android:layout_alignParentRight="true"
                              android:layout_gravity="right"
                              android:layout_marginRight="5dp" /&gt;
  
                          &lt;EditText
                              android:id="@+id/editText1"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_alignParentRight="true"
                              android:layout_below="@id/sqwhite"
                              android:layout_marginRight="5dp" &gt;
  
                              &lt;requestFocus /&gt;
                          &lt;/EditText&gt;
  
                          &lt;TextView
                              android:id="@+id/textView1"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_alignParentRight="true"
                              android:layout_below="@id/editText1"
                              android:layout_marginRight="5dp"
                              android:text=""
                              android:textColor="@android:color/white" /&gt;
                      &lt;/RelativeLayout&gt;
                  &lt;/FrameLayout&gt;
              &lt;/RelativeLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/com.example.project.DragLayer&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/91QyH.png" alt="enter image description here"></p>