Can someone tell me what the convertView
parameter is used for in the getView()
method of the Adapter
class?
Here is a sample
You shouldn't be calling that method by yourself.
Android's ListView
uses an Adapter
to fill itself with Views
. When the ListView
is shown, it starts calling getView()
to populate itself. When the user scrolls a new view should be created, so for performance the ListView
sends the Adapter
an old view that it's not used any more in the convertView
param.