Recycler View loading very slow for large data when inside NestedScrollView

后端 未结 3 1535
执笔经年
执笔经年 2021-02-05 20:45

I have added RecyclerView inside my NestedScrollView. Basically I want RecyclerView to scroll with other Views. The problem that I am facing is that fo

3条回答
  •  深忆病人
    2021-02-05 21:08

    This case of RecyclerView inside NestedScrollView.

    RecyclerView is calling onCreateViewHolder() times equal to your data size.

    If data has 200 items, it freezes for onCreateViewHolder() to be called 200 times.

提交回复
热议问题