getDecoratedBoundsWithMargins

open fun getDecoratedBoundsWithMargins(@NonNull view: View, @NonNull outBounds: Rect)(source)

Returns the bounds of the view including its decoration and margins.

Parameters

view

The view element to check

outBounds

A rect that will receive the bounds of the element including its decoration and margins.