Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid fullscreen table layout
    primarykey
    data
    text
    <p>I'm trying to obtain this layout in an Android application. <a href="http://img339.imageshack.us/img339/3374/screenshot1362677685476.png" rel="nofollow">http://img339.imageshack.us/img339/3374/screenshot1362677685476.png</a></p> <p>I'm using table layout right now, but my table isn't stretched to fill all the container.</p> <p>Here is an example of my layout:</p> <pre><code>&lt;TableLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:stretchColumns="*" &gt; &lt;TableRow&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;ImageButton android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#00000000" android:src="@drawable/##image##" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;ImageButton android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#00000000" android:src="@drawable/##image##" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;ImageButton android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#00000000" android:src="@drawable/##image##" /&gt; &lt;/LinearLayout&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;ImageButton android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#00000000" android:src="@drawable/##image##" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;ImageButton android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#00000000" android:src="@drawable/##image##" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;ImageButton android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#00000000" android:src="@drawable/##image##" /&gt; &lt;/LinearLayout&gt; &lt;/TableRow&gt; </code></pre> <p>Any suggestions?</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.
    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