Reputation: 1
How to get the total number of checked items from a listview in Android? Please help.
Upvotes: 0
Views: 540
Reputation: 6167
There's getCheckedItemCount()
. You could also call getCheckedItemIds()
on it and then call length()
on that. (You can get the ListView to call this on by doing a findViewById on it, or by calling getListView()
inside the ListActivity.)
Upvotes: 4