Limit a listview to 25 items

血红的双手。 提交于 2019-12-06 07:33:35

You want to use that code (or similar) to override the default getCount method in ListAdapter: http://developer.android.com/reference/android/widget/ListAdapter.html

You can check an example in: http://www.vogella.com/tutorials/AndroidListView/article.html#listview_listviewexample

Hey you want to get list with limit, you have two option 1. You set array list size, 2. You can set, when you get data put for loop and set limit

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