animateInsetsAmount

open fun animateInsetsAmount(toInsetsAmount: Float)(source)

Animates the insets amount from the current value to the specified one.

Calling setInsetAmount during the animation will cancel the existing animation of insets amount.

Parameters

toInsetsAmount

The insets amount that will be animated to. The range is [0, 1].