My recyclerview scrolling is laggy. It lags when I started scrolling by touching the Recyclerview, but when doesn't lag when started from the view above it. I've also disabled nestedscrolling on recyclerview.
Here is my layout:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_height="match_parent" android:layout_width="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto"> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" android:overScrollMode="never"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:focusable="true" android:focusableInTouchMode="true"> <TextView android:layout_width="match_parent" android:layout_height="200dp" android:text="HAHHAHA"/> <android.support.v7.widget.RecyclerView android:id="@+id/mRecyclerViewMain" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_behavior="@string/appbar_scrolling_view_behavior" android:background="@android:color/transparent"> </android.support.v7.widget.RecyclerView> </LinearLayout> </android.support.v4.widget.NestedScrollView> </FrameLayout> Here is a video to the lag. It's like the scroll is skipping some layout.
setNestedScrollView = falseinside recyclerviewmRecyclerViewMain.setNestedScrollingEnabled(false);