I have a NestedScrollView with 11 type of views (ImageView, 6 TextViews, 4 CardViews(with 1 RecyclerView in each)), the images of the layout is attached below. I am thinking of Implementing multi-view recyclerview rather than the nestedscrollview.
Do I get any performance improvements by using recyclerview?
No, all of the advantage comes from recycling. If at least all-1
items are always visible, you get no performance advantage. Instead you get disadvantage of not saving the state of child items (like scroll position of orthogonal sub-recyclers won't be preserved when navigating forward and back).
However, you do get the advantage of streamlining your workflow through commonality with other, recycler-based views.
I'm the kind of person who always uses RecyclerView
, but I do it out of laziness.