public static interface AppBarLayout.OnOffsetChangedListener
AppBarLayout
's vertical
offset changes.Modifier and Type | Method and Description |
---|---|
void |
onOffsetChanged(AppBarLayout appBarLayout,
int verticalOffset)
Called when the
AppBarLayout 's layout offset has been changed. |
void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset)
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).appBarLayout
- the AppBarLayout
which offset has changedverticalOffset
- the vertical offset for the parent AppBarLayout
, in px