FloatingActionButton.Behavior

public class FloatingActionButton.Behavior extends FloatingActionButton.BaseBehavior


Behavior designed for use with FloatingActionButton instances. Its main function is to move FloatingActionButton views so that any displayed s do not cover them.

Summary

Public constructors

Behavior(Context context, AttributeSet attrs)

Inherited methods

From com.google.android.material.floatingactionbutton.FloatingActionButton.BaseBehavior
boolean
getInsetDodgeRect(
    CoordinatorLayout parent,
    FloatingActionButton child,
    Rect rect
)
boolean

Returns whether the associated FloatingActionButton automatically hides when there is not enough space to be displayed.

void
onAttachedToLayoutParams(LayoutParams lp)
boolean
onDependentViewChanged(
    CoordinatorLayout parent,
    FloatingActionButton child,
    View dependency
)
boolean
onLayoutChild(
    CoordinatorLayout parent,
    FloatingActionButton child,
    int layoutDirection
)
void
setAutoHideEnabled(boolean autoHide)

Sets whether the associated FloatingActionButton automatically hides when there is not enough space to be displayed.

void

Public constructors

Behavior

public Behavior()

Behavior

public Behavior(Context context, AttributeSet attrs)