简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM