title: How to add scrollview in Table Layout?
body: <p>this is my first time using Scrollview and i want to make application with tablelayout 3x8 rows. The rows have same size height and width, and the table can scrolled vertically. how can i do this this in xml layout? thanks for your help</p>
  
  <pre><code>&lt;ScrollView android:id="@+id/layout"
      android:layout_height="match_parent"
      android:scrollbars="vertical"
      android:layout_width="match_parent"
      android:layout_marginTop="5dip"
      android:scrollbarStyle="outsideInset"
      android:fillViewport="true"
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  &lt;TableLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:stretchColumns="*"
      &gt;
      &lt;TableRow
          android:layout_weight="1"
          android:gravity="center"&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
          android:layout_weight="1"
          android:gravity="center"&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
          android:layout_weight="1"
          android:gravity="center"&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
          android:layout_weight="1"
          android:gravity="center"&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  
  &lt;TableLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:stretchColumns="*"
      &gt;
      &lt;TableRow
          android:layout_weight="1"
          android:gravity="center"&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
          android:layout_weight="1"
          android:gravity="center"&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
          android:layout_weight="1"
          android:gravity="center"&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
          android:layout_weight="1"
          android:gravity="center"&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
          &lt;Button android:text="Button" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>