lightbulb_outline Please take our October 2018 developer survey. Start survey

AppBarLayout.Behavior

public static class AppBarLayout.Behavior
extends BaseBehavior<AppBarLayout>

java.lang.Object
   ↳ android.support.design.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()

The default AppBarLayout.Behavior for AppBarLayout.

AppBarLayout.Behavior(Context context, AttributeSet attrs)

The default AppBarLayout.Behavior for AppBarLayout.

Inherited methods

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

Public constructors

AppBarLayout.Behavior

AppBarLayout.Behavior ()

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

AppBarLayout.Behavior

AppBarLayout.Behavior (Context context, 
                AttributeSet attrs)

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

Parameters
context Context

attrs AttributeSet