doViewsOverlap

open fun doViewsOverlap(@NonNull first: @NonNull View, @NonNull second: @NonNull View): Boolean(source)

Check whether two views overlap each other. The views need to be descendants of this CoordinatorLayout in the view hierarchy.

Return

true if both views are visible and overlap each other

Parameters

first

first child view to test

second

second child view to test