void initializeItemViewTypes(){
synchronized (itemViewTypes) {
    itemViewTypes.clear();
    for (int i=0; i < getCount(); i++) {
      itemViewTypes.add(adapter.getInternalItemViewType(i));
    }
  }
}

void initializeItemViewTypes ( ) { synchronized ( itemViewTypes ) { itemViewTypes . clear ( ) ; for ( int i = 0 ; i < getCount ( ) ; i ++ ) { itemViewTypes . add ( adapter . getInternalItemViewType ( i ) ) ; } } }
tracks the item view types of each adapter .
