It's called as many times as ListView sees fit.
FWIW, I've also seen getView called more times than the number of
visible list items (about 2X the number).
Don't worry about it - just make sure your getView does the right thing,
based on the item's "position".
Also don't assume a one to one
Ok Thanks for the explanation,
but when I start the app , for example I have 1 list item,(with 2
textviews, a button and an imageview in the list_item.xml) I see that the
getView() is called 3 times.
...?
Thank you!
--
You received this message because you are subscribed to the Google
Groups
The getView() is called everytime the listview is populating data,
what is meant by this, getView() is called everytime when there is
need views to be recycled. Let's say if you have 20 elements in your
listview, the maximum items visible is 8, the first time you view the
listview, getView() is ca
3 matches
Mail list logo