Google 致力于为黑人社区推动种族平等。查看具体举措

ViewParentCompat

class ViewParentCompat
kotlin.Any
   ↳ androidx.core.view.ViewParentCompat

Helper for accessing features in ViewParent.

Summary

Public methods
static Unit
notifySubtreeAccessibilityStateChanged(parent: ViewParent!, child: View!, source: View!, changeType: Int)

Notifies a view parent that the accessibility state of one of its descendants has changed and that the structure of the subtree is different.

static Boolean
onNestedFling(parent: ViewParent!, target: View!, velocityX: Float, velocityY: Float, consumed: Boolean)

Request a fling from a nested scroll.

static Boolean
onNestedPreFling(parent: ViewParent!, target: View!, velocityX: Float, velocityY: Float)

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

static Unit
onNestedPreScroll(parent: ViewParent!, target: View!, dx: Int, dy: Int, consumed: IntArray!)

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

static Unit
onNestedPreScroll(parent: ViewParent!, target: View!, dx: Int, dy: Int, consumed: IntArray!, type: Int)

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

static Unit
onNestedScroll(parent: ViewParent!, target: View!, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int)

React to a nested scroll in progress.

static Unit
onNestedScroll(parent: ViewParent!, target: View!, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, type: Int)

React to a nested scroll in progress.

static Unit
onNestedScroll(parent: ViewParent!, target: View!, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, type: Int, @NonNull consumed: IntArray)

React to a nested scroll in progress.