@SuppressLint("NewApi") public void reclaimViews(List<View> views){
  int childCount=getChildCount();
  RecyclerListener listener=mRecycler.mRecyclerListener;
  for (int i=0; i < childCount; i++) {
    View child=getChildAt(i);
    AbsHListView.LayoutParams lp=(AbsHListView.LayoutParams)child.getLayoutParams();
    if (lp != null && mRecycler.shouldRecycleViewType(lp.viewType)) {
      views.add(child);
      if (android.os.Build.VERSION.SDK_INT >= 14) {
        child.setAccessibilityDelegate(null);
      }
      if (listener != null) {
        listener.onMovedToScrapHeap(child);
      }
    }
  }
  mRecycler.reclaimScrapViews(views);
  removeAllViewsInLayout();
}

@ SuppressLint ( "NewApi" ) public void reclaimViews ( List < View > views ) { int childCount = getChildCount ( ) ; RecyclerListener listener = mRecycler . mRecyclerListener ; for ( int i = 0 ; i < childCount ; i ++ ) { View child = getChildAt ( i ) ; AbsHListView . LayoutParams lp = ( AbsHListView . LayoutParams ) child . getLayoutParams ( ) ; if ( lp != null && mRecycler . shouldRecycleViewType ( lp . viewType ) ) { views . add ( child ) ; if ( android . os . Build . VERSION . SDK_INT >= 14 ) { child . setAccessibilityDelegate ( null ) ; } if ( listener != null ) { listener . onMovedToScrapHeap ( child ) ; } } } mRecycler . reclaimScrapViews ( views ) ; removeAllViewsInLayout ( ) ; }
move all views ( excluding headers and footers ) held by this abslistview into the supplied list . this includes views displayed on the screen as well as views stored in abslistview ' s internal view recycler .
