title: Android Table Layout with Scrollview does not fit the parents width
body: <p>I'm working on an App, which contains a Table Layout in a Scrollview.
  I want the Table to fill the  width of the screen, but I don't really now what to do.</p>
  <p>I tried to first set the scrollView to fill_parent, but then I get dozens of &quot;unhandled event loop exceptions&quot;. And about three &quot;Invalid preference page path: XML Syntax&quot; Errors.</p>
  <p>If I just try to set the table layout to fill_parent just nothing happens.
  Here is an excerpt of my &quot;scroll-table construction&quot;</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:layout_width=&quot;match_parent&quot;
  android:layout_height=&quot;match_parent&quot;
  android:orientation=&quot;vertical&quot; &gt;
  
  &lt;LinearLayout
      android:id=&quot;@+id/linearLayout1&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot; &gt;
  
      &lt;Button
          android:id=&quot;@+id/btnNew&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_weight=&quot;0.20&quot;
          android:text=&quot;New&quot; /&gt;
  
      &lt;Button
          android:id=&quot;@+id/btnDelete&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_weight=&quot;0.20&quot;
          android:text=&quot;Delete&quot; /&gt;
  &lt;/LinearLayout&gt;
  
  
  &lt;ScrollView
      android:id=&quot;@+id/scrollView1&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;match_parent&quot;
      android:layout_weight=&quot;0.20&quot; &gt;
  
      &lt;TableLayout
          android:id=&quot;@+id/tableLayout1&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot; &gt;
  
          &lt;TableRow
              android:id=&quot;@+id/tableRow1&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot; &gt;
  
              &lt;TextView
                  android:id=&quot;@+id/textView1&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:background=&quot;@drawable/cell_shape2&quot;
                  android:padding=&quot;5dp&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceSmall&quot; /&gt;
  </code></pre>
  <p>... etc. (much stuff not necessary).</p>
  <p>I hope you can give me a hint, because I really don't know why my scrollview can't fit the parent width and I don't know, if it would help, if it would fit.</p>