title: scrollview not applying for the buttons in android
body: <p>Hi in the below xml layout I am designed a form with scollview .When I am scrolling buttons are not visibling .</p>
  
  <p>I want to display buttons also when I am scrooling a form.Scrollview not applying for the complete form as well as buttons save and cancel.but save and cancel buttons are not displaying.</p>
  
  <p>can any one help me where i did mistake</p>
  
  <p>xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/back_blue"&gt;
  
      &lt;ScrollView
          android:id="@+id/below"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_below="@+id/header"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_gravity="fill_horizontal"
                  android:layout_marginLeft="16dp"
                  android:layout_marginRight="16dp"
                  android:orientation="vertical"&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/account_name"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/account_name"
                          android:inputType="textEmailAddress"
                          android:textColorHint="#0072BA"
                          android:textSize="15sp"
                          app:hintTextAppearance="@style/TextAppearence.App.TextInputLayout" /&gt;
  
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"&gt;
  
                      &lt;fr.ganfra.materialspinner.MaterialSpinner
                          android:id="@+id/ownership_type"
                          android_id="@+id/ownership_type"
                          android_layout_height="wrap_content"
                          android_layout_width="match_parent"
                          app_ms_arrowColor="#0000FF"
                          app_ms_arrowSize="16dp"
                          app_ms_floatingLabelColor="#00FF00"
                          app_ms_floatingLabelText="floating label"
                          app_ms_hint="hint"
                          app_ms_hintColor="#00FF00"
                          app_ms_multiline="true"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          app:ms_arrowColor="@color/black"
                          app:ms_hintColor="@color/black" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"&gt;
  
                      &lt;fr.ganfra.materialspinner.MaterialSpinner
                          android:id="@+id/facility_type"
                          android_id="@+id/facility_type"
                          android_layout_height="wrap_content"
                          android_layout_width="match_parent"
                          app_ms_arrowColor="#0000FF"
                          app_ms_arrowSize="16dp"
                          app_ms_hint="hint"
                          app_ms_hintColor="#00FF00"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          app:ms_arrowColor="@color/black"
                          app:ms_hintColor="@color/black" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"
                      app:passwordToggleTint="@color/colorAccent"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/email"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/email"
                          android:inputType="number" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"&gt;
  
                      &lt;fr.ganfra.materialspinner.MaterialSpinner
                          android:id="@+id/account_manger"
                          android_id="@+id/account_manger"
                          android_layout_height="wrap_content"
                          android_layout_width="match_parent"
                          app_ms_arrowColor="#0000FF"
                          app_ms_arrowSize="16dp"
                          app_ms_hint="hint"
                          app_ms_hintColor="#00FF00"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          app:ms_arrowColor="@color/black"
                          app:ms_hintColor="@color/black" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"
                      app:passwordToggleTint="@color/colorAccent"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/editMobilephone"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/custom_mobile"
                          android:inputType="number" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"
                      app:passwordToggleEnabled="true"
                      app:passwordToggleTint="@color/colorAccent"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/bill_add"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/bill_address"
                          android:inputType="text"
                          android:lines="5"
                          android:maxLines="5" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"
                      app:passwordToggleEnabled="true"
                      app:passwordToggleTint="@color/colorAccent"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/bill_city"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/bill_city"
                          android:inputType="text" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"
                      app:passwordToggleEnabled="true"
                      app:passwordToggleTint="@color/colorAccent"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/bill_dist"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/bill_district"
                          android:inputType="text" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"&gt;
  
                      &lt;fr.ganfra.materialspinner.MaterialSpinner
                          android:id="@+id/state"
                          android_id="@+id/state"
                          android_layout_height="wrap_content"
                          android_layout_width="match_parent"
                          app_ms_arrowColor="#0000FF"
                          app_ms_arrowSize="16dp"
                          app_ms_floatingLabelColor="#00FF00"
                          app_ms_floatingLabelText="floating label"
                          app_ms_hint="hint"
                          app_ms_hintColor="#00FF00"
                          app_ms_multiline="true"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          app:ms_arrowColor="@color/black"
                          app:ms_hintColor="@color/black" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"
                      app:passwordToggleEnabled="true"
                      app:passwordToggleTint="@color/colorAccent"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/bill_country"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/bill_country"
                          android:inputType="text" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"
                      android:layout_marginTop="8dp"
                      app:passwordToggleEnabled="true"
                      app:passwordToggleTint="@color/colorAccent"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/bill_pin"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/bill_pin"
                          android:inputType="text" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="10dp"
                      android:layout_marginTop="8dp"
                      app:passwordToggleEnabled="true"
                      app:passwordToggleTint="@color/colorAccent"&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id="@+id/website"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:hint="@string/bill_pin"
                          android:inputType="text" /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
              &lt;/LinearLayout&gt;
  
  
      &lt;LinearLayout
          android:id="@+id/btnLayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:background="@color/colorPrimary"
          android:orientation="horizontal"
          android:weightSum="2"&gt;
  
          &lt;androidx.appcompat.widget.AppCompatButton
              android:id="@+id/save"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:layout_weight="1"
              android:background="@color/colorPrimary"
              android:gravity="center"
              android:text="@string/save"
              android:textColor="@android:color/white"
              android:textSize="16sp" /&gt;
  
          &lt;View
              android:layout_width="1dp"
              android:layout_height="fill_parent"
              android:background="@color/White" /&gt;
  
          &lt;androidx.appcompat.widget.AppCompatButton
              android:id="@+id/cancel"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_alignParentBottom="true"
              android:layout_gravity="center"
              android:layout_weight="1"
              android:background="@color/colorPrimary"
              android:gravity="center"
              android:text="@string/cancel"
              android:textColor="@android:color/white"
              android:textSize="16sp" /&gt;
  
      &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>