android layout with automatic scrollview
<p>i have in my android main.xml file as the following.. 
when i run it is showing some exception but in main.xml in graphical view it is not showing any error..<br>
follwing is my code inside Linearlayout</p>

<pre><code>      &lt;ScrollView android:id="@+id/ScrollView01" 
        android:layout_width="fill_parent" 
        android:layout_height="match_parent"&gt;

          &lt;LinearLayout
            android:orientation="vertical"
            android:layout_width="fill_parent"
            android:layout_gravity="top"
            android:layout_height="match_parent"&gt;       

              &lt;TextView android:layout_width="fill_parent"
                       android:layout_height="wrap_content"
                       android:layout_gravity="center"
                       android:text="UserName"/&gt;

               &lt;EditText android:id="@+id/username"
                       android:layout_width="fill_parent"
                       android:layout_height="wrap_content"
                       android:text=""/&gt;                              
           &lt;Button
               android:id="@+id/login_button"
               android:layout_width="60dp"
               android:layout_height="30dp"
               android:text="login"/&gt;
        &lt;/LinearLayout&gt;

         &lt;LinearLayout
            android:orientation="vertical"
            android:layout_width="fill_parent"
            android:layout_gravity="top"
            android:layout_height="match_parent"&gt;       

              &lt;TextView android:layout_width="fill_parent"
                       android:layout_height="wrap_content"
                       android:layout_gravity="center"
                       android:text=""/&gt;

               &lt;EditText android:layout_width="fill_parent"
                       android:layout_height="wrap_content"
                       android:text=""/&gt;                              
           &lt;Button
               android:layout_width="60dp"
               android:layout_height="30dp"
               android:text="@string/login_btn"/&gt;
        &lt;/LinearLayout&gt;
    &lt;/ScrollView&gt;
</code></pre>
