5

I am working in an android app that I need to build an vertical scrolling list that each item is also a horizontal list. However each item has its independent horizontal scroll. Even some items could not have.

I have been looking for solutions but I only see vertical OR horizontal lists. Or grids like in the TwoWayView.

I am looking for something like the mix from the following image:

Vertical and Horizontal scrolling list and grids

Is that possible in Android? Because my data is an array of arrays.

Thank you in advance.

caiolopes
  • 561
  • 8
  • 14
  • Yes, it is. Check out this thread to get you started : http://stackoverflow.com/questions/31338400/horizontal-and-vertical-scrolling-in-android-recycler-view and also this: http://lucasr.org/2014/07/31/the-new-twowayview/ – Leonardo Oct 15 '15 at 15:00
  • not sure about last one image with horizontal other will be possible using recyclerview and its various layout managers with scrolling vertical or horizontal https://developer.android.com/intl/es/reference/android/support/v7/widget/RecyclerView.html – Pavan Oct 15 '15 at 15:10
  • It is because the data I receive is dynamic, there is no fixed size either vertically or horizontally... – caiolopes Oct 15 '15 at 15:22
  • As @Pavan said, You can achieve this by using vertical RecyclerView, where each item is horizontal RecyclerView. – traninho Oct 15 '15 at 16:50
  • @traninho If you use a vertical RecyclerView with horizontal RecyclerViews within it won't scroll vertically when the scroll start touch point is on the horizontal items; it only scrolls horizontally (by default). You have to setNestedScrollingEnabled(false) on the inner horizontal RecyclerView to get a scrolling behavior that makes sense. – Jon Adams Jan 29 '16 at 19:08

1 Answers1

0

I solved, this question helped me: Nested Recycler view height doesn't wrap its content

Thanks for the comments.

Community
  • 1
  • 1
caiolopes
  • 561
  • 8
  • 14