ViewCompat

Added in 1.1.0

public class ViewCompat


Helper for accessing features in View.

Summary

Nested types

Interface definition for a callback to be invoked when a hardware key event hasn't been handled by the view hierarchy.

Constants

static final int

Live region mode specifying that accessibility services should interrupt ongoing speech to immediately announce changes to this view.

static final int

Live region mode specifying that accessibility services should not automatically announce changes to this view.

static final int

Live region mode specifying that accessibility services should announce changes to this view.

static final int

This field is deprecated.

Use IMPORTANT_FOR_ACCESSIBILITY_AUTO directly.

static final int

This field is deprecated.

Use IMPORTANT_FOR_ACCESSIBILITY_NO directly.

static final int

This field is deprecated.

Use IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS directly.

static final int

This field is deprecated.

Use IMPORTANT_FOR_ACCESSIBILITY_YES directly.

static final int

Automatically determine whether a view is important for content capture.

static final int

The view is not important for content capture, but its children (if any) will be traversed.

static final int

The view is not important for content capture, and its children (if any) will not be traversed.

static final int

The view is important for content capture, and its children (if any) will be traversed.

static final int

The view is important for content capture, but its children (if any) will not be traversed.

static final int

This field is deprecated.

Use LAYER_TYPE_HARDWARE directly.

static final int

This field is deprecated.

Use LAYER_TYPE_NONE directly.

static final int

This field is deprecated.

Use LAYER_TYPE_SOFTWARE directly.

static final int

This field is deprecated.

Use LAYOUT_DIRECTION_INHERIT directly.

static final int

This field is deprecated.

Use LAYOUT_DIRECTION_LOCALE directly.

static final int

This field is deprecated.

Use LAYOUT_DIRECTION_LTR directly.

static final int

This field is deprecated.

Use LAYOUT_DIRECTION_RTL directly.

static final int

This field is deprecated.

Use MEASURED_HEIGHT_STATE_SHIFT directly.

static final int

This field is deprecated.

Use MEASURED_SIZE_MASK directly.

static final int

This field is deprecated.

Use MEASURED_STATE_MASK directly.

static final int

This field is deprecated.

Use MEASURED_STATE_TOO_SMALL directly.

static final int

This field is deprecated.

Use OVER_SCROLL_ALWAYS directly.

static final int

This field is deprecated.

Use OVER_SCROLL_IF_CONTENT_SCROLLS directly.

static final int

This field is deprecated.

Use OVER_SCROLL_NEVER directly.

static final int

Indicates scrolling along the horizontal axis.

static final int

Indicates no axis of view scrolling.

static final int

Indicates scrolling along the vertical axis.

static final int

Scroll indicator direction for the bottom edge of the view.

static final int

Scroll indicator direction for the ending edge of the view.

static final int

Scroll indicator direction for the left edge of the view.

static final int

Scroll indicator direction for the right edge of the view.

static final int

Scroll indicator direction for the starting edge of the view.

static final int

Scroll indicator direction for the top edge of the view.

static final int

Indicates that the input type for the gesture is caused by something which is not a user touching a screen.

static final int

Indicates that the input type for the gesture is from a user touching the screen.

Protected constructors

This method is deprecated.

This is a utility class and it shouldn't be instantiated.

Public methods

static int
addAccessibilityAction(
    @NonNull View view,
    @NonNull CharSequence label,
    @NonNull AccessibilityViewCommand command
)

Adds an accessibility action that can be performed on a node associated with a view.

static void
addKeyboardNavigationClusters(
    @NonNull View view,
    @NonNull Collection<View> views,
    int direction
)

Adds any keyboard navigation cluster roots that are descendants of view ( including view if it is a cluster root itself) to views.

static void

Adds a listener which will receive unhandled KeyEvents.

static void
addOverlayView(@NonNull ViewGroup overlayHost, @NonNull View overlay)

Convenience method to add overlay to overlayHost's overlay and assign the disjointParent in the overlay hierarchy.

static @NonNull ViewPropertyAnimatorCompat

This method is deprecated.

Call animate directly.

static boolean
@ReplaceWith(expression = "view.canScrollHorizontally(direction)")
canScrollHorizontally(View view, int direction)

This method is deprecated.

Use canScrollHorizontally directly.

static boolean
@ReplaceWith(expression = "view.canScrollVertically(direction)")
canScrollVertically(View view, int direction)

