Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

AppBarLayout.BaseOnOffsetChangedListener

public static interface AppBarLayout.BaseOnOffsetChangedListener

com.google.android.material.appbar.AppBarLayout.BaseOnOffsetChangedListener<T extends com.google.android.material.appbar.AppBarLayout>
Known Indirect Subclasses


Interface definition for a callback to be invoked when an AppBarLayout's vertical offset changes.

Summary

Public methods

abstract void onOffsetChanged(T appBarLayout, int verticalOffset)

Called when the AppBarLayout's layout offset has been changed.

Public methods

onOffsetChanged

void onOffsetChanged (T 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 T: the AppBarLayout which offset has changed

verticalOffset int: the vertical offset for the parent AppBarLayout, in px