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

Public constructors

Behavior()
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

Public constructors

Behavior

public Behavior ()

Behavior

public Behavior (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Public methods

onLayoutChild

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

Parameters
parent CoordinatorLayout

child BottomAppBar

layoutDirection int

Returns
boolean

onStartNestedScroll

public 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