多个水平列表视图 [英] Multiple Horizontal List View

查看:88
本文介绍了多个水平列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的活动中,我有三个水平列表视图.每个列表视图都是不同的.

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.

推荐答案

android中有一个名为 Recycler View 的视图.这是android中列表视图的重新实现,具有许多新功能.在回收站"视图中,您可以轻松制作水平列表视图.我找到了一个教程,该教程中包含了源代码.

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/horizo​​ntal-recyclerview-in-vertical.html

这篇关于多个水平列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