title: Why is my RecyclerView (CardView) content overlap the button while over-scrolling the list in Android?
body: <p><strong>I have a RecyclerView in which list of CardView is added and there is an ImageButton when I over-scroll the list the content of list is overlap on button. CardView should be scroll before the ImageButton.</strong></p>
  <pre><code>&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:id=&quot;@+id/id1&quot;
      style=&quot;@style/Style1&quot;&gt;
  
      &lt;ImageButton
          android:id=&quot;@+id/btn&quot;
          style=&quot;@style/NoStyle&quot;
          app:layout_constraintBottom_toBottomOf=&quot;@id/recycler_view&quot;
          app:layout_constraintEnd_toStartOf=&quot;@id/recycler_view&quot;
          app:layout_constraintHorizontal_bias=&quot;0.002&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;@id/recycler_view&quot;
          app:layout_constraintWidth_percent=&quot;0.05&quot; /&gt;
  
      &lt;androidx.cardview.widget.CardView
          android:id=&quot;@+id/recycler_view&quot;
          style=&quot;@style/NoStyle&quot;
          android:background=&quot;@color/transparent&quot;
          android:orientation=&quot;horizontal&quot;
          app:layoutManager=&quot;androidx.recyclerview.widget.LinearLayoutManager&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHeight_percent=&quot;0.6&quot;
          app:layout_constraintHorizontal_bias=&quot;0.1&quot;
          app:layout_constraintStart_toEndOf=&quot;@id/btn&quot;
          app:layout_constraintTop_toBottomOf=&quot;@parent&quot;
          app:layout_constraintVertical_bias=&quot;0.1&quot;
          app:layout_constraintWidth_percent=&quot;0.9&quot;
          app:noOfColumnInFirstPage=&quot;3&quot; /&gt;
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p><strong>Currently, it is like this. I don't want it to overlap with my button, while maintaining my bounce effect.</strong>
  <a href="https://i.stack.imgur.com/oLOfd.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oLOfd.gif" alt="enter image description here" /></a></p>