Android APIs
public static interface

AppBarLayout.OnOffsetChangedListener

android.support.design.widget.AppBarLayout.OnOffsetChangedListener

Class Overview

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)
Called when the AppBarLayout's layout offset has been changed.

Public Methods

public abstract void onOffsetChanged (AppBarLayout appBarLayout, int verticalOffset)

Called when the 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).

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