BottomAppBar.Behavior

public static class BottomAppBar.Behavior
extends HideBottomViewOnScrollBehavior<BottomAppBar>

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

Default constructor for instantiating this Behavior.

BottomAppBar.Behavior(Context context, AttributeSet attrs)

Default constructor for inflating this Behavior from layout.

Public methods

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

Protected methods

void slideDown(BottomAppBar child)
void slideUp(BottomAppBar child)

Inherited methods

From class com.google.android.material.behavior.HideBottomViewOnScrollBehavior
From class java.lang.Object

Public constructors

BottomAppBar.Behavior

BottomAppBar.Behavior ()

Default constructor for instantiating this Behavior.

BottomAppBar.Behavior

BottomAppBar.Behavior (Context context, 
                AttributeSet attrs)

Default constructor for inflating this Behavior from layout.

Parameters
context Context: The ERROR(/Context).

attrs AttributeSet: The ERROR(/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

Protected methods

slideDown

void slideDown (BottomAppBar child)

Parameters
child BottomAppBar

slideUp

void slideUp (BottomAppBar child)

Parameters
child BottomAppBar