public interface

WrappedAdapter

com.h6ah4i.android.widget.advrecyclerview.adapter.WrappedAdapter<VH extends androidx.recyclerview.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.

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()}.

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()}.

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()}.