Google 致力于为黑人社区推动种族平等。查看具体举措

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

Public methods

onOffsetChanged

public abstract void onOffsetChanged (AppBarLayout appBarLayout, 
                int verticalOffset)

Parameters
appBarLayout AppBarLayout

verticalOffset int