Note that there are some explanatory texts on larger screens.

plurals
  1. PONest TableLayout inside LinearLayout - is it possible?
    primarykey
    data
    text
    <p>I want to produce an Android screen layout that looks something like the following:</p> <pre><code>Label Text Field Label Text Field Label Text Field -----Button------- -----TextField---- </code></pre> <p>That is, I want to have a TableLayout at the top, with a number of items underneath the table layout (mainly so I can force these items to be at the bottom of the screen). I have tried to nest them as in the code below, but the items at the bottom don't seem to appear.</p> <p>Any ideas?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:stretchColumns="1" android:shrinkColumns="1" android:layout_height="wrap_content" android:layout_gravity="center_vertical"&gt; &lt;TableRow&gt; &lt;TextView android:text="Latitude:" android:textAppearance="?android:attr/textAppearanceLarge" /&gt; &lt;TextView android:id="@+id/latitude" android:text="Not available" android:textAppearance="?android:attr/textAppearanceLarge" /&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;TextView android:text="Longitude:" android:textAppearance="?android:attr/textAppearanceLarge"/&gt; &lt;TextView android:id="@+id/longitude" android:text="Not available" android:textAppearance="?android:attr/textAppearanceLarge"/&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;TextView android:text="Altitude:" android:textAppearance="?android:attr/textAppearanceLarge"/&gt; &lt;TextView android:id="@+id/altitude" android:text="Not available" android:textAppearance="?android:attr/textAppearanceLarge"/&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;TextView android:text="Accuracy:" android:textAppearance="?android:attr/textAppearanceLarge"/&gt; &lt;TextView android:id="@+id/accuracy" android:text="Not available" android:textAppearance="?android:attr/textAppearanceLarge"/&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;Button android:id="@+id/save" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Save"/&gt; &lt;TextView android:text="Test"/&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    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.
    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