Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can do this by using a RelativeLayout. </p> <p>A oversimplified answer (since I don't know your layout) would be to have all your top controls inside a layout (say layoutTop), all your button controls inside a layout (layoutBottom) and having your ImageView in the middle: </p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutWrapper" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;LinearLayout android:id="@+id/layoutTop" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sparta!!!" /&gt; &lt;/LinearLayout&gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/layoutTop" android:layout_above="@+id/layoutBottom" android:src="@drawable/empty_star" /&gt; &lt;LinearLayout android:id="@id/layoutBottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sparta!!!" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p>The trick here is to notice how I created the id for layoutBottom. the "+" is not written when I am declaring the actual layout, but rather the first time it is used, i.e. in the ImageView.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload