@ Nullable private ViewHolder createViewHolder ( int itemType ) { if ( itemType == ViewHolderType . ITEM ) { return mAdapter . onCreateItemViewHolder ( AdaptiveTableLayout . this ) ; } else if ( itemType == ViewHolderType . ROW_HEADER ) { return mAdapter . onCreateRowHeaderViewHolder ( AdaptiveTableLayout . this ) ; } else if ( itemType == ViewHolderType . COLUMN_HEADER ) { return mAdapter . onCreateColumnHeaderViewHolder ( AdaptiveTableLayout . this ) ; } return null ; }
Create view holder by type