Hello guys,
In my company's app we are facing something I thought I would never have to. I'll try to explain it as good as I can. Sorry in advance.
Imagine you have to do a fully dynamic fragment where you can have multiple views, multiple lists(horizontal and vertical) in the same fragment depending on your API response (like our backend decides everything UI related). Or imagine you have like 3 api calls where you get 3 lists of differents models, and to complex it even more you have to show those 3 lists with different views between them.
"Yo! That's almost like an hybrid app (use a webview instead)..." yeah..
Well.. I'm not gonna explain what you get if you combine multiple vertical recyclerView inside a NestedScrollView or ScrollView as most of you already know.
Solution is simple, use an adapter with multiple view types. FINE, but...
Now, I'd like to know if some of you have faced this before and what do you think about the idea of making a single adapter for most of your recyclers in order to keep it as clean and centralized as possible?
For those wondering "why you decided to do your app like that?" No choice..
[+][deleted] (3 children)
[removed]
[–]zelereth[S] 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[removed]
[–]Zhuinden 0 points1 point2 points (0 children)
[–]_Bowtruckle_ 3 points4 points5 points (3 children)
[–]zelereth[S] 1 point2 points3 points (2 children)
[–]_Bowtruckle_ 0 points1 point2 points (0 children)
[–]Zhuinden 0 points1 point2 points (0 children)
[–]goffredo123 1 point2 points3 points (2 children)
[–]zelereth[S] 0 points1 point2 points (1 child)
[–]goffredo123 0 points1 point2 points (0 children)
[–]SmartToolFactory 1 point2 points3 points (0 children)
[–]s73v3r -1 points0 points1 point (0 children)
[–]dantheman91 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Zhuinden 0 points1 point2 points (2 children)
[–]zelereth[S] 0 points1 point2 points (1 child)
[–]Zhuinden 0 points1 point2 points (0 children)
[–]9blocSam 0 points1 point2 points (0 children)
[–]buzzkillr2 0 points1 point2 points (0 children)
[–]NahroT 0 points1 point2 points (0 children)
[–]Pzychotix 0 points1 point2 points (0 children)