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.
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/id1"
style="@style/Style1">
<ImageButton
android:id="@+id/btn"
style="@style/NoStyle"
app:layout_constraintBottom_toBottomOf="@id/recycler_view"
app:layout_constraintEnd_toStartOf="@id/recycler_view"
app:layout_constraintHorizontal_bias="0.002"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/recycler_view"
app:layout_constraintWidth_percent="0.05" />
<androidx.cardview.widget.CardView
android:id="@+id/recycler_view"
style="@style/NoStyle"
android:background="@color/transparent"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent="0.6"
app:layout_constraintHorizontal_bias="0.1"
app:layout_constraintStart_toEndOf="@id/btn"
app:layout_constraintTop_toBottomOf="@parent"
app:layout_constraintVertical_bias="0.1"
app:layout_constraintWidth_percent="0.9"
app:noOfColumnInFirstPage="3" />
</androidx.constraintlayout.widget.ConstraintLayout>
Currently, it is like this. I don't want it to overlap with my button, while maintaining my bounce effect.