问题
In my activity, I have three horizontal list views. Each list view is different.
I'm having difficulty trying to get a certain layout to work: I want to have multiple lists on a page; each list does not have to be scrollable, but should be shown completely.
The page itself should be able to scroll (with the lists in it), if the total content is longer than the screen, like the Allrecipes.com Dinner Spinner app.
回答1:
Add your scrollviews to a listview. You can create a listadapter which returns your horizontal list views.
回答2:
There is a view in android called Recycler View . It's a reimplementation of the list-view in android with lots of new features. In Recycler view, you can easily make a horizontal list view. I have found a tutorial, The source code is included in the tutorial .
http://android-pratap.blogspot.in/2015/12/horizontal-recyclerview-in-vertical.html
来源:https://stackoverflow.com/questions/14160027/multiple-horizontal-list-view