void clear(){
  if (mViewTypeCount == 1) {
    final ArrayList<View> scrap=mCurrentScrap;
    final int scrapCount=scrap.size();
    for (int i=0; i < scrapCount; i++) {
      removeDetachedView(scrap.remove(scrapCount - 1 - i),false);
    }
  }
 else {
    final int typeCount=mViewTypeCount;
    for (int i=0; i < typeCount; i++) {
      final ArrayList<View> scrap=mScrapViews[i];
      final int scrapCount=scrap.size();
      for (int j=0; j < scrapCount; j++) {
        removeDetachedView(scrap.remove(scrapCount - 1 - j),false);
      }
    }
  }
}

void clear ( ) { if ( mViewTypeCount == 1 ) { final ArrayList < View > scrap = mCurrentScrap ; final int scrapCount = scrap . size ( ) ; for ( int i = 0 ; i < scrapCount ; i ++ ) { removeDetachedView ( scrap . remove ( scrapCount - 1 - i ) , false ) ; } } else { final int typeCount = mViewTypeCount ; for ( int i = 0 ; i < typeCount ; i ++ ) { final ArrayList < View > scrap = mScrapViews [ i ] ; final int scrapCount = scrap . size ( ) ; for ( int j = 0 ; j < scrapCount ; j ++ ) { removeDetachedView ( scrap . remove ( scrapCount - 1 - j ) , false ) ; } } } }
clears the scrap heap .
