title: Using Scrollview i cannot get the PROCEED button placed at bottom
body: <p>I have an issue using scroll view below are the cases</p>
  
  <p><strong>CASE 1</strong></p>
  
  <p>when i don't use scrollview i get the layout like <a href="https://i.stack.imgur.com/lFrNY.png" rel="nofollow noreferrer">this</a> and this is the layout i need.
  Problem with this approach is when the device resolution is low 412 x 732 or below i cant see the whole content of the layout for that reason <strong>i need scrollview</strong></p>
  
  <p><strong>CASE 2</strong></p>
  
  <p>if i use scroll view i get the view like this <a href="https://i.stack.imgur.com/OIkFd.png" rel="nofollow noreferrer">this</a> and <a href="https://i.stack.imgur.com/JPRHe.png" rel="nofollow noreferrer">this</a> this which is perfect and what i need for 412 x 732 or below but the problem occur when i see the layout in higher resolution 1080x1920 i get <a href="https://i.stack.imgur.com/21OMe.png" rel="nofollow noreferrer">this</a> </p>
  
  <p>what is need is in <strong>CASE 2</strong> for higher resolution device the PROCEED button should touch the bottom with bottomPadding=20dp just like <strong>CASE 1</strong> image </p>
  
  <p>I Really appreciate if someone give me suggestion to acquire the layout that work for both the devices having high and low resolution</p>
  
  <p><strong>Layout</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:background="@color/backgroundColor"&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="USER AGREEMENT"
              android:textColor="@android:color/white"
              android:gravity="center"
              android:id="@+id/userAgereement"
              android:layout_marginTop="20dp"
              android:textSize="@dimen/textSize"/&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Beijing Pinnacle Global &amp;amp; Alex Edu\n(BPGE &amp;amp; Alex Edu)"
              android:textColor="@android:color/white"
              android:gravity="center"
              android:layout_marginEnd="5dp"
              android:layout_marginStart="5dp"
              android:id="@+id/belowHeadingText"
              android:layout_marginTop="20dp"
              android:textSize="@dimen/endSize"/&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Today's Date : 25th of August, 2019"
              android:textColor="@android:color/white"
              android:gravity="center"
              android:layout_marginTop="20dp"
              android:id="@+id/date"
              android:textSize="@dimen/endSize"/&gt;
  
          &lt;View
              android:id="@+id/line"
              android:layout_width="270dp"
              android:layout_gravity="center"
              android:layout_marginTop="4dp"
              android:background="@android:color/white"
              android:layout_height="1dp"&gt;
  
          &lt;/View&gt;
  
          &lt;ImageView
              android:layout_marginTop="20dp"
              android:layout_width="171dp"
              android:layout_height="239dp"
              android:layout_gravity="center"
              android:clickable="true"
              android:id="@+id/imageView"
              android:foreground="?attr/selectableItemBackgroundBorderless"
              android:src="@drawable/useragreemnet"/&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="You Are Going To Sign The User Agreement\nKindly, Provide Us Your Details"
              android:textColor="@android:color/white"
              android:gravity="center"
              android:id="@+id/belowImageText"
              android:layout_marginTop="20dp"
              android:textSize="@dimen/endSize"/&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
  
              android:layout_gravity="center"
              android:layout_marginTop="20dp"
              android:layout_marginBottom="20dp"&gt;
  
              &lt;android.support.v7.widget.CardView
                  android:layout_width="230dp"
                  android:layout_height="@dimen/buttonHeight"
  
                  android:layout_alignParentBottom="true"
                  android:layout_centerHorizontal="true"
                  app:cardBackgroundColor="@color/functionalityColor"
                  app:cardCornerRadius="@dimen/cornerRadiusForButtons"
  
                  app:cardElevation="@dimen/elevation"&gt;
  
                  &lt;Button
                      android:id="@+id/proceed"
                      android:layout_width="match_parent"
                      android:layout_height="@dimen/buttonHeight"
                      android:layout_marginBottom="20dp"
                      android:background="@android:color/transparent"
                      android:clickable="true"
                      android:foreground="?attr/selectableItemBackgroundBorderless"
                      android:gravity="center"
                      android:onClick="onClick"
                      android:text="PROCEED"
                      android:textColor="@android:color/white"
                      android:textSize="@dimen/buttonTextSize" /&gt;
              &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;/RelativeLayout&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>in layout i removed the scrollview and i get the layout that is good for high resolution device but with the low resolution i do not get the whole content to see because i need to scroll down </p>
  
  <p><strong>dimens.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources xmlns:tools="http://schemas.android.com/tools"&gt;
  
   &lt;dimen name="design_navigation_icon_size" tools:override = "true" &gt;30dp&lt;/dimen&gt;
  
  
      // cornor radius for all button
      &lt;dimen name="cornerRadiusForButtons"&gt;5dp&lt;/dimen&gt;
  
      // cornor radius for all edit texts and text views and card views
  
      &lt;dimen name="cornerRadiusForEdittexts"&gt;5dp&lt;/dimen&gt;
  
      // elevation for cardView
  
      &lt;dimen name="elevation"&gt;15dp&lt;/dimen&gt;
  
      // this is the heading text size heading of all activities
  
      &lt;dimen name="textSize"&gt;35sp&lt;/dimen&gt;
  
      // used only once in userprofile below circleimageview
  
      &lt;dimen name="belowHeadingSize"&gt;23sp&lt;/dimen&gt;
  
      // this is the text that is present in the activity
  
      &lt;dimen name="endSize"&gt;17sp&lt;/dimen&gt;
  
      // button heights
  
      &lt;dimen name="buttonHeight"&gt;50dp&lt;/dimen&gt;
  
  
  
  
      // this is button text size
  
      &lt;dimen name="buttonTextSizeMain"&gt;25sp&lt;/dimen&gt;
  
      // donot know where does this use
  
      &lt;dimen name="buttonTextSize"&gt;30sp&lt;/dimen&gt;
  
  
  
  
  
      // width size of text view and edit texts
  
      &lt;dimen name="widthEditText"&gt;290dp&lt;/dimen&gt;
  
      // toolbar main title
  
      &lt;dimen name="toolbarTitle"&gt;18sp&lt;/dimen&gt;
  
      // toolbar subtitle
  
      &lt;dimen name="toolbarSubtitle"&gt;14sp&lt;/dimen&gt;
  
  
      // custom upper and lower cornors of the alert diloge etc
  
  
      &lt;dimen name="customUpperLowerCorners"&gt;5dp&lt;/dimen&gt;
  
  
  
  &lt;/resources&gt;
  </code></pre>