title: Android how to make scrollView auto scroll to the bottom when click on editText?
body: <p>I show you guy the normal view of the layout below:</p>
  
  <p><a href="https://i.stack.imgur.com/2jBdA.jpg" rel="nofollow noreferrer">Image 1</a></p>
  
  <p>When I clicked on <strong>email editText</strong> the softkeyboard was pop up, the editText is cover by softkeyboard, it that show as picture below:</p>
  
  <p><a href="https://i.stack.imgur.com/3Ctdq.png" rel="nofollow noreferrer">Image 2</a></p>
  
  <p>So, I wanted to click the editText and the scrollView will auto scroll to the bottom and not cover by softkeyboard that show as picture below:</p>
  
  <p><a href="https://i.stack.imgur.com/uXZQP.png" rel="nofollow noreferrer">Image 3</a></p>
  
  <p><strong>mylayout.xml code below:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 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/bg_account_light_brown"
  android:clickable="true"&gt;
  &lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:id="@+id/scroll"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      android:layout_marginBottom="0dp"
      app:layout_constraintBottom_toTopOf="@+id/btn_login"&gt;
  
      &lt;android.support.constraint.ConstraintLayout
          android:id="@+id/constraintLayout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintHorizontal_bias="0.0"
          app:layout_constraintVertical_bias="1.0"&gt;
  
  
          &lt;ImageView
              android:id="@+id/imageView"
              android:layout_width="match_parent"
              android:layout_height="400dp"
              android:scaleType="fitXY"
              app:srcCompat="@drawable/bg_carousel_01" /&gt;
  
          &lt;EditText
              android:id="@+id/i_email"
              android:layout_width="320dp"
              android:layout_height="49dp"
              android:layout_marginEnd="8dp"
              android:layout_marginStart="8dp"
              android:layout_marginTop="20dp"
              android:background="@drawable/rounded_shape_input"
              android:ems="10"
              android:hint="Email"
              android:inputType="textEmailAddress"
              android:paddingLeft="20dp"
              android:paddingRight="20dp"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintHorizontal_bias="0.493"
              app:layout_constraintLeft_toLeftOf="parent"
              app:layout_constraintRight_toRightOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toBottomOf="@+id/imageView" /&gt;
  
  
          &lt;TextView
              android:id="@+id/textViewSignUp"
              android:layout_width="284dp"
              android:layout_height="wrap_content"
              android:layout_marginBottom="2dp"
              android:layout_marginEnd="8dp"
              android:layout_marginStart="8dp"
              android:layout_marginTop="300dp"
              android:fontFamily="@font/lato_bold"
              android:gravity="center"
              android:text="LOGIN"
              android:textColor="@color/white"
              android:textSize="70sp"
              android:textStyle="bold|bold"
              app:layout_constraintBottom_toBottomOf="@+id/imageView"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintRight_toRightOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toTopOf="@+id/imageView" /&gt;
  
          &lt;EditText
              android:id="@+id/i_password"
              android:layout_width="320dp"
              android:layout_height="49dp"
              android:layout_marginBottom="8dp"
              android:layout_marginEnd="8dp"
              android:layout_marginStart="8dp"
              android:layout_marginTop="8dp"
              android:background="@drawable/rounded_shape_input"
              android:ems="10"
              android:hint="Password"
              android:inputType="textPassword"
              android:paddingLeft="20dp"
              android:paddingRight="20dp"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintHorizontal_bias="0.493"
              app:layout_constraintLeft_toLeftOf="parent"
              app:layout_constraintRight_toRightOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toBottomOf="@+id/i_email"
              app:layout_constraintVertical_bias="0.52" /&gt;
  
      &lt;/android.support.constraint.ConstraintLayout&gt;
  &lt;/ScrollView&gt;
  
  &lt;Button
      android:id="@+id/btn_login"
      style="?android:attr/borderlessButtonStyle"
      android:layout_width="320dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:background="@drawable/rounded_shape2"
      android:clickable="true"
      android:text="Login"
      android:textColor="#FFFFFF"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.973" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>