Midhilaj
Midhilaj

Reputation: 4987

RecyclerView inside NestedScrollView scroll faster than RecyclerView

RecyclerView inside NestedScrollView scroll faster, but when we remove NestedScrollView RecyclerView is not working smoothly, it stuck while scrolling and after full loaded, no problem in scrolling,it take some time to load data when it is inside RecyclerView without NestedScrollView

No issue if it is inside NestedScrollView but because of some issue we need to remove NestedScrollView .
How to solve this issue?

Upvotes: 4

Views: 354

Answers (1)

Stanislav Bondar
Stanislav Bondar

Reputation: 6245

In your case RecyclerView inside NestedScrollView is faster because RecyclerView haven't height limits and adapter load all items. You have to use correct implementation of ViewHolder pattern and don't block ui thread to get smoothly scrolling

Upvotes: 4

Related Questions