Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>i think this is what your looking for, remember to play with the "android:layout_weight" value, it will basically tell the widgets how much they should expand (use the available free space). </p> <p>have fun.</p> <pre><code>&lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"&gt; &lt;TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"&gt; &lt;TableRow&gt; &lt;TextView android:text="TextView Up Left" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" android:layout_weight="1"&gt; &lt;/TextView&gt; &lt;ImageView android:id="@+id/ImageView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@android:drawable/btn_plus" android:gravity="right"&gt; &lt;/ImageView&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;TextView android:text="Text view with padding" android:id="@+id/TextView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingBottom="20.0dp" android:paddingLeft="20.0dp" android:paddingRight="20.0dp" android:paddingTop="20.0dp" android:layout_weight="1"&gt; &lt;/TextView&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;TableLayout android:id="@+id/TableLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="0"&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"&gt; &lt;ImageView android:id="@+id/ImageView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@android:drawable/btn_minus" android:layout_gravity="center" &gt; &lt;/ImageView&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre>
 

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