I\'m setting a custom SimpleCursorAdapter to a ListView. For some reason FriendAdapter\'s getView() is called twice for every item in the DB. After some investigation (I have no
In order to getView get call only once for each row, you need to call super.getView and then change the returned view. It's something like this
public View getView(int position, View convertView, ViewGroup parent) {
View superView = super.getView(position, convertView, parent);
if (mCursor.moveToPosition(position)) {
// Customize superView here
}
return superView;
}