if (mOnItemClickListener != null) {
int position = getPosition(viewHolder);
mOnItemClickListener.onItemClick(parent, v, mDatas.get(position), position);
}
`
position是从0开始,
int position = getPosition(viewHolder);应该要减一
否则会报IndexOutOfBoundsException越界错误
position是从0开始, int position = getPosition(viewHolder);应该要减一 否则会报IndexOutOfBoundsException越界错误