I have been reading articles and questions about recycling a listItem rather than Inflating a new one which is costly. In particular I read this question and I understood the answers, but my question is: When we scroll down a list some listItems from the top disappear and they should be recycled and be shown again in the bottom of the List.
How does android determine the position of them?
When we use the viewHolder = (ViewHolder)convertView.getTag;
the viewHolder obviously holds the row who wants to be recycled and when we set View Elements by using viewHolder.txtName.setText(dataModel.getName());
I understand that we update the Elements in that particular viewHolder so how does it go to the bottom of the List?
I found this article very useful but there is not enough explanation and comments to make recycling clear for me. Android ListView with Custom Adapter