onUpdate

abstract fun onUpdate(@Dimension elevation: Float, @ColorInt backgroundColor: Int, @FloatRange(from = 0.0, to = 1.0) progress: Float)

Update method called when the lift progress is updated.

Parameters

elevation

the elevation of the AppBarLayout

backgroundColor

the background color of the AppBarLayout

progress

the progress of the lift animation; 0 is unlifted, 1 is lifted.