Note that there are some explanatory texts on larger screens.

plurals
  1. POScroll in TableLayout
    text
    copied!<p>I wanted to put a vertical ScrollView I have inserted the table that I have tried in various ways but it gives me error, I hope you can help me, greetings. my xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;TableLayout android:id="@+id/LayoutTabla" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/spinnerDatos" android:layout_centerHorizontal="true" android:layout_marginTop="39dp" &gt; &lt;TableRow android:id="@+id/tableRow1" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" &gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow2" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" &gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow3" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" &gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow4" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" &gt; &lt;/TableRow&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;/LinearLayout&gt; &lt;/TableLayout&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@+id/btnVer" android:layout_alignBottom="@+id/btnVer" android:layout_alignParentLeft="true" android:text="Ver datos de" /&gt; &lt;Spinner android:id="@+id/spinnerDatos" android:layout_width="125dp" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" /&gt; &lt;Button android:id="@+id/btnVer" style="?android:attr/buttonStyleSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/LayoutTabla" android:layout_alignParentRight="true" android:layout_toRightOf="@+id/spinnerDatos" android:onClick="verTablaDatos" android:text="Ver" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>I just want to put the scroll to <code>&lt;TableLayout&gt;</code> Please help me!</p>
 

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