(Horizontal)ScrollView or RecyclerView in this scenario?

46 Views Asked by At

I have a list of complex objects. Each object has a lot of information that is being constantly updated from the backend webserver. I expect to normally work with 50-100 such objects.

Now, each object generates its own complicated widget. Widget architecture:

>Constraintlayout

-> 3 TextViews

-> SeekBar

-> 2 Guidelines

-> ConstraintLayout

--> LinearLayout

---> 1-6 FrameLayouts (share the same architecture)

----> LinearLayout

-----> 3 simple Views

----> 2 custom seekbars of different kinds

So if I have 100 objects, I have 100 of those widgets in a scrollable ViewGroup. Each widget databound to its object to visualize data from and pass to backend. This also means if I use RecyclerView, I have to set recyclable to false. What would be the better ViewGroup to use in this case?

2

There are 2 best solutions below

0
Dr. Sa.M. On

Well, in this situation I would go for RecyclerView along with that I would go for ListAdapter.

5
ΓDΛ On

You can use ConcatAdapter.

An Adapter implementation that presents the contents of multiple adapters in sequence.

Sample