title: How to make sure recycler view adapter item takes full height of the screen
body: <p>I have a recyclerview which contains many items.</p>
  <p>But the first item is like an intro screen, it has a button on which user can tap to view more, or user can scroll to view more data.</p>
  <p>Something like following.</p>
  <p><a href="https://i.stack.imgur.com/mdhdg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mdhdg.png" alt="enter image description here" /></a></p>
  <p>I want this button to be at the bottom of screen, in small devices it is not visible unless user scrolls the view. So basically layout is taking more height, so user has to scroll to view the complete layout.</p>
  <p>I am using constraint layout, and connect it to the bottom of the view.</p>
  <p>There are only 2 items in the view, 1 is imageView, which does not have any image, I have only added background color to it, and other is a TextView.</p>
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;&gt;
   
   
   &lt;ImageView
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;0dp&quot;
          android:background=&quot;@color/Black_Color&quot;
          android:scaleType=&quot;centerCrop&quot;
  
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
          
          
   &lt;TextView
          android:layout_width=&quot;0dp&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginLeft=&quot;16dp&quot;
          android:layout_marginRight=&quot;16dp&quot;
          android:gravity=&quot;center&quot;
          android:layout_marginBottom=&quot;50dp&quot;
          android:textSize=&quot;17dp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot; /&gt;
  
  &lt;/      
  </code></pre>