0

I am an Android developer. In a situation where the number of items to show to the user is random, I want to create a horizontal scrollable view that shows 4 items in a vertical list. I mentioned it as 4 items, but it doesn't matter if it's 5 or 6. First, what I thought of was a method using Fragment and ViewPager. However, the problem with this method seemed impossible to implement because the total number of items to be displayed to the user was random, so the required fragment was not determined. If the total number of items to be shown to the user is 10, if it is said to show 4 vertical list items on one screen, is it possible to implement it like my insufficient drawing skills?

enter image description here

The additional 4 lists are only displayed vertically and do not need to be vertically scrolled. Simply put, it shouldn't be vertical scrolling.

H.JiMan
  • 85
  • 7
  • In this post, https://stackoverflow.com/questions/50288713/expandablelistview-with-viewpager-combination-as-its-child, my answer can show you how to automatically determine the required fragments. You can start a new project and try that answer as it is a completed sample. – i_A_mok Aug 09 '20 at 11:23

0 Answers0