com.h6ah4i.android.widget.advrecyclerview.adapter.WrappedAdapter<VH extends android.support.v7.widget.RecyclerView.ViewHolder> |
Known Indirect Subclasses
AbstractHeaderFooterWrapperAdapter<HeaderVH extends RecyclerView.ViewHolder, FooterVH extends RecyclerView.ViewHolder>,
BaseWrapperAdapter<VH extends RecyclerView.ViewHolder>,
ComposedAdapter,
DebugWrapperAdapter,
SimpleWrapperAdapter<VH extends RecyclerView.ViewHolder>,
WrapperAdapter<VH extends RecyclerView.ViewHolder>
|
An interface provides better methods for wrapped adapters.
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.
|
onFailedToRecycleView() with unwrapped item view type parameter.
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() }. |
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.onViewAttachedToWindow() with unwrapped item view type parameter.
holder | Holder of the view being attached |
---|---|
viewType | Unwrapped view type. Use this instead of #{getItemViewType() }. |
onViewDetachedFromWindow() with unwrapped item view type parameter.
holder | Holder of the view being detached |
---|---|
viewType | Unwrapped view type. Use this instead of #{getItemViewType() }. |
onViewRecycled() with unwrapped item view type parameter.
holder | The ViewHolder for the view being recycled |
---|---|
viewType | Unwrapped view type. Use this instead of #{getItemViewType() }. |