Lines Matching refs:scrap

811      * Recycled view pools allow multiple RecyclerViews to share a common pool of scrap views.
2211 Log.e(TAG, "cannot find old changed holder in changed scrap :/" + oldHolder);
3348 final ViewHolder scrap = scrapHeap.get(index);
3350 return scrap;
3366 public void putRecycledView(ViewHolder scrap) {
3367 final int viewType = scrap.getItemViewType();
3372 scrap.resetInternal();
3373 scrapHeap.add(scrap);
3410 ArrayList<ViewHolder> scrap = mScrap.get(viewType);
3411 if (scrap == null) {
3412 scrap = new ArrayList<ViewHolder>();
3413 mScrap.put(viewType, scrap);
3418 return scrap;
3453 * Clear scrap views out of this recycler. Detached views contained within a
3475 * Returns an unmodifiable list of ViewHolders that are currently in the scrap list.
3477 * @return List of ViewHolders in the scrap list.
3600 * The Recycler may reuse a scrap or detached view from a shared pool if one is
3603 * a scrap view that was previously initialized for that data without rebinding.
3619 // 0) If there is a changed scrap, try to find from there
3624 // 1) Find from scrap by position
3629 // recycle this scrap
3657 // 2) Find from scrap via stable ids, if exists
3787 * View is scrapped, it will be removed from scrap list.</p>
3794 // intended to recycle this view (e.g. even if it is in scrap or change cache)
3918 * Mark an attached view as scrap.
3922 * reused or rebound scrap view instance.</p>
3924 * @param view View to scrap
3931 throw new IllegalArgumentException("Called scrap view with an invalid view."
3932 + " Invalid views cannot be reused from scrap, they should rebound from"
3945 * Remove a previously scrapped view from the pool of eligible scrap.
3973 // If pre-layout, check the changed scrap for an exact match.
4004 * Returns a scrap view for the position. If type is not INVALID_TYPE, it also checks if
4015 // Try first for an exact, non-invalid match from scrap.
4083 // Recycle this scrap. Type mismatch.
4296 * When {@link Recycler#getViewForPosition(int)} is called, Recycler checks attached scrap and
4933 * be returned from the scrap to help determine correct placement of other items.
5243 } else if (child.getParent() == mRecyclerView) { // it was not a scrap but a valid child
5482 * Detach a child view and add it to a {@link Recycler Recycler's} scrap heap.
5487 * @param child Child to detach and scrap
5488 * @param recycler Recycler to deposit the new scrap view into
5496 * Detach a child view and add it to a {@link Recycler Recycler's} scrap heap.
5501 * @param index Index of child to detach and scrap
5502 * @param recycler Recycler to deposit the new scrap view into
5742 * Temporarily detach and scrap all currently attached child views. Views will be scrapped
5743 * into the given Recycler. The Recycler may prefer to reuse scrap views before
5746 * @param recycler Recycler to scrap views into
5786 final View scrap = recycler.getScrapViewAt(i);
5787 final ViewHolder vh = getChildViewHolderInt(scrap);
5792 mRecyclerView.removeDetachedView(scrap, false);
5794 recycler.quickRecycleScrapView(scrap);
7037 * This ViewHolder is returned from scrap which means we are expecting an addView call
7038 * for this itemView. When returned from scrap, ViewHolder stays in the scrap list until
7051 * This ViewHolder is fully managed by the LayoutManager. We do not scrap, recycle or remove
7076 // If non-null, view is currently considered scrap and may be reused for other data by the
7077 // scrap container.
7310 if (isScrap()) sb.append(" scrap");
7439 * potentially invalid data. A LayoutManager should scrap/recycle it.