Lines Matching defs:scrap

1082      * Recycled view pools allow multiple RecyclerViews to share a common pool of scrap views.
2940 Log.e(TAG, "cannot find old changed holder in changed scrap :/" + oldHolder);
4196 final ViewHolder scrap = scrapHeap.get(index);
4198 return scrap;
4214 public void putRecycledView(ViewHolder scrap) {
4215 final int viewType = scrap.getItemViewType();
4220 if (DEBUG && scrapHeap.contains(scrap)) {
4221 throw new IllegalArgumentException("this scrap item already exists");
4223 scrap.resetInternal();
4224 scrapHeap.add(scrap);
4261 ArrayList<ViewHolder> scrap = mScrap.get(viewType);
4262 if (scrap == null) {
4263 scrap = new ArrayList<ViewHolder>();
4264 mScrap.put(viewType, scrap);
4269 return scrap;
4304 * Clear scrap views out of this recycler. Detached views contained within a
4326 * Returns an unmodifiable list of ViewHolders that are currently in the scrap list.
4328 * @return List of ViewHolders in the scrap list.
4452 * The Recycler may reuse a scrap or detached view from a shared pool if one is
4455 * a scrap view that was previously initialized for that data without rebinding.
4471 // 0) If there is a changed scrap, try to find from there
4476 // 1) Find from scrap by position
4481 // recycle this scrap
4509 // 2) Find from scrap via stable ids, if exists
4638 * View is scrapped, it will be removed from scrap list.</p>
4645 // intended to recycle this view (e.g. even if it is in scrap or change cache)
4781 * Mark an attached view as scrap.
4785 * reused or rebound scrap view instance.</p>
4787 * @param view View to scrap
4794 throw new IllegalArgumentException("Called scrap view with an invalid view."
4795 + " Invalid views cannot be reused from scrap, they should rebound from"
4808 * Remove a previously scrapped view from the pool of eligible scrap.
4836 // If pre-layout, check the changed scrap for an exact match.
4867 * Returns a scrap view for the position. If type is not INVALID_TYPE, it also checks if
4878 // Try first for an exact, non-invalid match from scrap.
4946 // Recycle this scrap. Type mismatch.
5162 * When {@link Recycler#getViewForPosition(int)} is called, Recycler checks attached scrap and
5989 * be returned from the scrap to help determine correct placement of other items.
6299 } else if (child.getParent() == mRecyclerView) { // it was not a scrap but a valid child
6548 * Detach a child view and add it to a {@link Recycler Recycler's} scrap heap.
6553 * @param child Child to detach and scrap
6554 * @param recycler Recycler to deposit the new scrap view into
6562 * Detach a child view and add it to a {@link Recycler Recycler's} scrap heap.
6567 * @param index Index of child to detach and scrap
6568 * @param recycler Recycler to deposit the new scrap view into
6808 * Temporarily detach and scrap all currently attached child views. Views will be scrapped
6809 * into the given Recycler. The Recycler may prefer to reuse scrap views before
6812 * @param recycler Recycler to scrap views into
6853 final View scrap = recycler.getScrapViewAt(i);
6854 final ViewHolder vh = getChildViewHolderInt(scrap);
6858 // If the scrap view is animating, we need to cancel them first. If we cancel it
6865 mRecyclerView.removeDetachedView(scrap, false);
6871 recycler.quickRecycleScrapView(scrap);
8231 * This ViewHolder is returned from scrap which means we are expecting an addView call
8232 * for this itemView. When returned from scrap, ViewHolder stays in the scrap list until
8245 * This ViewHolder is fully managed by the LayoutManager. We do not scrap, recycle or remove
8280 // If non-null, view is currently considered scrap and may be reused for other data by the
8281 // scrap container.
8582 if (isScrap()) sb.append(" scrap");
8761 * potentially invalid data. A LayoutManager should scrap/recycle it.