unable to use ScrollView in linear + relative layout
<p>Following is one of my application activity xml.Its running fine but the problem was when it turns in Landscape mode i see only top few UI elements.So i added ScrollView in it .But after that my activity is not opening and crashing.Please some one help me figure out what i am doing wrong in adding a ScrollView.</p>

<p>Thanks</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent" 
              android:layout_height="fill_parent"
              android:orientation="vertical"
              android:background="#FFFFFF"
          &gt; 


    &lt;ScrollView android:id="@+id/scroll" android:layout_width="fill_parent"
    android:layout_height="wrap_content"&gt;

    &lt;ImageView
            android:src="@drawable/logo"
            android:adjustViewBounds="true"
            android:scaleType="center"
            android:layout_gravity="center_vertical|center_horizontal"            
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" /&gt;

    &lt;TextView
        android:id="@+id/rishi_idlabel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text = "Email address:"
        android:textColor = "#000000"
        android:textSize="15sp"
        android:paddingLeft="10px"
        android:paddingRight="5px"
    /&gt;

    &lt;EditText android:id ="@+id/custid"
            android:hint = "ID"
            android:layout_gravity="center_vertical|center_horizontal"
            android:scaleType="center"
            android:inputType = "phone"
            android:singleLine = "true"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:layout_marginLeft = "10px"
            android:layout_marginRight = "10px"
            /&gt;              

    &lt;TextView
        android:id="@+id/pass"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text = "Password:"
        android:textColor = "#000000"
        android:textSize="15sp"
        android:paddingLeft="10px"
        android:paddingRight="5px"
    /&gt;

    &lt;EditText android:id ="@+id/password"
            android:hint="Password"
            android:layout_gravity="center_vertical|center_horizontal"
            android:password = "true"
            android:singleLine = "true"         
            android:scaleType="center"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:layout_marginLeft = "10px"
            android:layout_marginRight = "10px"
            /&gt;

&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content" 
              android:layout_height="wrap_content"
               android:layout_marginTop = "10px"
              android:background="#FFFFFF" 
              android:orientation="horizontal"&gt; 

    &lt;Button android:id="@+id/loginButton"
            android:layout_gravity="left"
            android:layout_width="180sp"
            android:layout_height="wrap_content"
            android:layout_marginLeft = "10px"
            android:layout_marginTop = "10px"
            android:text="Login"/&gt;


     &lt;TextView
        android:id="@+id/passforgot"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text = "forgot password"
        android:clickable = "true"
        android:focusable = "true"
        android:textColor = "#0000FF"
        android:layout_marginTop = "10px"
        android:textSize="15sp"
        android:paddingLeft="3px"
        android:paddingRight="3px"

    /&gt;
       &lt;/LinearLayout&gt; 

 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content" 
              android:layout_height="wrap_content"
              android:layout_marginTop = "10px"
              android:background="#FFFFFF" 
              android:orientation="horizontal"&gt;          
     &lt;TextView
        android:id="@+id/newaccount"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text = "Dont have an account yet?"
        android:textColor = "#000000"
        android:layout_marginLeft = "10px"
        android:layout_marginTop = "10px"
        android:textSize="15sp"
        android:paddingLeft="3px"
        android:paddingRight="3px"
    /&gt;     

        &lt;Button android:id="@+id/signup"
            android:layout_gravity="right"
            android:layout_width="100sp"
            android:layout_height="wrap_content"
            android:layout_marginLeft = "10px"
            android:layout_marginTop = "10px"
            android:text="Sign-Up"/&gt;

     &lt;/LinearLayout&gt;  
     &lt;/ScrollView&gt;

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