This method is deprecated.

Use canScrollVertically directly.

static void

Cancel the drag and drop operation.

static int
combineMeasuredStates(int curState, int newState)

This method is deprecated.

Use combineMeasuredStates directly.

static @NonNull WindowInsetsCompat
computeSystemWindowInsets(
    @NonNull View view,
    @NonNull WindowInsetsCompat insets,
    @NonNull Rect outLocalInsets
)

Compute insets that should be consumed by this view and the ones that should propagate to those under it.

static @NonNull WindowInsetsCompat

Request to apply the given window insets to this view or another view in its subtree.

static void

Notify a view that its temporary detach has ended; the view is now reattached.

static boolean
dispatchNestedFling(
    @NonNull View view,
    float velocityX,
    float velocityY,
    boolean consumed
)

Dispatch a fling to a nested scrolling parent.

static boolean
dispatchNestedPreFling(
    @NonNull View view,
    float velocityX,
    float velocityY
)

Dispatch a fling to a nested scrolling parent before it is processed by this view.

static boolean
dispatchNestedPreScroll(
    @NonNull View view,
    int dx,
    int dy,
    @Nullable int[] consumed,
    @Nullable int[] offsetInWindow
)

Dispatch one step of a nested scroll in progress before this view consumes any portion of it.

static boolean
dispatchNestedPreScroll(
    @NonNull View view,
    int dx,
    int dy,
    @Nullable int[] consumed,
    @Nullable int[] offsetInWindow,
    int type
)

Dispatch one step of a nested scroll in progress before this view consumes any portion of it.

static boolean
dispatchNestedScroll(
    @NonNull View view,
    int dxConsumed,
    int dyConsumed,
    int dxUnconsumed,
    int dyUnconsumed,
    @Nullable int[] offsetInWindow
)

Dispatch one step of a nested scroll in progress.

static boolean
dispatchNestedScroll(
    @NonNull View view,
    int dxConsumed,
    int dyConsumed,
    int dxUnconsumed,
    int dyUnconsumed,
    @Nullable int[] offsetInWindow,
    int type
)

Dispatch one step of a nested scroll in progress.

static void
dispatchNestedScroll(
    @NonNull View view,
    int dxConsumed,
    int dyConsumed,
    int dxUnconsumed,
    int dyUnconsumed,
    @Nullable int[] offsetInWindow,
    int type,
    @NonNull int[] consumed
)

Dispatch one step of a nested scroll in progress.

static void

Notify a view that it is being temporarily detached.

static void

Allow accessibility services to find and activate clickable spans in the application.

static int

This method is deprecated.

Call generateViewId directly.

static @Nullable AccessibilityDelegateCompat

Get the current accessibility delegate.

static int
@ReplaceWith(expression = "view.getAccessibilityLiveRegion()")
getAccessibilityLiveRegion(@NonNull View view)

This method is deprecated.

Call getAccessibilityLiveRegion directly.

static @Nullable AccessibilityNodeProviderCompat

Gets the provider for managing a virtual view hierarchy rooted at this View and reported to android.accessibilityservice.AccessibilityServices that explore the window content.

static @Nullable CharSequence

Get the title of the pane for purposes of accessibility.

static float
@ReplaceWith(expression = "view.getAlpha()")
getAlpha(View view)

This method is deprecated.

Use getAlpha directly.

static @Nullable AutofillIdCompat

Gets the unique, logical identifier of this view in the activity, for autofill purposes.

static @Nullable ColorStateList

Return the tint applied to the background drawable, if specified.

static @Nullable PorterDuff.Mode

Return the blending mode used to apply the tint to the background drawable, if specified.

static @Nullable Rect
@ReplaceWith(expression = "view.getClipBounds()")
getClipBounds(@NonNull View view)

This method is deprecated.

Call getClipBounds directly.

static @Nullable ContentCaptureSessionCompat

Gets the session used to notify content capture events.

static @Nullable Display
@ReplaceWith(expression = "view.getDisplay()")
getDisplay(@NonNull View view)

This method is deprecated.

Call getDisplay directly.

static float

The base elevation of this view relative to its parent, in pixels.

static boolean
@ReplaceWith(expression = "view.getFitsSystemWindows()")
getFitsSystemWindows(@NonNull View view)

This method is deprecated.

Call getFitsSystemWindows directly.

static int
@ReplaceWith(expression = "view.getImportantForAccessibility()")
getImportantForAccessibility(@NonNull View view)

