title: Android RelativeLayout -- how to position?
body: <p>I want a Layout like this:
  <img src="https://i.stack.imgur.com/rUgE6.jpg" alt="Desired layout"></p>
  
  <p>But my code doesn't work. I can't achieve this Layout, and I don't know what is wrong with what I've done so far.</p>
  
  <p>Here's what I have so far -- Is the layout_gravity OK? Or does it need to be set it in the <code>RelativeLayout</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_height="fill_parent" 
      android:layout_width="fill_parent"&gt;
  
      &lt;RelativeLayout     
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="vertical"&gt;
  
          &lt;TextView
              android:id="@+id/topText"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textSize="20dip"
              android:layout_gravity="top" /&gt;
  
          &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/centerLayout"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="horizontal"
              android:layout_below="@id/topText"&gt;     
  
              &lt;ImageButton
                  android:id="@+id/lektionBackButton"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
  
                  android:src="@drawable/back"
                  android:layout_gravity="left"/&gt;  
              &lt;ImageView
                  android:id="@+id/centerImage"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:cropToPadding="true"
                  android:layout_gravity="center"/&gt;
              &lt;ImageButton 
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:id="@+id/lektionForwardButton"
                  android:src="@drawable/forward"
                  android:layout_gravity="right"/&gt;        
           &lt;/LinearLayout&gt;    
  
           &lt;TextView
              android:id="@+id/bottomText"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textSize="20dip"
              android:layout_below="@id/centerLayout"
              android:layout_gravity="bottom" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>