Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RecyclerView inside NestedScrollView takes too much time when loading large amount of data

RecyclerView inside NestedScrollView freezes the Activity when loading large amount of data. It loads much faster with ScrollView, but scrolling is affected in that case. I tried setting attributes like setAutoMeasure and setNestedScrollingEnabled which did not help. Any suggestions?

like image 564
kunal.c Avatar asked Jan 03 '18 08:01

kunal.c


1 Answers

Recycling of views is not supported inside NestedScrollViews as I understand, so the suggestion would be to try to change your layout.

like image 50
David Avatar answered Nov 02 '22 07:11

David