added in version 22.2.0
belongs to Maven artifact com.android.support:design:27.1.0
belongs to Maven artifact com.android.support:design:27.1.0
AppBarLayout.OnOffsetChangedListener
public
static
interface
AppBarLayout.OnOffsetChangedListener
android.support.design.widget.AppBarLayout.OnOffsetChangedListener |
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 |
Public methods
onOffsetChanged
added in version 22.2.0
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 |
AppBarLayout : the AppBarLayout which offset has changed |
verticalOffset |
int : the vertical offset for the parent AppBarLayout , in px
|
Annotations
Interfaces
- AppBarLayout.OnOffsetChangedListener
- BaseTransientBottomBar.ContentViewCallback
- BottomNavigationView.OnNavigationItemReselectedListener
- BottomNavigationView.OnNavigationItemSelectedListener
- CoordinatorLayout.AttachedBehavior
- NavigationView.OnNavigationItemSelectedListener
- SwipeDismissBehavior.OnDismissListener
- TabLayout.OnTabSelectedListener
Classes
- AppBarLayout
- AppBarLayout.Behavior
- AppBarLayout.Behavior.DragCallback
- AppBarLayout.Behavior.SavedState
- AppBarLayout.LayoutParams
- AppBarLayout.ScrollingViewBehavior
- BaseTransientBottomBar
- BaseTransientBottomBar.BaseCallback
- BottomNavigationView
- BottomSheetBehavior
- BottomSheetBehavior.BottomSheetCallback
- BottomSheetBehavior.SavedState
- BottomSheetDialog
- BottomSheetDialogFragment
- CollapsingToolbarLayout
- CollapsingToolbarLayout.LayoutParams
- CoordinatorLayout
- CoordinatorLayout.Behavior
- CoordinatorLayout.LayoutParams
- CoordinatorLayout.SavedState
- FloatingActionButton
- FloatingActionButton.Behavior
- FloatingActionButton.OnVisibilityChangedListener
- NavigationView
- NavigationView.SavedState
- Snackbar
- Snackbar.Callback
- SwipeDismissBehavior
- TabItem
- TabLayout
- TabLayout.Tab
- TabLayout.TabLayoutOnPageChangeListener
- TabLayout.ViewPagerOnTabSelectedListener
- TextInputEditText
- TextInputLayout