title: Bottom item cut in reyclerview in android
body: <p>Hey I am working in constraint layout with recylerview. My bottom item is cut in the screen. I read this stack overflow <a href="https://stackoverflow.com/q/32742724/18958467">post</a>. I don't want to use relative layout or linear layout. Can someone guide me how to fix this in constraint layout.</p>
  <p><strong>abc.xml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
      &lt;androidx.appcompat.widget.SearchView
          android:id=&quot;@+id/searchView&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginStart=&quot;10dp&quot;
          android:layout_marginTop=&quot;10dp&quot;
          android:layout_marginEnd=&quot;16dp&quot;
          app:closeIcon=&quot;@drawable/ic_cancel&quot;
          app:layout_constraintBottom_toTopOf=&quot;@+id/exploreScroll&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          app:layout_constraintVertical_chainStyle=&quot;packed&quot;
          app:layout_constraintVertical_bias=&quot;0.0&quot; /&gt;
  
      &lt;HorizontalScrollView
          android:id=&quot;@+id/exploreScroll&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginStart=&quot;10dp&quot;
          android:layout_marginTop=&quot;10dp&quot;
          android:scrollbars=&quot;none&quot;
          app:layout_constraintBottom_toTopOf=&quot;@+id/exploreList&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/searchView&quot;&gt;
  
          &lt;com.google.android.material.chip.ChipGroup
              android:id=&quot;@+id/exploreChips&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              app:chipSpacingHorizontal=&quot;10dp&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintTop_toTopOf=&quot;parent&quot;
              app:singleLine=&quot;true&quot;
              app:singleSelection=&quot;true&quot; /&gt;
  
      &lt;/HorizontalScrollView&gt;
  
      &lt;androidx.recyclerview.widget.RecyclerView
          android:id=&quot;@+id/exploreList&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginBottom=&quot;20dp&quot;
          android:paddingTop=&quot;10dp&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_toBottomOf=&quot;@+id/exploreScroll&quot; /&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p>My view cut from</p>
  <p><a href="https://i.stack.imgur.com/8Vxfc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Vxfc.png" alt="enter image description here" /></a></p>
  <p>UPDATE</p>
  <p>@Zain after your suggestion i tried in my xml any my <code>HorizontalScrollView</code> is going behind my <code>RV</code>. I am adding my blueprint and you can see clearly that, <code>HorizontalScrollView</code> is going behind. After removing <code>app:layout_constraintBottom_toTopOf=&quot;@+id/exploreList&quot; from the HorizontalScrollView</code>.</p>
  <p><a href="https://i.stack.imgur.com/FlhG7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FlhG7.png" alt="enter image description here" /></a></p>
  <p>2nd suggestion try</p>
  <p><a href="https://i.stack.imgur.com/3H8Jj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3H8Jj.png" alt="enter image description here" /></a></p>