title: How to put a very long table layout inside the horizontal Scroll view in the CORRECT way?
body: <p>I tried looking at numerious examples and posts but none of them matches my problem.</p>
  
  <p>I need to make a very long (horizontal) table with many columns so it is impossible to display in a single screen. And I don't want to spilt the table because it is important that I display my table in this way.</p>
  
  <p>I have pasted my XML layout below (including the main important ones)</p>
  
  <p>The thing is if I remove the code:</p>
  
  <pre><code>android:fillViewport="true"
  </code></pre>
  
  <p>from the <strong>HorizontalScrollView</strong> then my table inside it, gets squeezed in one place, especially at the left side of it. It doesn't even use much of this HorizontalScrollView container area.</p>
  
  <p>And,
  If I use this code, then this HorizontalScrollView shows my whole table inside it - the columns are squeeze to make sure they fit in this scrollview.</p>
  
  <p><strong>I just want this scrollview to display only the content of my tablelayout that fits in the screen width, so I can scroll the remaining columns.</strong> But right now, I don't seem to get anywhere near.</p>
  
  <p>So how do I solve my problem? Am I doing something wrong ?</p>
  
  <p>Also here is my XML layout.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  &gt;
  
  &lt;HorizontalScrollView
      android:id="@+id/horizontalScrollView"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:scrollbars="horizontal"
      android:fillViewport="true"&gt;
      &lt;TableLayout
          android:id="@+id/bot_scoreBoard"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/table_shape"
          android:orientation="horizontal"
          android:stretchColumns="*" &gt;
  
          &lt;TableRow
              android:layout_height="fill_parent"
              android:layout_margin="2dp"
              android:background="#ffffff"
              &gt;
              &lt;TextView
              /&gt;
                 ....
              more than 16 columns of made using TextView
   ....
          &lt;/TableRow&gt;
      &lt;/TableLayout&gt;
  
  &lt;/HorizontalScrollView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>