Multiple Horizontal List View

a 夏天 提交于 2020-01-05 07:14:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!