Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid TableLayout height does not fills the whole screen
    primarykey
    data
    text
    <p>I have a linear layout with just a single TableLayout in it. The Table Layout further has two rows with two columns each. First Table Row has two Images. Second Table Rows has two buttons.</p> <p>But this does not show up on the complete screen, rather only shows on the first half or maybe depends on the image height. Both the images are actually same file, but shown with different Widths. Help please... here is the Layout file</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 android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:stretchColumns="*"&gt; &lt;TableRow android:layout_height="fill_parent"&gt; &lt;ImageView android:id="@+id/tp_image" android:layout_width="0dip" android:layout_height="fill_parent" android:layout_weight="0.9" android:scaleType="fitXY" android:src="@drawable/images" /&gt; &lt;ImageView android:id="@+id/s_image" android:src="@drawable/images" android:layout_width="0dip" android:layout_height="fill_parent" android:scaleType="fitXY" android:layout_weight="0.1" /&gt; &lt;/TableRow&gt; &lt;TableRow &gt; &lt;Button android:id="@+id/button_LC" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/button_LC"/&gt; &lt;Button android:id="@+id/button_RC" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/button_RC"/&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/LinearLayout&gt; </code></pre>
    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