Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.


interface NestedScrollingParent

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 Android 5.0 Lollipop and newer.


Public methods
abstract Int

Return the current axes of nested scrolling for this NestedScrollingParent.

abstract Boolean
onNestedFling(@NonNull target: View, velocityX: Float, velocityY: Float, consumed: Boolean)

Request a fling from a nested scroll.

abstract Boolean
onNestedPreFling(@NonNull target: View, velocityX: Float, velocityY: Float)

React to a nested fling before the target view consumes it.

abstract Unit
onNestedPreScroll(@NonNull target: View, dx: Int, dy: Int, @NonNull consumed: IntArray)

React to a nested scroll in progress before the target view consumes a portion of the scroll.

abstract Unit
onNestedScroll(@NonNull target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int)

React to a nested scroll in progress.

abstract Unit
onNestedScrollAccepted(@NonNull child: View, @NonNull target: View, axes: Int)

React to the successful claiming of a nested scroll operation.

abstract Boolean
onStartNestedScroll(@NonNull child: View, @NonNull target: View, axes: Int)

React to a descendant view initiating a nestable scroll operation, claiming the nested scroll operation if appropriate.

abstract Unit
onStopNestedScroll(@NonNull target: View)

React to a nested scroll operation ending.

Public methods


abstract fun getNestedScrollAxes():