getTransformedBoundingBox

open fun getTransformedBoundingBox(@NonNull child: View, includeDecorInsets: Boolean, @NonNull out: Rect)(source)

Calculates the bounding box of the View while taking into account its matrix changes (translation, scale etc) with respect to the RecyclerView.

If includeDecorInsets is true, they are applied first before applying the View's matrix so that the decor offsets also go through the same transformation.

Parameters

child

The ItemView whose bounding box should be calculated.

includeDecorInsets

True if the decor insets should be included in the bounding box

out

The rectangle into which the output will be written.