This method is deprecated.

Call getImportantForAccessibility directly.

static int

Gets the mode for determining whether this view is important for autofill.

static int

Gets the mode for determining whether this view is important for content capture.

static int
@ReplaceWith(expression = "view.getLabelFor()")
getLabelFor(@NonNull View view)

This method is deprecated.

Call getLabelFor directly.

static int
@ReplaceWith(expression = "view.getLayerType()")
getLayerType(View view)

This method is deprecated.

Use getLayerType directly.

static int
@ReplaceWith(expression = "view.getLayoutDirection()")
getLayoutDirection(@NonNull View view)

This method is deprecated.

Call getLayoutDirection directly.

static @Nullable Matrix
@ReplaceWith(expression = "view.getMatrix()")
getMatrix(View view)

This method is deprecated.

Use getMatrix directly.

static int
@ReplaceWith(expression = "view.getMeasuredHeightAndState()")
getMeasuredHeightAndState(View view)

This method is deprecated.

Use getMeasuredHeightAndState directly.

static int
@ReplaceWith(expression = "view.getMeasuredState()")
getMeasuredState(View view)

This method is deprecated.

Use getMeasuredState directly.

static int
@ReplaceWith(expression = "view.getMeasuredWidthAndState()")
getMeasuredWidthAndState(View view)

This method is deprecated.

Use getMeasuredWidth directly.

static int
@ReplaceWith(expression = "view.getMinimumHeight()")
getMinimumHeight(@NonNull View view)

This method is deprecated.

Call getMinimumHeight directly.

static int
@ReplaceWith(expression = "view.getMinimumWidth()")
getMinimumWidth(@NonNull View view)

This method is deprecated.

Call getMinimumWidth directly.

static int

Gets the ID of the next keyboard navigation cluster root.

static @Nullable String[]

Returns the MIME types accepted by the listener configured on the given view via setOnReceiveContentListener.

static int
@ReplaceWith(expression = "view.getOverScrollMode()")
getOverScrollMode(View view)

This method is deprecated.

Call getOverScrollMode directly.

static @Px int
@ReplaceWith(expression = "view.getPaddingEnd()")
getPaddingEnd(@NonNull View view)

This method is deprecated.

Call getPaddingEnd directly.

static @Px int
@ReplaceWith(expression = "view.getPaddingStart()")
getPaddingStart(@NonNull View view)

This method is deprecated.

Call getPaddingStart directly.

static @Nullable ViewParent
@ReplaceWith(expression = "view.getParentForAccessibility()")
getParentForAccessibility(@NonNull View view)

This method is deprecated.

Call getParentForAccessibility directly.

static float
@ReplaceWith(expression = "view.getPivotX()")
getPivotX(View view)

This method is deprecated.

Use getPivotX directly.

static float
@ReplaceWith(expression = "view.getPivotY()")
getPivotY(View view)

This method is deprecated.

Use getPivotY directly.

static @Nullable WindowInsetsCompat

Provide original WindowInsetsCompat that are dispatched to the view hierarchy.

static float
@ReplaceWith(expression = "view.getRotation()")
getRotation(View view)

This method is deprecated.

Use getRotation directly.

static float
@ReplaceWith(expression = "view.getRotationX()")
getRotationX(View view)

This method is deprecated.

Use getRotationX directly.

static float
@ReplaceWith(expression = "view.getRotationY()")
getRotationY(View view)

This method is deprecated.

Use getRotationY directly.

static float
@ReplaceWith(expression = "view.getScaleX()")
getScaleX(View view)

This method is deprecated.

Use getScaleX directly.

static float
@ReplaceWith(expression = "view.getScaleY()")
getScaleY(View view)

This method is deprecated.

Use getScaleY directly.

static int

Returns a bitmask representing the enabled scroll indicators.

static @Nullable CharSequence

Returns the View's state description.

static @NonNull List<Rect>

Retrieve the list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures.

static @Nullable String

Returns the name of the View to be used to identify Views in Transitions.

static float
@ReplaceWith(expression = "view.getTranslationX()")
getTranslationX(View view)

This method is deprecated.

Use getTranslationX directly.

static float
@ReplaceWith(expression = "view.getTranslationY()")
getTranslationY(View view)

This method is deprecated.

Use getTranslationY directly.

static float

The depth location of this view relative to its elevation.

static @Nullable WindowInsetsControllerCompat

This method is deprecated.

Prefer getInsetsController to explicitly specify the window (such as when the view is in a dialog).

static int
@ReplaceWith(expression = "view.getWindowSystemUiVisibility()")
getWindowSystemUiVisibility(@NonNull View view)

This method is deprecated.

SystemUiVisibility flags are deprecated.

static float
@ReplaceWith(expression = "view.getX()")
getX(View view)

This method is deprecated.

Use getX directly.

static float
@ReplaceWith(expression = "view.getY()")
getY(View view)

This method is deprecated.

Use getY directly.

static float
getZ(@NonNull View view)

The visual z position of this view, in pixels.

static boolean

Checks whether provided View has an accessibility delegate attached to it.

static boolean

Returns true if this view is focusable or if it contains a reachable View for which hasExplicitFocusable returns true.

static boolean

Returns true if this view has a nested scrolling parent.

static boolean

Returns true if this view has a nested scrolling parent.

static boolean
@ReplaceWith(expression = "view.hasOnClickListeners()")
hasOnClickListeners(@NonNull View view)

This method is deprecated.

Call hasOnClickListeners directly.

static boolean
@ReplaceWith(expression = "view.hasOverlappingRendering()")
hasOverlappingRendering(@NonNull View view)

This method is deprecated.

Call hasOverlappingRendering directly.

static boolean
@ReplaceWith(expression = "view.hasTransientState()")
hasTransientState(@NonNull View view)

This method is deprecated.

Call hasTransientState directly.

static boolean

Gets whether this view is a heading for accessibility purposes.

static boolean
@ReplaceWith(expression = "view.isAttachedToWindow()")
isAttachedToWindow(@NonNull View view)

This method is deprecated.

Call isAttachedToWindow directly.

static boolean

Returns whether view should receive focus when the focus is restored for the view hierarchy containing it.

static boolean

Computes whether this view should be exposed for accessibility.

static boolean

Hints the Android System whether the android.app.assist.AssistStructure.ViewNode associated with this view is considered important for autofill purposes.

static boolean

Hints the Android System whether this view is considered important for content capture, based on the value explicitly set by setImportantForContentCapture and heuristics when it's IMPORTANT_FOR_CONTENT_CAPTURE_AUTO.

static boolean
@ReplaceWith(expression = "view.isInLayout()")
isInLayout(@NonNull View view)

This method is deprecated.

Call isInLayout directly.

static boolean

Returns whether view is a root of a keyboard navigation cluster.

static boolean
@ReplaceWith(expression = "view.isLaidOut()")
isLaidOut(@NonNull View view)

This method is deprecated.

Call isLaidOut directly.

static boolean
@ReplaceWith(expression = "view.isLayoutDirectionResolved()")
isLayoutDirectionResolved(@NonNull View view)

This method is deprecated.

Call isLayoutDirectionResolved directly.

static boolean

Returns true if nested scrolling is enabled for this view.

static boolean
@ReplaceWith(expression = "view.isOpaque()")
isOpaque(View view)

This method is deprecated.

Use isOpaque directly.

static boolean
@ReplaceWith(expression = "view.isPaddingRelative()")
isPaddingRelative(@NonNull View view)

This method is deprecated.

Call isPaddingRelative directly.

static boolean

Returns whether the view should be treated as a focusable unit by screen reader accessibility tools.

static void
@ReplaceWith(expression = "view.jumpDrawablesToCurrentState()")
jumpDrawablesToCurrentState(View view)

This method is deprecated.

Use jumpDrawablesToCurrentState directly.

static @Nullable View
keyboardNavigationClusterSearch(
    @NonNull View view,
    @Nullable View currentCluster,
    int direction
)

Find the nearest keyboard navigation cluster in the specified direction.

static void
offsetLeftAndRight(@NonNull View view, int offset)

Offset this view's horizontal location by the specified amount of pixels.

static void
offsetTopAndBottom(@NonNull View view, int offset)

Offset this view's vertical location by the specified number of pixels.

static @NonNull WindowInsetsCompat

Called when the view should apply WindowInsetsCompat according to its internal policy.

static void
@ReplaceWith(expression = "v.onInitializeAccessibilityEvent(event)")
onInitializeAccessibilityEvent(View v, AccessibilityEvent event)

This method is deprecated.

Call onInitializeAccessibilityEvent directly.

