The Android Developer Challenge is back! Submit your idea before December 2.

BottomAppBar.Behavior

public static class BottomAppBar.Behavior
extends HideBottomViewOnScrollBehavior<BottomAppBar>

java.lang.Object
   ↳ androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior<V extends android.view.View>
     ↳ com.google.android.material.behavior.HideBottomViewOnScrollBehavior<com.google.android.material.bottomappbar.BottomAppBar>
       ↳ com.google.android.material.bottomappbar.BottomAppBar.Behavior


Behavior designed for use with BottomAppBar instances. Its main function is to link a dependent FloatingActionButton so that it can be shown docked in the cradle.

Summary

Inherited constants

From class com.google.android.material.behavior.HideBottomViewOnScrollBehavior

Public constructors

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

Public methods

boolean onLayoutChild(CoordinatorLayout parent, BottomAppBar child, int layoutDirection)
boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, BottomAppBar child, View directTargetChild, View target, int axes, int type)

Inherited methods

From class com.google.android.material.behavior.HideBottomViewOnScrollBehavior
From class androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
From class java.lang.Object

Public constructors

BottomAppBar.Behavior

BottomAppBar.Behavior ()

BottomAppBar.Behavior

BottomAppBar.Behavior (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Public methods

onLayoutChild

boolean onLayoutChild (CoordinatorLayout parent, 
                BottomAppBar child, 
                int layoutDirection)

Parameters
parent CoordinatorLayout

child BottomAppBar

layoutDirection int

Returns
boolean

onStartNestedScroll

boolean onStartNestedScroll (CoordinatorLayout coordinatorLayout, 
                BottomAppBar child, 
                View directTargetChild, 
                View target, 
                int axes, 
                int type)

Parameters
coordinatorLayout CoordinatorLayout

child BottomAppBar

directTargetChild View

target View

axes int

type int

Returns
boolean