返回值不可以指定某个数值,因为你不知道返回的数据在第几个位置
@Override
protected int getSectionHeaderViewType(int section) {
int sectionCount = getSectionCount();
if (section == sectionCount-1) {
return TYPE_HEADER_NULL;
} else if (section == sectionCount-2) {
return TYPE_ITEM_ADDADDRESS;
} else {
return TYPE_HEADER_GOODS;
}
}