public interface

WrappedAdapter

com.h6ah4i.android.widget.advrecyclerview.adapter.WrappedAdapter<VH extends android.support.v7.widget.RecyclerView.ViewHolder>
Known Indirect Subclasses

Class Overview

An interface provides better methods for wrapped adapters.

Summary

Public Methods
abstract boolean onFailedToRecycleView(VH holder, int viewType)
onFailedToRecycleView() with unwrapped item view type parameter.
abstract void onViewAttachedToWindow(VH holder, int viewType)
onViewAttachedToWindow() with unwrapped item view type parameter.
abstract void onViewDetachedFromWindow(VH holder, int viewType)
onViewDetachedFromWindow() with unwrapped item view type parameter.
abstract void onViewRecycled(VH holder, int viewType)
onViewRecycled() with unwrapped item view type parameter.

Public Methods

public abstract boolean onFailedToRecycleView (VH holder, int viewType)

onFailedToRecycleView() with unwrapped item view type parameter.

Parameters
holder The ViewHolder containing the View that could not be recycled due to its transient state.
viewType Unwrapped view type. Use this instead of #{getItemViewType()}.
Returns
  • True if the View should be recycled, false otherwise. Note that if this method returns true, RecyclerView will ignore the transient state of the View and recycle it regardless. If this method returns false, RecyclerView will check the View's transient state again before giving a final decision. Default implementation returns false.
See Also
  • {@link android.support.v7.widget.RecyclerView.Adapter#onFailedToRecycleView(RecyclerView.ViewHolder)}

public abstract void onViewAttachedToWindow (VH holder, int viewType)

onViewAttachedToWindow() with unwrapped item view type parameter.

Parameters
holder Holder of the view being attached
viewType Unwrapped view type. Use this instead of #{getItemViewType()}.
See Also
  • {@link android.support.v7.widget.RecyclerView.Adapter#onViewAttachedToWindow(RecyclerView.ViewHolder)}

public abstract void onViewDetachedFromWindow (VH holder, int viewType)

onViewDetachedFromWindow() with unwrapped item view type parameter.

Parameters
holder Holder of the view being detached
viewType Unwrapped view type. Use this instead of #{getItemViewType()}.
See Also
  • {@link android.support.v7.widget.RecyclerView.Adapter#onViewDetachedFromWindow(RecyclerView.ViewHolder)}

public abstract void onViewRecycled (VH holder, int viewType)

onViewRecycled() with unwrapped item view type parameter.

Parameters
holder The ViewHolder for the view being recycled
viewType Unwrapped view type. Use this instead of #{getItemViewType()}.
See Also
  • {@link android.support.v7.widget.RecyclerView.Adapter#onViewRecycled(RecyclerView.ViewHolder)}