Register now for Android Dev Summit 2019!

AppBarLayout.Behavior

public static class AppBarLayout.Behavior
extends BaseBehavior<AppBarLayout>

java.lang.Object
   ↳ androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior<V extends android.view.View>
     ↳ com.google.android.material.appbar.AppBarLayout.BaseBehavior<com.google.android.material.appbar.AppBarLayout>
       ↳ com.google.android.material.appbar.AppBarLayout.Behavior


The default AppBarLayout.Behavior for AppBarLayout. Implements the necessary nested scroll handling with offsetting.

Summary

Nested classes

class AppBarLayout.Behavior.DragCallback

Callback to allow control over any AppBarLayout dragging. 

Public constructors

AppBarLayout.Behavior()
AppBarLayout.Behavior(Context context, AttributeSet attrs)

Inherited methods

From class com.google.android.material.appbar.AppBarLayout.BaseBehavior
From class androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
From class java.lang.Object

Public constructors

AppBarLayout.Behavior

AppBarLayout.Behavior ()

AppBarLayout.Behavior

AppBarLayout.Behavior (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet