title: Android scrollview shrinks imageview
body: <p>This is my <strong>layout xml</strong> with a <code>Relativelayout</code> in a <code>Scrollview</code>:-</p>
  
  <pre><code>&lt;ScrollView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/layout1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginBottom="10dp" &gt;
  
          &lt;View
              android:id="@+id/separator1"
              android:layout_width="fill_parent"
              android:layout_height="3dp"
              android:background="@android:color/white" /&gt;
  
          &lt;TextView
              android:id="@+id/title"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/separator1"
              android:layout_marginLeft="5dp"
              android:layout_marginRight="5dp"
              android:text="Merry Xmas"
              android:textAppearance="?android:attr/textAppearanceSmall"
              android:textStyle="bold" /&gt;
  
          &lt;View
              android:id="@+id/separator2"
              android:layout_width="fill_parent"
              android:layout_height="1dp"
              android:layout_below="@+id/title"
              android:layout_marginLeft="5dp"
              android:layout_marginRight="5dp"
              android:background="@android:color/white" /&gt;
  
          &lt;ImageView
              android:id="@+id/image1"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_below="@+id/separator2"
              android:scaleType="fitCenter" /&gt;
  
          &lt;View
              android:id="@+id/separator3"
              android:layout_width="fill_parent"
              android:layout_height="1dp"
              android:layout_below="@+id/image1"
              android:layout_marginLeft="5dp"
              android:layout_marginRight="5dp"
              android:background="@android:color/white" /&gt;
  
          &lt;TextView
              android:id="@+id/text2"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/separator3"
              android:layout_marginLeft="5dp"
              android:layout_marginRight="5dp"
              android:text="Happy New Year"
              android:textAppearance="?android:attr/textAppearanceSmall"
              android:textStyle="bold" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>Here are my problems:-</p>
  
  <ul>
  <li>If I remove the <code>ScrollView</code> tags, the <code>ImagView</code> stretches and <strong>fills</strong> up the width, which is what I want. </li>
  <li>If I add the <code>ScrollView</code> tags, it shrinks the <code>ImagView</code> for some reason. </li>
  </ul>
  
  <p>Any <strong>idea</strong> how I can apply the <code>ScrollView</code> and have the <code>ImageView</code> fill up the width?</p>