title: Give Scroll view to only edittext in android
body: <p>need to give scrollview to only edittext field not give scroll to whole layout
  in this layout i am using edittext and i need to give scrollview only that edittext not all layout
  here is my code
  <a href="https://i.stack.imgur.com/LVxfB.png" rel="nofollow noreferrer">See here is image </a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:card_view="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbarforprofile"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/colorPrimaryDark"
          android:minHeight="?attr/actionBarSize"
          android:titleTextColor="#ffffff"
          app:theme="@style/ToolbarColoredBackArrow" /&gt;
  
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
  
          &lt;ImageView
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_gravity="center"
              android:layout_marginBottom="-80dp"
              android:layout_marginTop="16dp"
              android:elevation="2dp"
              android:padding="16dp"
              android:src="@drawable/electricle" /&gt;
  
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginLeft="20dp"
              android:orientation="horizontal"&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="18dp"
                  android:drawableLeft="@drawable/leftarrow"
  
                  android:textColor="@color/demo"
                  android:textSize="0sp" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="-65.5dp"
                  android:layout_marginRight="18dp"
                  android:layout_marginTop="18dp"&gt;
  
  
                  &lt;LinearLayout
                      android:id="@+id/profile_details"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="vertical"&gt;
  
                      &lt;LinearLayout
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:background="@color/demo"
  
                          android:orientation="vertical"
                          android:padding="16dp"&gt;
  
                          &lt;TextView
                              android:id="@+id/txtservicedetails"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_gravity="center"
                              android:layout_marginBottom="20dp"
                              android:layout_marginTop="40dp"
                              android:gravity="center"
                              android:text="@string/app_name"
                              android:textColor="#fff"
                              android:textSize="20sp"
                              android:textStyle="bold" /&gt;
  
                          &lt;android.support.v4.widget.NestedScrollView
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
                              &lt;LinearLayout
                                  android:layout_width="match_parent"
                                  android:layout_height="wrap_content"
                                  android:layout_gravity="center"
                                  android:layout_marginTop="10dp"
                                  android:orientation="vertical"&gt;
  
  
                                  &lt;EditText
                                      android:id="@+id/editText_requirement"
                                      android:layout_width="match_parent"
                                      android:layout_height="70dp"
                                      android:layout_margin="3dp"
                                      android:background="#fff"
                                      android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 "
                                      android:gravity="top"
  
                                      android:hint="Your Requirement (optional)"
                                      android:inputType="textMultiLine|textCapSentences"
                                      android:padding="6dp"
                                      android:textColor="#000" /&gt;
  
                                  &lt;DatePicker
                                      android:id="@+id/datePicker"
                                      android:layout_width="wrap_content"
                                      android:layout_height="match_parent"
                                      android:visibility="gone" /&gt;
  
                                  &lt;EditText
                                      android:id="@+id/et_dateof_visit"
                                      android:layout_width="match_parent"
                                      android:layout_height="40dp"
                                      android:layout_margin="5dp"
  
                                      android:background="#fff"
                                      android:focusable="false"
                                      android:hint="Date Of Visit"
                                      android:inputType="date"
                                      android:maxLines="1"
                                      android:padding="5dp"
                                      android:textColor="#000" /&gt;
  
                                  &lt;EditText
                                      android:id="@+id/et_time"
                                      android:layout_width="match_parent"
                                      android:layout_height="40dp"
                                      android:layout_margin="5dp"
                                      android:background="#fff"
                                      android:focusable="false"
                                      android:hint="Time Of Visit"
                                      android:inputType="time"
                                      android:maxLines="1"
                                      android:padding="5dp"
                                      android:textColor="#000" /&gt;
  
                                  &lt;EditText
  
                                      android:id="@+id/et_noofperson"
                                      android:layout_width="match_parent"
                                      android:layout_height="40dp"
                                      android:layout_margin="5dp"
                                      android:background="#fff"
                                      android:focusable="true"
                                      android:hint="No Of Person You Need"
                                      android:inputType="number"
                                      android:maxLength="2"
                                      android:maxLines="1"
                                      android:padding="5dp"
                                      android:singleLine="true"
                                      android:text="" /&gt;
  
                                  &lt;EditText
  
                                      android:id="@+id/et_serviceaddress"
                                      android:layout_width="match_parent"
                                      android:layout_height="70dp"
                                      android:layout_margin="5dp"
                                      android:background="#fff"
                                      android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890/-,: "
                                      android:focusable="true"
                                      android:gravity="top"
                                      android:hint="Service Address"
                                      android:inputType="textMultiLine|textCapSentences"
                                      android:maxLines="4"
                                      android:padding="10dp"
                                      android:singleLine="true"
                                      android:text="" /&gt;
  
  
                              &lt;/LinearLayout&gt;
                          &lt;/android.support.v4.widget.NestedScrollView&gt;
  
  
                      &lt;/LinearLayout&gt;
  
                      &lt;RelativeLayout
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center"
                          android:layout_marginBottom="20dp"
                          android:layout_marginTop="-20dp"
                          android:gravity="center"&gt;
  
                          &lt;Button
                              android:id="@+id/btn_submit"
                              style="@style/Widget.AppCompat.Button.Colored"
                              android:layout_width="wrap_content"
                              android:layout_height="45dp"
                              android:layout_gravity="center"
                              android:layout_marginTop="20dp"
                              android:background="@drawable/rounded_green"
                              android:ems="10"
                              android:gravity="center"
                              android:text="Submit"
                              android:textSize="20dp"
                              android:textStyle="bold" /&gt;
  
                          &lt;ProgressBar
                              android:id="@+id/btnsubmit"
                              android:layout_width="30dp"
                              android:layout_height="30dp"
                              android:layout_centerInParent="true"
                              android:layout_gravity="center"
                              android:visibility="gone" /&gt;
  
                      &lt;/RelativeLayout&gt;
  
  
                  &lt;/LinearLayout&gt;
  
  
              &lt;/LinearLayout&gt;
  
          &lt;/LinearLayout&gt;
  
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>