Lines Matching defs:scrap

2312      *                the returned view was taken from the scrap heap, false if otherwise.
2331 // If we failed to re-bind the data, scrap the obtained view.
2349 // Failed to re-bind the data, return scrap to the heap.
2863 // Detach any view left in the scrap heap
6056 // Pretend they went through the scrap heap
6308 * scrap heap.
6348 * inside the RecycleBin's scrap heap. This listener is used to free resources
6356 * Indicates that the specified View was moved into the recycler's scrap heap.
6421 final ArrayList<View> scrap = mCurrentScrap;
6422 final int scrapCount = scrap.size();
6424 scrap.get(i).forceLayout();
6429 final ArrayList<View> scrap = mScrapViews[i];
6430 final int scrapCount = scrap.size();
6432 scrap.get(j).forceLayout();
6455 * Clears the scrap heap.
6459 final ArrayList<View> scrap = mCurrentScrap;
6460 clearScrap(scrap);
6464 final ArrayList<View> scrap = mScrapViews[i];
6465 clearScrap(scrap);
6490 // Don't put header or footer views into the scrap heap
6493 // However, we will NOT place them into scrap views.
6578 * Puts a view into the list of scrap views.
6583 * @param scrap The view to add
6586 void addScrapView(View scrap, int position) {
6587 final AbsListView.LayoutParams lp = (AbsListView.LayoutParams) scrap.getLayoutParams();
6596 // Remove but don't scrap header or footer views, or views that
6601 // special handling and should be ignored, then skip the scrap
6604 getSkippedScrap().add(scrap);
6609 scrap.dispatchStartTemporaryDetach();
6618 // Don't scrap views that have transient state.
6619 final boolean scrapHasTransientState = scrap.hasTransientState();
6627 mTransientStateViewsById.put(lp.itemId, scrap);
6634 mTransientStateViews.put(position, scrap);
6637 getSkippedScrap().add(scrap);
6641 mCurrentScrap.add(scrap);
6643 mScrapViews[viewType].add(scrap);
6647 mRecyclerListener.onMovedToScrapHeap(scrap);
6660 * Finish the removal of any views that skipped the scrap heap.
6717 // Store everything else on the appropriate scrap heap.
6782 * Puts all views in the scrap heap into the supplied list.
6804 final ArrayList<View> scrap = mCurrentScrap;
6805 final int scrapCount = scrap.size();
6807 scrap.get(i).setDrawingCacheBackgroundColor(color);
6812 final ArrayList<View> scrap = mScrapViews[i];
6813 final int scrapCount = scrap.size();
6815 scrap.get(j).setDrawingCacheBackgroundColor(color);
6845 final View scrap = scrapViews.remove(i);
6846 clearAccessibilityFromScrap(scrap);
6847 return scrap;
6850 final View scrap = scrapViews.remove(size - 1);
6851 clearAccessibilityFromScrap(scrap);
6852 return scrap;
6858 private void clearScrap(final ArrayList<View> scrap) {
6859 final int scrapCount = scrap.size();
6861 removeDetachedView(scrap.remove(scrapCount - 1 - j), false);