static void
@ReplaceWith(expression = "v.onInitializeAccessibilityNodeInfo(info.unwrap())")
onInitializeAccessibilityNodeInfo(
    @NonNull View v,
    @NonNull AccessibilityNodeInfoCompat info
)

This method is deprecated.

Call onInitializeAccessibilityNodeInfo directly.

static void
@ReplaceWith(expression = "v.onPopulateAccessibilityEvent(event)")
onPopulateAccessibilityEvent(View v, AccessibilityEvent event)

This method is deprecated.

Call onPopulateAccessibilityEvent directly.

static boolean
@ReplaceWith(expression = "view.performAccessibilityAction(action, arguments)")
performAccessibilityAction(
    @NonNull View view,
    int action,
    @Nullable Bundle arguments
)

This method is deprecated.

Call performAccessibilityAction directly.

static boolean
performHapticFeedback(@NonNull View view, int feedbackConstant)

Perform a haptic feedback to the user for the view.

static boolean
performHapticFeedback(@NonNull View view, int feedbackConstant, int flags)

Perform a haptic feedback to the user for the view.

static @Nullable ContentInfoCompat
performReceiveContent(
    @NonNull View view,
    @NonNull ContentInfoCompat payload
)

Receives the given content.

static void
@ReplaceWith(expression = "view.postInvalidateOnAnimation()")
postInvalidateOnAnimation(@NonNull View view)

This method is deprecated.

Call postInvalidateOnAnimation directly.

static void
@ReplaceWith(expression = "view.postInvalidateOnAnimation(left, top, right, bottom)")
postInvalidateOnAnimation(
    @NonNull View view,
    int left,
    int top,
    int right,
    int bottom
)

This method is deprecated.

Call postInvalidateOnAnimation directly.

static void
@ReplaceWith(expression = "view.postOnAnimation(action)")
postOnAnimation(@NonNull View view, @NonNull Runnable action)

This method is deprecated.

Call postOnAnimation directly.

static void
@ReplaceWith(expression = "view.postOnAnimationDelayed(action, delayMillis)")
postOnAnimationDelayed(
    @NonNull View view,
    @NonNull Runnable action,
    long delayMillis
)

This method is deprecated.

Call postOnAnimationDelayed directly.

static void
removeAccessibilityAction(@NonNull View view, int actionId)

Removes an accessibility action that can be performed on a node associated with a view.

static void

Removes a listener which will receive unhandled KeyEvents.

static void

Replaces an action.

static void

Ask that a new dispatch of View.onApplyWindowInsets(WindowInsets) be performed.

static @NonNull T
<T extends View> requireViewById(@NonNull View view, @IdRes int id)

Finds the first descendant view with the given ID, the view itself if the ID matches getId, or throws an IllegalArgumentException if the ID is invalid or there is no matching view in the hierarchy.

static int
resolveSizeAndState(int size, int measureSpec, int childMeasuredState)

This method is deprecated.

Use resolveSizeAndState directly.

static boolean

Gives focus to the default-focus view in the view hierarchy rooted at view.

static void
saveAttributeDataForStyleable(
    @NonNull View view,
    @NonNull Context context,
    @NonNull int[] styleable,
    @Nullable AttributeSet attrs,
    @NonNull TypedArray t,
    int defStyleAttr,
    int defStyleRes
)

Stores debugging information about attributes.

static void

Sets a delegate for implementing accessibility support via composition (as opposed to inheritance).

static void
@UiThread
setAccessibilityHeading(@NonNull View view, boolean isHeading)

Set if view is a heading for a section of content for accessibility purposes.

static void
@ReplaceWith(expression = "view.setAccessibilityLiveRegion(mode)")
setAccessibilityLiveRegion(@NonNull View view, int mode)

This method is deprecated.

Call setAccessibilityLiveRegion directly.

static void
@UiThread
setAccessibilityPaneTitle(
    @NonNull View view,
    @Nullable CharSequence accessibilityPaneTitle
)

Visually distinct portion of a window with window-like semantics are considered panes for accessibility purposes.

static void
@ReplaceWith(expression = "view.setActivated(activated)")
setActivated(View view, boolean activated)

This method is deprecated.

Use setActivated directly.

static void
@ReplaceWith(expression = "view.setAlpha(value)")
setAlpha(View view, @FloatRange(from = 0.0, to = 1.0) float value)

This method is deprecated.

Use setAlpha directly.

