updateViewBounds

fun View.updateViewBounds(targetBounds: Rect)

Extension function to update the View's layout params and position to match the target bounds.