-3

I'm trying to achieve the UI shown in the image. There are several rows with a title and a horizontal RecyclerView below. I could implement it using a lot of TextView/Recyclerviews but I think it will be inefficient and hard to control.

Is there a better way?

enter image description here

alexpfx
  • 6,412
  • 12
  • 52
  • 88
  • 1
    You should use `RecyclerView` component with horiontal layout. – Aditya Jan 15 '18 at 04:52
  • Could you explain how I achieve this using one recyclerview with horizontal layout? – alexpfx Jan 15 '18 at 05:03
  • I do not think there is anything to explain . Just search for `RecyclerView` tutorial .`RecyclerView` works both horizontally and vertically . Use `SnapHelper` to get snap effect on first item . – ADM Jan 15 '18 at 05:10
  • @alexpfx https://stackoverflow.com/questions/28460300/how-to-build-a-horizontal-listview-with-recyclerview – Dr.jacky Jan 15 '18 at 05:13
  • I don't think a another way .While all lists are independent from each other . `RecyclerView` is the ultimate solution AFAIK. – ADM Jan 15 '18 at 05:35

1 Answers1

1

Found the solution using this SectionedRecyclerViewAdapter that allows a unique RecyclerView to be split into several sections:

enter image description here

alexpfx
  • 6,412
  • 12
  • 52
  • 88