invoke

abstract operator fun invoke(view: View, old: Size, new: Size, min: Size, max: Size): Size

Called whenever the View's size is changing, providing an opportunity to manage the final size. The result of this call will still be clipped to the View's min/max allowed sizes.

Return

the size the View should change to (which will be clipped to min/max)

Parameters

old

size before change

new

size being considered

min

the smallest size this View is allowed to be

max

the largest size this View is allowed to be