a little bug ! add this in onItemClick rawPosition = rawPosition -getHeaderViewsCount(); if(rawPosition<0)return;