Joel Min
Joel Min

Reputation: 3457

Implementing a list that is both vertically & horizontally scrollable

I have a question related to Android app UI implementation. The UI I want to implement is very similar to the Slideshare app UI, which I've attached below:

enter image description here

Apologies for the size of the image. But basically I want to implement a vertical list, and each item within the list is another horizontal list of sub-items.

My current plan of approach is implementing a vertical RecyclerView, and then implementing each item of the list as a horizontal RecyclerView (basically a 2-Dimensional RecyclerView).

Am I on the right track here? I apologise I cannot provide any code because I am still in the design phase. I do not want any code solutions but rather a guide or small tips as to how to approach implementing such UI.

Thank you for your time reading this question. Any tips would be highly appreciated!

Upvotes: 1

Views: 115

Answers (2)

Milad Faridnia
Milad Faridnia

Reputation: 9477

You can take a look at VerticalHorizontalListView and twoway-view and of course this link might be a help, which explains how to implement Dynamic Shelfview in Android.

I found this answer on SO : Horizontal ScrollView in List View Item Android which explains the issue prefectly, you can take a look at that too. I hope this links help you ;)

Upvotes: 1

Iulian
Iulian

Reputation: 1156

You can use TwoWayView library to implement this scenario for bot horizontal and vertical listviews or you can use RecyclerView.

TwoWayView Library: https://github.com/lucasr/twoway-view/

TwoWayView Samples: https://github.com/lucasr/twoway-view/tree/master/sample

You can read a great tutorial about how to implement this on on this Github page.

Upvotes: 1

Related Questions