@Override public void onBindViewHolder(StatisticViewHolder holder,int position){
switch (getItemViewType(position)) {
case StatisticViewHolder.TYPE_SMALL:
switch (mStatisticItems.get(position)) {
case TYPE_DUE:
      holder.applyDueChart();
    break;
case TYPE_STAGE:
  holder.applyStageChart();
break;
}
break;
case StatisticViewHolder.TYPE_LARGE:
holder.applyMostPlayedChart(mStatisticItems.get(position));
break;
}
}

@ Override public void onBindViewHolder ( StatisticViewHolder holder , int position ) { switch ( getItemViewType ( position ) ) { case StatisticViewHolder . TYPE_SMALL : switch ( mStatisticItems . get ( position ) ) { case TYPE_DUE : holder . applyDueChart ( ) ; break ; case TYPE_STAGE : holder . applyStageChart ( ) ; break ; } break ; case StatisticViewHolder . TYPE_LARGE : holder . applyMostPlayedChart ( mStatisticItems . get ( position ) ) ; break ; } }
called to bind the viewholder at the given position .
