belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
NestedScrollingParent2
public
interface
NestedScrollingParent2
implements
NestedScrollingParent
android.support.v4.view.NestedScrollingParent2 |
![]() |
This interface should be implemented by ViewGroup
subclasses
that wish to support scrolling operations delegated by a nested child view.
Classes implementing this interface should create a final instance of a
NestedScrollingParentHelper
as a field and delegate any View or ViewGroup methods
to the NestedScrollingParentHelper
methods of the same signature.
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 all versions
of Android.
Summary
Public methods | |
---|---|
abstract
void
|
onNestedPreScroll(View target, int dx, int dy, int[] consumed, int type)
React to a nested scroll in progress before the target view consumes a portion of the scroll. |
abstract
void
|
onNestedScroll(View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int type)
React to a nested scroll in progress. |
abstract
void
|
onNestedScrollAccepted(View child, View target, int axes, int type)
React to the successful claiming of a nested scroll operation. |
abstract
boolean
|
onStartNestedScroll(View child, View target, int axes, int type)
React to a descendant view initiating a nestable scroll operation, claiming the nested scroll operation if appropriate. |
abstract
void
|
onStopNestedScroll(View target, int type)
React to a nested scroll operation ending. |
Inherited methods | |
---|---|
![]()
android.support.v4.view.NestedScrollingParent
|