title: How to scroll and view an element below a listview if it takes up the entire screen in Android?
body: <p>I have a checkout cart ListView in my layout that could possibly take up the entire screen if the user decides to add a lot of items. But the checkout button below the ListView is inaccessible if the listView fills up. Here is a sample layout:</p>
  <pre><code>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/constraintLayout&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
      &lt;ListView
          android:id=&quot;@+id/cartListView&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginBottom=&quot;16dp&quot;/&gt;
  
      &lt;Button
          android:id=&quot;@+id/checkOutButton&quot;
          android:onClick=&quot;checkOutButtonClick&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginLeft=&quot;100dp&quot;
          android:layout_marginRight=&quot;100dp&quot;
          android:background=&quot;@drawable/custom_button_service&quot;
          android:text=&quot;@string/service_findMe_button&quot;
          android:layout_gravity=&quot;center&quot;
          android:textColor=&quot;@android:color/white&quot;
          android:paddingLeft=&quot;15dp&quot;
          android:paddingRight=&quot;15dp&quot;
          android:layout_below=&quot;@id/cartListView&quot;
          android:textStyle=&quot;normal&quot; /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>