Android Recyclerview Poor Performance After Api 27 To 29 Migration
Migrated app to support latest API 29. All has gone very well, app functions correctly, except for one perplexing issue; A recyclerview is populated using a SQLite query, which ma
Solution 1:
Also noticed that once, that it became quite sluggish ...
The problem is likely that NestedScrollView
> LinearLayout
> RecyclerView
.
Also that include
is pretty useless, with one single node contained.... you have to nest it like this:
<androidx.core.widget.NestedScrollViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:isScrollContainer="true"android:longClickable="false"android:measureAllChildren="true"app:layout_behavior="@string/appbar_scrolling_view_behavior"><androidx.recyclerview.widget.RecyclerViewandroid:id="@+id/recyclerview"tools:listitem="@layout/cardview"android:layout_width="match_parent"android:layout_height="match_parent"android:color="?android:colorControlHighlight"android:fastScrollEnabled="true"android:gravity="start"android:scrollbarStyle="insideInset"android:scrollbars="vertical"android:splitMotionEvents="false"android:verticalScrollbarPosition="right"/></androidx.core.widget.NestedScrollView>
Post a Comment for "Android Recyclerview Poor Performance After Api 27 To 29 Migration"