title: Android how to set scrollview
body: <p>For my college I'm making an android app..
  The xml code is:--</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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="@drawable/back"&gt;
  
      &lt;LinearLayout
          android:id="@+id/linear_login"
          android:layout_width="320dp"
          android:layout_height="430dp"
  
          android:background="@drawable/oie_transparent"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_marginLeft="20dp"
              android:layout_marginRight="20dp"
              android:layout_marginTop="15dp"
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="60dp"
                  android:layout_marginTop="10dp"
                  android:text="College name"
                  android:textColor="@color/red1"
                  android:textSize="20dp" /&gt;
  
              &lt;TextView
                  android:id="@+id/textView2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="30dp"
                  android:layout_marginTop="14dp"
                  android:padding="15dp"
                  android:text="@string/desc"
                  android:textColor="@color/purple2"
                  android:textSize="20dp" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="230dp"
                  android:layout_height="180dp"
                  android:layout_marginLeft="40dp"
                  android:padding="10dp"
                  android:orientation="vertical" &gt;
  
                  &lt;EditText
                      android:id="@+id/editText1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="6dp"
                      android:background="@drawable/edit_style"
                      android:ems="10" 
                      android:hint="student name"
                      android:textColorHint="#7D0541"/&gt;
  
                  &lt;EditText
                      android:id="@+id/editText2"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:background="@drawable/edit_style"
                      android:layout_marginTop="6dp"
                      android:ems="10" 
                      android:hint="student roll no" 
                       android:textColorHint="#7D0541"&gt;
  
  
                  &lt;/EditText&gt;
  
                  &lt;Button
                      android:id="@+id/button1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Press Here"
                       android:layout_marginTop="8dp"
                      android:layout_gravity="center"
                      android:background="@drawable/button_state"
                      android:textColor="#0000A0"/&gt;
  
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
  
  
      &lt;/LinearLayout&gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="120dp"
          android:layout_height="80dp"
          android:layout_gravity="center"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here,the 2 edit boxes and one button is there,I want to add a scrollview in there..But When I am adding its showing error every time..Hey guys can anyone tell me where is the problem..</p>