getDecoratedBoundsWithMargins
open fun getDecoratedBoundsWithMargins(@NonNull view: @NonNull View, @NonNull outBounds: @NonNull Rect)
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.