lightbulb_outline Please take our October 2018 developer survey. Start survey

AppBarLayout.OnOffsetChangedListener

public static interface AppBarLayout.OnOffsetChangedListener
implements BaseOnOffsetChangedListener<AppBarLayout>

com.google.android.material.appbar.AppBarLayout.OnOffsetChangedListener


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

Summary

Public methods

abstract void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset)

Inherited methods

From interface com.google.android.material.appbar.AppBarLayout.BaseOnOffsetChangedListener

Public methods

onOffsetChanged

void onOffsetChanged (AppBarLayout appBarLayout, 
                int verticalOffset)

Parameters
appBarLayout AppBarLayout

verticalOffset int