**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