title: How to use HorizontalScrollView?
body: <p>I want my app to be able to  scroll horizontally so it can slide between pages. But when I use this feature on android sdk  it won't let me make the xml layout fill parent i.e. it won't let me have a full screen to include my buttons and objects. </p>
  
  <p>Any idea on how can I  fix this or what is an alternate method?</p>
  
  <p>Here's the code:</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" &gt;
  
      &lt;RelativeLayout
          android:layout_width="348dp"
          android:layout_height="559dp" &gt;
  
          &lt;ImageButton
              android:id="@+id/imageButton1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_alignParentLeft="true"
              android:layout_marginBottom="341dp"
              android:layout_marginLeft="146dp"
              android:src="@drawable/ic_launcher" /&gt;
  
      &lt;/RelativeLayout&gt;
  
  
  &lt;/HorizontalScrollView&gt;
  </code></pre>