Note that there are some explanatory texts on larger screens.

plurals
  1. POTableLayout button bigger than screen
    primarykey
    data
    text
    <p>I'm doing a settings layout with a TableLayout. And all my rows are overfilling the screen. And because an image is easier to understand, here the situation :</p> <p><img src="https://i.stack.imgur.com/Rcd5r.png" alt="enter image description here"></p> <p>Here is a part of the Layout code (I didn't put everything because there is a lot of rows, all the same):</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ScrollView01" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:isScrollContainer="true" android:orientation="vertical" android:scrollbarAlwaysDrawVerticalTrack="true" android:scrollbars="vertical"&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/textIpBox" android:text="@string/ipAddress" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;View android:id="@+id/dividerIpbox" android:background="@android:drawable/divider_horizontal_dim_dark" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;TextView android:id="@+id/textPortSend" android:text="@string/sendPort" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;EditText android:id="@+id/entryPortSend" android:inputType="number" android:background="@android:drawable/editbox_background" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;View android:id="@+id/dividerPortSend" android:background="@android:drawable/divider_horizontal_dim_dark" /&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;Spinner android:id="@+id/spinner" android:prompt="@string/home_page" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;TextView android:id="@+id/textCurrentWifi" android:text="@string/currentWifi" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;Button android:id="@+id/buttonSave" android:text="@string/validate" /&gt; &lt;/TableRow&gt; &lt;/TableLayout &gt; &lt;/ScrollView&gt; </code></pre> <p>I'm missing some thing certainly around <code>android:layout_width="fill_parent"</code> but I can't see what.</p> <p>I didn't quite understand why it's isn't working, when all my <code>layout_width</code> are set to <code>fill_parent</code></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