Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid multiple list views that don't scroll independently
    primarykey
    data
    text
    <p>I want to create a page that has 3 lists and 3 headers but I don't want to scroll them independently, I want the whole page to scroll. Does anyone know how I could achieve this?</p> <p>Essentially I want it to look like this:</p> <pre><code>header smlheader list smlheader list smlheader list </code></pre> <p>With this code I've tried to achieve it but it's not that good.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" &lt;TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/white"&gt; &lt;include layout="@layout/header" /&gt; &lt;include layout="@layout/redcell" /&gt; &lt;TableRow android:id="@+id/tableRow1" android:layout_width="wrap_content" android:layout_height="60dp" &gt; &lt;TextView android:id="@+id/fixtures_text" android:layout_width="match_parent" android:layout_height="60dp" android:gravity="center" android:text="@string/leagues" android:textColor="@color/white" android:textSize="25dp" android:textStyle="bold"/&gt; &lt;/TableRow&gt; &lt;include layout="@layout/redcell" /&gt; &lt;TableRow android:id="@+id/tableRow2" android:layout_width="wrap_content" android:layout_height="60dp" &gt; &lt;TextView android:id="@+id/results_text" android:layout_width="match_parent" android:layout_height="60dp" android:gravity="center" android:text="@string/leagues" android:textColor="@color/white" android:textSize="25dp" android:textStyle="bold"/&gt; &lt;/TableRow&gt; &lt;include layout="@layout/redcell" /&gt; &lt;ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" /&gt; &lt;/TableLayout&gt; &lt;ScrollView/&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    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