Google 致力于为黑人社区推动种族平等。查看具体举措

FloatingActionButton.Behavior

public static class FloatingActionButton.Behavior
extends BaseBehavior<FloatingActionButton>

java.lang.Object
   ↳ androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior<T extends com.google.android.material.floatingactionbutton.FloatingActionButton>
     ↳ com.google.android.material.floatingactionbutton.FloatingActionButton.BaseBehavior<com.google.android.material.floatingactionbutton.FloatingActionButton>
       ↳ com.google.android.material.floatingactionbutton.FloatingActionButton.Behavior


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

Summary

Inherited XML attributes

Public constructors

Behavior()
Behavior(Context context, AttributeSet attrs)

Inherited methods

Public constructors

Behavior

public Behavior ()

Behavior

public Behavior (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet