ViewParentCompat

public final class ViewParentCompat
extends Object

java.lang.Object
   ↳ androidx.core.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 onNestedScroll(ViewParent parent, View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int type, int[] consumed)

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 is deprecated. Use ViewParent.requestSendAccessibilityEvent(View, AccessibilityEvent) directly.

Inherited methods

Public methods

notifySubtreeAccessibilityStateChanged

public 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.

Parameters
parent ViewParent

child View: The direct child whose subtree has changed.

source View: The descendant view that changed.

changeType int: A bit mask of the types of changes that occurred. One or more of: