Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Okay so actually I figured this out by reviewing what Taranasus wrote, which was accurate to a degree.</p> <p>This is the final XML that worked: </p> <pre><code>&lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:background="#FF0000"&gt; &lt;ListView android:id="@+id/edit_group_listView" android:layout_width="fill_parent" android:layout_height="fill_parent" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:background="#FFFF00"&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50dip" android:stretchColumns="2"&gt; &lt;TableRow&gt; &lt;Button android:text="@string/button_save" android:id="@+id/edit_group_save" android:layout_width="150dip" android:layout_height="50dip" android:enabled="false" android:layout_column="1"&gt;&lt;/Button&gt; &lt;Button android:text="@string/button_cancel" android:id="@+id/edit_group_cancel" android:layout_width="150dip" android:layout_height="50dip" android:layout_column="3"&gt;&lt;/Button&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p></p> <p>This site also helped: <a href="http://www.curious-creature.org/2009/02/22/android-layout-tricks-1/" rel="nofollow">http://www.curious-creature.org/2009/02/22/android-layout-tricks-1/</a></p> <p>The problems were that: 1. The orientation had to be "vertical", which actually doesn't make sense according to the docs. 2. The second row (the fixed one) has to have a height of wrap_content, which also doesn't make sense since Google docs about weight specifically say both elements should be fill_parent.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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