ViewParentCompat

public final class ViewParentCompat


Helper for accessing features in ViewParent.

Summary

Public constructors

Public methods

static void
notifySubtreeAccessibilityStateChanged(
    @NonNull ViewParent parent,
    @NonNull View child,
    @NonNull View source,
    int changeType
)

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(
    @NonNull ViewParent parent,
    @NonNull View target,
    float velocityX,
    float velocityY,
    boolean consumed
)

Request a fling from a nested scroll.

static boolean
onNestedPreFling(
    @NonNull ViewParent parent,
    @NonNull View target,
    float velocityX,
    float velocityY
)

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

static void
onNestedPreScroll(
    @NonNull ViewParent parent,
    @NonNull View target,
    int dx,
    int dy,
    int[] consumed
)

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

static void
onNestedPreScroll(
    @NonNull ViewParent parent,
    @NonNull 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.

static void
onNestedScroll(
    @NonNull ViewParent parent,
    @NonNull View target,
    int dxConsumed,
    int dyConsumed,
    int dxUnconsumed,
    int dyUnconsumed
)

React to a nested scroll in progress.

static void
onNestedScroll(
    @NonNull ViewParent parent,
    @NonNull View target,
    int dxConsumed,
    int dyConsumed,
    int dxUnconsumed,
    int dyUnconsumed,
    int type
)

React to a nested scroll in progress.

static void
onNestedScroll(
    @NonNull ViewParent parent,
    @NonNull View target,
    int dxConsumed,
    int dyConsumed,
    int dxUnconsumed,
    int dyUnconsumed,
    int type,
    int[] consumed
)

React to a nested scroll in progress.

static void
onNestedScrollAccepted(
    @NonNull ViewParent parent,