title: Center elements of HorizontalScrollView when not enough to make it scroll
body: <p>I have a Layout with a <code>HorizontalScrollView</code> containing a <code>LinearLayout</code> for a Menu where the contents are inflated with the contents of the DB.  This works fine however when there are not enough elements to make the <code>HSV</code> scroll this does not fill the width of the screen which ideally should be centered. i.e.
  Currently:</p>
  
  <pre><code>| Element 1 Element 2                         | &lt;- edge of screen
  </code></pre>
  
  <p>Instead of:</p>
  
  <pre><code>|        Element 1            Element 2       | &lt;- edge of screen
  </code></pre>
  
  <p>whilst still being able to:</p>
  
  <pre><code>| Element 1 Element 2 Element 3 Element 4 Elem| &lt;- edge of screen now scrolling
  </code></pre>
  
  <p>The layout XML is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/mainLinearLayout"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;TextView 
           android:id="@+id/header"
           android:layout_width="fill_parent"
           android:layout_height="25dp" &gt;
      &lt;/TextView&gt;
  
      &lt;ScrollView
           android:id="@+id/scroll1"
           android:layout_width="fill_parent"
           android:layout_height="fill_parent"
           android:layout_weight="1" &gt;
  
          &lt;LinearLayout
               android:id="@+id/contentLayout"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:orientation="vertical" &gt;
  
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
      &lt;HorizontalScrollView
          android:id="@+id/horizontalScrollView1"
          android:layout_width="fill_parent"
          android:layout_height="30dp"&gt;
  
          &lt;LinearLayout
              android:id="@+id/footerLayout"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="horizontal" &gt;
  
          &lt;/LinearLayout&gt;
     &lt;/HorizontalScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>With the following XML being inflated inside footerLayout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
          &lt;TextView
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/footer_content"
              android:textSize="18sp"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:paddingLeft="5dp"
              android:paddingRight="5dp"
              android:text="FOOTER"
              android:singleLine="true" /&gt;
  </code></pre>