isPointInChildBounds

open fun isPointInChildBounds(@NonNull child: @NonNull View, x: Int, y: Int): Boolean(source)

Check if a given point in the CoordinatorLayout's coordinates are within the view bounds of the given direct child view.

Return

true if the point is within the child view's bounds, false otherwise

Parameters

child

child view to test

x

X coordinate to test, in the CoordinatorLayout's coordinate system

y

Y coordinate to test, in the CoordinatorLayout's coordinate system