Lines Matching defs:Recycler

150      * setting View's visibility to INVISIBLE when View is detached. On Kitkat and JB MR2, Recycler
238 final Recycler mRecycler = new Recycler();
1094 * Sets a new {@link ViewCacheExtension} to be used by the Recycler.
1098 * @see {@link ViewCacheExtension#getViewForPositionAndType(Recycler, int, int)}
1614 * dropped; {@link LayoutManager#onFocusSearchFailed(View, int, Recycler, State)} will not be
4274 * A Recycler is responsible for managing scrapped or detached item views for reuse.
4279 * <p>Typical use of a Recycler by a {@link LayoutManager} will be to obtain views for
4286 public final class Recycler {
4452 * The Recycler may reuse a scrap or detached view from a shared pool if one is
4454 * data at the given position has changed, the Recycler will attempt to hand back
4641 * @see LayoutManager#removeAndRecycleView(View, Recycler)
5162 * When {@link Recycler#getViewForPosition(int)} is called, Recycler checks attached scrap and
5163 * first level cache to find a matching View. If it cannot find a suitable View, Recycler will
5164 * call the {@link #getViewForPositionAndType(Recycler, int, int)} before checking
5167 * Note that, Recycler never sends Views to this method to be cached. It is developers
5183 * @param recycler The Recycler that can be used to bind the View
5189 abstract public View getViewForPositionAndType(Recycler recycler, int position, int type);
5839 * rules as outlined in {@link #onLayoutChildren(Recycler, State)}.
5850 * then there will be two calls to {@link #onLayoutChildren(Recycler, State)} to
5865 void dispatchDetachedFromWindow(RecyclerView view, Recycler recycler) {
5932 * override {@link #onDetachedFromWindow(RecyclerView, Recycler)}
5951 public void onDetachedFromWindow(RecyclerView view, Recycler recycler) {
5973 * normal layout operation during {@link #onLayoutChildren(Recycler, State)}, the
5983 * {@link #onLayoutChildren(Recycler, State)}. Supporting predictive animations
5984 * means that {@link #onLayoutChildren(Recycler, State)} will be called twice;
6011 * @param recycler Recycler to use for fetching potentially cached views for a
6015 public void onLayoutChildren(Recycler recycler, State state) {
6016 Log.e(TAG, "You must override onLayoutChildren(Recycler recycler, State state) ");
6097 * @param recycler Recycler to use for fetching potentially cached views for a
6104 public int scrollHorizontallyBy(int dx, Recycler recycler, State state) {
6114 * @param recycler Recycler to use for fetching potentially cached views for a
6121 public int scrollVerticallyBy(int dy, Recycler recycler, State state) {
6218 * To be called only during {@link #onLayoutChildren(Recycler, State)} to add a view
6235 * To be called only during {@link #onLayoutChildren(Recycler, State)} to add a view
6254 * use this method to add views obtained from a {@link Recycler} using
6255 * {@link Recycler#getViewForPosition(int)}.
6265 * use this method to add views obtained from a {@link Recycler} using
6266 * {@link Recycler#getViewForPosition(int)}.
6333 * {@link Recycler#recycleView(android.view.View)}.
6345 * {@link Recycler#recycleView(android.view.View)}.
6433 * will want to use {@link #detachAndScrapView(android.view.View, RecyclerView.Recycler)}
6455 * will want to use {@link #detachAndScrapView(android.view.View, RecyclerView.Recycler)}
6479 * {@link #detachAndScrapView(android.view.View, RecyclerView.Recycler)} scrapped}.
6501 * {@link #detachAndScrapView(android.view.View, RecyclerView.Recycler)} scrapped}.
6513 * {@link #detachAndScrapView(android.view.View, RecyclerView.Recycler)} scrapped}.
6548 * Detach a child view and add it to a {@link Recycler Recycler's} scrap heap.
6554 * @param recycler Recycler to deposit the new scrap view into
6556 public void detachAndScrapView(View child, Recycler recycler) {
6562 * Detach a child view and add it to a {@link Recycler Recycler's} scrap heap.
6568 * @param recycler Recycler to deposit the new scrap view into
6570 public void detachAndScrapViewAt(int index, Recycler recycler) {
6576 * Remove a child view and recycle it using the given Recycler.
6579 * @param recycler Recycler to use to recycle child
6581 public void removeAndRecycleView(View child, Recycler recycler) {
6587 * Remove a child view and recycle it using the given Recycler.
6590 * @param recycler Recycler to use to recycle child
6592 public void removeAndRecycleViewAt(int index, Recycler recycler) {
6768 * recyling. Methods like {@link #removeAndRecycleAllViews(Recycler)} will ignore the child
6809 * into the given Recycler. The Recycler may prefer to reuse scrap views before
6812 * @param recycler Recycler to scrap views into
6814 public void detachAndScrapAttachedViews(Recycler recycler) {
6822 private void scrapOrRecycleView(Recycler recycler, int index, View view) {
6847 * @param recycler Recycler
6849 void removeAndRecycleScrapInt(Recycler recycler) {
7192 public View onFocusSearchFailed(View focused, int direction, Recycler recycler,
7201 * then {@link #onFocusSearchFailed(View, int, RecyclerView.Recycler, RecyclerView.State)}
7524 * @param recycler Recycler
7529 public void onMeasure(Recycler recycler, State state, int widthSpec, int heightSpec) {
7599 * If you want to clean cached views as well, you should call {@link Recycler#clear()} too.
7603 * @param recycler Recycler to use to recycle children
7604 * @see #removeAndRecycleView(View, Recycler)
7605 * @see #removeAndRecycleViewAt(int, Recycler)
7608 public void removeAndRecycleAllViews(Recycler recycler) {
7630 * {@link #getRowCountForAccessibility(RecyclerView.Recycler, RecyclerView.State)},
7631 * {@link #getColumnCountForAccessibility(RecyclerView.Recycler, RecyclerView.State)},
7632 * {@link #isLayoutHierarchical(RecyclerView.Recycler, RecyclerView.State)} and
7633 * {@link #getSelectionModeForAccessibility(RecyclerView.Recycler, RecyclerView.State)} for
7636 * @param recycler The Recycler that can be used to convert view positions into adapter
7642 * @see #getRowCountForAccessibility(RecyclerView.Recycler, RecyclerView.State)
7643 * @see #getColumnCountForAccessibility(RecyclerView.Recycler, RecyclerView.State)
7644 * @see #isLayoutHierarchical(RecyclerView.Recycler, RecyclerView.State)
7645 * @see #getSelectionModeForAccessibility(RecyclerView.Recycler, RecyclerView.State)
7647 public void onInitializeAccessibilityNodeInfo(Recycler recycler, State state,
7678 * @param recycler The Recycler that can be used to convert view positions into adapter
7684 public void onInitializeAccessibilityEvent(Recycler recycler, State state,
7717 * @param recycler The Recycler that can be used to convert view positions into adapter
7725 public void onInitializeAccessibilityNodeInfoForItem(Recycler recycler, State state,
7758 * @param recycler The Recycler that can be used to convert view positions into adapter
7764 public int getSelectionModeForAccessibility(Recycler recycler, State state) {
7775 * @param recycler The Recycler that can be used to convert view positions into adapter
7780 public int getRowCountForAccessibility(Recycler recycler, State state) {
7794 * @param recycler The Recycler that can be used to convert view positions into adapter
7799 public int getColumnCountForAccessibility(Recycler recycler, State state) {
7811 * @param recycler The Recycler that can be used to convert view positions into adapter
7816 public boolean isLayoutHierarchical(Recycler recycler, State state) {
7829 * @param recycler The Recycler that can be used to convert view positions into adapter
7836 public boolean performAccessibilityAction(Recycler recycler, State state, int action,
7879 * @param recycler The Recycler that can be used to convert view positions into adapter
7888 public boolean performAccessibilityActionForItem(Recycler recycler, State state, View view,
8282 private Recycler mScrapContainer = null;
8364 * {@link RecyclerView.Recycler} that receive a position expect it to be the layout position
8369 * {@link RecyclerView.Recycler#convertPreLayoutPositionToPostLayout(int)}.
8463 void setScrapContainer(Recycler recycler) {
9534 * scenes, RecyclerView offsets {@link Recycler#getViewForPosition(int)} calls such that
9661 * {@link Recycler#getScrapViewForPosition(int, int, boolean)} and recycle it before