private int getHeaderViewType ( int position ) { if ( headerContent != null ) { if ( headerContent . getData ( ) == getItem ( position ) && ( position == 0 ) ) { return headerContent . getViewtype ( ) ; } } return PeasyHeaderViewHolder . VIEWTYPE_NOTHING ; }
To identify content as Header