java.lang.Object | |||
↳ | android.support.v7.widget.RecyclerView.Adapter<VH extends android.support.v7.widget.RecyclerView.ViewHolder> | ||
↳ | com.h6ah4i.android.widget.advrecyclerview.adapter.SimpleWrapperAdapter<VH extends android.support.v7.widget.RecyclerView.ViewHolder> | ||
↳ | com.h6ah4i.android.widget.advrecyclerview.utils.DebugWrapperAdapter |
A wrapper adapter for debugging purpose.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAGS_ALL_DEBUG_FEATURES | ||||||||||
int | FLAG_VERIFY_UNWRAP_POSITION | ||||||||||
int | FLAG_VERIFY_WRAP_POSITION |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.h6ah4i.android.widget.advrecyclerview.adapter.SimpleWrapperAdapter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DebugWrapperAdapter(Adapter adapter)
Constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getSettingFlags()
Returns current setting flags.
| ||||||||||
void |
setSettingFlags(int flags)
Sets setting flags.
| ||||||||||
void |
unwrapPosition(UnwrapPositionResult dest, int position)
Unwraps position.
This class also invokes | ||||||||||
int |
wrapPosition(AdapterPathSegment pathSegment, int position)
Wraps position.
This class also invokes |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.h6ah4i.android.widget.advrecyclerview.adapter.SimpleWrapperAdapter
| |||||||||||
From class
android.support.v7.widget.RecyclerView.Adapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.h6ah4i.android.widget.advrecyclerview.adapter.BridgeAdapterDataObserver.Subscriber
| |||||||||||
From interface
com.h6ah4i.android.widget.advrecyclerview.adapter.WrappedAdapter
| |||||||||||
From interface
com.h6ah4i.android.widget.advrecyclerview.adapter.WrapperAdapter
|
Constructor
adapter | The debug target adapter |
---|
Returns current setting flags.
Sets setting flags.
flags | Bit-ORof debug feature flags. |
---|
Unwraps position. This method converts the passed wrapped position to child adapter's position.
This class also invokes wrapPosition(AdapterPathSegment, int)
of the child adapter when
verify option is enabled.
If inconsistency has been detected, IllegalStateException
will be thrown.
dest | The destination |
---|---|
position | The wrapped position to be unwrapped |
Wraps position. This method converts the passed child adapter's position to wrapped position.
This class also invokes unwrapPosition(UnwrapPositionResult, int)
of the child adapter when
verify option is enabled.
If inconsistency has been detected, IllegalStateException
will be thrown.
pathSegment | The path segment of the child adapter |
---|---|
position | The child adapter's position to be wrapped |