I have a RecyclerView inside ScrollView. I want RecyclerView to start scrolling itself only after it reached a top of the screen, and while it isn't it should scroll his parent ScrollView. How to achieve this behavior?
CodePudding user response:
Use this line in RecyclerView
android:scrollbars="vertical"
OR
android:scrollbars="horizontal"
code :
<android.support.v7.widget.RecyclerView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
/>
CodePudding user response:
use widget nestedscrollview or recyclerview scroll display and scrollview enable
recyclerView.setNestedScrollingEnabled(false);