Have table with scrollable content but not header
<p>I want to have a table that has header and content after. However I want the user to be able to scroll the table contents while the header stays visible. The way I did it is by having 2 tables like the following:</p>

<pre><code>&lt;TableLayout
        android:id="@+id/tlNames"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:stretchColumns="*"
        android:shrinkColumns="*" &gt;

        &lt;TableRow
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"&gt;"
            &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"                
                android:gravity="center"
                android:text="dummy"         
                android:textSize="15sp"
                android:textColor="#FF0000"
                android:visibility="invisible" /&gt;  
            &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_column="1"
                android:gravity="center"
                android:text="Player1"
                android:textColor="#FF0000"
                android:textSize="15sp" /&gt;  
             &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="Player2"
                android:textColor="#FF0000"
                android:textSize="15sp" /&gt;  
             &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="Player3"
                android:textColor="#FF0000"
                android:textSize="15sp" /&gt;  
             &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="player4"
                android:textColor="#FF0000"
                android:textSize="15sp" /&gt;  
            &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"                
                android:gravity="center"
                android:text="dummy"
                android:textSize="15sp"
                android:textColor="#FF0000"
                android:visibility="invisible" /&gt;"


        &lt;/TableRow&gt;
        &lt;View android:layout_height="5dp"/&gt;
    &lt;/TableLayout&gt;

    &lt;ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" &gt;

        &lt;TableLayout
        android:id="@+id/tlScore"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:stretchColumns="*"
        android:shrinkColumns="*" &gt;

        &lt;TableRow
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"&gt;

             &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:textColor="@android:color/white"
                android:textSize="15sp" /&gt;  
            &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="20"
                android:textColor="@android:color/black"
                android:textSize="10sp" /&gt;  
             &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="20"
                android:textColor="@android:color/black"
                android:textSize="10sp" /&gt;   
             &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="20"
                android:textColor="@android:color/black"
                android:textSize="10sp" /&gt;  
             &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="20"
                android:textColor="@android:color/black"
                android:textSize="10sp" /&gt;  
             &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="20"
                android:textColor="@android:color/black"
                android:textSize="10sp" /&gt;  

        &lt;/TableRow&gt;    
&lt;/tableLayout&gt;
&lt;/ScrollView&gt;
</code></pre>

<p>The problem that the header is not aligned with the contents so it ends up like</p>

<pre><code> dummy   Player1  player2  player3  player4  dummy

    20         20       20        20       20     20 
</code></pre>

<p>Is there a way somehow I can make it aligned or maybe have one table with the first row not scrollable but the rest are?</p>
