title: ScrollView doesn't display whole TableLayout
body: <p>I want to display a <code>TableLayout</code> within a <code>ScrollView</code>. The Table has 9 <code>TableRow</code>s but the <code>ScrollView</code> starts displaying parts of the 4th row and I can't sroll up to see the rows above.</p>
  
  <p>The XML-Layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/uyi_choosepi_relativelayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:keepScreenOn="true" &gt;
  
      &lt;MyGallery
          android:id="@+id/uyi_gallery_originals"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"/&gt;
  
      &lt;TableLayout
          android:id="@+id/uyi_choosepi_buttontable"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:stretchColumns="0,1" &gt;
  
          &lt;TableRow &gt;
              &lt;Button
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Hilfe"
                  android:onClick="showHelp"
                  android:drawableLeft="@android:drawable/ic_menu_help" /&gt;
  
              &lt;Button
                  android:id="@+id/uyi_choosepi_savepw"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Fertig"
                  android:clickable="false"
                  android:enabled="false"
                  android:onClick="savePassword"
                  android:drawableLeft="@android:drawable/ic_menu_save"/&gt;
          &lt;/TableRow&gt;
      &lt;/TableLayout&gt;
  
      &lt;ScrollView
              android:id="@+id/uyi_choosepi_scrollview"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_below="@id/uyi_gallery_originals"
          android:layout_above="@id/uyi_choosepi_buttontable"&gt;
  
              &lt;TableLayout
              android:id="@+id/uyi_choosepi_tablelayout"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:gravity="center_vertical|center_horizontal"
              android:layout_gravity="center_vertical"
              android:shrinkColumns="0,1,2" /&gt;
      &lt;/ScrollView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The <code>TableRow</code>s in the <code>uyi_choosepi_tablelayout</code> where added programmatically as follows:</p>
  
  <pre><code>table = (TableLayout) findViewById(R.id.uyi_choosepi_tablelayout);
  
          for (int i = 0; i &lt; UYIMainActivity.PASS_LENGTH; i++) {
              TableRow row = new TableRow(table.getContext());
  
              originalViews[i] = new ImageView(row.getContext());
              originalViews[i].setAdjustViewBounds(true);
              originalViews[i].setScaleType(ScaleType.FIT_XY);
              originalViews[i].setPadding(3, 3, 3, 3);
              originalViews[i].setImageResource(R.drawable.oempty);
  
              distortedViews[i] = new ImageView(row.getContext());
              distortedViews[i].setAdjustViewBounds(true);
              distortedViews[i].setScaleType(ScaleType.FIT_XY);
              distortedViews[i].setPadding(3, 3, 3, 3);
              distortedViews[i].setImageResource(R.drawable.wempty);
  
              ImageView arrow = new ImageView(row.getContext());
              arrow.setAdjustViewBounds(true);
              arrow.setScaleType(ScaleType.FIT_XY);
              arrow.setMaxWidth(80);
              arrow.setPadding(3, 3, 3, 3);
              arrow.setImageResource(R.drawable.arrow_active);
  
  
              row.addView(originalViews[i]);
              row.addView(arrow);
              row.addView(distortedViews[i]);
              table.addView(row);
          }
  </code></pre>
  
  <p>I hope you can give me a hint!</p>