New Table info not being appended or refreshed?
<p>I am dynamically adding data to a <code>TableLayout</code> inside of a <code>ScrollView</code> to display to the user of the app.  I do not seem to have the information updating on the screen even though I have confirmed with the debugger that the data does exist and is being created properly.  How do I change the size of the <code>ScrollView</code> or make it update with the new <code>TableRow</code>'s?</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" &gt;

&lt;Button
    android:id="@+id/startButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:layout_marginLeft="21dp"
    android:layout_marginTop="18dp"
    android:onClick="startDataGathering"
    android:text="Start" /&gt;

&lt;Button
    android:id="@+id/stopButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignBaseline="@+id/startButton"
    android:layout_alignBottom="@+id/startButton"
    android:layout_alignParentRight="true"
    android:layout_marginRight="32dp"
    android:onClick="stopDataGathering"
    android:text="Stop" /&gt;

&lt;ScrollView 
    android:id="@+id/ScrollView01" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/startButton"
    android:layout_alignRight="@+id/stopButton"
    android:layout_below="@+id/startButton"&gt;

    &lt;TableLayout
        android:id="@+id/TableLayout01"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" &gt;

        &lt;TableRow
            android:id="@+id/tableRow1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" &gt;

            &lt;TextView 
                android:id="@+id/TextView01" 
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content" 
                android:text="PNR" &gt;
            &lt;/TextView&gt;
            &lt;TextView 
                android:id="@+id/TextView02" 
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content" 
                android:text="SNR" &gt;
            &lt;/TextView&gt;


        &lt;/TableRow&gt;


    &lt;/TableLayout&gt;
&lt;/ScrollView&gt;
</code></pre>

<p></p>

<pre><code>    private void updateUI()
   {
       TableLayout table = (TableLayout)findViewById(R.id.TableLayout01);
       for (Iterator&lt;GPSSatelliteEntry&gt; j = backgroundGPSEntries.iterator(); j.hasNext(); ) {
            GPSSatelliteEntry item = j.next();
            float az = item.getAzimuth();
            float el = item.getElevation();
            int p = item.getPrn();
            float s = item.getSnr();

            // UI stuff
            TableRow row = new TableRow(this);

            TextView azText = new TextView(this);
            azText.setText(Float.toString(az));

            TextView elText = new TextView(this);
            elText.setText(Float.toString(el));

            TextView pText = new TextView(this);
            pText.setText(Integer.toString(p));

            TextView sText = new TextView(this);
            sText.setText(Float.toString(s));

            row.addView(azText);
            row.addView(elText);
            row.addView(pText);
            row.addView(sText);

            table.addView(row);
        }

       this.setContentView(R.layout.activity_main);
   }
</code></pre>

<p>Thanks.</p>
