com.h6ah4i.android.widget.advrecyclerview.adapter.WrapperAdapter<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>
|
An RecyclerView adapter which wraps another adapter(s).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
getWrappedAdapters(List<Adapter> adapters)
Gets wrapped children adapters.
| ||||||||||
abstract void |
release()
Releases bounded resources.
| ||||||||||
abstract void |
unwrapPosition(UnwrapPositionResult dest, int position)
Unwraps position.
| ||||||||||
abstract int |
wrapPosition(AdapterPathSegment pathSegment, int position)
Wraps position.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.h6ah4i.android.widget.advrecyclerview.adapter.WrappedAdapter
|
Gets wrapped children adapters.
adapters | The destination |
---|
Releases bounded resources.
Unwraps position. This method converts the passed wrapped position to child adapter's position.
dest | The destination |
---|---|
position | The wrapped position to be unwrapped |
Wraps position. This method converts the passed child adapter's position to wrapped position.
pathSegment | The path segment of the child adapter |
---|---|
position | The child adapter's position to be wrapped |