Skip to main content
Fix code and text style, make it more clean for understanding
Source Link

**Solution which worked for meSolution which worked for me

Use
Use NestedScrollViewNestedScrollView with height as wrap_contentwrap_content, and for your RecyclerView setup this:

<br> <androidx.recyclerview.widget.RecyclerView    android:layout_width="match_parent"<br>layout_width="match_parent"   android:layout_height="wrap_content"<br>layout_height="wrap_content"   android:nestedScrollingEnabled="false"<br>nestedScrollingEnabled="false"   app:layoutManager="android.support.v7.widget.LinearLayoutManager" tools:targetApi="lollipop"<br><br> and view holder layout />  <br> 

And set view holder layout params:

android:layout_width="match_parent"<br>layout_width="match_parent"  android:layout_height="wrap_content" 

//Your row content goes here

**Solution which worked for me
Use NestedScrollView with height as wrap_content

<br> RecyclerView    android:layout_width="match_parent"<br>   android:layout_height="wrap_content"<br>   android:nestedScrollingEnabled="false"<br>   app:layoutManager="android.support.v7.widget.LinearLayoutManager" tools:targetApi="lollipop"<br><br> and view holder layout  <br> android:layout_width="match_parent"<br>  android:layout_height="wrap_content" 

//Your row content goes here

Solution which worked for me

Use NestedScrollView with height as wrap_content, and for your RecyclerView setup this:

<androidx.recyclerview.widget.RecyclerView android:layout_width="match_parent" android:layout_height="wrap_content" android:nestedScrollingEnabled="false" app:layoutManager="android.support.v7.widget.LinearLayoutManager" /> 

And set view holder layout params:

android:layout_width="match_parent" android:layout_height="wrap_content" 

**Solution which worked for me
Use NestedScrollView with height as wrap_content
RecyclerView with android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
app:layoutManager="android.support.v7.widget.LinearLayoutManager" tools:targetApi="lollipop"

and view holder layout
android:layout_width="match_parent"
android:layout_height="wrap_content"

<br> RecyclerView android:layout_width="match_parent"<br> android:layout_height="wrap_content"<br> android:nestedScrollingEnabled="false"<br> app:layoutManager="android.support.v7.widget.LinearLayoutManager" tools:targetApi="lollipop"<br><br> and view holder layout <br> android:layout_width="match_parent"<br> android:layout_height="wrap_content" 

//Your row content goes here

**Solution which worked for me
Use NestedScrollView with height as wrap_content
RecyclerView with android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
app:layoutManager="android.support.v7.widget.LinearLayoutManager" tools:targetApi="lollipop"

and view holder layout
android:layout_width="match_parent"
android:layout_height="wrap_content" //Your row content goes here

**Solution which worked for me
Use NestedScrollView with height as wrap_content

<br> RecyclerView android:layout_width="match_parent"<br> android:layout_height="wrap_content"<br> android:nestedScrollingEnabled="false"<br> app:layoutManager="android.support.v7.widget.LinearLayoutManager" tools:targetApi="lollipop"<br><br> and view holder layout <br> android:layout_width="match_parent"<br> android:layout_height="wrap_content" 

//Your row content goes here

Source Link

**Solution which worked for me
Use NestedScrollView with height as wrap_content
RecyclerView with android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
app:layoutManager="android.support.v7.widget.LinearLayoutManager" tools:targetApi="lollipop"

and view holder layout
android:layout_width="match_parent"
android:layout_height="wrap_content" //Your row content goes here