项目展示Android的ListView的集数 [英] Android ListView set Number of items to show

查看:107
本文介绍了项目展示Android的ListView的集数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置的项目数,而不滚动列表显示?

How can i set the number of items to show in a list without to scroll?

例子:我有10个项目的清单。 我想,只有3项出现,我必须滚动看到的项目的其余部分。

Example: I have a list with 10 items. I want that only 3 items appears and that I have to scroll to see the rest of the items.

推荐答案

我想在ListView中显示的项目的数量取决于可用的清单的大小。我会尝试的布局限制列表的大小。这可能是可能的,这样详细的布局是不可能很容易,不同的屏幕大小可以显示更多的内容等。

I think the amount of Items shown in the Listview depends on the size that is available for the list. I would try a layout that limits the size of the list. It could be possible that such a detailed layout is not possible very easily, a different screen size could show more items etc.

这篇关于项目展示Android的ListView的集数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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