why when used nested scrollview performance goes down and frame scroll slow ? what is solution?
when i use nested scroll view for many data that load in nested , performance go low
why when used nested scrollview performance goes down and frame scroll slow ? what is solution?
when i use nested scroll view for many data that load in nested , performance go low
2
Answers
If you have RecyclerView inside your NestedScrollView and RecyclerView attribute
android:nestedScrollingEnabled="false"
will make the onBindViewHolder called for all the items at once and the items will not get recycled. This may cause a serious performance issue especially for big datas.To improve performance, consider using a different layout structure or implementing pagination to load data in smaller batches. Additionally, using the RecyclerView instead of ListView can improve performance.