java.lang.Object | |
↳ | android.support.v4.view.NestedScrollingChildHelper |
Helper class for implementing nested scrolling child views compatible with Android platform versions earlier than Android 5.0 Lollipop (API 21).
View
subclasses should instantiate a final instance of this
class as a field at construction. For each View
method that has a matching
method signature in this class, delegate the operation to the helper instance in an overriden
method implementation. This implements the standard framework policy for nested scrolling.
Views invoking nested scrolling functionality should always do so from the relevant
ViewCompat
, ViewGroupCompat
or ViewParentCompat
compatibility
shim static methods. This ensures interoperability with nested scrolling views on Android
5.0 Lollipop and newer.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new helper for a given view.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Dispatch a nested fling operation to the current nested scrolling parent.
| |||||||||||
Dispatch a nested pre-fling operation to the current nested scrolling parent.
| |||||||||||
Dispatch one step of a nested pre-scrolling operation to the current nested scrolling parent.
| |||||||||||
Dispatch one step of a nested scrolling operation to the current nested scrolling parent.
| |||||||||||
Check if this view has a nested scrolling parent view currently receiving events for
a nested scroll in progress.
| |||||||||||
Check if nested scrolling is enabled for this view.
| |||||||||||
View subclasses should always call this method on their
NestedScrollingChildHelper when detached from a window.
| |||||||||||
Called when a nested scrolling child stops its current nested scroll operation.
| |||||||||||
Enable nested scrolling.
| |||||||||||
Start a new nested scroll for this view.
| |||||||||||
Stop a nested scroll in progress.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Dispatch a nested fling operation to the current nested scrolling parent.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
Dispatch a nested pre-fling operation to the current nested scrolling parent.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
Dispatch one step of a nested pre-scrolling operation to the current nested scrolling parent.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
Dispatch one step of a nested scrolling operation to the current nested scrolling parent.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
Check if this view has a nested scrolling parent view currently receiving events for a nested scroll in progress.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
Check if nested scrolling is enabled for this view.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
View subclasses should always call this method on their
NestedScrollingChildHelper
when detached from a window.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
Called when a nested scrolling child stops its current nested scroll operation.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
child | Child view stopping its nested scroll. This may not be a direct child view. |
---|
Enable nested scrolling.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
enabled | true to enable nested scrolling dispatch from this view, false otherwise |
---|
Start a new nested scroll for this view.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.
axes | Supported nested scroll axes.
See startNestedScroll(int) . |
---|
Stop a nested scroll in progress.
This is a delegate method. Call it from your View
subclass
method/NestedScrollingChild
interface method with the same signature to implement
the standard policy.