Hey guys what approach would you use to have something like this? (Multiple horizontal recviews, and other stuff underneath it etc..)
I dont think nested scroll view works for this nor mergeAdapter. Just a general direction to look into is appreciated.
I am aware SO is more fitting as this isnt specific to kotlin, but I dont have a concrete problem nor a question, so Id probably get shamed or ignored there.
u
Ugi
07/12/2020, 10:53 AM
I don't think you need to do anything with nested scroll views, I'd create one vertical recycler view and then populate that recycler view with different items, some of which will be horizontal recycler views.
Take a look here on how to handle that with linear layout manager
https://stackoverflow.com/questions/28460300/how-to-build-a-horizontal-listview-with-recyclerview
One caveat, I haven't done android dev in a couple of months now, so there might be something newer than my approach, but this would be my first try.
n
Nikola Milovic
07/12/2020, 10:56 AM
@Ugi I'll try and incorporate it! Thanks!
k
KayCee
07/14/2020, 11:07 AM
sorry I don't get the part "mergeAdapter' . I used to create a similar one by using nested scroll view.
ConstraintLayout nested in nested scroll view. And then in constraint layout you can have several recycler views.