I\'m trying to create a custom cursoradapter that will use two different layouts depending on some data in the cursor. I keep reading about \'overriding getViewTypeCount() a
Another possible solution regarding the access to the cursor in the getItemViewType method is the following:
@Override
public int getChildType(int groupPosition, int childPosition) {
Cursor c = getChild(groupPosition, childPosition);
if(c.getString(c.getColumnIndex(Contract.MyColumn)).equals("value"))
return 0;
else return 1;
}