title: android horizontal vertical scroll layout with center
body: <p>I need create something <a href="http://i.imgur.com/iE8M9.png" rel="nofollow">like this</a> in xml, but it is not possible to center inner object in scrollView with child horizontalScrollView.</p>
  
  <p>here is code example:</p>
  
  <pre><code>&lt;ScrollView
      android:id="@+id/scrollView1"
      android:layout_width="fill_parent"
      android:layout_height="0dp"
      android:layout_weight="5"
      android:fillViewport="true" &gt;
  
      &lt;HorizontalScrollView
          android:id="@+id/horizontalScrollView1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" &gt;
  
          &lt;RelativeLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent" &gt;
  
              &lt;TableLayout
                  android:id="@+id/matrix_table"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_centerHorizontal="true"
                  android:layout_centerVertical="true" &gt;
  
                  &lt;!-- auto generated rows --&gt;
  
              &lt;/TableLayout&gt;
  
          &lt;/RelativeLayout&gt;
  
      &lt;/HorizontalScrollView&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>and here is <a href="http://i.imgur.com/WOLpr.png" rel="nofollow">unexpected result</a></p>
  
  <p>Thanks!</p>