项目展示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.