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

From class com.google.android.material.floatingactionbutton.FloatingActionButton.BaseBehavior

Public constructors

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

Inherited methods

From class com.google.android.material.floatingactionbutton.FloatingActionButton.BaseBehavior
From class androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
From class java.lang.Object

Public constructors

FloatingActionButton.Behavior

FloatingActionButton.Behavior ()

FloatingActionButton.Behavior

FloatingActionButton.Behavior (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet