java.lang.Object | |
↳ | com.h6ah4i.android.widget.advrecyclerview.touchguard.RecyclerViewTouchActionGuardManager |
Hooks touch events to avoid unexpected scrolling.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RecyclerViewTouchActionGuardManager()
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
attachRecyclerView(RecyclerView rv)
Attaches android.support.v7.widget.RecyclerView instance.
| ||||||||||
boolean |
isEnabled()
Checks whether the touch guard feature is enabled.
| ||||||||||
boolean |
isInterceptScrollingWhileAnimationRunning()
Checks whether the interception of "vertical scroll while animation running" is enabled.
| ||||||||||
boolean |
isReleased()
Indicates this manager instance has released or not.
| ||||||||||
void |
release()
Detach the android.support.v7.widget.RecyclerView instance and release internal field references.
| ||||||||||
void |
setEnabled(boolean enabled)
Sets whether to use touch guard feature.
| ||||||||||
void |
setInterceptVerticalScrollingWhileAnimationRunning(boolean enabled)
Sets whether to use interception of "vertical scroll while animation running".
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor.
Attaches android.support.v7.widget.RecyclerView instance.
rv | The android.support.v7.widget.RecyclerView instance |
---|
Checks whether the touch guard feature is enabled.
Checks whether the interception of "vertical scroll while animation running" is enabled.
Indicates this manager instance has released or not.
Detach the android.support.v7.widget.RecyclerView instance and release internal field references. This method should be called in order to avoid memory leaks.
Sets whether to use touch guard feature. If set false, all touch event interceptions will be disabled.
enabled | enabled / disabled |
---|
Sets whether to use interception of "vertical scroll while animation running".
enabled | enabled / disabled |
---|