@Override public long generateHeaderId(int position) { URLogs.d("position--" + position + " " + getItem(position)); if (getItem(position).getTitle().length() > 0) return getItem(position).getTitle().length(); else return -1; }