@Override public int getItemViewType(int position) { // TODO Auto-generated method stub GotyeNotify notify = getItem(position); if (notify.getType() == GotyeNotifyType.GroupInvite) { if (notify.isRead()) { return 0; // 收到邀请已读 } else { return 1; // 收到邀请未读 } } else if (notify.getType() == GotyeNotifyType.JoinGroupReply) { if (notify.isRead()) { return 2; // 收到申请回复 } else { return 3; // 收到申请回复拒绝 } } else { if (notify.isRead()) { return 4; // 处理申请 } else { return 5; // 处理申请 } } }