Android:HorizontalScrollView wrap its child?
<p>I have HorizontalScrollView with RelativeLayout as a child. And here is my xml file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#ff00ff"
    android:scrollbars="none"&gt;

&lt;RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#ffffff" &gt;
&lt;/RelativeLayout&gt;

 &lt;/HorizontalScrollView&gt;
</code></pre>

<p>The output is pink color...But I need white...Why Relative Layout didn't filled its parent ?</p>

<p>screenshot:
<img src="http://i.stack.imgur.com/zaUL6.png" alt="enter image description here"></p>

<p>screenshot with buttons: <img src="http://i.stack.imgur.com/ZPHmX.png" alt="enter image description here"></p>
