title: How to align textview at the bottom of the screen inside a scroll view android
body: <p>I am designing a login screen having following items </p>
  
  <blockquote>
    <ol>
    <li><p>Logo </p></li>
    <li><p>User Name </p></li>
    <li><p>Password
    4.Login Button</p></li>
    <li>Copyright </li>
    </ol>
  </blockquote>
  
  <p>Below is the layout I have tried to implement the same  </p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  style="@style/ActivityStyle"
  android:orientation="vertical"
  tools:context=".abc.ui.main.login.view.LoginActivity"&gt;
  &lt;!-- Login progress --&gt;
  &lt;ProgressBar
      android:id="@+id/login_progress"
      style="?android:attr/progressBarStyle"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerInParent="true"
      android:layout_marginBottom="8dp"
      android:visibility="gone" /&gt;
  
  &lt;ScrollView
      android:id="@+id/login_form"
      android:layout_width="match_parent"
      android:layout_height="fill_parent"
      android:layout_gravity="center_vertical"&gt;
  
      &lt;RelativeLayout
          android:id="@+id/email_login_form"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:orientation="vertical"&gt;
  
          &lt;ImageView
              android:id="@+id/img_abc_logo"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="20dp"
              android:src="@mipmap/abc_logo" /&gt;
  
          &lt;LinearLayout
              android:id="@+id/linearLayout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@id/img_abc_logo"
              android:layout_marginTop="80dp"
  
              android:orientation="vertical"&gt;
  
  
              &lt;android.support.design.widget.TextInputLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
  
                  &lt;android.support.v7.widget.AppCompatEditText
                      android:id="@+id/edit_user_name"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginBottom="16dp"
                      android:hint="@string/prompt_email"
                      android:inputType="textEmailAddress"
                      android:maxLines="1"
                      android:paddingTop="10dp"
                      android:singleLine="true"
                      android:textColor="@color/fontColor"
                      android:textColorHint="@color/copy_right_font_color" /&gt;
  
              &lt;/android.support.design.widget.TextInputLayout&gt;
  
              &lt;android.support.design.widget.TextInputLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
  
                  &lt;android.support.v7.widget.AppCompatEditText
                      android:id="@+id/edit_password"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:hint="@string/prompt_password"
                      android:imeActionId="@+id/login"
                      android:imeActionLabel="@string/action_sign_in_short"
                      android:imeOptions="actionUnspecified"
                      android:inputType="textPassword"
                      android:maxLines="1"
                      android:singleLine="true"
                      android:textColor="@color/fontColor"
                      android:textColorHint="@color/copy_right_font_color" /&gt;
              &lt;/android.support.design.widget.TextInputLayout&gt;
  
              &lt;Button
                  android:id="@+id/button_login"
                  style="?android:textAppearanceSmall"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="16dp"
                  android:height="55dp"
                  android:text="@string/action_sign_in"
                  android:textStyle="bold" /&gt;
  
          &lt;/LinearLayout&gt;
  
  
      &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  
  &lt;TextView
      style="@style/CopyRightTextView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_centerHorizontal="true"
      android:paddingTop="30dp"
      android:text="@string/copy_right_text" /&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>My requirement</strong> </p>
  
  <blockquote>
    <ol>
    <li>Log should be at the top </li>
    <li>User name ,password and login button should be at the center of screen </li>
    <li>Copyright at the bottom </li>
    </ol>
  </blockquote>
  
  <p><strong>Problem faced</strong> </p>
  
  <ol>
  <li><p>Since I am using scroll view I am not able to fill the height . I tried with android:fillViewport="true" but my scroll disappear.So I am not able to place login input and button to center </p></li>
  <li><p>Copyright info is coming above login button when key board appear </p></li>
  </ol>