onOffsetChanged

open fun onOffsetChanged(@NonNull appBarLayout: AppBarLayout, @NonNull child: View, offset: Float)

Called each time the AppBarLayout's offset changes. Update the child with any desired effects.

Parameters

appBarLayout

The parent AppBarLayout

child

The View to be given any desired effect