onOffsetChanged

abstract fun onOffsetChanged(appBarLayout: AppBarLayout, verticalOffset: Int)

Called when the AppBarLayout's layout offset changes during immersive scroll.

Parameters

appBarLayout

the AppBarLayout whose offset has changed

verticalOffset

the vertical offset in pixels