简体   繁体   English

NestedScrollView内的RecyclerView比RecyclerView滚动得更快

[英]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 NestedScrollView里面的RecyclerView滚动速度更快,但是当我们删除NestedScrollView时,RecyclerView工作不顺畅,它在滚动时卡住并且在完全加载后,滚动没问题,在没有NestedScrollView的RecyclerView里面加载数据需要一些时间

No issue if it is inside NestedScrollView but because of some issue we need to remove NestedScrollView . 如果它在NestedScrollView中没有问题,但由于某些问题,我们需要删除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. 在你的情况RecyclerViewNestedScrollView比较快,因为RecyclerView没有高度限制和适配负载的所有项目。 You have to use correct implementation of ViewHolder pattern and don't block ui thread to get smoothly scrolling 您必须使用ViewHolder模式的正确实现,并且不要阻止ui线程以顺利滚动

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 检查nestedscrollview中的recyclelerview滚动状态 - Check recyclerview scroll state inside nestedscrollview NestedScrollView中的RecyclerView - 不需要的滚动开始 - RecyclerView inside NestedScrollView - unwanted scroll to begin NestedScrollView里面没有使用Recyclerview - NestedScrollView not fling with Recyclerview inside RecyclerView 不在 NestedScrollView 内滚动 - RecyclerView not scrolling inside NestedScrollView NestedScrollView 内的 RecyclerView 问题 - RecyclerView inside NestedScrollView issue LinearLayout 和 NestedScrollView 中的 RecyclerView - 如何滚动到某个位置的项目顶部? - RecyclerView inside LinearLayout and NestedScrollView - How to scroll to top of item on a certain position? 在nestedscrollview的recyclerview内部的recyclerview的notifyDataChanged上,外部recyclerview滚动到顶部 - On notifyDataChanged of recyclerview inside a recyclerview in a nestedscrollview the outer recyclerview scrolls to top 如何在 NestedScrollView 中限制 RecyclerView 的高度 - How to limit the height of a RecyclerView inside a NestedScrollView 使用NestedScrollView中的Multiple Recyclerview不会发生回收 - View Recycling not happens with Multiple Recyclerview inside NestedScrollView 嵌套滚动视图中的 recyclerview addOnScrollListener (endless scrolllistener) - recyclerview inside nestedscrollview addOnScrollListener (endless scrolllistener)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM