public static interface AppBarLayout.OnOffsetChangedListener
| android.support.design.widget.AppBarLayout.OnOffsetChangedListener |
AppBarLayout的垂直偏移更改时调用回调的接口定义。
公共方法(Public methods) |
|
|---|---|
abstract void |
onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) 当 |
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 |