title: How to add scrollview in linearlayout
body: <p>I am implementing an registration page in which i want to implement the Scrollview. please help. <a href="https://stackoverflow.com/questions/13797352/android-relative-layout-align-center">Android Relative Layout Align Center</a> i have tried this but still not getting it.</p>
  
  <p>Registration.Xml</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="match_parent"
      android:layout_height="match_parent"
      android:weightSum="1"
      android:background="#f33a58"
      android:baselineAligned="false"
      android:orientation="vertical"&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Registration Page"
          android:id="@+id/logo"
          android:layout_marginTop="40dp"
          android:textSize="35dp"
          android:layout_gravity="center_horizontal"
          android:layout_marginBottom="20dp"
          android:textColor="#ffffff" /&gt;
  
  
  
      &lt;EditText
          android:id="@+id/username"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/textView1"
          android:layout_below="@+id/textView1"
          android:ems="10"
          android:hint="Username"
          android:layout_gravity="center"
          android:textColorHint="#ffffff"
          android:backgroundTint="#ffffff"
          style="@style/AppTheme.PopupOverlay" /&gt;
  
      &lt;EditText
          android:id="@+id/password"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:layout_gravity="center"
          android:hint="Password"
          android:password="true"
          android:inputType="textPassword"
          android:textColorHint="#ffffff"
          android:layout_marginTop="20dp"
          android:backgroundTint="#ffffff" /&gt;
  
      &lt;EditText
          android:id="@+id/email"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:layout_gravity="center"
          android:hint="Email"
          android:inputType="textEmailAddress"
          android:textColorHint="#ffffff"
          android:layout_marginTop="20dp"
          android:backgroundTint="#ffffff"&gt;
  
  
      &lt;/EditText&gt;
  
  
  
      &lt;EditText
          android:id="@+id/phone_no"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:layout_gravity="center"
          android:hint="Phone Number"
          android:inputType="phone"
          android:layout_marginTop="20dp"
          android:maxLength="10"
          android:digits="0123456789"
          android:textColorHint="#ffffff"
          android:backgroundTint="#ffffff" /&gt;
  
      &lt;Button
          android:id="@+id/register"
          android:layout_width="134dp"
          android:layout_height="wrap_content"
          android:text="Register"
          android:layout_marginTop="20dp"
          android:background="@drawable/button"
          android:layout_gravity="center_horizontal" /&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>