I\'m trying to implement a layout which contains RecyclerView and ScrollView at the same layout.
Layout template:
I was having the same problem. That's what i tried and it works. I am sharing my xml and java code. Hope this will help someone.
Here is the xml
< NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
Here is the related java code. It works like a charm.
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
recyclerView.setLayoutManager(linearLayoutManager);
recyclerView.setNestedScrollingEnabled(false);