# android

Nikola Milovic

07/12/2020, 10:25 AM
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.


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 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.

Nikola Milovic

07/12/2020, 10:56 AM
@Ugi I'll try and incorporate it! Thanks!


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.

Chetan Sachdeva

07/19/2020, 9:22 AM