static void
setAutofillHints(@NonNull View view, @Nullable String[] autofillHints)

Sets the hints that help an android.service.autofill.AutofillService determine how to autofill the view with the user's data.

static void

Sets the unique, logical identifier of this view in the activity, for autofill purposes.

static void
@ReplaceWith(expression = "view.setBackground(background)")
setBackground(@NonNull View view, @Nullable Drawable background)

This method is deprecated.

Call setBackground directly.

static void
setBackgroundTintList(
    @NonNull View view,
    @Nullable ColorStateList tintList
)

Applies a tint to the background drawable.

static void

Specifies the blending mode used to apply the tint specified by setBackgroundTintList to the background drawable.

static void
setChildrenDrawingOrderEnabled(ViewGroup viewGroup, boolean enabled)

This method is deprecated.

Use setChildrenDrawingOrderEnabled directly.

static void
@ReplaceWith(expression = "view.setClipBounds(clipBounds)")
setClipBounds(@NonNull View view, @Nullable Rect clipBounds)

This method is deprecated.

Call setClipBounds directly.

static void
setContentCaptureSession(
    @NonNull View v,
    @Nullable ContentCaptureSessionCompat contentCaptureSession
)

Sets the (optional) ContentCaptureSession associated with this view.

static void
setElevation(@NonNull View view, float elevation)
static void
@ReplaceWith(expression = "view.setFitsSystemWindows(fitSystemWindows)")
setFitsSystemWindows(View view, boolean fitSystemWindows)

This method is deprecated.

Use setFitsSystemWindows directly.

static void
setFocusedByDefault(@NonNull View view, boolean isFocusedByDefault)

Sets whether view should receive focus when the focus is restored for the view hierarchy containing it.

static void
@ReplaceWith(expression = "view.setHasTransientState(hasTransientState)")
setHasTransientState(@NonNull View view, boolean hasTransientState)

This method is deprecated.

Call setHasTransientState directly.

static void
@ReplaceWith(expression = "view.setImportantForAccessibility(mode)")
@UiThread
setImportantForAccessibility(@NonNull View view, int mode)

This method is deprecated.

Call setImportantForAccessibility directly.

static void

Sets the mode for determining whether this view is considered important for autofill.

static void

Sets the mode for determining whether this view is considered important for content capture.

static void
setKeyboardNavigationCluster(@NonNull View view, boolean isCluster)

Set whether view is a root of a keyboard navigation cluster.

static void
@ReplaceWith(expression = "view.setLabelFor(labeledId)")
setLabelFor(@NonNull View view, @IdRes int labeledId)

This method is deprecated.

Call setLabelFor directly.

static void
@ReplaceWith(expression = "view.setLayerPaint(paint)")
setLayerPaint(@NonNull View view, @Nullable Paint paint)

This method is deprecated.

Call setLayerPaint directly.

static void
@ReplaceWith(expression = "view.setLayerType(layerType, paint)")
setLayerType(View view, int layerType, Paint paint)

This method is deprecated.

Use setLayerType directly.

static void
@ReplaceWith(expression = "view.setLayoutDirection(layoutDirection)")
setLayoutDirection(@NonNull View view, int layoutDirection)

This method is deprecated.

Call setLayoutDirection directly.

static void
setNestedScrollingEnabled(@NonNull View view, boolean enabled)

Enable or disable nested scrolling for this view.

static void
setNextClusterForwardId(@NonNull View view, int nextClusterForwardId)

Sets the ID of the next keyboard navigation cluster root view.

static void

Set an OnApplyWindowInsetsListener to take over the policy for applying window insets to this view.

static void
setOnReceiveContentListener(
    @NonNull View view,
    @Nullable String[] mimeTypes,
    @Nullable OnReceiveContentListener listener
)

Sets the listener to be used to handle insertion of content into the given view.

static void
@ReplaceWith(expression = "view.setOverScrollMode(overScrollMode)")
setOverScrollMode(View view, int overScrollMode)

This method is deprecated.

Call setOverScrollMode directly.

static void
@ReplaceWith(expression = "view.setPaddingRelative(start, top, end, bottom)")
setPaddingRelative(
    @NonNull View view,
    @Px int start,
    @Px int top,
    @Px int end,
    @Px int bottom
)

This method is deprecated.

Call setPaddingRelative directly.

static void
@ReplaceWith(expression = "view.setPivotX(value)")