Most visited

Recently visited

AppBarLayout.OnOffsetChangedListener

public static interface AppBarLayout.OnOffsetChangedListener

android.support.design.widget.AppBarLayout.OnOffsetChangedListener


AppBarLayout的垂直偏移更改时调用回调的接口定义。

Summary

Public methods

abstract void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset)

AppBarLayout的布局偏移已更改时调用。

Public methods

onOffsetChanged

void onOffsetChanged (AppBarLayout appBarLayout, 
                int verticalOffset)

AppBarLayout的布局偏移已更改时调用。 这允许子视图基于偏移量实现自定义行为(例如将视图固定在某个y值处)。

Parameters
appBarLayout AppBarLayout: the AppBarLayout which offset has changed
verticalOffset int: the vertical offset for the parent AppBarLayout, in px

Hooray!