Android ListView.count vs ListView.size

Viewed 46

what is the difference between count and size in a listview in android ?

my listview shows listViewMusic.count = 204 but listViewMusic.size = 12 and i don't know why

1 Answers

As the documentation says:

listViewMusic.size Returns the number of views in this view group.

listViewMusic.count return The number of items owned by the Adapter associated with this AdapterView. (This is the number of data items, which may be larger than the number of visible views.)

Related