AppBarLayout.BaseOnOffsetChangedListener

public interface AppBarLayout.BaseOnOffsetChangedListener<T extends AppBarLayout>

Known direct subclasses
AppBarLayout.OnOffsetChangedListener

Interface definition for a callback to be invoked when an AppBarLayout's vertical offset changes.


Interface definition for a callback to be invoked when an AppBarLayout's vertical offset changes.

Summary

Public methods

abstract void
onOffsetChanged(T appBarLayout, int verticalOffset)

Called when the AppBarLayout's layout offset has been changed.

Public methods

onOffsetChanged

abstract void onOffsetChanged(T appBarLayout, int verticalOffset)

Called when the AppBarLayout's layout offset has been changed. This allows child views to implement custom behavior based on the offset (for instance pinning a view at a certain y value).

Parameters
T appBarLayout

the AppBarLayout which offset has changed

int verticalOffset

the vertical offset for the parent AppBarLayout, in px