Reputation: 1388
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 !!!
Upvotes: 2
Views: 1620
Reputation: 261
You can try add this property for RecyclerView
- android:nestedScrollingEnabled="false"
Upvotes: 0