Hey guys what approach would you use to have somet...
# android
n
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
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
@Ugi I'll try and incorporate it! Thanks!
k
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.
c