RecyclerView Scroll Not Working Inside NestedScrollView

I have checked a lot of answers, but none of the solutions work for me!

The layout I have is:
<

NestedScrollView>
  <LinearLayout>
     <OtherLayouts>
     <LinearLayout>
       <RecyclerView>
       <OtherLayouts>
     </LinearLayout>
  </LinearLayout>
</NestedScrollView>

My problem is that I have to scroll the recycler view to a particular position initially itself.
I have tried:
recyclerView.setNestedScrollingEnabled(false)

the height for my recycler view is already set to wrap_content

Happy to provide any other details. Pls help if you know the solution!

Source: Android Questions

LEAVE A COMMENT