2

I have a structure like this when I try to scroll outside area of RecyclerView its not working (scrolling)

<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"  
android:fillViewport="true">

<androidx.constraintlayout.widget.ConstraintLayout
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >

    <androidx.cardview.widget.CardView     
    </androidx.cardview.widget.CardView>

    <androidx.recyclerview.widget.RecyclerView
     />

</androidx.constraintlayout.widget.ConstraintLayout>

Any help on this !!!

Aniruddh Parihar
  • 3,072
  • 3
  • 21
  • 39
Nisarg
  • 1,358
  • 14
  • 30

2 Answers2

1

NestedScrollView wrap constraintlayout wrap

RecyclerView wrap

0

You can try add this property for RecyclerView - android:nestedScrollingEnabled="false"