added in version 22.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

ViewParentCompat

public final class ViewParentCompat
extends Object

java.lang.Object
   ↳ android.support.v4.view.ViewParentCompat


Helper for accessing features in ViewParent.

Summary

Public methods

static void notifySubtreeAccessibilityStateChanged(ViewParent parent, View child, 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(ViewParent parent, View target, float velocityX, float velocityY, boolean consumed)

Request a fling from a nested scroll.

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

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

static void onNestedPreScroll(ViewParent parent, 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 onNestedPreScroll(ViewParent parent, 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 onNestedScroll(ViewParent parent, View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int type)

React to a nested scroll in progress.

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

React to a nested scroll in progress.

static void onNestedScrollAccepted(ViewParent parent, View child, View target, int nestedScrollAxes)

React to the successful claiming of a nested scroll operation.

static void onNestedScrollAccepted(ViewParent parent, View child, View target, int nestedScrollAxes, int type)

React to the successful claiming of a nested scroll operation.

static boolean onStartNestedScroll(ViewParent parent, View child, View target, int nestedScrollAxes, int type)

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

static boolean onStartNestedScroll(ViewParent parent, View child, View target, int nestedScrollAxes)

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

static void onStopNestedScroll(ViewParent parent, View target)

React to a nested scroll operation ending.

static void onStopNestedScroll(ViewParent parent, View target, int type)

React to a nested scroll operation ending.

static boolean requestSendAccessibilityEvent(ViewParent parent, View child, AccessibilityEvent event)

This method was deprecated in API level 26.1.0. Use requestSendAccessibilityEvent(View, AccessibilityEvent) directly.

Inherited methods

From class java.lang.Object