getDescendantRect

open fun getDescendantRect(@NonNull parent: @NonNull ViewGroup, @NonNull descendant: @NonNull View, @NonNull out: @NonNull Rect)(source)

Retrieve the transformed bounding rect of an arbitrary descendant view. This does not need to be a direct child.

Parameters

descendant

descendant view to reference

out

rect to set to the bounds of the descendant view