public void removeHeader(int position){
  if (mHeaders.size() > 0 && position < mHeaders.size()) {
    mHeaders.remove(position);
    notifyItemRemoved(position);
  }
}

public void removeHeader ( int position ) { if ( mHeaders . size ( ) > 0 && position < mHeaders . size ( ) ) { mHeaders . remove ( position ) ; notifyItemRemoved ( position ) ; } }
remove a header from the adapter
