Android ListView set Number of items to show

我怕爱的太早我们不能终老 提交于 2019-12-01 21:37:32

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.

just do:

list.remove(3);
list.remove(4);
...
list.remove(9);

in the constructor of the listview adapter.

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